← Назад к задаче

automatic-review-design-review-v2.md

Independent review of automatic-review-design-v2

Verdict: FAIL — three original blocking groups remain partially open: B3, B4, B8.
Date: 2026-11-28. Design-level review only; no implementation acceptance.

Сводка для владельца

Итог: проверка завершена; FAIL, шесть групп закрыты, три требуют небольших правок дизайна.
Проблемы: неполный учёт записей, доступ ревьюера к постоянным конфигам и локальным изменениям, остановка по неблокирующим замечаниям.
Решение: вернуть дизайн на указанные исправления; сохранить 3 дополнительные ревизии, без расширения прав и обхода sandbox. Деплой сейчас не требуется.

Scope and evidence

Read the original automatic-review-requirements.md (REQ), previous review/automatic-review-design-review.md (RV), and revised review/automatic-review-design-v2.md (D2). References below use D2 section/line numbers and repository-relative code paths. doc.php was inspected: it is a PHP file-management utility, not the automatic-review requirements; no execution or deployment of it was attempted.

Read-only code checks covered console/app.py, console/owner_decisions.py, and the Codex/Claude adapters. No HTTP mutation, production DB access/change, credential inspection, production code edit, restart, or external outreach was performed. Only this report was written. No Coral or paused L-IT work was performed.

A minimal local feasibility probe, bwrap --ro-bind / / --dev /dev --proc /proc --tmpfs /tmp --unshare-pid --new-session --die-with-parent /bin/true, exited 0. /usr/bin/bwrap exists; this session reports max_user_namespaces=2147483647 and unprivileged_userns_clone=1. This supports basic wrapper feasibility, not full adapter isolation. D2 §6.3's filesystem/network probes are reported prior evidence, not independently repeated here. No real model call or implementation suite was run. Historical 46/46 and 123/123 results remain historical; the 12 unrelated DeepSeek expectations are not blockers.

B1–B9 disposition

GroupDesign verdictConcrete evidence and disposition
B1 AcceptanceCLOSEDD2 §3.4, lines 178–189 binds approval, producer, successful verification, unchanged manifest and distinct PASS; all cycle acceptance routes share the guard. Owner acceptance resolves the checkpoint only. Preserve this binding on re-verification: changed bytes invalidate the old review; verification alone cannot renew that PASS. Legacy hardening is explicitly optional, not a prerequisite.
B2 Frozen approvalCLOSED§3.5 creates the snapshot transactionally at approval, freezes role/config/workspace/criteria, guards stopped cycles, and requires renewed approval for changed requirements. REQUIREMENT versus CONTEXT is explicit; normative instructions must be classified as requirements rather than silently treated as mutable background.
B3 ResourcesOPEN, partial§5 adds transactional bidirectional admission, containment, aging and quiescent release. But line 250 substitutes contract file paths for a legacy task's write set; line 257 claims reviewer isolation protects against external writers. Neither is sufficient; correction C1 below.
B4 Reviewer isolationOPEN, partial§6 introduces a feasible outer wrapper and fail-closed intent, but lines 271/278 expose persistent CLI configuration writable, lines 301–303 retain host network mutation access, and line 279 permits disabling the inner sandbox despite those holes. Correction C2 below.
B5 Budgets/recoveryCLOSED§§4.1–4.4 separate global attempt from step budgets/history, partition role recovery, exclude the actual producer from review, bound format retries and claimless unavailability. Default 3 additional revisions remains intact: initial + 3, at most 40 launches with five attempts per step.
B6 LifecycleCLOSED§§3.2–3.3 specify stop precedence, CAS/idempotency, stale outcomes, quiescence and supervisor fencing; STOPPED maps to REVIEW. §7 separately resolves PASSED checkpoints. The transition implementation must preserve those stated invariants; race tests are implementation gates.
B7 Disable/downgradeCLOSED§8 defines durable DRAIN/PARKED without legacy conversion, restart-free parking, consistent backup and refusal of unsafe downgrade. Retaining new code in PARKED is an acceptable rollback. No deployment/restart is authorized here.
B8 Findings/no-progressOPEN, narrow§3.6 supplies stable identity, evidence-based progress, PASS precedence and correct scope handling. However line 206 allows STOP_ON_SUBSTANTIAL, contradicting REQ that nonblocking substantial findings/recommendations never block. Correction C3 below.
B9 Settings/capacityCLOSED§9 defines inheritance/validation, future-only defaults, capability pairing, atomic all-task capacity and scanning past blocked candidates. Legacy queuing changes are disclosed. B8's invalid optional stop must be removed from the allowed settings.

Minimal corrections required for PASS

C1 — Finish B3's existing conflict boundary

A verification contract lists checked outputs, not every source/config/test/database write. Example: a legacy task checks out/result.md but edits src/worker.py; a cycle reserving src/worker.py will not conflict under D2 line 250. This is the original RV B3 issue, not a request for a new resource system.

Change the rule to: use an explicit complete write-scope declaration when available; otherwise conservatively reserve the workspace subtree, including for legacy tasks that have file checks. Cycle declarations must cover source/test writes and relevant DB/service resources, not just deliverables. Include QUEUED as well as RUNNING admitted legacy executions when checking the reverse race, consistent with §9's live-capacity definition.

Replace line 257's integrity claim: a read-only reviewer mount does not prevent a host process from changing the underlying files. Where uncontrolled writers can overlap, require a dedicated isolated workspace/resource or hold the cycle, as RV already requested. Merely recommending a subdirectory is insufficient if a broad host writer still uses it. Preserve parallel execution for demonstrably disjoint resources; no global serialization is requested.

C2 — Close B4 without a sandbox bypass

Persistent writable CLI state. D2 mounts the real ~/.codex or ~/.claude-factory read-write. Bash can then alter persistent config/auth/session state used by subsequent executions. Being outside the repository and already writable by an execution-role process does not make it disposable reviewer scratch. The current Claude adapter actually selects /home/iovon/.claude-factory in subscription_env() (lines 17–26); this is a concrete shared-state path.

Specify a per-review disposable CLI home/config, initialized with only required authentication/settings and discarded after exit; shared credential/config directories remain read-only or hidden. No reviewer-controlled state is copied back. If an adapter requires persistent auth writes that cannot be isolated with existing permissions, that reviewer capability is unavailable and stops closed. Credential values need not be inspected or included in evidence.

Host mutation routes. D2 retains the host network namespace and admits localhost reachability. Read-only mounts restrict the reviewer process's direct filesystem access, not writes performed by a separate console process. console/app.py:275–288 exposes status mutation and :378–389 result mutation for eligible tasks; the shown middleware at :51 controls caching, not authentication. console/owner_decisions.py:9–22 uses a state digest plus confirmation/actor as a concurrency/confirmation check, not an independent secret. Cycle-specific guards do not prevent mutation of unrelated eligible tasks. No live request was sent, and live port/proxy exposure was not independently established; nevertheless D2's explicitly shared-network design supplies no enforcement against this path. Filesystem sockets also need exclusion: masking only /run/dbus is not a general socket boundary.

Replace the prompt-only network exception with a mandatory profile constraint: model connectivity must not expose host mutation endpoints, write-capable connectors or host control sockets. Specify an enforceable arrangement available under existing permissions; otherwise REVIEW_ISOLATION_UNAVAILABLE before launch. This does not require introducing a proxy service or granting permissions. An unavailable supported profile is a valid fail-closed outcome. Prompt promises and artifact hashes do not close this blocker.

Unsafe fallback. Delete the proposed --sandbox danger-full-access fallback and OD-3's default approval. Keep the existing sandbox enabled; if nesting fails, exclude that reviewer or stop. Basic bubblewrap success does not justify disabling an existing safeguard while writable shared state and host mutation channels remain exposed. No bypass was used in this review.

Tests proving disposable config isolation, denied local/socket mutation and real wrapped CLI execution belong to R2. The design must first mandate the boundary and fail-closed behavior; it need not already supply successful implementation test results.

C3 — Keep nonblocking findings nonblocking

Remove STOP_ON_SUBSTANTIAL from §3.6 and §9's allowed owner-intervention additions. Substantial nonblocking findings and recommendations remain visible in history/summary but cannot stop progress or prevent PASS. Manual owner stop remains available.

The explicit two-persisted-opportunity no-progress threshold is bounded and consistent within v2. It need not be tightened merely to copy RV's proposed one-opportunity threshold: REQ does not prescribe a numeric threshold. Preserve the default 3 additional revisions and existing ceiling 5.

Compatibility and implementation gates

D2 §3.4 correctly separates mandatory cycle acceptance from optional legacy acceptance hardening (OD-4). Preserve legacy behavior by default in this cycle change; any broader verification guard needs separate explicit authorization. Align §11 T-B1-1 (FAILED legacy task without verification rejected) with that choice: mark it conditional on optional legacy hardening, or make its fixture a cycle task. Do not use it as an unconditional cycle acceptance gate. This is a small test-spec clarification, not a fourth blocking group.

Real nested Codex/Claude execution, both pairings, authentication in disposable profiles, denial probes, crash/stop/restart races, legacy parity, capacity/admission tests, and independent code/documentation review remain R2–R5 implementation gates. Their absence is not itself a design failure. The verdict fails because C1–C3 explicitly permit behavior inconsistent with existing requirements, not because implementation is unfinished.

After C1–C3 and the legacy test clarification, re-review those changed clauses and their closure matrix. No architecture rewrite, new service, paid resource, legacy debt cleanup, pilot, production edit or restart is needed for this design correction.

Материалы