Skip to content

Floor drift fix: move #6474's plan-doc cross-links to source .dag authority (clears batch-3 generated_artifact_drift) - #6504

Merged
briansrls merged 2 commits into
mainfrom
claude/shell-emission-model-drift-fix
Jul 11, 2026
Merged

briansrls merged 2 commits into
mainfrom
claude/shell-emission-model-drift-fix

Conversation

@gunbai-bot

@gunbai-bot gunbai-bot Bot commented Jul 11, 2026 •

Copy link
Copy Markdown
Contributor

What

Clears the batch-3 generated_artifact_drift main-red that was blocking the fleet floor.

Root cause

#6474 (Lane D provisioning-window draft) hand-edited two GENERATED plan-doc projections to add cross-links to its new provisioning-window-executor-capability-design.md, without updating their source .dag authorities:

  • docs/plans/shell-emission-model.md ← dag/gunbc/plans/shell_emission_model.dag
  • docs/plans/emission-ingestion-inverse.md ← dag/gunbc/plans/emission_ingestion_inverse.dag

Because these .md are generated projections, artifact_generate never produces the hand-added lines → the drift gate fails. #6474 landed CI-red (merge-past), bypassing the drift gate that catches exactly this. (3rd confirmed instance of the merge-past-bypasses-deterministic-gates class — reinforces folding fast gates into the no-regression local receipt.)

Fix (§3-correct — single authority)

Move both cross-links into the source .dag authorities. DESIGN §3: edit the authority, not the projection. This preserves #6474's cross-link intent (a plain revert would drop it).

The other two files #6474 touched (docs/plans/cli-run-reconcile-defork.md, the new docs/plans/provisioning-window-executor-capability-design.md) have no source .dag → hand-authored docs, not generated projections, not drift-gated → left untouched.

Verification (green by execution)

gunbc run --source-root dag --source-root src/v2 \
  --entry dag/tools/generated_artifact_gate.dag \
  --function run_generated_artifact_drift_gate
→ ExitSuccess

The .md projections are byte-unchanged — the source edits reproduce the committed lines exactly, so this diff is source-.dag-only.

Diagnostic note

The drifter was found by running the gate scoped like the floor (--entry). A whole-tree run (no --entry) misleadingly crashes on undefined variable: parts — a flat-namespace resolution artifact, not the floor's behavior. The scoped ProcessExit entry emits first_failing_path(), which named the exact drifted file.

🤖 Generated with Claude Code

briansrls and others added 2 commits July 11, 2026 21:20
…authority

Completes the plan-doc drift fix: #6474 hand-edited this generated
projection to add the provisioning-window authorization-gate cross-link
without updating its source .dag. Moved to emission_ingestion_inverse.dag.
Both plan-doc drifts (this + shell_emission_model) now green: the drift
gate returns ExitSuccess by execution; the .md projections are unchanged.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@gunbai-bot gunbai-bot Bot changed the title affected set processing Floor drift fix: move #6474's plan-doc cross-links to source .dag authority (clears batch-3 generated_artifact_drift) Jul 11, 2026
@gunbai-bot
gunbai-bot Bot marked this pull request as ready for review July 11, 2026 21:28
@briansrls
briansrls merged commit e9d4337 into main Jul 11, 2026
2 of 6 checks passed
@briansrls
briansrls deleted the claude/shell-emission-model-drift-fix branch July 11, 2026 21:42
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