Repository navigation
Description
Reproduction (2026-10-09, authorized Mac)
Canonical main SHA: f82565cca917d119e1c774b2c470e2ac20e0d6dd, clean checkout. macOS Darwin/arm64; repository-pinned rustc +1.97.1.
cargo +1.97.1 build --locked -p commandf
cargo +1.97.1 test --locked --workspace --all-features --quietThe workspace run fails at commandf-pkg --test af02_surface_scanner test af02_surface_scanner_is_locked_linted_tested_and_runnable. Its nested cargo clippy --locked --manifest-path tools/af02-verifier/Cargo.toml --all-targets -- -D warnings fails:
error: function `normalize_open_error` is never used
--> tools/af02-verifier/src/secure_snapshot.rs:336:4
= note: `-D dead-code` implied by `-D warnings`
Root-cause code inspection
At secure_snapshot.rs:336, normalize_open_error is defined unconditionally. Its only actual call sites are inside open_candidate_file's Linux x86_64/aarch64 conditional implementation (~lines 272, 275). On macOS the secure-opening implementation is deliberately fail-closed, so the helper is not referenced and Clippy rejects dead code. This is a reproducible Mac lint/platform-compilation problem, not evidence that the AF-02 secure-descriptor relative input guard can execute successfully on macOS.
Candidate repair contract (NOT authorized implementation)
- Review making the
normalize_open_errordefinition conditional on exactly the same Linux target configuration as its callers, without altering its Linux implementation or any source-identity/security/assurance assertion. - Add/qualify a Mac lint regression check and preserve Linux positive/negative tests and fail-closed unsupported-platform semantics.
- Revalidate Linux and macOS exact-head builds, source integrity, AF-02 gate, and workspace tests. Never treat suppressed lint warnings or bypassed tests as proof of behavior on unsupported platforms.
- Authority constraint:
tools/af02-verifier/**is a protected AF-02 authority path. Implement only through the independently qualified G51 / FD-1 amendment path and Code Owner approvals; no implicit permission to edit canonical base, bypass the gate or rewrite history. - Related: fix(af03): qualify Windows nested AF-02 test with bounded short target path #190 (Windows AF-02 path), governance: establish independently eligible Code Owner review path for protected main #195 (independent human Code Owner review), fix(af02): replace expired Actions artifact dependency with durable retained authority #100 (durable authority recovery). Distinct from CF-11 intermittency investigate(CF11): independent IPS resolutions intermittently disagree on semantic lock identity #214.
Current state: OPEN / REPRODUCED_MAC_CLIPPY_FAILURE / PROTECTED_REPAIR_GATED. The Mac workspace run has not passed.
Activity
TheHalfMoon commentedon Oct 9, 2026
Mac-only Rust all-features workspace evidence (2026-10-09)
The missing Linux-only normalize_open_error gating under macOS remains the
one known AF-02 native Clippy blocker on canonical main (see original report).
A separate test-only fix is under PR #218, signed+valid and DCO matched.
Its scope is exclusively the scheduling margin for three quick Unix shell
oracle test fixtures; the production adapter timeout and 20ms/100ms process
termination tests remain unchanged.
On the Mac at PR #218 exact head ad413d9:
Result, counted directly from the test-run summary in the local log:
51 test suites, 348 PASSED, 0 FAILED, 2 ignored, 1 filtered.
The single filtered test is exactly the issue #215 AF-02 nested Clippy
blocker; no other skips were added. cargo +1.97.1 fmt --all -- --check
also PASSED.
Interpretation is narrow:
for this known AF-02 nested Clippy test.
macOS, or that protected governance and independent human review passed.
the separately governed G51/FD-1 protected-file amendment path.
test in canonical CI as a purported repair.
GitHub PR #218 CI is separately pending and remains review-blocked.
TheHalfMoon commentedon Oct 9, 2026
Mac-only protected AF-02 candidate dry run — additional findings (2026-10-09)
No canonical source, protected-file, or branch-policy edits were made.
All experiments used an isolated copy of tools/af02-verifier plus the
required specs/016-adversarial-test-strength fixtures, outside the repo.
Original canonical secure_snapshot.rs Git blob remains
c8cc724f0d7a167702083c5246eee0b397e9b5de.
Candidate scope, NOT AUTHORIZED FOR MERGE
The scratch-only candidate adds one conditional attribute immediately
above normalize_open_error, matching the existing Linux-only callers:
This leaves the supported Linux openat/no-follow code and the deliberate
macOS fail-closed unsupported-platform branch unchanged.
Actually executed outcomes on the authorized Mac
PASS after the one-function cfg; the original Mac dead_code
warning is removed without suppressing warnings.
FAIL. The library tests were 62 PASS. In the binary suite,
29 passed and 6 FAILED. Every failure was due to
"secure descriptor-relative no-follow open is unavailable on this
Unix platform", NOT a Clippy failure.
records, tabs in block scalar payload, prohibited node properties
after block sequence indicators, prohibited properties in explicit
YAML keys, and aggregate-budget exhaustion. These tests reach a
Linux-only secure-opening positive precondition that is deliberately
unavailable on Mac.
28 PASS, 7 filtered (substring selectors also matched one
additional test). This is exploration only and is NOT a passing
full-suite result or qualification evidence for changed governance.
Required resolution
platform-specific positive test assumptions. Rework/conditionalize
the tests using target capability, not blanket CI skips or relaxed
source guards.
no-follow operations fail closed.
Clippy/build/negative tests; Linux validation is NOT_RUN here.
independent Code Owner review (governance: establish independently eligible Code Owner review path for protected main #195). The pending planning PR docs(g51): specify base-controlled AF-02 governance amendment path #188
and this scratch test do not authorize the protected edit.
Issue #215 remains OPEN; the earlier belief that cfg alone would
qualify Mac AF-02 is now empirically disproven. No product or
governance completion is claimed.
docs(g51): record review-free base-controlled AF-02 amendment plan
TheHalfMoon commentedon Oct 10, 2026
Mac exact-main Clippy root-cause proof (2026-10-10)
Canonical main at reproduction:
001a4de60fd1dfc5cf15ce0f6462999d3b86c445Protected file:
tools/af02-verifier/src/secure_snapshot.rsOriginal Git blob OID:
c8cc724f0d7a167702083c5246eee0b397e9b5deProposed local-only patched Git blob OID:
a52195a363d46fb2b9b35fd4126be659b4f5d87aUnmodified baseline on Mac:
tools/af02-verifier/Cargo.toml --all-targets --
-D warnings: FAIL 101, because
normalize_open_erroris unused on macOS.no authority files were modified for this baseline.
Four-line isolated candidate (NOT PUSHED):
Patched Mac proof:
29 binary tests pass and six input_guard integration tests
fail because the macOS secure descriptor-relative opener
deliberately returns an unsupported-platform violation.
unmodified original main: the exact SAME SIX test
names and SAME unsupported-platform diagnostic fail.
Thus the four-line cfg fix does not introduce those
six failures and does not pretend to make Mac secure
descriptor opening supported. Independent platform issue:
test(mac): separate AF-02 YAML parser tests from Linux-only secure file-opening contract #227.
unrelated formatting differences; it is NOT PASS.
No broad reformatting was performed.
must be qualified on actual Linux prior to admission.
Governance: signed G51 planning PR #225 does not
authorize editing this protected path. A separate exact-head
founder FD-1/qualified amendment decision remains required;
no authority rule, required status, SHA, or Git history is
changed. The patch and full before/after blob identities
are supplied as a PREPARATORY CANDIDATE, not as FD-1
authorization or completed repair.
Status: MAC_CLIPPY_FIX_LOCALLY_QUALIFIED / PROTECTED_CHANGE_NOT_MERGED.