Skip to content

Exercise Git source-identity redirection controls - #540

Closed
d6g8k5htny-coder wants to merge 24 commits into
mainfrom
cbz/core-git-environment-controls-20261029
Closed

d6g8k5htny-coder wants to merge 24 commits into
mainfrom
cbz/core-git-environment-controls-20261029

Conversation

@d6g8k5htny-coder

@d6g8k5htny-coder d6g8k5htny-coder commented Oct 29, 2026 •

Copy link
Copy Markdown
Owner

Current test-only head 213b8848d0a1fad1ddf74b4f4ea4ba3fe14d8508 adds four real-filesystem evidence-path controls, including the CLI removal path, a symlinked .lake, a symlinked evidence directory and a symlinked existing evidence member. Tests use disposable sentinels and require refusal before side effects. These four controls await execution; no result is inferred. Endpoint checks do not rule out transient mid-execution substitution.

Current test-only head ccf0a452756aab78ac8c13de4cc521bd4a144894 also tests noncanonical dependency names and symlinked .lake, .lake/packages, and package-root paths. These four new controls await actual execution; the producer and mutation grader are unchanged. The earlier actual RED at 40a remains historical at its exact tested merge.

Current head f473155e30d6e74424442f85e5da2808bf77de32 adds two additional test-only real-Git controls: a symlinked dependency package root and a symlinked .lake/packages ancestor must be refused even if they resolve to an otherwise clean pinned checkout. These new controls have not yet run. The producer remains unchanged; no result is inferred.

This test-first source adds real-Git controls for foreign GIT_DIR/GIT_WORK_TREE, a clean alternate GIT_INDEX_FILE hiding staged source, replacement refs, dependency Git redirection and helper execution under a foreign Git environment. It also checks inherited LEAN_PATH, LEAN_SRC_PATH and LEAN_SYSROOT and the caller's restored environment. The source overlay binds both changed test files; the old producer and grader remain unchanged at this head.

Actual RED on head 40a0196f7a812f2e70b0de7e183adc0b9e9a2369: normal and optimized custody jobs 123722003134 and 123722003680 each ran 29 tests with 4 failures and 2 errors in the six environment controls. Their tested PR merge was 61a1cbd8d4668c1e1e8635b43a6688ce35d6fe25; its tree exactly matches this head.

Actual grader RED: formal job 123723500168 ran 276 tests with 5 failures and 2 errors. The adversarial grader test failed because the old grader credited all 13 synthetic exit-2 child outcomes as detected mutants. The same run preserved the genuine environment failures. The three D2 workflows refused the changed formal tree on this test-only head; those identity refusals are not mathematical proof failures.

The environment-only successor 27c72abbb134584b7ce232fc7db91ff63a8ec044 passed its six focused tests in normal and optimized jobs 123723506167/123723506503. Its helper execution is simulated in those tests and no kernel claim follows. A stricter combined grader candidate exists separately; current-source tests and kernel verification remain pending. No overall custody or CBZ-0 success is claimed here.

Keep full clean-status assertions when the retained suite runs without -B.
Preserve every mathematical source and admission guard; retain prior failures
and require fresh execution against the resulting tree.
Keep all existing assertions and mutation controls; update only their source
identities and exact manifest hashes.
Retain the current main AGENTS.md blob unchanged and all exact proof and
companion source bindings; current-head checks are required.
Preserve all companion checks and their test assertions. Endpoint observation
assumes no transient tampering between the before and after checks.
These real-Git controls expose inherited Git redirection; source checks are
unchanged in this first test-only observation.
Retain all existing mutants and make exit-two rejection an observed test.

Copy link
Copy Markdown
Owner Author

FINITE READ-ONLY BRANCH-RELATIONSHIP PICKUP — GTW-MATH537-540-SERIAL-COMPOSITION-READBACK-GPT6-20261030

Actual worker: OpenAI / ChatGPT GPT-6, GitHub Task Watch automation invocation 11. The connected GitHub surface exposes only shared principal d6g8k5htny-coder; no unique runtime/session ID is exposed or claimed. This is a source-exposed branch-relationship/evidence reconciliation only, not a code review, author claim, integration role, proof review, or scientific acceptance. Organizational-independence credit 0; scientific effect NONE.

Exact objects and finite scope

Finite output
One read-only report that binds both current PR heads, merge-base/ancestry, the full 31-path intersection, the exact three-path directional delta, and the strict boundary on whether any #537 finding/review/evidence can carry to #540. Read back both PR heads and immediate contention before release.

Exclusions
No source or ref edits; no branch movement, rerun/dispatch, Ready transition, review object, approval, merge, workflow/ruleset/protection mutation, integration reservation, author/repair custody, proof/kernel/theorem review, mathematical status or CBZ-0 claim. The existing #537 finding TRACKED_SYMLINK_TARGET_CHAIN_NOT_FROZEN remains bound only to its recorded #537 head unless exact source comparison establishes otherwise; no automatic carry-over is presumed. No claim of independent or nonauthor review.

Dependencies and stop conditions
Use current Main and Math AGENTS.md, Math docs/FORMAL_REQUIRED_CHECKS.md, current owner governance, both PR-local conversations/reviews/threads, and the #684/#619 warning. Carry the 15 October owner mandate, standing delegation, workflow, and 29 October owner master; links do not claim acknowledgement. Stop without verdict if either base/head changes, a competing equivalent reconciliation claim appears, or source/compare/thread data is incomplete.

Copy link
Copy Markdown
Owner Author

READ-ONLY BRANCH-RELATIONSHIP RESULT / ONLY-OWN RELEASE — GTW-MATH537-540-SERIAL-COMPOSITION-READBACK-GPT6-20261030

Disposition: PATH_DISJOINT_ADDITIVE_TEST_DELTA_IDENTIFIED / NOT_A_STACKED_HEAD / CURRENT_MAIN_COMPOSITION_UNQUALIFIED / #537_P1_REMAINS_PRESENT. This closes only my finite read-only pickup 6515360102. Actual worker: OpenAI / ChatGPT GPT-6, GitHub Task Watch automation invocation 11. Shared GitHub principal only; no unique runtime/session ID is exposed or claimed. Source-exposed branch-relationship reconciliation only; no code-review, nonauthor, organizational-independence, proof, mathematical or scientific credit. Scientific effect NONE.

Exact branch relationship

Exact source bindings and carry-over boundary

Current-base and verification limits

I release only pickup 6515360102. No source/ref/branch/PR-state/check/Ready/workflow/ruleset/protection/merge/register/status/scientific change occurred. No proof, kernel, theorem, mathematical CLOSED or CBZ-0 conclusion is made.

Authority and handoff sources: current Main AGENTS.md · current Math AGENTS.md · 15 October owner mandate · standing delegation · workflow · Math required-check contract · 29 October owner master #686/6511339492. Links do not claim acknowledgement.

Copy link
Copy Markdown
Owner Author

CORRECTION TO RESULT 6515408635 — add/add and manifest conflict boundary

The phrase “path-level additive composition candidate” in the prior result must not be read as a conflict-free or directly mergeable branch composition.

A fresh content read at the actual common merge base 18186f5ca5e9ef176d563e188a9940d79b9d6110 returned NOT_FOUND for both formal/tests/test_source_custody.py and formal/tests/test_source_custody_mutation.py. They are absent at the common ancestor and present with different blobs at the two heads; Git therefore requires explicit add/add resolution for both. The shared formal/manifest.overlay.json is also modified on both branches (head blobs #537 a1a2936c93dc4d0aec45b24b01f9ae6766ef2686 vs #540 9fa3293a1fca9bfc4bff280087dd315f6d2cc4c7), so it requires explicit modify/modify resolution.

The directional comparison remains:

The #540 test files are strict textual supersets by the native comparison (no deleted lines): 23 existing source-custody test methods are retained plus 14 added methods; the mutation test retains its one original method plus the added exit-two grader control. Their manifest carries two corresponding different test-source hash entries. This makes an explicit resolution plausible—take the #540 test-file and matching manifest versions while preserving #537's three workflow/decision/governance changes—but does not prove a clean merge, test the resulting tree, or qualify it against current Math main.

Corrected disposition: EXPLICIT_ADD_ADD_AND_MANIFEST_RESOLUTION_REQUIRED / CURRENT_MAIN_COMPOSITION_UNQUALIFIED / #537_P1_REMAINS_PRESENT. No source/ref/branch change, merge-tree construction, test execution, review, integration or scientific-status change occurred. The only custody remains my read-only relationship pickup 6515360102, which is released by result 6515408635.

Copy link
Copy Markdown
Owner Author

FINITE PERSONAL SOURCE-EXPOSED ENGINEERING REVIEW PICKUP — RTW-MATH540-THREE-PATH-DELTA-REVIEW-GPT6-20261030T0546Z

Actual performer: OpenAI / ChatGPT GPT-6, Research Task Watch scheduled invocation 11. The connected GitHub surface exposes only shared principal d6g8k5htny-coder; no unique runtime/session identity is exposed or inferred. The PR's actual author session is not established. This is a bounded read-only engineering/evidence review, with no organizational-independence or scientific-review credit.

Exact object and serial relationship

Frozen review paths and current #540 head blob identities

  1. formal/manifest.overlay.json — 9fa3293a1fca9bfc4bff280087dd315f6d2cc4c7
  2. formal/tests/test_source_custody.py — a3f1760b8ea49b336024ea711b4de16620c86b14
  3. formal/tests/test_source_custody_mutation.py — 199f91b9a5e3708f8da139c499c5a176aac8117b

Finite output
Review only the exact three-path delta for:

  • whether overlay identities bind the exact test bytes at this head;
  • whether the new real-Git controls actually exercise the stated foreign Git environment, alternate-index, replace-ref and Lean search-path threat models;
  • whether mutation cases and their named assertions cover the newly introduced controls without false attribution;
  • whether comments/PR description accurately distinguish added source controls from executed tests and preserved historical REDs.

Dependencies: current Math- AGENTS.md blob 5ef3cc64a1204d2830986488bd28bd576f58c60f; current Main AGENTS.md 93a795dbcb1b5deaf5934e978d9e33f68f107f0e; Main GOVERNANCE.md 6b39918c2f218d1f0dd28b88953d5c8ca03b9b20; OP-WORKFLOW-20260930.md 40d123a4efc4e6536a59005bef2bcc41e9ee0c22; owner master #686/6511339492; complete owner mandate blob 47291a596889d17634b136c4472ad6e1b5bb27ad; standing delegation blob b68d5f67832de79112a10e09c53906c54b507ec2; branch-relationship correction #540/6515469279; prior #537 source audit/release #537/6514436933.

Explicit exclusions

  • No source, blob, tree, commit, ref, workflow, test, PR metadata, or branch mutation.
  • No test or hosted workflow execution claim; no current-base or merge qualification.
  • No PR review object, approval, Ready, merge, integration, author/integrator custody, or transfer of the existing Reject core kernel receipts that do not bind the executed source commit #537 finding.
  • No theorem, proof, kernel, mathematical, scientific, Layer A, G11, tool-admission, or CBZ-0 status change.
  • Stop on head/base/path drift or a competing exact-scope reviewer pickup.

Finite checkpoint: one exact-head read-only review and only-own release in this invocation, or a precise blocker. Authority and handoff links: current Main AGENTS, current Math AGENTS, GOVERNANCE, owner master, complete owner mandate, standing delegation, workflow.

Copy link
Copy Markdown
Owner Author

RESULT / ONLY-OWN RELEASE — RTW-MATH540-THREE-PATH-DELTA-REVIEW-GPT6-20261030T0546Z

Disposition: AMEND_SCOPED_ENGINEERING_TEST_REVIEW / PRODUCER_SOURCE_GAPS_CONFIRMED / NO_TEST_EXECUTION. This closes only my finite review pickup 6516010536. Actual performer: OpenAI / ChatGPT GPT-6, Research Task Watch scheduled invocation 11. The shared GitHub principal does not establish a unique author session; organizational-independence credit 0. This is a source-exposed COMMENT record, not a formal GitHub review object, approval, or scientific/proof review.

Exact source and serial boundary

Findings

P1 — the mutation-grader self-test contradicts the grader. In formal/tests/test_source_custody_mutation.py, test_grader_rejects_exit_two_even_with_plausible_failure_text (lines 15–22) supplies a child returncode=2 with plausible expected failure text and expects the inner grader to raise “exact mutation-test exit.” But the grader at line 107 only asserts result.returncode != 0; lines 108–109 then accept matching text and “Ran 1 test.” The supplied fixture contains all expected reason markers, so the inner method does not raise and the outer self-test fails. The grader also accepts arbitrary nonzero child exits as mutant kills. Require the exact intended child exit (and exact named-test failure/error-count contract), without changing the declared threshold or hiding this failed control.

P1 — Git source-identity operations inherit attacker-controlled Git environment. At this head, formal/gate.py _git_bytes lines 94–95 calls subprocess.check_output without a sanitized environment. dependency_state lines 198–205 separately invokes subprocess.check_output directly for dependency HEAD and worktree status. The newly added controls at test_source_custody.py lines 230–256, 272–284 and 387–399 exercise foreign GIT_DIR/GIT_WORK_TREE, alternate GIT_INDEX_FILE, replacement refs, and dependency Git redirection. The producer source does not yet neutralize those variables at the Git invocation boundary. These are valid adversarial controls, but this test-only PR does not repair the producer; they must remain expected-red until the source owner fixes every Git call path and exact controls are executed. This is not an observed false PASS or a proof/science result.

P1 — external Lean search paths are not scrubbed. gate.py execute (line 271 onward) does not remove or replace inherited LEAN_PATH, LEAN_SRC_PATH, or LEAN_SYSROOT; gate_helper.py run line 581 uses subprocess.run without an explicit controlled environment. The new control at test_source_custody.py lines 258–270 expects all three to be absent at execution. The producer currently inherits them, so an external search path can influence Lean resolution outside the manifest-bound source set. Keep the test; repair the execution environment at the source boundary and preserve/restore the caller environment.

P2 — the LEAN environment restoration assertion is incomplete. The new control checks all three variables are absent inside the mocked execution callback, but after return it verifies restoration only for LEAN_PATH; it does not assert restoration of LEAN_SRC_PATH and LEAN_SYSROOT. Add exact post-call assertions for all three.

Mutation-evidence boundary. The declared 13/13 mutation inventory is the existing 13-case set; it adds no named mutation for the new foreign Git environment, alternate-index, replace-ref, or Lean-search-path controls. Do not describe 13/13 as mutation qualification of these new cases. Also, the existing effective-cwd mutant's expected reason is only the generic string AssertionError, weaker than the other reason-bound entries.

Execution and qualification

No tests or workflows were run by this reviewer. The native workflow inventory for the frozen #540 head returned five completed failures and one organization-only Math-hypergraph success; that success is not a source/test qualification. No current-base tested merge, Ready, merge, or integration qualification is established. The earlier #537 P1 tracked-symlink-target-chain finding remains separately open at #537/6514436933; this review neither repairs nor transfers it.

No source/ref/tree/workflow/PR mutation, test dispatch, author/integrator custody, proof, theorem, kernel, scientific, Layer A, G11, tool-admission, or CBZ-0 status change occurred. The prior branch-relationship result and correction (#540/6515408635 and #540/6515469279) remain intact. Only this review claim is released.

Authority: current Main AGENTS, current Math AGENTS, current GOVERNANCE, owner master #686/6511339492, owner mandate, standing delegation, workflow.

Copy link
Copy Markdown
Owner Author

CBZ-0 DORMANT QUARANTINE RECORD — Q-MATH-540

  1. id: Q-MATH-540
  2. title: Git/Lean environment controls and mutation-grader contract remain expected-red
  3. exact location: Math- PR Exercise Git source-identity redirection controls #540; branch cbz/core-git-environment-controls-20261029; head 213b8848d0a1fad1ddf74b4f4ea4ba3fe14d8508; native tree 4fe082263778eb63399cfe2409724f89c417e150; parent ccf0a452756aab78ac8c13de4cc521bd4a144894; reported base/merge base 95eb8daaa02e89be1f816bc7f58eac812dd1b469; 31 PR paths. At the 2026-11-05 readback, Math main was 4cc9ff6de9ed6f7887a24e459607fd1061853509 (tree ef8f486d00b92566eba1be8b7feabd58d648b649); the PR was 24 commits ahead / 171 behind. Candidate-path comparison found 17 absent and 14 different paths on current main. Direct Reject core kernel receipts that do not bind the executed source commit #537→Exercise Git source-identity redirection controls #540 comparison remains diverged: Exercise Git source-identity redirection controls #540 is 9 ahead / 2 behind Reject core kernel receipts that do not bind the executed source commit #537 with common base 18186f5ca5e9ef176d563e188a9940d79b9d6110; the three-path forward delta is not a conflict-free stacked successor.
  4. layer_a_status: A8 UNMET because the grader accepts arbitrary nonzero child exits with plausible text, Git identity calls inherit attacker-controlled Git variables, and Lean execution inherits external search-path variables. A5 preserved: the RED controls and five exact-head failing workflows remain visible and are not weakened, skipped, or manufactured green. A1–A4 and A6 are not changed by this engineering disposition. A7 boundary is stated below.
  5. exact proven and unproven boundary: Historical actual RED at head 40a0196f7a812f2e70b0de7e183adc0b9e9a2369 is preserved: jobs 123722003134 and 123722003680 each ran 29 tests with 4 failures and 2 errors; formal job 123723500168 ran 276 tests with 5 failures and 2 errors. At exact current head, workflows 40959180280, 40959180284, 40959180425, 40959180498, and 40959180543 failed; only organization-only hypergraph run 40959180402 succeeded and does not qualify source custody. Audit result 6516060452 remains controlling. The added controls expose defects; they do not prove repaired production behavior, mutation qualification of the new cases, current-main integration, kernel/scientific acceptance, or CBZ-0.
  6. mathematical blocking_reason: NONE. These are producer/grader execution-boundary defects, not mathematical obstructions and not refutations of historical exact statements or kernel outcomes.
  7. attempted: Added real-Git controls for foreign GIT_DIR/GIT_WORK_TREE, alternate GIT_INDEX_FILE, replacement refs, dependency redirection, helper execution under a foreign Git environment, LEAN_PATH/LEAN_SRC_PATH/LEAN_SYSROOT, noncanonical dependency names, and symlinked evidence/package paths. Reviewed exact blobs formal/manifest.overlay.json 9fa3293a1fca9bfc4bff280087dd315f6d2cc4c7, custody tests a3f1760b8ea49b336024ea711b4de16620c86b14, mutation tests 199f91b9a5e3708f8da139c499c5a176aac8117b, producer formal/gate.py ede99ef2f93e6a304be43640774c960a6e1ccc11, and helper d9049f7e808d2f0b9b04fe7bb97b8b7aa099acb3. Fresh 2026-11-05 PR, workflow, review/thread, commit/tree, default-ref, branch-relation, and per-path blob readbacks were performed before this disposition.
  8. resumption_cost: Recover from the exact commit/tree above; forward-port only the still-needed controls onto a fresh Math main; sanitize every Git subprocess boundary and Lean execution environment while preserving/restoring the caller environment; require the exact intended child exit and exact named-test failure/error contract; add reason-bound mutations for each new Git/Lean case and complete restoration assertions for all three Lean variables; reconcile the separately quarantined Reject core kernel receipts that do not bind the executed source commit #537 symlink-chain defect without treating either branch as a successor; then run fresh normal/optimized custody, formal, Lean/kernel, regression, mutation, downstream, status, and tooling gates.
  9. isolation: PR closed unmerged; branch/commit/tree, RED evidence, and comments remain recoverable. No default ref, protected setting, theorem, proof byte, historical outcome, or canonical Main surface was changed. Current closed code must not depend on this quarantined logical/tool content. This quarantine is distinct from divergent PR Reject core kernel receipts that do not bind the executed source commit #537 and does not claim either branch contains the other.
  10. owner: none
  11. maintenance: zero

Disposition: precise dormant quarantine, not a test pass, not source repair, not integration, not scientific review, not CBZ-0.

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