Repository navigation
Conversation
|
🤖 Review Receipt
Human review surface
Verification Summary
Authored by an AI agent acting on joshlf's behalf. |
joshlf
left a comment
There was a problem hiding this comment.
Authored by an AI agent acting on joshlf's behalf.
Gate 2 Independent Cross-Family Review — FINDINGS (tier2b_cli_policy, Round 1)
- Identity:
one:4a3573f6625f0c3ad8e08c25cc39fd8a62b50c07:2d0cd6cba9b7f0cc34445129be17788463447bbd:99e839c997c665373e2e22e0a07033e1324f6a7f2c1fcf47ac5ec465646cbd70(base=8b73d98158e8,head=bbcc7e8c0c30,tree=2d0cd6cba9b7) - Separation:
author_family=agentvs.reviewer_family=multi - Coverage: 12 inspected, 0 inapplicable, 0 blocked (of 12 changed file(s))
| Seat | Family | Role | Status | Verdict | Findings | Latency |
|---|---|---|---|---|---|---|
seat1 |
claude-frontier-thinking |
policy_and_cli_critic |
completed |
clean |
0 | 428s |
seat2 |
gemini-frontier-thinking |
policy_and_spec_critic |
completed |
findings |
1 | 641s |
seat3 |
gemini-executable-falsifier |
sandboxed_probe_runner |
completed |
clean |
0 | 377s |
Deduplicated Findings
| ID | Sev | Consensus | Verification | Location | Summary |
|---|---|---|---|---|---|
G2-R1-01 |
P2 | 1 (seat2) | static_verified |
AGENTS.md:344 |
Commit body and Review Receipt Human review surface omit explaining the intentional base-rule relaxation adding the coarser-keyed anneal-bundled-oleans-base-v1 unpinned .olean cache slot. |
G2-R1-01 [P2] (AGENTS.md:344, General, static_verified): Commit body and Review Receipt Human review surface omit explaining the intentional base-rule relaxation adding the coarser-keyed anneal-bundled-oleans-base-v1 unpinned .olean cache slot.
- Invariant: Base AGENTS.md (Code Review Rules, lines 124-131) and docs/review-policy-design.md (Non-bootstrap self-modification rule, lines 253-264) require every PR that relaxes a review or trust-boundary rule to explain the relaxation and its soundness rationale in the commit body (reused verbatim in the PR description) and explicitly surface the intentional policy relaxation in the Review Receipt comment's Human review surface block for Gate 5 human approval; any omission or mischaracterization blocks merge or ready-for-review.
- Evidence: Base AGENTS.md:343-350 (mirrored in .gemini/styleguide.md:259-266 and skills/trust-review/SKILL.md:316-324) permits only
anneal-bundled-oleans-v1as an unpinned.oleancache, and base skills/trust-review/references/ci-core.md:193-194 forbids omittingtrusted/ortheory/bundle-manifest.jsonkey inputs. This PR relaxes those rules to permit a second unpinnedpublic_casslot (anneal-bundled-oleans-base-v1) whoseci-corecache key omits bundled Lean and inspector sources (trusted/lean/**,theory/bundle-manifest.json,TrustedBoundary.lean,SpecPreflight.lean,trusted_bundle.rs), extending cross-commit persistence of published entries across subsequent bundled-Lean edits and reverts until toolchain/lock/script inputs change. Although docs/trust-model.md and skills/trust-review/references/ci-core.md document this accurately and the technical containment (3 non-audit checks only, excluded from anneal-audit and releases) is sound pending Gate 5 approval, commit bbcc7e8's body mentions the policy edits only as- Sync docs/trust-model.md, skills/trust-review/, AGENTS.md, and .gemini/styleguide.md for the second non-audit cache slot.without disclosing or justifying the base-rule relaxation, and PR #759's Review Receipt comment characterizes it only asPolicy adjustment ... under the same non-audit write boundarywithout stating the widened allowlist, coarser key / extended persistence across Lean-only commits, or Gate 5 approval requirement.
Non-blocking advisories (P3, not Gate 2 findings)
These notes do not block merge and do not require another Gate 2 round.
G2-R1-A01[P3] (ci/checks.toml:191): If ci-core public_cas entries can't be overwritten once published for a key, the base slot freezes at the first main/merge_group population after each key change and gets steadily staler (performance only).G2-R1-A02[P3] (ci/prebuild_bundled_oleans.py:1192):_try_restore_from_cacheis retained as a thin wrapper with no remaining callers inci/.G2-R1-A03[P3] (ci/prebuild_bundled_oleans.py:1540): The commit body says obsolete .olean* parts are pruned 'atomically when syncing', but _populate_cache_dir writes files and then prunes in a best-effort sequence (each file write is atomic, the batch is not).G2-R1-A04[P3] (ci/prebuild_bundled_oleans.py:2060): Restored entries (possibly from the base slot) are written back into both configured cache dirs, so a poisoned base-slot entry re-seeds fresh v1-slot entries and survives v1 key rotation on trusted/lean edits.G2-R1-A05[P3] (skills/trust-review/references/ci-core.md:159): Section heading and line 28 intro reference still name onlyanneal-bundled-oleans-v1even though the section now governs bothanneal-bundled-oleans-v1andanneal-bundled-oleans-base-v1.
Executed Sandbox Probes
seat3unittest test_prebuild_bundled_oleans.py in bwrap --unshare-all --clearenv: outcome=passseat3unittest test_run_anneal_check.py in bwrap --unshare-all --clearenv: outcome=passseat3unittest test_ci_workflow.py in bwrap --unshare-all --clearenv: outcome=passseat3Custom adversarial probe (policy parity, 80-col/anchors, diamond DAG + constant_olean_for + Std.Basic + read-only base_cache + poisoned primary_cache, symlinked cache overlap, relative runner cache paths) in bwrap --unshare-all --clearenv: outcome=pass
| `anneal-audit` or releases). Flag shell `set -e` / `errexit` | ||
| traps (`&&`, `||`, `!`, `if`, `while`, or `local x=$(cmd)` masking non-zero | ||
| exit). | ||
| `anneal-bundled-oleans-v1` and `anneal-bundled-oleans-base-v1` `public_cas` |
There was a problem hiding this comment.
G2-R1-01 [P2] (static_verified): Commit body and Review Receipt Human review surface omit explaining the intentional base-rule relaxation adding the coarser-keyed anneal-bundled-oleans-base-v1 unpinned .olean cache slot.
Base AGENTS.md:343-350 (mirrored in .gemini/styleguide.md:259-266 and skills/trust-review/SKILL.md:316-324) permits only anneal-bundled-oleans-v1 as an unpinned .olean cache, and base skills/trust-review/references/ci-core.md:193-194 forbids omitting trusted/ or theory/bundle-manifest.json key inputs. This PR relaxes those rules to permit a second unpinned public_cas slot (anneal-bundled-oleans-base-v1) whose ci-core cache key omits bundled Lean and inspector sources (trusted/lean/**, theory/bundle-manifest.json, TrustedBoundary.lean, SpecPreflight.lean, trusted_bundle.rs), extending cross-commit persistence of published entries across subsequent bundled-Lean edits and reverts until toolchain/lock/script inputs change. Although docs/trust-model.md and skills/trust-review/references/ci-core.md document this accurately and the technical containment (3 non-audit checks only, excluded from anneal-audit and releases) is sound pending Gate 5 approval, commit bbcc7e8's body mentions the policy edits only as - Sync docs/trust-model.md, skills/trust-review/, AGENTS.md, and .gemini/styleguide.md for the second non-audit cache slot. without disclosing or justifying the base-rule relaxation, and PR #759's Review Receipt comment characterizes it only as Policy adjustment ... under the same non-audit write boundary without stating the widened allowlist, coarser key / extended persistence across Lean-only commits, or Gate 5 approval requirement.
Upgrade `ci/prebuild_bundled_oleans.py` from all-or-nothing whole-bundle cache restoration to fail-closed per-module Merkle-DAG verification, and add a `main`-base fallback cache slot (`anneal-bundled-oleans-base-v1`) so edits to bundled Lean modules avoid recompiling clean upstream cones. Previously, any change to a bundled `Trusted.*` or `Anneal.*` module invalidated `anneal-bundled-oleans-v1` completely, forcing a cold rebuild of all bundled `.olean`s on every semantics or theory PR. Per-module restoration in `ci/prebuild_bundled_oleans.py`: - Preserve a zero-Lean fast path on exact whole-bundle hits while supporting an optional `--base-cache-dir` fallback alongside `--cache-dir` (enforcing checkout non-overlap and disjoint cache roots). - Enforce global cache invariants upfront (`lean-exec.sha256`, closed manifest schema and `CACHE_FORMAT_VERSION == 2`, `lean_sha256`, `sysroot_manifest_sha256`, and `CANONICAL_COMPILE_FLAGS`), ignoring extra removed modules safely during partial restoration. - Restore unchanged inspectors (`TrustedBoundary`, `SpecPreflight`) via `O_NOFOLLOW` + SHA-256 verification before compiling dirty inspectors. - Traverse bundled modules in dependency order with dynamic early cutoff: restore module `M` iff its `source_sha256`, `is_module`, exact import edges, finalized dependency `part_sha256s` and recomputed `transitive_sha256`, and on-disk `.olean`/`.olean.server`/ `.olean.private` parts all verify fail-closed; compile only dirty cones and prune obsolete `.olean*` parts after atomically writing each updated file when syncing. `main`-base partial fallback slot and non-audit wiring: - Add `[caches.anneal-bundled-oleans-base-v1]` (`public_cas`, mounted at `/ci-cache/bundled-oleans-base`) in `ci/checks.toml`, keyed strictly on toolchain, foundation/sysroot lockfiles, and CI prebuild scripts (mounted only on `anneal-ws-test`, `anneal-installed-smoke`, and `anneal-dogfood-full`, never `anneal-audit` or `[tcb]`). - Thread `--prebuilt-oleans-base-cache` / `--base-cache-dir` through `ci/run_anneal_check.sh` and `ci/pack_omnibus_archive.sh`, unsetting `ANNEAL_CI_PREBUILT_OLEANS_BASE_CACHE_DIR` before running tests. Intentional review-policy relaxation (requires Gate 5 human approval): - Base `AGENTS.md`, `.gemini/styleguide.md`, and `skills/trust-review/SKILL.md` permitted only one unpinned `.olean` cache slot (`anneal-bundled-oleans-v1`), and `skills/trust-review/references/ci-core.md` forbade omitting `trusted/` or `theory/bundle-manifest.json` from its cache key. - This change intentionally relaxes those rules (updated identically across `AGENTS.md`, `.gemini/styleguide.md`, `skills/trust-review/`, and `docs/trust-model.md`) to permit a second unpinned `public_cas` slot (`anneal-bundled-oleans-base-v1`) whose key omits bundled Lean and inspector sources (`trusted/lean/**`, `theory/bundle-manifest.json`, `TrustedBoundary.lean`, `SpecPreflight.lean`, `trusted_bundle.rs`). - Persistence trade-off: published entries in `anneal-bundled-oleans-base-v1` persist across subsequent bundled-Lean commits and reverts until toolchain, lockfile, or prebuild-script inputs change, rather than rotating on every bundled-Lean edit. - Soundness rationale and containment: every restored module and inspector must verify fail-closed against exact source SHA-256, transitive import/part Merkle digests, toolchain/sysroot digests, and canonical flags; the slot remains mounted outside the checkout only on the three non-audit checks (`anneal-ws-test`, `anneal-installed-smoke`, `anneal-dogfood-full`), is never published on `pull_request` runs (`merge_group`/`main` only), and never reaches `anneal-audit` or releases. Because this widens the cache allowlist and relaxes the cache-key restriction, it requires explicit Gate 5 human approval before merge. Measured on a 4-job remote Linux runner across all 146 bundled modules (148 total entries with 2 inspectors): cold build 318.89s; `CoreDispatchV2` 1-line comment edit via `--base-cache-dir` 10.52s (145/146 restored, 30.32x speedup); `CoreDispatchV2` new `private theorem` edit 169.93s (72/146 restored, 1.88x speedup); full warm hit 6.64s (48.0x speedup). Agent-authored-by: AI agent acting on joshlf's behalf
bbcc7e8 to
e29405f
Compare
|
🤖 Review Receipt
Human review surface
Verification Summary
Authored by an AI agent acting on joshlf's behalf. |
Upgrade
ci/prebuild_bundled_oleans.pyfrom all-or-nothing whole-bundle cache restoration to fail-closed per-module Merkle-DAG verification, and add amain-base fallback cache slot (anneal-bundled-oleans-base-v1) so edits to bundled Lean modules avoid recompiling clean upstream cones.Previously, any change to a bundled
Trusted.*orAnneal.*module invalidatedanneal-bundled-oleans-v1completely, forcing a cold rebuild of all bundled.oleans on every semantics or theory PR.Per-module restoration in
ci/prebuild_bundled_oleans.py:--base-cache-dirfallback alongside--cache-dir(enforcing checkout non-overlap and disjoint cache roots).lean-exec.sha256, closed manifest schema andCACHE_FORMAT_VERSION == 2,lean_sha256,sysroot_manifest_sha256, andCANONICAL_COMPILE_FLAGS), ignoring extra removed modules safely during partial restoration.TrustedBoundary,SpecPreflight) viaO_NOFOLLOW+ SHA-256 verification before compiling dirty inspectors.Miff itssource_sha256,is_module, exact import edges, finalized dependencypart_sha256sand recomputedtransitive_sha256, and on-disk.olean/.olean.server/.olean.privateparts all verify fail-closed; compile only dirty cones and prune obsolete.olean*parts after atomically writing each updated file when syncing.main-base partial fallback slot and non-audit wiring:[caches.anneal-bundled-oleans-base-v1](public_cas, mounted at/ci-cache/bundled-oleans-base) inci/checks.toml, keyed strictly on toolchain, foundation/sysroot lockfiles, and CI prebuild scripts (mounted only onanneal-ws-test,anneal-installed-smoke, andanneal-dogfood-full, neveranneal-auditor[tcb]).--prebuilt-oleans-base-cache/--base-cache-dirthroughci/run_anneal_check.shandci/pack_omnibus_archive.sh, unsettingANNEAL_CI_PREBUILT_OLEANS_BASE_CACHE_DIRbefore running tests.Intentional review-policy relaxation (requires Gate 5 human approval):
AGENTS.md,.gemini/styleguide.md, andskills/trust-review/SKILL.mdpermitted only one unpinned.oleancache slot (anneal-bundled-oleans-v1), andskills/trust-review/references/ci-core.mdforbade omittingtrusted/ortheory/bundle-manifest.jsonfrom its cache key.AGENTS.md,.gemini/styleguide.md,skills/trust-review/, anddocs/trust-model.md) to permit a second unpinnedpublic_casslot (anneal-bundled-oleans-base-v1) whose key omits bundled Lean and inspector sources (trusted/lean/**,theory/bundle-manifest.json,TrustedBoundary.lean,SpecPreflight.lean,trusted_bundle.rs).anneal-bundled-oleans-base-v1persist across subsequent bundled-Lean commits and reverts until toolchain, lockfile, or prebuild-script inputs change, rather than rotating on every bundled-Lean edit.anneal-ws-test,anneal-installed-smoke,anneal-dogfood-full), is never published onpull_requestruns (merge_group/mainonly), and never reachesanneal-auditor releases. Because this widens the cache allowlist and relaxes the cache-key restriction, it requires explicit Gate 5 human approval before merge.Measured on a 4-job remote Linux runner across all 146 bundled modules (148 total entries with 2 inspectors): cold build 318.89s;
CoreDispatchV21-line comment edit via--base-cache-dir10.52s (145/146 restored, 30.32x speedup);CoreDispatchV2newprivate theoremedit 169.93s (72/146 restored, 1.88x speedup); full warm hit 6.64s (48.0x speedup).Authored by an AI agent acting on joshlf's behalf.