Skip to content

Real cost telemetry, injection-safe agent handoff, external-verification handover - #10

Merged
trac41799 merged 1 commit into
mainfrom
hardening/production
Sep 29, 2026
Merged

trac41799 merged 1 commit into
mainfrom
hardening/production

Conversation

@trac41799

Copy link
Copy Markdown
Owner

Clears the remaining locally-verifiable gaps. External-infra proofs are documented, not faked.

Cost cap (M9) — genuinely closed

  • OpenCodeAdapter now runs the agent with --format json, keeps a bounded stdout tail per session, and reports the observed cost via a new session_cost adapter hook (largest *cost* value, an upper bound — conservative for a cap).
  • The supervisor refreshes agent.cost_usd from the adapter on every poll, so cost_cap_usd can finally trigger (it was inert because nothing populated cost).
  • Real-run evidence: cost_usd=0.0055 / 0.0056 captured from two concurrent agents.
  • Tests: test_parse_cost_from_json_lines, test_cost_cap_triggers_from_adapter_telemetry.

Injection residue (H1) — closed

  • The task text is written to .acc/TASK.md; only a constant pointer is ever passed as an argument. On Windows the agent goes through cmd /C, which expands %VAR% even inside quotes, so user/spec text in an argument was a real injection vector.
  • The spawn smoke test now uses a temp worktree (it used to write into the crate dir).
  • Test: test_task_text_never_reaches_the_command_line (hostile text with &, |, %PATH%).

L8 — emit failures are logged, not swallowed.

Docs

  • docs/2026-09-26-defect-closure/EXTERNAL-VERIFICATION.md: exact requirements, commands and acceptance criteria for the two proofs that need external access (real vercel --prod; real Supabase provisioning), plus the credential-handling policy. Vercel CLI is locally authenticated as trac41799, so that proof is one approval away.

Gates

Rust 188 lib + 42 integration; Web 341; tsc/lint clean. Real multi-agent run still green (succeeded, valid handoffs, 55 s).

Remaining: L2 (unused IPC constants) — cosmetic, already tracked by the contract snapshot.

@vercel

vercel Bot commented Sep 29, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
source-forge Ready Ready Preview Sep 29, 2026 10:35am UTC

@trac41799
trac41799 merged commit 077b06b into main Sep 29, 2026
8 checks passed
…d emit failures

- M9: OpenCodeAdapter runs with --format json, keeps a bounded stdout tail per session and reports cost via a new session_cost hook; the supervisor refreshes agent.cost_usd each poll so cost_cap_usd can trigger. Real run captured \.0055/\.0056 per agent.
- H1: task text is written to .acc/TASK.md and only a constant pointer prompt reaches the command line (cmd /C expands %VAR% even inside quotes). Spawn smoke test now uses a temp worktree.
- L8: TauriEventSink logs emit failures instead of dropping them.
- docs: EXTERNAL-VERIFICATION.md documents the remaining external proofs (real vercel deploy, real Supabase provisioning) with exact commands, acceptance criteria and the credential-handling policy.
- tests: 188 lib (+3): parse_cost_from_json_lines, test_task_text_never_reaches_the_command_line, test_cost_cap_triggers_from_adapter_telemetry.

Gates: Rust 188 + 42; Web 341; tsc/lint clean.

This branch was successfully deployed

1 active deployment
Preview — 28eb00d5 Deployed Sep 29, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant