Replace Python tooling and enforce Rust/TypeScript-only development

Open
#298 1 comment 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
22/100
Issue type
Refactor
Clarity
Mostly clear
Activity status
Active
Tech stack
dockerfile, python, rust, shell, typescript

Research direction

Start by re-running the census of Python callers, including CI, shebangs and inline snippets, then read scripts/consumer-witnesses/jedit-source-functions.py and its test_jedit_source_functions.py to see the witness checks to preserve. Port the witnesses and the docs/design/collections-optics-dag/build.py generator to Rust or TypeScript with the same CLI and output, then add a guard that rejects Python files and shebangs. Done when the replacement tests pass without Python installed and the guard fails on a planted .py file.

Written by the indexing model from the issue text.

Description

enhancement type: goalpost

Outcome

Amblicit's consumer witnesses and roadmap generators use Rust/TypeScript, and CI prevents Python from returning. This is an executable issue: one coherent, independently verifiable PR. The user explicitly required Rust or TypeScript for authored tooling and prohibited Python on 2026-11-01.

Evidence and scope

Main 62b81c9887eb42d7cd6ecb85c7b334b1b163d441 contains five tracked Python files:

  • scripts/consumer-witnesses/jedit-source-functions.py
  • scripts/consumer-witnesses/jedit-state-read.py
  • scripts/consumer-witnesses/test_jedit_source_functions.py
  • docs/design/collections-optics-dag/build.py
  • docs/design/collections-optics-dag/verify_analysis.py

Known callers also include scripts/consumer-witnesses/run-jedit-state-read.sh, the state-read Dockerfile's Python installation, and the consumer-witness README. Refresh the full tracked-source/caller census at implementation time, including CI, shebangs and inline snippets.

Use Rust for compiler/witness tooling where it fits the existing harness and TypeScript for the offline DAG generator/analysis where appropriate. Preserve CLI behavior, fixtures, evidence formats, deterministic graph semantics and the generated viewer. Update tests and callers with the implementation; remove Python files, dependencies and fallbacks from the current tree. Record the language rule in contributor/agent guidance and enforce it with a Rust/TypeScript check.

Acceptance

  • Compiler witnesses retain original source/provider identity checks, repeated-output checks, expected refusal boundaries and bounded process execution. Equivalent positive and negative checks pass without Python available.
  • The generated DAG still contains precedence edges only. Reachability, cycle detection, transitive reduction, antichain/wave assertions and task/workstream coverage remain independently verified. Deterministic input produces equivalent canonical analysis and the existing viewer behavior/accessibility checks pass.
  • The guard rejects .py, extensionless Python shebangs and executable inline Python in workflows/scripts; it does not confuse ordinary data or historical prose with executable code.
  • All five files and their interpreter-dependent callers are retired; no extension-hiding or optional Python fallback. Relevant tests and CI pass with normal hooks and the project's resource discipline.

Boundaries, prerequisites and safe state

No collections/optics redesign, list capability work, issue-status reinterpretation or graph dependency changes. Do not modify preserved historical source evidence to make a scanner pass. No required prior merge is identified; verify live state before starting. This cleanup is not a structural blocker for #289 and must not be added as one merely for policy scheduling.

The merged tree has working replacement tools and viewer artifacts, with existing compiler behavior preserved. Link one coherent PR, meaningful parity/refusal evidence and the resulting integration commit. Deliver the completion handoff and associated implementation/evidence to Reader and retain its intact receipt.

Dominant language
Rust
Stars
0
Forks
0
PR merge metrics
No merged PRs in 30d

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from flyingrobots/edict

All issues in flyingrobots/edict

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.