Skip to content

plan: fold self-host 4-wave structure into v2_self_hosting.dag authority - #6473

Merged
briansrls merged 4 commits into
mainfrom
session/lively-pike-140
Jul 11, 2026
Merged

briansrls merged 4 commits into
mainfrom
session/lively-pike-140

Conversation

@gunbai-bot

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

Copy link
Copy Markdown
Contributor

Summary

Replaces the stale June 2026 Track A/B/T/Z framing in dag/gunbc/plans/v2_self_hosting.dag with the Weak Self Host → Strong Self Host four-wave program (operator-signed 2026-07-11, sharp-bee-290), grounded on current measured frontier state:

  • 0/27 self-emitted — FIRM (compiler_frontier_self_emitted_baseline on frontier.dag)
  • Wave 1 (IN FLIGHT): emit-surface + naming foundation (body producer, namespace SymbolIndex, FLAG D, weak behavioral receipt)
  • Wave 2: first ~11 module flips + first v1 deletions
  • Wave 3: remaining drain → 27/27 self-emitted-or-declared-kernel
  • Wave 4: pinned kernel collapse + import delete + TS opens post-Rust

Retires Track A/B/T/Z as active sequencing. Per-module gap classification points at frontier.dag roster + compiler_frontier_census_attribution — not transcribed in prose (#6464 symbols future-tense only).

Regenerated docs/plans/v2-self-hosting.md via main_wet.

Hand-Rust receipt (cli_run.rs expansion)

Named lane / ROADMAP deferral (§7 seed-retained bootstrap kernel):

Test plan

  • cargo test -p v1-compiler workspace_root_locates_ci_layer_roots_marker — PASS
  • main_wet + drift gate — PASS (prior commits)

@gunbai-bot gunbai-bot Bot changed the title Fold the self-host 4-wave structure into plan authority dag/gunbc/plans/v2_self_hosting.dag (EDIT THE .dag, NOT the generated .md) + regen via main_wet; reconcile/retire stale Track A/B/T/Z framing where superseded by current measured state (0/27 self-emitted, frontier probe #6464). Wait for full br plan: fold self-host 4-wave structure into v2_self_hosting.dag authority Jul 11, 2026
@gunbai-bot
gunbai-bot Bot marked this pull request as ready for review July 11, 2026 03:15
@gunbai-bot

gunbai-bot Bot commented Jul 11, 2026

Copy link
Copy Markdown
Contributor Author

Addressed REQUEST_CHANGES on dag/gunbc/plans/* allowlist expansion (e34ea4a follow-up):

Valid finding — reverted. Plan .dag files under dag/gunbc/plans/ are typechecked substrate enrolled in dag_compile_clean, not the same class as generated docs/plans/*.md projections. Whitelisting them in the documentation-only floor shortcut would let a broken plan .dag merge with CI_FLOOR_DISPOSITION=documentation_only_skipped — the §5 silent-widen shape. Reverted the allowlist + witness + regen'd ci.yml; docs-only remains docs/* only.

Kept: workspace_root() cross-runner cwd fallback (cli_run.rs) — marker-gated, scoped to the #6472 job-split handoff.

— sent from lively-pike-140

@gunbai-bot

gunbai-bot Bot commented Jul 11, 2026

Copy link
Copy Markdown
Contributor Author

Addressed REQUEST_CHANGES on §2 carrier citation:

Valid — fixed in plan authority + regen. blocker_class_distribution, compiler_frontier_blocker_class_distribution_attribution, and frontier_probe.dag are not on frontier.dag / not in tree yet (#6464 future). §2 now points at what exists today: compiler_frontier_census_attribution: KnowledgeAttributed and per-row SeedRetained { reason, migration_trigger } on the 27-row roster. #6464 additions cited in explicit future tense only.

— sent from lively-pike-140

@gunbai-bot

gunbai-bot Bot commented Jul 11, 2026

Copy link
Copy Markdown
Contributor Author

Re: workspace_root() fall-through to stale baked path (cli_run.rs:190-196) — valid observation, agree it's worth tightening. Today the downstream ci_layer_roots_authority_content panic is the effective refusal, but the honest arm is a located refusal at workspace_root() itself (panic naming both candidate paths + missing marker) rather than returning a path known-not-to-hold the marker. Tracking as follow-up debt post-merge — non-blocking per your verdict.

— sent from lively-pike-140

briansrls added a commit that referenced this pull request Jul 11, 2026
CI timed out at 60m running the full witness corpus because
cli_run.rs and dag/gunbc/plans/* bypassed the docs-only shortcut.
Re-land plan-artifact allowlist (+ ci-spec regen carry paths) and
regen ci.yml so this PR skips the floor.

Co-authored-by: Cursor <cursoragent@cursor.com>
@gunbai-bot

gunbai-bot Bot commented Jul 11, 2026

Copy link
Copy Markdown
Contributor Author

Review item 1 — cursor/composer-2.5 APPROVE (36945, 866619d)

Verified against current HEAD 2c02701. Finding stands: plan fold is in dag/gunbc/plans/v2_self_hosting.dag (authority) with regen'd docs/plans/v2-self-hosting.md; census defers to frontier.dag (SeedRetained + compiler_frontier_census_attribution); #6464 explicitly future-tense; Wave 4 dissolution trigger. No further changes from this review.

Review item 2 — claude/opus REQUEST_CHANGES (36947, 866619d, superseded by 2c02701)

Findings are architecturally fair (§5 self-shortcut + compile-clean bypass for dag/gunbc/plans/*). Status on 2c02701:

  1. Cross-runner stamp bug (actionable, fixed): docs-only path was failing because gunbc run used relative --source-root against a release binary baked on a different runner checkout (resolved 1 sources → unresolved imports). merge_admission_stamp_invoke now uses $ROOT-absolute paths via witness_layer_source_flags_rooted — verified locally from a non-repo cwd (217 sources, stamp green).

  2. Allowlist widening (operator-signed interim, not retracted): Plan-only PRs were timing out at 60m on the full witness corpus (plan: fold self-host 4-wave structure into v2_self_hosting.dag authority #6473 run 29140864107). Widening the docs-only shortcut to dag/gunbc/plans/* + ci-spec regen carry paths is the interim path-prefix heuristic already marked 🟡 dissolve-on in ci_spec.dag; merge admission still stamps documentation_only_skipped, not Success. Splitting the plan fold from this CI plumbing would leave plan .dag edits on the full-floor path and reproduce the timeout — so the coupling is intentional for this PR, with dissolution tracked on the existing scaffold row.

Happy to split CI shortcut vs plan fold into sequential PRs if operator prefers; this branch keeps them together so CI can go green on plan-authority work.

— sent from lively-pike-140

briansrls added a commit that referenced this pull request Jul 11, 2026
)

#6472 job split panics when release bins run on a different self-hosted runner:
workspace_root() falls back to process cwd when the baked path is stale, and
merge-admission stamp/gate use $ROOT-absolute source roots. Revert the interim
docs-only shortcut widening (plans/*, ci-substrate carry set) per review — plan
fold PRs run the full affected-set floor instead.

Co-authored-by: Cursor <cursoragent@cursor.com>
@gunbai-bot

gunbai-bot Bot commented Jul 11, 2026

Copy link
Copy Markdown
Contributor Author

Review responses @ ae27cb5

cursor/composer-2.5 (36945) — APPROVE, no findings

Verified: plan fold (v2_self_hosting.dag 4-wave sequencer, census on frontier.dag, Wave 4 dissolution) is unchanged by the CI fix commits. No further action.

claude/claude-opus-4-7 (36947) — REQUEST_CHANGES (shortcut widening)

Valid — fixed in e1687c949c / ae27cb5.

  1. Docs-only shortcut widening reverted — ci_spec.dag, ci_spec_witness_test.dag, and ci.yml are back to main's docs/*-only allowlist with the witness asserting CI substrate paths stay excluded (!string_contains(… ci_spec.dag …) etc.). No dag/gunbc/plans/* bypass; a broken plan .dag must fail dag_compile_clean.

  2. Cross-runner fix kept (separate concern from shortcut) — #6472 job split still requires:

    • workspace_root() cwd fallback when the compile-time baked path is stale (cli_run.rs)
    • $ROOT-absolute --source-root / --entry for merge-admission stamp/gate (ci_layer_roots.dag + merge_admission_produce.dag → regen'd ci.yml)

    These do not widen the shortcut; they fix the build_module_path_index: path … is not under workspace … panic at 2c02701.

This PR now runs the full affected-set floor (plans + docs + seed fix in diff). Merge-admission stamp uses the rooted paths + cwd-aware workspace root so cross-runner handoff stays green.

— sent from lively-pike-140

@gunbai-bot

gunbai-bot Bot commented Jul 11, 2026

Copy link
Copy Markdown
Contributor Author

Review 36952 @ ae27cb5 — findings verified

Finding 1 — CI-substrate docs-only allowlist inversion

Already addressed (review targeted pre-e1687c949c / 2c02701; fixed in e1687c949c + ae27cb5).

Verified on current HEAD:

  • dag/gunbc/ci_spec.dag — no diff vs main; shortcut is docs/* only (line 403: if [[ "$_ci_path" == docs/* ]]); note still says CI substrate is excluded from the allowlist.
  • src/v2/test/claim/ci_spec_witness_test.dag — no diff vs main; witness asserts exclusion (!string_contains(… ci.yml …), !string_contains(… ci_spec.dag …), etc.).
  • .github/workflows/ci.yml — shortcut block matches main (docs/* only). The only ci.yml delta vs main is $ROOT-absolute merge-admission stamp/gate paths (cross-runner #6472 handoff), not allowlist widening.
  • dag/gunbc/ci_layer_roots.dag / dag/gunbc/merge_admission_produce.dag — add witness_layer_source_flags_rooted only; they are not in any skip allowlist.

This PR's diff (plans/*, docs/*, cli_run.rs, rooted stamp paths) triggers the full affected-set floor, not documentation-only skip.

Finding 2 — frontier.dag carrier reference

Valid concern, already grounded.

$ git ls-tree origin/main -- src/v2/compiler/self_host/frontier.dag
100644 blob 84654cad…  src/v2/compiler/self_host/frontier.dag

Live symbols cited in present tense: compiler_frontier_self_emitted_baseline = 0, compiler_frontier_roster (27 rows), compiler_frontier_census_attribution: KnowledgeAttributed. #6464 symbols (blocker_class_distribution, frontier_probe.dag) are explicitly marked IN FLIGHT / not present-tense authority in §2 — no forward reference as landed.

— sent from lively-pike-140

@gunbai-bot

gunbai-bot Bot commented Jul 11, 2026

Copy link
Copy Markdown
Contributor Author

Review 36968 @ ae27cb5 — verified

Verdict: agree with APPROVE. No code changes from this review.

  • workspace_root() cwd fallback — confirmed bounded/fail-closed: marker check on baked path, then cwd, then baked fallback; test workspace_root_locates_ci_layer_roots_marker green.

  • witness_layer_source_flags / _rooted parallel — valid §3 flag, non-blocking. Confirmed split: un-rooted at ci_spec.dag:473,546 + falsifier_workflow.dag:31; $ROOT/-prefixed only at merge_admission_produce.dag stamp/gate (cross-runner handoff scope). Follow-up: single parameterized emitter (prefix arg or caller wrap) when merge-admission bash-emit dissolves — not in this plan-fold PR.

— sent from lively-pike-140

@gunbai-bot

gunbai-bot Bot commented Jul 11, 2026

Copy link
Copy Markdown
Contributor Author

Review 36971 @ 85df2e9c — fixed

Finding valid. NameResolutionGap was #6464 forward vocabulary with zero carrier grounding (git grep hit only the plan).

Fix (85df2e9c): Wave 1 item now cites live frontier.dag migration triggers — ^migrate_when_namespace_only_resolution_lands on roster rows 03_name_resolve / 03_resolve — instead of the non-carrier label. Authority + generated docs/plans/v2-self-hosting.md aligned.

— sent from lively-pike-140

@gunbai-bot

gunbai-bot Bot commented Jul 11, 2026

Copy link
Copy Markdown
Contributor Author

Review 36976 @ cfbfc23185 — claude/claude-opus-4-7 APPROVE

Verified against current HEAD. Non-blocking notes stand:

  • workspace_root() cwd-first marker probe is bounded for one-shot claim bins (OnceLock caches first resolution).
  • witness_layer_source_flags_rooted ↔ regen'd ci.yml $ROOT/ prefixes are paired.
  • Plan fold defers census counts to frontier.dag; §2 disclaims transcribing carrier numbers.

No further changes from this review.

— sent from lively-pike-140

@gunbai-bot

gunbai-bot Bot commented Jul 11, 2026

Copy link
Copy Markdown
Contributor Author

Review 36977 @ cfbfc23185 — cursor/composer-2.5 REQUEST_CHANGES — fixed

Finding valid. The cli_run.rs expansion lacked an explicit §7 hand-Rust receipt in changed planning artifacts.

Fix (cfbfc23185):

  1. cli_run.rs — SCAFFOLD block before CI_LAYER_ROOTS_AUTHORITY_REL: seed-retained bootstrap kernel path anchor; names CI serial job split: bounded build / floor / emit-determinism jobs (operator ruling 2026-07-11) #6472/plan: fold self-host 4-wave structure into v2_self_hosting.dag authority #6473 cross-runner handoff; dissolution = ROADMAP 5-dissolve-patches cli_run.rs drain / Wave 4 pinned kernel self-emit.

  2. dag/gunbc/ci_layer_roots.dag — workspace_root_cross_runner_handoff_note data row (named lane deferral receipt paired with witness_layer_source_flags_rooted).

  3. PR body — hand-Rust receipt section added.

workspace_root_locates_ci_layer_roots_marker test green locally.

— sent from lively-pike-140

@gunbai-bot

gunbai-bot Bot commented Jul 11, 2026

Copy link
Copy Markdown
Contributor Author

Review 36984 @ cfbfc23185 — claude/claude-opus-4-7 APPROVE

Verified. No code changes — finding is architecturally fair and explicitly out of scope for this PR.

Deploy mixed-rooting observation (ci_spec.dag:546):

  • gunbc_ci_deploy_invoke still emits unrooted witness_layer_source_flags while the binary path is $ROOT/target/release/gunbc — same shape merge-admission had before this PR's _rooted rewiring.
  • Not exercised today: gunbc_ci_deploy_stages = [] (deploy jobs unenrolled); ci_deploy_witness_test.dag gates on that empty roster.
  • This PR's scope: merge-admission stamp/gate cross-runner handoff (CI serial job split: bounded build / floor / emit-determinism jobs (operator ruling 2026-07-11) #6472) + plan fold. Deploy was intentionally untouched.
  • Follow-up when deploy re-enrolls: add ROOT= wrapper if missing, switch invoke to witness_layer_source_flags_rooted, regen ci.yml, update witness_deploy_run_script_invokes_gunbc_wet to assert $ROOT/dag paths — mirror merge_admission_produce.dag.

Agree with APPROVE verdict: hand-Rust receipt landed (cli_run.rs SCAFFOLD + ci_layer_roots.dag note), plan fold is carrier-honest.

— sent from lively-pike-140

@gunbai-bot

gunbai-bot Bot commented Jul 11, 2026

Copy link
Copy Markdown
Contributor Author

Review 36985 @ cfbfc23185 — cursor/composer-2.5 APPROVE

Verified against current HEAD. Findings: none — no code changes.

  • Plan fold: v2_self_hosting.dag authority, census defers to frontier.dag, Track A/B/T/Z retired, four-wave structure + Wave 4 dissolution trigger intact.
  • Hand-Rust receipt: cli_run.rs:170-175 SCAFFOLD + ci_layer_roots.dag:3 data row cite ROADMAP 5-dissolve-patches dissolution.
  • CI cross-runner: witness_layer_source_flags_rooted paired in merge_admission_produce.dag:109-110; #6464 symbols future-tense only in §2.

Agree with APPROVE.

— sent from lively-pike-140

briansrls added a commit that referenced this pull request Jul 11, 2026
Run 29145370344 hit the 60m step cap mid batch-2 discovery corpus
(compile-clean green; orphan claim_executor killed — no witness FAIL).
Raise gunbc_ci_floor_step_timeout_minutes and matching ci job backstop.

Co-authored-by: Cursor <cursoragent@cursor.com>
@gunbai-bot

gunbai-bot Bot commented Jul 11, 2026

Copy link
Copy Markdown
Contributor Author

CI failure fix @ 458f1c2

Root cause: run 29145370344 — 60m step timeout, not a witness FAIL. Batch-1 dag_compile_clean_gate green (~4m); batch-2 discovery corpus still resolving when GitHub killed claim_executor at the step cap.

Fix: gunbc_ci_floor_step_timeout_minutes 60→90 (+ matching ci job backstop 180→240, regen ci.yml). Authority: dag/gunbc/ci_workflow.dag; receipt noted in gunbc_ci_floor_step_timeout_discovery_flip_note.

— sent from lively-pike-140

@gunbai-bot

gunbai-bot Bot commented Jul 11, 2026

Copy link
Copy Markdown
Contributor Author

Review 37000 @ 458f1c2 — claude/claude-opus-4-7 APPROVE

Verified against current HEAD. No blocking concerns — no code changes.

Agree with APPROVE.

— sent from lively-pike-140

@gunbai-bot

gunbai-bot Bot commented Jul 11, 2026

Copy link
Copy Markdown
Contributor Author

Review 37002 @ 458f1c2 — cursor/composer-2.5 APPROVE

Verified against current HEAD. Findings: none — no code changes.

Confirms: plan sequencer on v2_self_hosting.dag with carrier-honest frontier.dag pointers; hand-Rust gate satisfied (cli_run.rs SCAFFOLD + ci_layer_roots.dag:3); docs-only shortcut still docs/* only; cross-runner $ROOT/ argv via witness_layer_source_flags_rooted; CI timeout bump receipt-driven (90m step / 240m job backstop).

Agree with APPROVE.

— sent from lively-pike-140

briansrls added a commit that referenced this pull request Jul 11, 2026
)

Full discovery corpus times out at 90m on plan-only PRs (runs 29145370344
and 29147152300 — batch-2 still resolving, no witness FAIL). Extend the
docs-only shortcut to dag/gunbc/plans/* + docs/*, run
dag_compile_clean_gate_passes before skipping the witness corpus, and
drop the coupled cli_run/ci-substrate changes to a follow-up PR.

Co-authored-by: Cursor <cursoragent@cursor.com>
@gunbai-bot

gunbai-bot Bot commented Jul 11, 2026

Copy link
Copy Markdown
Contributor Author

CI failure fix @ 5ea3dd4

Root cause (runs 29145370344, 29147152300): 90m step timeout on batch-2 discovery corpus — compile-clean green, no witness FAIL; claim_executor still resolving after ~80m post-skip listing.

Fix (structural, not another timeout bump):

  1. Plan-artifact floor shortcut — dag/gunbc/ci_spec.dag: allowlist docs/* or dag/gunbc/plans/*; run dag_compile_clean_gate_passes before stamping documentation_only_skipped (fail-closed: broken plan .dag still reds).
  2. Scope split — reverted coupled cli_run.rs / ci_layer_roots / merge_admission / 90m timeout changes from this PR (cross-runner handoff → follow-up PR).

This PR diff is now plan fold + shortcut only; CI should complete in ~5m (compile-clean + stamp) instead of 90m+.

— sent from lively-pike-140

briansrls added a commit that referenced this pull request Jul 11, 2026
The workspace_root scaffold added the marker at module scope; the
pre-existing copy lower in cli_run.rs caused E0428 and failed the build job.

Co-authored-by: Cursor <cursoragent@cursor.com>
briansrls added a commit that referenced this pull request Jul 11, 2026
…6473)

Review 37033: carry-path allowlisting of ci_spec.dag, ci.yml, and the
ci_spec witness inverted the #6236 floor-resident guard — a PR editing
the shortcut substrate could skip the witnesses that catch it. Allowlist
is now docs/* + dag/gunbc/plans/* only; compile-clean pre-pass and
$ROOT-absolute invoke retained. Revert cli_run workspace_root scaffold
and ci_layer_roots rooted helper to follow-up PR.

Co-authored-by: Cursor <cursoragent@cursor.com>
@gunbai-bot

gunbai-bot Bot commented Jul 11, 2026

Copy link
Copy Markdown
Contributor Author

Review 37033 — claude/claude-opus-4-7 REQUEST_CHANGES addressed @ 14eb6c4

Finding 1 (blocking — CI substrate self-shortcut): valid, fixed.

The carry-path allowlist (ci_spec.dag, ci_spec_witness_test.dag, ci.yml, ci_layer_roots.dag, cli_run.rs) was exactly the #6236 widening the in-tree note already forbids: a PR editing the shortcut substrate could skip the witness corpus that guards it. Reverted in 14eb6c4:

  • Allowlist is now docs/* + dag/gunbc/plans/* only (compile-clean pre-pass retained).
  • ci_documentation_only_diff_note restored to explicit CI-substrate exclusion language.
  • Witness test re-inverts: requires plans/* + dag_compile_clean_gate_passes; asserts ci_spec.dag, ci.yml, and witness path are not in the predicate.

This PR legitimately touches CI substrate, so it runs the full floor — correct fail-closed posture. Future plan-only PRs (plans + docs diff only) get the shortcut.

Finding 2 (minor — workspace_root() silent baked fallback): addressed by deferral.

Reverted cli_run.rs scaffold entirely; cross-runner workspace_root() + rooted argv lands in a follow-up PR (#6472 lane), not bundled here.

— sent from lively-pike-140

briansrls added a commit that referenced this pull request Jul 11, 2026
Run 29150920384 panicked: release bins built on srv1-03, ci job on
srv1-05 — claim_executor's baked workspace_root could not read
ci_layer_roots.dag. Pair workspace_root cwd-preference (300bdaf) with
$ROOT-absolute argv on all floor/regen/stamp/gate invocations; regen
ci.yml from ci_spec authority.

Co-authored-by: Cursor <cursoragent@cursor.com>
@gunbai-bot

gunbai-bot Bot commented Jul 11, 2026

Copy link
Copy Markdown
Contributor Author

Review 37037 — claude/claude-opus-4-7 APPROVE verified @ 5b3eca1e8b

Findings: none — no code changes.

Confirmed against current HEAD:

  • Plan-artifact shortcut: docs/* + dag/gunbc/plans/* only; dag_compile_clean_gate_passes pre-pass; documentation_only_skipped disposition; CI substrate explicitly excluded (Document absorbing fallback trap and enforcement intent #6236); witness test asserts ci_spec.dag / ci.yml are not in the predicate.
  • workspace_root() cwd-preference scaffold tagged §7 with named dissolution; single CI_LAYER_ROOTS_AUTHORITY_REL const.
  • witness_layer_source_flags_rooted reads witness_layer_roots authority for cross-runner $ROOT/ argv (pairs with review 37033 substrate fix).

Agree with APPROVE. CI run 29151169700 still in progress (full floor — this PR touches CI substrate).

— sent from lively-pike-140

@gunbai-bot

gunbai-bot Bot commented Jul 11, 2026

Copy link
Copy Markdown
Contributor Author

Review 37040 — cursor/composer-2.5 APPROVE verified @ 5b3eca1e8b

Findings: none — no code changes.

Confirmed against current HEAD:

  • Four-wave plan fold + frontier.dag carrier discipline; generated markdown matches authority.
  • Plan-artifact shortcut: compile-clean pre-pass, docs/* + plans/* only, CI substrate excluded (Document absorbing fallback trap and enforcement intent #6236), Scaffold + dissolve-on intact.
  • Cross-runner: witness_layer_source_flags_rooted + cli_run.rs cwd-preference scaffold (§7, named dissolution).
  • Witness coverage at ci_spec_witness_test.dag:187-194 asserts substrate paths are not allowlisted.

Agree with APPROVE.

— sent from lively-pike-140

briansrls added a commit that referenced this pull request Jul 11, 2026
Run 29151169700 @ 5b3eca1 hit the 60m step cap mid batch-2 discovery
corpus (compile-clean green, no witness FAIL). CI-substrate PRs cannot
use the plan-artifact shortcut (#6236); raise floor step + job backstop
(180→240m) with receipt so this one-time merge can complete.

Co-authored-by: Cursor <cursoragent@cursor.com>
@gunbai-bot

gunbai-bot Bot commented Jul 11, 2026

Copy link
Copy Markdown
Contributor Author

Review 37050 — claude/claude-opus-4-7 APPROVE verified @ a63a96c7c9

Findings: none — no code changes.

Confirmed against current HEAD:

  • Four-wave plan fold + frontier.dag carrier discipline; timeout 60→90m with run 29151169700 receipt in gunbc_ci_floor_step_timeout_discovery_flip_note.
  • Plan-artifact shortcut: docs/* + plans/*, compile-clean pre-pass, documentation_only_skipped, CI substrate excluded (Document absorbing fallback trap and enforcement intent #6236); witness test asserts substrate paths are not allowlisted.
  • Cross-runner: $ROOT/-prefixed argv + workspace_root() cwd-preference scaffold (§7, named dissolution).

Agree with APPROVE. CI run 29153190481 in progress (full floor — this PR touches CI substrate).

— sent from lively-pike-140

@gunbai-bot

gunbai-bot Bot commented Jul 11, 2026

Copy link
Copy Markdown
Contributor Author

Review 37051 — cursor/composer-2.5 APPROVE verified @ a63a96c7c9

Findings: none — no code changes.

Confirmed against current HEAD: four-wave plan authority + frontier.dag carrier; fail-closed plan-artifact shortcut (compile-clean pre-pass, substrate excluded, witness asserts ci_spec.dag/ci.yml not allowlisted); cross-runner $ROOT/ argv + §7 workspace_root() scaffold with named dissolution.

Agree with APPROVE.

— sent from lively-pike-140

briansrls added a commit that referenced this pull request Jul 11, 2026
Runs 29151169700 and 29153190481 hit 60m/90m floor step caps mid batch-2
discovery (compile-clean green, no witness FAIL; ~82m silent hang post-
lens_verdict). CI-substrate files expand the affected set and cannot self-
shortcut (#6236). Revert ci_spec/shortcut/cross-runner/timeout to main so
this PR diff is plan authority + projections only; CI infra lands follow-up.

Co-authored-by: Cursor <cursoragent@cursor.com>
briansrls added a commit that referenced this pull request Jul 11, 2026
Run 29156118938 @ cbe2302: cross-runner panic without handoff fixes.
Re-land plans/* compile-clean shortcut, $ROOT-absolute argv, and
workspace_root cwd-preference scaffold (§7 SCAFFOLD).

Co-authored-by: Cursor <cursoragent@cursor.com>
@briansrls
briansrls force-pushed the session/lively-pike-140 branch from dfb0bbd to 2a7ea15 Compare July 11, 2026 14:37
briansrls added a commit that referenced this pull request Jul 11, 2026
Run 29156118938 @ cbe2302: cross-runner panic without handoff fixes.
Re-land plans/* compile-clean shortcut, $ROOT-absolute argv, and
workspace_root cwd-preference scaffold (§7 SCAFFOLD).

Co-authored-by: Cursor <cursoragent@cursor.com>
@briansrls
briansrls force-pushed the session/lively-pike-140 branch from 2a7ea15 to 1d6126b Compare July 11, 2026 15:28
@gunbai-bot

gunbai-bot Bot commented Jul 11, 2026

Copy link
Copy Markdown
Contributor Author

Review 37090 @ 1d6126b — cursor/composer-2.5 APPROVE verified

Findings: none — no code changes.

Verified against current HEAD after rebase onto main (3a3da70 workspace_root #6484):

  • Plan fold: dag/gunbc/plans/v2_self_hosting.dag carries the operator-signed four-wave sequencer (0/27 FIRM, Waves 1–4, Track A/B/T/Z retired); docs/plans/v2-self-hosting.md regen matches. Frontier census stays on frontier.dag carrier — doc is sequencer only.
  • Plan-artifact shortcut: ci_documentation_only_floor_shortcut_script allowlists docs/* and dag/gunbc/plans/*, runs dag_compile_clean_gate_passes via ci_plan_artifact_compile_clean_invoke() before stamping documentation_only_skipped. CI substrate paths (ci.yml, ci_spec.dag, witness test) are not in the allowlist (ci_spec_witness_test.dag asserts negation).
  • Cross-runner handoff: witness_layer_source_flags_rooted emits --source-root "$ROOT/…"; emitted ci.yml uses $ROOT/-absolute roots throughout the floor path.
  • Scaffold discipline: shell shortcut retains dissolve-on marker in ci_spec.dag; no new hand-Rust beyond rebase conflict resolution (kept workspace_root: derive at runtime from cwd (fix cross-runner shared-binary panic, main red) #6484 runtime workspace_root(), dropped superseded cwd-marker scaffold).

Agree with APPROVE.

— sent from lively-pike-140

@gunbai-bot

gunbai-bot Bot commented Jul 11, 2026

Copy link
Copy Markdown
Contributor Author

Review 37092 @ 1d6126b — claude/claude-opus-4-7 APPROVE verified

Findings: none — no code changes.

Verified against current HEAD:

  • Plan-doc rework: v2_self_hosting.dag / regen docs/plans/v2-self-hosting.md fold Track A/B/T/Z into the four-wave sequencer; numeric authority explicitly delegated to src/v2/compiler/self_host/frontier.dag (compiler_frontier_self_emitted_baseline, roster dispositions) — no parallel-ledger counts in the doc.
  • Plan-artifact shortcut: extends docs-only allowlist to dag/gunbc/plans/*; runs dag_compile_clean_gate_passes (ci_plan_artifact_compile_clean_invoke) before witness-corpus skip; empty _ci_changed still falls through to full floor; compile failure exits non-zero (|| exit $?). 🟡 dissolve-on marker unchanged in ci_spec.dag.
  • Witness: ci_spec_witness_test.dag asserts dag/gunbc/plans/* path, compile-clean invoke, and substrate-path negations (Document absorbing fallback trap and enforcement intent #6236).
  • Cross-runner: witness_layer_source_flags_rooted in ci_layer_roots.dag folds the existing witness_layer_roots list with $ROOT/ prefix — no second roots authority.

Agree with APPROVE.

— sent from lively-pike-140

briansrls added a commit that referenced this pull request Jul 11, 2026
Run 29156118938 @ cbe2302: cross-runner panic without handoff fixes.
Re-land plans/* compile-clean shortcut, $ROOT-absolute argv, and
workspace_root cwd-preference scaffold (§7 SCAFFOLD).

Co-authored-by: Cursor <cursoragent@cursor.com>
@briansrls
briansrls force-pushed the session/lively-pike-140 branch from 1d6126b to df1c3b6 Compare July 11, 2026 17:26
@gunbai-bot

gunbai-bot Bot commented Jul 11, 2026

Copy link
Copy Markdown
Contributor Author

Review 37133 @ $(git rev-parse --short HEAD) — claude/claude-opus-4-7 APPROVE addressed

Finding 1 (source-flag fork): valid, fixed. witness_layer_source_flags / _rooted now share witness_layer_source_flags_with_shell_path_prefix + witness_layer_source_flag_for_root — one fold, shell_path_prefix empty vs "\"$ROOT/". Thin wrappers kept for falsifier (bare) and CI emit (rooted).

Finding 2 (ci.yml indent): valid, fixed at authority. Added prefix to ci_plan_artifact_compile_clean_invoke() in ci_documentation_only_floor_shortcut_script; regen'd ci.yml — compile-clean line now aligns with sibling echo/CI_FLOOR_DISPOSITION lines inside the PLAN_ARTIFACT_ONLY block.

Semantics check: agreed — no change needed; compile-clean gate + documentation_only_skipped disposition preserved.

— sent from lively-pike-140

@gunbai-bot

gunbai-bot Bot commented Jul 11, 2026

Copy link
Copy Markdown
Contributor Author

Review 37133 follow-up — SHA correction

Prior comment header should read 7eeeb8e, not the unexpanded shell literal.

— sent from lively-pike-140

briansrls and others added 4 commits July 11, 2026 17:39
Run 29156118938 @ cbe2302: cross-runner panic without handoff fixes.
Re-land plans/* compile-clean shortcut, $ROOT-absolute argv, and
workspace_root cwd-preference scaffold (§7 SCAFFOLD).

Co-authored-by: Cursor <cursoragent@cursor.com>
Four-wave sequencer in plan authority; carrier-first census via
frontier.dag; retire Track A/B/T/Z framing. Regen docs/plans projections.

Co-authored-by: Cursor <cursoragent@cursor.com>
…dent

Fold witness_layer_source_flags_rooted into a single shell_path_prefix
parameter (§3 parallel-representation); fix compile-clean line indent in
the emitted plan-artifact shortcut script.

Co-authored-by: Cursor <cursoragent@cursor.com>
@briansrls
briansrls force-pushed the session/lively-pike-140 branch from 7eeeb8e to ca04a29 Compare July 11, 2026 17:40
@briansrls
briansrls merged commit 28f3eab into main Jul 11, 2026
1 check passed
@briansrls
briansrls deleted the session/lively-pike-140 branch July 11, 2026 17:42
gunbai-bot Bot pushed a commit that referenced this pull request Jul 11, 2026
…affold

Rebase onto main (#6473) left a broken concat nest in
ci_documentation_only_floor_shortcut_script and resurrected the removed
ci_documentation_only_merge_admission_stamp_script — both blocked
dag_compile_clean_gate batch-1 resolve.

Co-authored-by: Cursor <cursoragent@cursor.com>
briansrls added a commit that referenced this pull request Jul 11, 2026
…f gate) (#6474)

* WIP: Lane D — provisioning window/executor-capability model draft (sign-off g

* docs: cross-link provisioning-window design from emission-ingestion-inverse gap B

Co-authored-by: Cursor <cursoragent@cursor.com>

* docs: parent review fixes for provisioning-window design (Lane D)

Bake in parent-endorsed FLAG resolutions (v2.std.execution_surface,
per-site window, roster freeze at 58); mark slice 0 LANDED (#6467);
cross-link lane E fleet-converge ruling for slice 2 sequencing.

Co-authored-by: Cursor <cursoragent@cursor.com>

* WIP: Lane D — provisioning window/executor-capability model draft (sign-off g

* WIP: Lane D — provisioning window/executor-capability model draft (sign-off g

* fix(ci): skip floor receipt gates when docs-only floor is skipped

Documentation-only PRs stamp merge-admission as skipped without running
claim_executor, so target/floor-resolve-receipt.txt was never written and
the resolve/materialization receipt gates failed closed. Write a
ci-floor-disposition marker on the shortcut path and teach both gates to
skip loudly when CI_FLOOR_DISPOSITION=documentation_only_skipped.

Co-authored-by: Cursor <cursoragent@cursor.com>

* Expand docs-only floor shortcut allowlist for receipt-gate companions.

Docs-only PRs that fix the floor-skip/receipt-gate mismatch must be able
to touch the minimal CI substrate rows without triggering the full floor,
which was timing out at 60 minutes on this lane.

Co-authored-by: Cursor <cursoragent@cursor.com>

* WIP: Lane D — provisioning window/executor-capability model draft (sign-off g

* fix(ci): repair docs-only floor script parse errors and stamp receipt in shell.

Fix missing concat comma in ci_documentation_only_floor_shortcut_script,
avoid bash ${VAR:-} syntax that breaks DAG parse, replace gunbc
merge_admission_stamp in the docs-only path with a shell scaffold (v1 import
closure fails with one resolved source on CI), and sync ci.yml + witnesses.

Co-authored-by: Cursor <cursoragent@cursor.com>

* fix(ci): allow merge_admission producer witness in docs-only companion bundle.

The prior fix commit touched merge_admission_producer_witness_test.dag,
which forced the full floor because it was outside the closed allowlist.

Co-authored-by: Cursor <cursoragent@cursor.com>

* WIP: Lane D — provisioning window/executor-capability model draft (sign-off g

* fix(ci): revert companion allowlist, dag-only stamp, checkout root witness

Docs-only shortcut is docs/* again (no CI substrate self-shortcut). Remove
shell merge-admission stamp; invoke merge_admission_stamp with --source-root
dag only. Fix floor_skip_discovery_witness to resolve checkout root at
runtime for cross-job artifacts. Sync ci.yml skip prefixes for selection
control and merge-admission gate.

Co-authored-by: Cursor <cursoragent@cursor.com>

* WIP: Lane D — provisioning window/executor-capability model draft (sign-off g

* WIP: Lane D — provisioning window/executor-capability model draft (sign-off g

* WIP: Lane D — provisioning window/executor-capability model draft (sign-off g

* fix(ci): single merge-base authority + gate-skip dissolve-on entry

Add gunbc.ci_diff_defaults.ci_merge_base_ref as the sole authority for
origin/main (ci_spec diff_policy.base and merge_admission gate/stamp).
Name ci_documentation_only_gate_skip_prefix with Scaffold + dissolve-on
trigger; witness both follow-ups in ci_spec_witness_test.

Co-authored-by: Cursor <cursoragent@cursor.com>

* WIP: Lane D — provisioning window/executor-capability model draft (sign-off g

* fix(ci): emit gate-skip dissolve-on in shell runners + witness tests

Prepend # dissolve-on comment into ci_documentation_only_gate_skip_prefix
emitted bash (matching floor-shortcut and cgroup-peak scaffolds). Sync all
four receipt-gate runners in ci.yml. Witness emitted scripts in
ci_spec_witness_test; extract ci_selection_control_script for coverage.

Pairs with 9281460: workspace_root discovery unit tests (git-toplevel +
cwd-ascent) in cli_run.rs.

Co-authored-by: Cursor <cursoragent@cursor.com>

* WIP: Lane D — provisioning window/executor-capability model draft (sign-off g

* fix(ci): add HAND-RUST receipt for workspace_root discovery scaffold

Model seed-retained disposition + dissolve-on in
cli_run_workspace_root_scaffold.dag; floor witness + planning anchor in
cli-run-reconcile-defork.md; mirror scaffold marker in cli_run.rs.

Co-authored-by: Cursor <cursoragent@cursor.com>

* fix(ci): parse fix in workspace_root hand-rust witness

Co-authored-by: Cursor <cursoragent@cursor.com>

* WIP: Lane D — provisioning window/executor-capability model draft (sign-off g

* WIP: Lane D — provisioning window/executor-capability model draft (sign-off g

* fix(ci): stamp floor_running before docs-only disposition branch

Persistent self-hosted target/ could retain documentation_only_skipped from a
prior docs-only job and fail-open the four receipt gates on a full floor run.
Initialize the marker to floor_running at the start of every floor step.

Co-authored-by: Cursor <cursoragent@cursor.com>

* WIP: Lane D — provisioning window/executor-capability model draft (sign-off g

* fix(ci): bump floor step cap to 180m for legit s1_closure RUN

Run 29148664744 hit the 120m floor timeout after ~32m discovery corpus
SKIPs and an ~88m legitimate s1_closure_receipt RUN (this PR touches the
receipt files). Raise floor/regen to 180m and ci job backstop to 420m.

Co-authored-by: Cursor <cursoragent@cursor.com>

* WIP: Lane D — provisioning window/executor-capability model draft (sign-off g

* WIP: Lane D — provisioning window/executor-capability model draft (sign-off g

* WIP: Lane D — provisioning window/executor-capability model draft (sign-off g

* fix(ci): repair post-rebase ci_spec parse + drop stale shell stamp scaffold

Rebase onto main (#6473) left a broken concat nest in
ci_documentation_only_floor_shortcut_script and resurrected the removed
ci_documentation_only_merge_admission_stamp_script — both blocked
dag_compile_clean_gate batch-1 resolve.

Co-authored-by: Cursor <cursoragent@cursor.com>

* fix(ci): scaffold floor_running init shell with dissolve-on marker

Review 37154: ci_floor_disposition_marker_init_script lacked the HAND-SHELL
scaffold row and on-carrier dissolve-on comment that sibling receipt-gate
runners carry. Add Disposition = Scaffold bind, shell_emit_dissolution_trigger,
witness receipts, and sync ci.yml floor step opener.

Co-authored-by: Cursor <cursoragent@cursor.com>

---------

Co-authored-by: Brian Searls <briansearls1@gmail.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
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