Repository navigation
Closed
Description
Goal
Record a coherent, privacy-safe timeline of what the agent did and what the computer returned, producing both machine-readable evidence and a replayable human HTML filmstrip.
Storage contract
Do not let multiple CLI/MCP/bridge processes race on manifest.json.
Each computer-use run has:
- manifest fields
evidenceVersion: 1andactionLog: "actions.jsonl" - append-only
actions.jsonlas the authoritative timeline - an atomically-created session-scoped active-run pointer
- static
report.htmlfilmstrip plus the existing text summary
Existing manifests without evidence fields remain valid. Rendering sorts by timestamp plus action ID and assigns display step numbers.
Each sanitized action contains:
actionId,source,tool,sessionIdstartedAt,durationMs,status- optional allowlisted target metadata
- artifact paths
- redacted error summary
Privacy contract
- Typed/fill values persist only as length and input type.
- Network failures persist only method, origin/path without query, status, resource type, timing, and sanitized error text.
- Persist no request/response headers or bodies.
- Strip Cookie, Set-Cookie, Authorization, session/JWT/CSRF/OTP values, bare JWTs, query tokens, and CDP websocket capabilities.
- Do not auto-capture screenshots for typing/fill/password/OTP/payment actions.
- Screenshot pixels cannot be redacted; document this and allow evidence capture to be disabled.
Bounds
- Maximum auto-generated evidence: 100 MiB per run.
- After the cap, continue metadata and mark evidence truncated.
- Retain the latest 20 finalized computer-use runs per project.
- Never prune active/running runs.
Checklist
- Active-run pointer and append-only action journal
- Structured evidence redaction
- MCP tool instrumentation
- DevTools relay instrumentation
- Screenshot capture policy
- Console/network failure metadata
- Backward-compatible manifest/resource rendering
- HTML filmstrip report
- 100 MiB cap and 20-run pruning
- Concurrent append and planted-secret tests
- README and
docs/releases/UNRELEASED.md - PR/review
Validation
bun run typecheck- focused core/run/MCP/relay tests
bun run testbun run test:coveragebun run build- concurrent writers lose zero actions
- old manifests still list and render
- planted cookies, headers, query tokens, JWTs, OTPs, typed passwords, and CDP GUIDs are absent from the entire run directory
- sensitive actions create no automatic screenshots
- cap and pruning are deterministic
- a failed browser flow produces a useful sanitized
report.html
Current status: Completed
Next: complete — delivered across PRs #33, #35, #37, #38, #40, and #42.
Metadata
Metadata
Assignees
Labels
No labels
Activity
ElbertePlinio commentedon Jul 13, 2026
Agent plan
Goal: add a privacy-safe, append-only computer-use timeline and static HTML filmstrip without allowing MCP and relay processes to race on
manifest.json.No feature flag. Every slice keeps
mainreleasable.evidence.enabled: falseis the product off switch, defaulting to enabled; it is not rollout gating.Decisions
actions.jsonlis authoritative;manifest.jsonis single-owner summary data written only at create/finalize.evidenceVersion: 1,actionLog: "actions.jsonl", and truncation metadata. Old runs remain valid.wx; racing processes adopt the winner and do not create orphan runs.startedAtthenactionId; display step numbers are assigned at render time.report.htmlconsumes already-sanitized records, escapes all page-controlled text, uses a restrictive CSP, and makes no external requests.PR plan
PR 1 — Structured privacy sanitizers
PR 2 — Evidence storage foundation
evidence.enabled, 100 MiB accounting/truncation, finalized-run retention primitivesPR 3 — Evidence rendering and confined resources
report.html, actions/report MCP resources, deterministic orderingPR 4 — MCP tool instrumentation
PR 5 — DevTools relay instrumentation
PR 6 — Final integration, docs, and proof
Full validation
bun run typecheckbun run testbun run test:coveragebun run buildreport.htmlCurrent status: Planned
Next action: start PR 1 and PR 2 as independent foundation worktrees.
ElbertePlinio commentedon Jul 13, 2026
Implementation started in two independent foundation worktrees:
feat/evidence-sanitizersfeat/evidence-coreBoth are additive-only and may proceed in parallel. No producer will persist evidence until both privacy and storage foundations are merged.
Current status: In progress
Next: implement and independently validate both foundation slices.
ElbertePlinio commentedon Jul 13, 2026
PR 1 opened: #33 — structured privacy sanitizers
PR 2 evidence storage remains local and will be rebased after #33 merges because both foundations touch core exports/release notes.
Current status: PR 1 in review
Next: ship #33, then rebase and ship PR 2.
ElbertePlinio commentedon Jul 13, 2026
PR 1 merged: #33 — structured privacy sanitizers.
PR 2 (
feat/evidence-core) is rebased ontomainand locally validated:Current status: PR 2 review in progress
Next: resolve any review findings, then open and ship PR 2.
ElbertePlinio commentedon Jul 13, 2026
PR 2 opened: #35 — evidence storage foundation
evidence.enabledKnown unrelated flake: #32 failed once under parallel full-suite load, then passed in isolation and on the full rerun.
Current status: PR 2 in CI
Next: merge #35 when required checks are green, then start dependent rendering/producer slices.
ElbertePlinio commentedon Jul 13, 2026
PR 2 #35 is review-clean and locally green, but merge is blocked by the existing Xvfb race in #32. CI failed three attempts in the same unrelated browser startup test: once during
test, then twice duringtest:coverage; the other phase passed on reruns. Isolated browser tests and local full test/coverage pass.Current status: PR 2 blocked on required CI
Next: resolve #32 or obtain a genuinely green required run; do not merge while the check is failing.
ElbertePlinio commentedon Jul 13, 2026
Progress update:
PR 2 merged as
b608900.Foundation now on
main:Current status: In progress
Next: PR 3 — rendering and confined resources. Producer/instrumentation slices remain deferred until that slice is ready.
ElbertePlinio commentedon Jul 13, 2026
PR 3 started in
feat/evidence-rendering.Scope:
report.htmlwith restrictive CSP and no external requestsactions.jsonlandreport.htmlNo producers or instrumentation in this slice. PRs 4–5 remain deferred.
Current status: PR 3 implementation
Next: add core rendering primitives and focused tests, then wire resource/report consumers.
ElbertePlinio commentedon Jul 13, 2026
PR 3 opened: #37
Progress:
report.htmlwith restrictive CSPPRs 4–5 remain deferred. No action producers or instrumentation are included in this slice.
ElbertePlinio commentedon Jul 13, 2026
PR 3 merged: #37
846dfe4Next: PR 4 — MCP action producer instrumentation. PR 5 DevTools relay instrumentation remains deferred until PR 4 is ready.
ElbertePlinio commentedon Jul 13, 2026
Progress update — PR 4 MCP instrumentation:
PR: pending
Blocked: none
Next: complete local review, then open PR.
ElbertePlinio commentedon Jul 13, 2026
PR 4 opened: #38
Blocked: none
Next: watch CI, resolve findings, merge, then start PR 5.
feat(evidence): record MCP computer use (#38)
ElbertePlinio commentedon Jul 13, 2026
PR 4 merged: #38
9fac03dBlocked: none
Next: implement PR 5 on fresh main.
ElbertePlinio commentedon Jul 13, 2026
PR 5 started on
feat/devtools-evidencefrom merged PR 4.Scope:
tools/callrequest/response correlationFlag decision: no feature flag; this is the next-release slice and follows existing
evidence.enabledproduct configuration.Blocked: none
ElbertePlinio commentedon Jul 13, 2026
PR 5 progress:
Blocked: none
Next: resolve local review, open PR.
ElbertePlinio commentedon Jul 13, 2026
PR 5 ready to ship:
Blocked: none
Next: open PR and run CI.
ElbertePlinio commentedon Jul 13, 2026
PR 5 merged: #40
3e5c606Blocked: none
Next: implement and validate PR 6.
ElbertePlinio commentedon Jul 13, 2026
PR 6 started on
feat/evidence-integrationfrom merged PR 5.Scope:
This final PR will close #20.
Blocked: none.
ElbertePlinio commentedon Jul 13, 2026
PR 6 implementation complete on
feat/evidence-integration:report.htmlBlocked: none
Next: local review, then open PR.
ElbertePlinio commentedon Jul 13, 2026
PR 6 local gate complete:
session_destroyis journaledBlocked: none
Next: commit, open PR, run CI.
ElbertePlinio commentedon Jul 13, 2026
PR 6 opened: #42
Blocked: none
Next: watch CI, resolve findings, merge.
feat(evidence): complete integration proof (#42)
ElbertePlinio commentedon Jul 13, 2026
Completed: PR #42 merged after required CI passed.
All six evidence slices are merged:
Final validation: 77 files, 945 passed / 2 skipped; coverage thresholds met; two independent changed-HEAD reviews clean.
Blocked: none.