Skip to content

WF-0154 - E-Brake: Observed Absurdity Fixes #267

Description

@flyingrobots

Goalpost

Emergency-brake cycle fixing the absurdities surfaced by the 2026-07-12 forensic audit. Four slices, each with a RED-first witness; the Echo WASM bet and the causal-undo family are explicitly out of scope.

Slices

  1. Wire undo/redo as causal counter-edits. undo()/redo() are fully implemented at src/app/workspace/editor-editing-helpers.ts:221-261 with zero callers, while src/ui/help.ts:25 advertises u ctrl+r undo, redo. Wire normal-mode keys, route the restoring delta through the production text session as an authored counter-edit, register provenance so :why explains it. Opt-in JEDIT_UNDO=1, flip default when the witness is green, update BEARING's 'intentionally unsupported' line.
  2. Freeze the title screen. src/ui/title-screen.ts is the highest-churn file in the repo (55 commits). Leash-lane entry with explicit unfreeze trigger + changed-shards guard failing plans that touch frozen title paths without a title-unfreeze label.
  3. Fix order-dependent root identity. Module-global let nextRootId = 1 at src/domain/text-edit-contract.ts:49 makes HeadId/RootNodeId depend on process-wide buffer-creation order. Per-runtime allocator; re-rank and close docs/method/backlog/bad-code/global-next-root-id-counter.md.
  4. Doc truth. Governance spec asserting every src/**/scripts/** path referenced by top-level guides exists (RED today: ADVANCED_GUIDE.md:14,41,91 point at a 13-line dispatcher and a deleted adapter). Rewrite ADVANCED_GUIDE around the real map, fix GUIDE's stale npm run check description, clarify README's 'production path is Echo-hosted' to name the in-process contract posture.

Design doc: docs/design/0153-e-brake-absurdity-fixes.md (kickoff PR to follow).

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    causal-ropeCausal rope text authority roadmapenhancementNew feature or requestgoalpostRoadmap milestone trackersliceImplementable roadmap slicetext-authorityText authority and storage invariantswork-in-progressCycle or PR is intentionally in progress and not ready to merge

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions