Skip to content

Land verified review fixes: #602, #621, #604, #616, #629 (extra_hosts), #619 bench-v2, #580 docs - #639

Merged
BaaRai merged 7 commits into
mainfrom
land/verified-stack-2026-11-28
Nov 28, 2026
Merged

BaaRai merged 7 commits into
mainfrom
land/verified-stack-2026-11-28

Conversation

@BaaRai

@BaaRai BaaRai commented Nov 28, 2026 •

Copy link
Copy Markdown
Owner

What this lands

Seven reviewed commits, rebased onto main 5f5ec32 and verified together as one stack. Each one closes a review finding from the security and correctness pass.

  • Fix cross-task capture attribution in recorded facts #602, fact capture provenance and prove_goal: prove_goal resolves evidence inside the current task only (GetNode), facts with missing, empty, unverified, retired (captured_traffic) or foreign provenance fail closed, and non-HTTP goals can close through a task-scoped tool_output fact tied to a recorded tool_result activity. operator_input facts now require the normalized summary to be contained in the verified operator evidence quote.
  • feat: shared browser with live view and operator take-over #621, shared browser hardened: opt-in and off by default, CDP over --remote-debugging-pipe on Unix (no Chromium TCP port or DevToolsActivePort) behind a per-run 256-bit token proxy that re-checks operator hold and lease on every HTTP request and WebSocket message. The capture CA is pinned with --ignore-certificate-errors-spki-list and the code fails closed instead of using --ignore-certificate-errors. No anti-bot stealth flags. Profiles are isolated per task or session under <data>/browser-profiles/<scope> with descriptor-relative openat(O_NOFOLLOW|O_DIRECTORY) + fchown + unlinkat, tested against root, scope and child symlinks. The operator lock timeout is configurable. The residual risk of same-UID argv token visibility is documented.
  • ci: run each job only for the areas a pull request changes #604, CI path filters: the go filter uses !*.md (root-only Markdown) instead of !**/*.md, keeps !docs/**, so skills/*/SKILL.md edits run the Go tests, and preserves test:tamper-hooks.
  • compose: host.docker.internal + skills: gate mcps #629, host gateway only: docker-compose.yml gains extra_hosts: ["host.docker.internal:host-gateway"]. The skills/*/SKILL.md part of compose: host.docker.internal + skills: gate mcps #629 (B08b) stays on hold.
  • fix(traffic): anchor traffic_search port matching and ignore host case #616, traffic search: the port search is anchored to http, https, ws and wss so a URL quoted in a query string no longer matches, and host comparison is case-insensitive.
  • L3 benchmark (bench-v1): detection rate credits duplicate and unverified findings #619, bench-v2 R2 and R5: each credited finding must reference a traffic_ref present in this run's capture store and inside the run window, METHOD_VERSION becomes bench-v2, the judge model and prompt are pinned and hashed, ground truth is hashed, and detection and precision carry Wilson 95 percent intervals.
  • fix(compose): use named volumes so agent isolation holds on VM-backed Docker (Windows & macOS) #580 docs follow-up: README and a scripts/backup.sh comment only. Named-volume migration before the first up, GHCR Compose flags, WSL2 /mnt/c bind-mount behavior, backups from volumes, down before docker volume rm, and skills refresh without a checkout. No code change.

Migration

db/migrations/0017_legacy_fact_capture_provenance.sql only. #598 already owns 0016. No other schema change and no dependency change.

Excluded on purpose

Tests

Run on this branch and on a clean worktree at 5f5ec32 with the same seven patches:

  • go build ./cmd/artex and go vet ./agent ./db ./server ./traffic ./cmd/... pass.
  • go test ./db ./agent against a disposable PostgreSQL 16 with scram-sha-256 pass (db 74.67s, agent 25.30s).
  • go test -race ./server targeted (TestSharedBrowser|TestPrepareSharedBrowser|TestProveGoal|TestRecordFact|TestTaskLLM|TestEngine|TestAskOperator|TestBrowser|TestAgentGate) passes.
  • go test ./traffic ./intercept ./guard passes.
  • Benchmark: python3 -m unittest scripts/benchmark/test_run_bench.py scripts/benchmark/test_drost.py passes 42/42.
  • node web/scripts/check-i18n.mjs passes 2717/2717.
  • CI filter validation confirms !*.md, !docs/**, no !**/*.md, test:tamper-hooks present and needs: changes on every job.
  • docker compose -f docker-compose.yml config passes; the desktop overlay lists the data, keys, skills and pgdata volumes.
  • bash -n scripts/backup.sh passes and the R09 diff touches comments only.

Credits

The commits carry Co-authored-by for the original PR authors: James K, Pranil Acharya, Sisanta Chhatoi, Owen Pierce and Renato. The fixes were rebased and verified together before landing.

BaaRai and others added 7 commits November 28, 2026 10:00
…#602)

Rebased onto main (5f5ec32), keeping migration 0017_legacy_fact_capture_provenance.sql, cross-task shared-capture isolation, repair_legacy_fact_captures, and digest retirement.

Addresses review findings:
- prove_goal resolves evidence strictly within this task (GetNode, not GetNodeWithSources), blocking linked-task facts/findings from closing this task's goals.
- Facts with missing, empty, unverified, retired (captured_traffic), or non-matching provenance fail closed in prove_goal.
- Preserves a task-scoped tool_output proof path for TCP/DNS/non-HTTP goals by tying tool_output facts strictly to this task's recorded tool_result activity (ToolResultActivityContainingEvidence + ActivityMatchesProvenance) without ever reading the shared proxy store.
- For source=operator_input, prove_goal requires the whitespace/case-normalized summary to be contained in the verified operator evidence quote, preventing a benign real operator quote from smuggling an unrelated summary claim (tested in TestProveGoalOperatorInputSummaryMustMatchEvidencePG).
Co-authored-by: James K <jamesKhor@users.noreply.github.com>
…rofiles, and configurable lock (#621)

Rebased onto main (5f5ec32) and hardened per security review:
- Opt-in only (-shared-browser / ARTEX_SHARED_BROWSER=true; default false); README and CHANGELOG accurately describe hardened behavior and document the residual risk of same-UID argv token visibility alongside per-message operator-hold/lease enforcement and immediate revocation.
- Isolates CDP via --remote-debugging-pipe on Unix (no Chromium DevTools TCP port or DevToolsActivePort) fronted by a per-run 256-bit token-authenticated server CDP proxy enforcing operator hold and active lease on every HTTP request and WebSocket message.
- Removes --ignore-certificate-errors from the capture path; trusts only ARTEX's capture CA SPKI pin (--ignore-certificate-errors-spki-list) and fails closed if unreadable.
- Removes --disable-blink-features=AutomationControlled and the HeadlessChrome user-agent rewrite (policy: hand challenges off via ask_operator).
- Isolates browser profiles per task or chat session under <data>/browser-profiles/<scope> using descriptor-relative openat(O_NOFOLLOW|O_DIRECTORY) + fchown + unlinkat with root-owned parent (no filepath.Walk over executor-owned trees), tested against root/scope/child symlinks.
- Makes operator lock / ask_operator hold timeout configurable via -shared-browser-lock-timeout / ARTEX_SHARED_BROWSER_LOCK_TIMEOUT (default 15m), auto-expiring idle locks.
Co-authored-by: Pranil Acharya <Pro-Nil@users.noreply.github.com>
#604)

Rebased onto main after #611 (preserving web test:tamper-hooks).
Fixes the go filter from !**/*.md to !*.md (root-only Markdown) while keeping !docs/** so changes under skills/*/SKILL.md still trigger Go tests (TestShippedSkillsParseCleanly, TestDiscoveryQualityGateTableDriven).
Co-authored-by: Sisanta Chhatoi <sisantaChhatoi@users.noreply.github.com>
Split from PR #629 (docker-compose.yml extra_hosts only; skills/*/SKILL.md mcps: browser changes remain on HOLD pending maintainer decision on ScopeSentry/browser gating; base skill gating unchanged).

Co-authored-by: Renato <renatomfn@gmail.com>
Co-authored-by: Owen Pierce <sresarehumantoo@users.noreply.github.com>
…ge/GT/Wilson contract (#619)

Follow-up on top of C02 implementing the remaining bench-v2 rules:
- R2: verify each credited finding has a bound traffic_ref present in this run's capture store with a timestamp inside [run_window_start, run_window_end] (excluding missing, unknown, or out-of-window captures from both detection and precision).
- R5: bump METHOD_VERSION to bench-v2, pin judge model (PINNED_JUDGE_MODEL, explicit --allow-custom-judge-model override) and stamp JUDGE_PROMPT_VERSION + JUDGE_PROMPT_SHA256, compute and store canonical ground_truth_sha256, and report Wilson 95% confidence intervals for both detection rate and precision.
…2 /mnt/c, backups, and skills (#580)

Docs-only follow-up to #580 (no code changes):
- README & scripts/backup.sh comment: clarify that --with-data archives host ./data rather than the named volume; document docker compose ... cp artex:/app/data ./data and volume tar backup referencing the Compose project's data volume (via docker compose ... config --volumes / docker volume ls).
- README: document pre-up migration of ./keys and ./data (docker compose ... create artex + cp, or ARTEX_SECRET_KEY) to avoid failing startup with sealed DB secrets and an empty keys volume.
- README: clarify GHCR installs keep -f docker-compose.ghcr.yml -f docker-compose.desktop.yml across all commands.
- README: qualify native Linux (Docker Engine in WSL2 with repo on /mnt/c hits the same 0777 bind-mount issue).
- README: run docker compose ... down before docker volume rm on the project's skills volume.
- README: document GHCR+overlay alternatives to checkout-based cp ./skills/. (volume removal after down or host skill bind-mount).
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