Skip to content

T07 — Connect plans and tasks to Pi execution

Depends on: T01, T03, T05, T06. Status: planned.

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

Likely files

  • anvil_serving/observability/dashboard/static/views/project_work.js
  • anvil_serving/observability/dashboard/static/views/pi_chat.js
  • anvil_serving/workbench_app/projects.py
  • anvil_serving/workbench_app/service.py
  • anvil_serving/workbench_app/evidence_jobs.py

Implementation steps

  1. Replace stacked plan/task tables with searchable selection, plan reader, task detail and contextual execution/evidence controls. Preserve stable project/plan/task URLs.
  2. Show Run with Pi when eligible, with a preview of canonical packet, workspace, accessible roots, provider/model and lease implications. Show exact blockers otherwise.
  3. Reuse existing claim/provision/start and idempotency machinery. Link the resulting session in Playground and run in Workbench using native IDs; Resume returns to an existing binding.
  4. Retain stop, patch capture, digest-bound verification/transfer, submission and independent Anvil acceptance. Recover uncertain starts and failed verification without automatic second claims or hidden resubmission.

Acceptance

  • [ ] A consistent plan opens; choosing its ready task previews and starts exactly one isolated run with links in all three surfaces.
  • [ ] Draft PRD, open dependencies, foreign claim, expired lease, unavailable storage/egress and duplicate start are distinguished and fail before unauthorized execution.
  • [ ] An interrupted start resumes/reconciles the original binding; a foreign task session cannot be adopted.
  • [ ] Evidence can be captured after stop, verified against frozen packet commands and submitted; acceptance remains pending independent review.
  • [ ] A non-ready existing task is not mutated merely to demonstrate the UI; use a disposable approved fixture.

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_service.py tests/workbench/test_pi_sessions.py tests/workbench/test_evidence_jobs.py tests/workbench/test_task_artifacts.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

No new scheduler, automatic plan approval, direct State mutation, auto-acceptance or auto-merge.

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.