tensor-grep: world-class roadmap (edit-control plane)
The moat is the agentic edit-control plane — deciding what to touch, what else breaks, what to
run, and when to stop, with receipts — not faster grep. The expensive 80% (evidence emit/verify,
review-bundle, ledger, checkpoints) is already shipped; the remaining rails exceed what any agent
execution sandbox can do:
- semantic blast-radius enforcement (what must change when this changes),
- primary-span claim-checking (did the edit touch the span the ticket authorized),
- escrowed, head-bound evidence (receipts a CI-held key signs, not the editing agent's).
An agent's sandbox already enforces "touched files ⊆ allowed" natively — that is table stakes,
not a PASS condition (council HIGH-1).
When NOT to use this skill
| Situation |
Use instead |
| Building/merging any concrete slice |
tensor-grep-change-control (gates, 4-site registration, TDD) |
| The roadmap's contracts went stale |
re-verify against docs/plans/2026-08-09-worldclass-roadmap.md + tensor-grep-release-drift-check |
| Evidence signing/verification mechanics |
tensor-grep-enterprise-review-bundle (trusted-key/require-trusted family) |
| Agent-facing search rank/semantics |
tensor-grep-find-and-route, tensor-grep-semantic-search-campaign |
| Roadmap demand/business framing |
docs/audits/2026-08-06-ceo-gated-recommendation-packets.md (CEO-gated) |
Status ledger (banked vs new — re-derive from the plan doc, never from memory)
| Item |
Status |
One-line contract |
| H1 unknown-command fail-closed + PATH honesty |
SHIPPED (v1.110.13 unknown_command A90; v1.110.14 doctor schema-3 pypi_latest/shadow_launchers/installation_health) |
both front doors exit 2 + nearest[]; doctor surfaces PATH-vs-claimed distribution |
| S1 fail-closed edit tickets + verify-edit, escrowed |
BANKED F6, re-scoped; THE moat — MIXED disposition (A41, corrected 2026-08-12 per docs/TASK_BOARD.md F6): Step 0 shipped (#939); Python/schema/evidence-signing slices buildable-first, native verify-edit + e2e halves CI/cloud-routed |
See the S1 contract below — nothing ships until this does |
| S2 registration-aware impact-diff |
NEW |
changed_symbols + registration_sites (allowlists, @router, Commands::, class registries) + tests_to_run |
| S3 next_action machine protocol + budget envelope |
NEW (default-OFF additive) |
capsule extension; budget envelope for the machine consumer |
| S4 warm session resume of decisions |
BANKED PARTIALLY |
correct the premise before building: tg session prepare/resume DO NOT EXIST (only top-level tg prepare) — the whole session resume gate is unbuilt (the doc's own ground-truth correction, §S4) |
| S5 head-bound, escrowed evidence chain at CI |
BANKED PARTIALLY |
rides S1's escrow; receipts pinned to base_sha + fingerprint |
| S6 semantic default + why_ranked |
BANKED PARTIALLY |
additive find UX: why_ranked reasons + install_state |
| S7 federated workspace object |
BANKED F8 |
Python slice first, rust/e2e later |
S1 — the load-bearing contract (verify-edit, escrowed)
ticket_id { base_sha, working_tree_fingerprint, primary_span, allowed_files[], validation_commands[], expires_at, ask_user_before_editing }.
- Verdict ∈ {
PASS, FAIL(edit_contract_violated), UNVERIFIED(reason)}.
- PASS requires ESCROWED evidence: validation subprocess stdout-hash + exit code + duration,
signed by a key pinned via
TG_EVIDENCE_TRUSTED_KEYS that the editing principal does NOT hold
(CI-held); primary span changed as claimed; no silent extras outside blast_radius_floor;
tree fingerprint matches the ticket (no drift from sibling agents/rebase). Self-attestation by the
editing agent is Oracle Form 8 (split-oracle) — never a PASS.
- FAIL closed:
incomplete_reason_class=edit_contract_violated, exit 2, revert-eligible file set
(ticket carries checkpoint_id; rollback-on-violation is the un-apply primitive).
- UNVERIFIED (runner-less repo / deadline-truncated validation / escrow key absent): never
certifies, distinct code, agent should ask the user.
External precedents that validate the shape (Exa-verified 2026-08-11):
- Occasio: GitHub Actions OIDC-signed agent-run attestations (Sigstore/Rekor), offline-verifiable
— the CI-held-key escrow is an established pattern, not an invented one.
- AET (AdvancingTitans/agent-engineering-toolkit): an evidence plane with PASS/FAIL/UNKNOWN +
freshness states (
EXACT_MATCH → HEAD_CHANGED_RELEVANT_FILES_MATCH → UNKNOWN) and
freshness-stops — the same fail-closed-on-drift discipline as the ticket fingerprint.
- Anthropic harness papers (building-effective-agents; effective-harnesses; harness-design): the
default-FAIL contract (evidence before claiming done), fresh-context evaluator, and
verify-before-claim patterns are the general form of S1's verdict staging.
- Agent Edit Contract (zemna.net 2026-07): repo map → task boundary → verification command
named BEFORE the edit → artifact proof (handle, freshness, minimum substance, domain assertion) →
rollback note. S1's ticket is this contract made machine-checkable (see
docs/plans/ for the
source contract claims).
Both-front-door + registration obligations (A90/A91)
Every S1–S7 slice that adds a command or flag MUST enroll: KNOWN_COMMANDS (commands.py),
Commands::X + dispatch arm in rust_core/src/main.rs, PUBLIC_TOP_LEVEL_COMMANDS
(tests/e2e/test_routing_parity.py), and the @app.command in main.py; search flags also need
SEARCH_PYTHON_PASSTHROUGH_FLAGS (rust) + bootstrap._TG_ONLY_SEARCH_FLAGS (python). Un-enrolled
stealth commands die at first dogfood with the A90 unknown-command refusal — the slice is then
honest only as "no core-rust logic," never "no native touch."
Gate sequence for any roadmap slice
- Scoped design + operating contract (plan doc style) — premises verified against origin/main (A75/A93).
- Thinktank design council (ground-truth + adversarial + gate seats); council amendments folded in BEFORE build.
- TDD-first build (worktree-isolated), real-venv re-verify, ruff/mypy, mandatory adversarial gate.
- Both-front-door dogfood on the real published binary (A90 receipts as the first smoke).
fix:/feat: PR title so the release actually ships the slice (release class is part of the fix).
Common mistakes
- Treating "touched files ⊆ allowed" (sandbox table stakes) as a PASS condition — S1's claim-check is
about the PRIMARY SPAN, not the allowlist.
- Building S5 without S1 (escrow is S1's mechanism; S5 rides it).
- Re-deriving banked status from memory instead of the plan doc — the ledger above was verified
2026-08-11 against the doc; re-check on any drift (A94 discipline).
1---2name: tensor-grep-worldclass-roadmap3description: Use when planning, building, reviewing, or prioritizing any slice of the world-class roadmap — the agentic EDIT-CONTROL PLANE thesis (not faster grep); the S1 fail-closed edit tickets + verify-edit with ESCROWED CI-held-key evidence; S2 registration-aware impact-diff; S3 next_action protocol; S4 warm-session resume; S5 head-bound escrowed evidence chain; S6 semantic default + why_ranked; S7 federated workspace object; or the H1 unknown-command/PATH-honesty prerequisite. Triggers: "edit-control plane", "world-class", "verify-edit", "escrowed evidence", "S1..S7", "edit tickets", "CI-held signing key", "semantic blast radius", "impact diff", "next_action protocol", "federated workspace", "why_ranked". Covers the council-amended spine (design + prioritization contracts), the banked-vs-new status of each item, the both-front-door + 4-site registration obligations, and the gate sequence (change-control → thinktank design council → TDD) every slice must pass. NOT a build plan — build routing happens through tensor-g4---56# tensor-grep: world-class roadmap (edit-control plane)78The moat is the **agentic edit-control plane** — deciding what to touch, what else breaks, what to9run, and when to stop, with receipts — not faster grep. The expensive 80% (evidence emit/verify,10review-bundle, ledger, checkpoints) is already shipped; the remaining rails exceed what any agent11execution sandbox can do:12131. **semantic blast-radius enforcement** (what must change when this changes),142. **primary-span claim-checking** (did the edit touch the span the ticket authorized),153. **escrowed, head-bound evidence** (receipts a CI-held key signs, not the editing agent's).1617An agent's sandbox already enforces "touched files ⊆ allowed" natively — that is **table stakes,18not a PASS condition** (council HIGH-1).1920## When NOT to use this skill2122| Situation | Use instead |23|---|---|24| Building/merging any concrete slice | `tensor-grep-change-control` (gates, 4-site registration, TDD) |25| The roadmap's contracts went stale | re-verify against `docs/plans/2026-08-09-worldclass-roadmap.md` + `tensor-grep-release-drift-check` |26| Evidence signing/verification mechanics | `tensor-grep-enterprise-review-bundle` (trusted-key/require-trusted family) |27| Agent-facing search rank/semantics | `tensor-grep-find-and-route`, `tensor-grep-semantic-search-campaign` |28| Roadmap demand/business framing | `docs/audits/2026-08-06-ceo-gated-recommendation-packets.md` (CEO-gated) |2930---3132## Status ledger (banked vs new — re-derive from the plan doc, never from memory)3334| Item | Status | One-line contract |35|---|---|---|36| **H1** unknown-command fail-closed + PATH honesty | **SHIPPED** (v1.110.13 unknown_command A90; v1.110.14 doctor schema-3 `pypi_latest`/`shadow_launchers`/`installation_health`) | both front doors exit 2 + `nearest[]`; doctor surfaces PATH-vs-claimed distribution |37| **S1** fail-closed edit tickets + verify-edit, escrowed | **BANKED F6, re-scoped; THE moat** — MIXED disposition (A41, corrected 2026-08-12 per `docs/TASK_BOARD.md` F6): Step 0 shipped (#939); Python/schema/evidence-signing slices buildable-first, native verify-edit + e2e halves CI/cloud-routed | See the S1 contract below — nothing ships until this does |38| **S2** registration-aware impact-diff | NEW | changed_symbols + registration_sites (allowlists, `@router`, `Commands::`, class registries) + tests_to_run |39| **S3** next_action machine protocol + budget envelope | NEW (default-OFF additive) | capsule extension; budget envelope for the machine consumer |40| **S4** warm session resume of decisions | BANKED PARTIALLY | correct the premise before building: `tg session prepare`/`resume` DO NOT EXIST (only top-level `tg prepare`) — the whole `session resume` gate is unbuilt (the doc's own ground-truth correction, §S4) |41| **S5** head-bound, escrowed evidence chain at CI | BANKED PARTIALLY | rides S1's escrow; receipts pinned to base_sha + fingerprint |42| **S6** semantic default + why_ranked | BANKED PARTIALLY | additive find UX: `why_ranked` reasons + `install_state` |43| **S7** federated workspace object | BANKED F8 | Python slice first, rust/e2e later |4445## S1 — the load-bearing contract (verify-edit, escrowed)4647- `ticket_id { base_sha, working_tree_fingerprint, primary_span, allowed_files[], validation_commands[], expires_at, ask_user_before_editing }`.48- Verdict ∈ {`PASS`, `FAIL(edit_contract_violated)`, `UNVERIFIED(reason)`}.49- **PASS requires ESCROWED evidence**: validation subprocess stdout-hash + exit code + duration,50 signed by a key pinned via `TG_EVIDENCE_TRUSTED_KEYS` that the **editing principal does NOT hold**51 (CI-held); primary span changed as claimed; no silent extras outside `blast_radius_floor`;52 tree fingerprint matches the ticket (no drift from sibling agents/rebase). Self-attestation by the53 editing agent is Oracle Form 8 (split-oracle) — never a PASS.54- **FAIL closed**: `incomplete_reason_class=edit_contract_violated`, exit 2, revert-eligible file set55 (ticket carries checkpoint_id; rollback-on-violation is the un-apply primitive).56- **UNVERIFIED** (runner-less repo / deadline-truncated validation / escrow key absent): never57 certifies, distinct code, agent should ask the user.5859External precedents that validate the shape (Exa-verified 2026-08-11):60- **Occasio**: GitHub Actions OIDC-signed agent-run attestations (Sigstore/Rekor), offline-verifiable61 — the CI-held-key escrow is an established pattern, not an invented one.62- **AET (AdvancingTitans/agent-engineering-toolkit)**: an evidence plane with PASS/FAIL/UNKNOWN +63 freshness states (`EXACT_MATCH` → `HEAD_CHANGED_RELEVANT_FILES_MATCH` → `UNKNOWN`) and64 freshness-stops — the same fail-closed-on-drift discipline as the ticket fingerprint.65- **Anthropic harness papers** (building-effective-agents; effective-harnesses; harness-design): the66 default-FAIL contract (evidence before claiming done), fresh-context evaluator, and67 verify-before-claim patterns are the general form of S1's verdict staging.68- **Agent Edit Contract** (zemna.net 2026-07): repo map → task boundary → verification command69 named BEFORE the edit → artifact proof (handle, freshness, minimum substance, domain assertion) →70 rollback note. S1's ticket is this contract made machine-checkable (see `docs/plans/` for the71 source contract claims).7273## Both-front-door + registration obligations (A90/A91)7475Every S1–S7 slice that adds a command or flag MUST enroll: `KNOWN_COMMANDS` (`commands.py`),76`Commands::X` + dispatch arm in `rust_core/src/main.rs`, `PUBLIC_TOP_LEVEL_COMMANDS`77(`tests/e2e/test_routing_parity.py`), and the `@app.command` in `main.py`; search flags also need78`SEARCH_PYTHON_PASSTHROUGH_FLAGS` (rust) + `bootstrap._TG_ONLY_SEARCH_FLAGS` (python). Un-enrolled79stealth commands die at first dogfood with the A90 unknown-command refusal — the slice is then80honest only as "no core-rust logic," never "no native touch."8182## Gate sequence for any roadmap slice83841. Scoped design + operating contract (plan doc style) — premises verified against origin/main (A75/A93).852. Thinktank design council (ground-truth + adversarial + gate seats); council amendments folded in BEFORE build.863. TDD-first build (worktree-isolated), real-venv re-verify, ruff/mypy, mandatory adversarial gate.874. Both-front-door dogfood on the real published binary (A90 receipts as the first smoke).885. `fix:`/`feat:` PR title so the release actually ships the slice (release class is part of the fix).8990## Common mistakes9192- Treating "touched files ⊆ allowed" (sandbox table stakes) as a PASS condition — S1's claim-check is93 about the PRIMARY SPAN, not the allowlist.94- Building S5 without S1 (escrow is S1's mechanism; S5 rides it).95- Re-deriving banked status from memory instead of the plan doc — the ledger above was verified96 2026-08-11 against the doc; re-check on any drift (A94 discipline).