Verdict: NO-GO for operational acceptance as-is. CONDITIONAL GO after fixing finding F1 (one small, contained fix). Core design is sound. Historical data is correct.
Scope: Codex implementation vs backups/deliverables-20261127, REPORT.md, the instruction, and 02-security.md. I reviewed and did not redo development. I changed no code. Production DB was only read via a SQLite backup copy (/tmp/rv_copy.db); I did not restart services or write to production.
| # | Severity | Finding |
|---|---|---|
| F1 | HIGH (regression) | Pre-existing artifacts with kind='deliverable' now 404. Production has two legacy rows, task 108 / CBS-001 / execution 175 (artifact 321 CRYPTO_BACKUP_REPORT.md, 322 CRYPTO_BACKUP_PROVIDERS.csv). Their paths are data/artifacts/CBS-001/175/... and their metadata is {sha256,size_bytes} only. stored_bytes() requires deliverables/{task}/{exec}/{sha} for any kind=deliverable, so /artifacts/321, /artifacts/322, ?download=1, the task/execution route and the ZIP all return 404. They worked before the change (the old route served any file that existed). listing() also returns them as incomplete entries (no relative_path/mime/group). /artifacts/{id} is the only path to them today, since the old UI showed them as technical artifacts. test_legacy_artifact_compatibility_and_symlink_rejection did not catch this because it only covers non-deliverable kinds. Fix: apply the strict snapshot-path rule and the new routes/listing only to rows whose metadata contains provenance/relative_path. Serve other kind=deliverable rows through the legacy containment path (root + sha check when present). Add a regression test using the real shape of artifacts 321/322. |
| F2 | MEDIUM | A directory declaration whose directory contains a subdirectory, or any dotfile, fails the whole verification (IsADirectoryError / "sensitive path"). Required sets then fail and optional sets abort. It fails closed, which is safe, but it is brittle for operators. Skip or ignore non-regular entries, or document it. Only immediate children are matched, and the glob cannot contain / or **. |
| F3 | LOW | Whole files are read into memory (50 MB per file, 512 MB per ZIP, 500 files). That is acceptable for one owner. A 25 MB ZIP for task 209 builds fine. Consider streaming if bounds grow. |
| F4 | LOW | ZIP entry names carry the full workspace-relative path (e.g. data/project_materials/HRV-WORKSHOP/review/crop-review.pdf). This matches "preserve relative paths", but the paths are long for a human. This is a product decision. |
| F5 | LOW (process) | Deployment and browser validation remain unperformed. Chromium and systemctl were blocked in the executor sandbox. The report says so honestly. Currently execution 307 (task 215) is RUNNING, so do not restart services now. |
| F6 | INFO | acceptance is inferred in listing(): an accept event is mapped to the latest execution created before the event. It does not model a later reject/rework event. Wording on screen is "Accepted by owner" or "Acceptance not recorded for this attempt", which is not mislabeled. Tasks 209/210 each have one attempt and one accept, so the current data is correct. Latest is not shown as accepted unless an accept event maps to it. |
O_NOFOLLOW and descriptors; a symlink leaf gives ELOOP (probed). Traversal, backslash, control characters, dotfiles, key/credential names and private-key/sk- content are rejected. Routes join artifacts→executions→tasks→project by ID. Cross-ID requests (209/302, 210/301/591, 209/301/627) all returned 404. Downloads use attachment plus nosniff plus CSP sandbox. Only png/jpg/webp/pdf and md/txt (as text/plain) go inline. SVG/HTML are attachment only. No new auth or exposed path. 02-security.md rule 5 is respected: no protection or password was added to files.data/artifacts/deliverables/{task}/{exec}/{sha256}, written O_EXCL, with fsync and a size/SHA check on read. Re-registration is idempotent, and a changed source after verification is rejected. Previous attempts are kept per execution.BEGIN IMMEDIATE, then a SAVEPOINT around register(). On failure the savepoint rolls back, status becomes FAILED, and the verification artifact records it. Blob files written before a rollback may be orphaned. That is harmless and sha-addressed. The executor writes no DB rows./artifacts route for normal artifacts (non-deliverable kinds, under data/artifacts) works, per the existing tests. The old route accepted any readable absolute path. The new route rejects paths outside data/artifacts. That is the intended containment, but it could affect any legacy row stored elsewhere. Run the check from F1 across all artifact rows before deploying.historical:owner-authorized-codex;verification:583 (and the matching evidence row for 302), attempt 1. Both tasks remain ACCEPTED. ZIPs open with testzip() clean: 36 and 6 entries. build_concept.py is correctly excluded.<details>, text links, lazy images). I did not verify layout in a browser. Template include and project page rendering pass in tests..venv/bin/python -m unittest)| Suite | Result |
|---|---|
| test_deliverables | 8 OK |
| test_verification | 16 OK |
| test_control_plane_dispatcher | 33 OK |
| test_console_cache | 5 OK |
| test_owner_decisions | 11 run, 2 FAIL + 2 ERROR (same four the report lists as pre-existing; Codex says they reproduce on backed-up templates; I did not re-prove this) |
| test_executor_policy | 14 run, 2 FAIL (test_creation_forms_and_visible_roadmap, test_inline_javascript_...). The report cites 13 OK earlier. The templates show the executor-settings panel with display:none, identical in backup and current project.html, so the cause is probably the earlier hidden-UI change and not this work. I could not run a baseline (the backup holds only two test files). Unconfirmed. |
Probe (production DB copy, direct handler calls): artifacts 591/592 return 200 (PDF inline; JSON attachment). 321/322 return 404 (F1). The test client is unavailable (no httpx2), so no real HTTP or browser run.
SELECT id,path FROM artifacts WHERE kind='deliverable' AND path NOT LIKE '%/deliverables/%' and any artifact rows outside data/artifacts. Confirm they still open./projects/HRV-WORKSHOP, task 209/210 ZIPs, and /artifacts/321.