Skip to content

T01 — Restore trustworthy plan reads

Depends on: none. Status: planned.

Read ../README.md and ../PLAN.md first. Paths are discovery anchors, not permission to skip caller analysis.

Likely files

  • anvil_serving/workbench_app/projects.py
  • anvil_serving/observability/dashboard/static/views/project_work.js
  • tests/workbench/test_projects.py

Implementation steps

  1. Reproduce the typed error through the configured Anvil binary and exact checkout, capturing code/version/digest metadata only. Distinguish projection divergence from missing capability, unavailable source, permission and size-limit errors.
  2. Trace run_bounded callers before changing its contract. Preserve safe structured JSON errors for Anvil CLI consumers while keeping subprocess time/output limits and generic failures for unstructured output. Never expose raw stderr or private paths.
  3. Investigate projection_not_converged through supported read-only Anvil diagnostics. In the separate Anvil repository, inspect bin/src/anvil/prd_content.py and tests/test_prd_content.py after reading its AGENTS.md. Record the precise inconsistency and supported repair procedure. Live state repair requires its own scoped authorization and backup; do not replay, initialize or modify databases speculatively.
  4. Display actionable error categories and a retry affordance; retain persisted source digest/revision when successful. Add readable outline and deep-linked plan selection using the existing Markdown renderer.

Acceptance

  • [ ] A consistent persisted plan renders through the real configured CLI contract, including Unicode, headings, code and safe links; refresh retains selection.
  • [ ] A nonzero structured projection_not_converged response remains distinguishable in the UI; malformed/oversized output stays bounded and redacted.
  • [ ] A read performs no repair or claim. Record success and divergence cases separately. Live reader acceptance remains blocked until the underlying State cause is resolved.

Focused checks

Use the existing checkout Python environment and repository test wrapper. These are planned checks, not test results.

python scripts/run_tests.py tests/workbench/test_projects.py tests/workbench/test_documentation.py tests/workbench/test_javascript_modules.py -x -q

Add behavioral regression coverage in the existing suite for new contracts; source-string assertions alone are insufficient. Run browser checks described above. Run broader checks only for changed shared seams or failures.

Stop boundary

Read-only diagnosis may finish with a concrete State recovery blocker. Do not mask inconsistent persisted source with raw-file fallback.

Completion receipt

Record commit/files, actual commands and results, browser observations, unresolved items, schema decisions and next eligible packet. Raw deployment evidence stays private. Do not change acceptance boxes without measured proof.

Engineering references

Read the implementation guide section and verified source map for this packet. tasks.json selects the relevant code/data examples and primary external references. Current APIs and proposed contracts are labeled separately; examples grant no live authority.