Skip to content

Lane B: native bulk machine (census+routing+attribution), flips last - #7111

Merged
briansrls merged 30 commits into
mainfrom
session/gentle-raven-495-lane-b-substance
Jul 23, 2026
Merged

briansrls merged 30 commits into
mainfrom
session/gentle-raven-495-lane-b-substance

Conversation

@gunbai-bot

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

Copy link
Copy Markdown
Contributor

Summary

Lane B substance for ROADMAP §2a native bulk machine (census + routing + attribution). Mandate items 1, 2, 3, and 6 are in scope; item 5 (nine-family flip) is deliberately absent — flips-last gate per operator ruling.

What landed

  1. Agreement loudness — v2.std.native_agreement divergence carrier + formatters; claim_batch appends *_failure_receipt companions on Bool(false) (member + both runtime values). Verdict extraction lives in v2.compiler.self_host.native_agreement_support (layering-safe: std does not import compiler).
  2. srv2-05 diagnosis — docs/probes/srv2-05-native-agreement-divergence-diagnosis.md (R2 stale-artifact root cause for run 29963619401); registered via HandAuthoredDocBind in doc_graph_roots.dag.
  3. 762-entry eligibility census — docs/probes/witness_entry_eligibility_census.tsv + docs/probes/witness_entry_eligibility_histogram.txt; classification authority in v2.compiler.self_host.witness_entry_eligibility_census.dag; scripts/witness_entry_eligibility_census.sh is SCAFFOLD transport → witness_entry_eligibility_census_emit (review 41756).
  4. Floor execution-leg attribution — claim_executor receipt lines project execution_leg from the committed census TSV (not hand-prefixed path rules in Rust).
  5. Plan rider — dag/gunbc/v1_deletion_plan.dag: ledger_projection brick InFlight → Placed.
  6. Routing scaffold — witness_bulk_routing.dag census-totality hook + cssl/family extension note (16-entry stratified sample unchanged).

Census denominator: 762 data rows in docs/probes/witness_entry_eligibility_census.tsv (entry closures under dag/test/claim + src/v2/test/claim, *_test.dag, excluding generated/).

Test plan

  • claim_batch --source-root dag --source-root src/v2 --entry src/v2/test/claim/self_host/native_agreement_test.dag --function native_agreement_witnesses — PASS
  • claim_batch --source-root dag --source-root src/v2 --entry src/v2/test/claim/self_host/witness_entry_eligibility_census_test.dag --function witness_entry_eligibility_census_witnesses — PASS (count pinned at 762, >16 sample)
  • claim_batch --source-root dag --source-root src/v2 --entry src/v2/test/claim/self_host/witness_entry_eligibility_census_classification_test.dag --function witness_entry_eligibility_census_classification_witnesses — PASS (disposition/leg fixtures)
  • scripts/witness_entry_eligibility_census.sh — PASS (regenerates 762-row TSV + histogram; header no longer counted as a bucket)
  • CI floor (layering_imports_gate_passes + affected-set witnesses) — pending on push

Out of scope (explicit)

  • Nine-family NativeRouted flip (mandate item 5) — gated; separate droppable commit when census + agreement receipts green.

Close srv2-05 loudness gap with typed divergence receipts and claim_batch
failure_receipt companions; land 760-entry eligibility census (TSV + histogram),
srv2-05 diagnosis doc, floor execution_leg labels, and ledger_projection Placed
rider. Fix layering violation (move verdict extraction to compiler.self_host) and
register diagnosis doc via HandAuthoredDocBind. Nine-family flip omitted (gated).

Co-authored-by: Cursor <cursoragent@cursor.com>
@briansrls
briansrls force-pushed the session/gentle-raven-495-lane-b-substance branch from f652abe to 85e1ff7 Compare July 23, 2026 07:05
@gunbai-bot
gunbai-bot Bot marked this pull request as ready for review July 23, 2026 07:05
briansrls and others added 6 commits July 23, 2026 07:16
Move disposition/leg rules into witness_entry_eligibility_census.dag;
add witness_entry_eligibility_census_emit HAND-RUST transport and SCAFFOLD
shell wrapper; project floor execution_leg from committed TSV; regen 762-row
TSV/histogram (fixes header double-count); add classification fixtures.

Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Return emit_rejected divergence (not empty list) when emit_family Rejected
so per-PR native agreement cannot green on setup failure; panic when census
TSV has no execution_leg row instead of defaulting to InterpretedLeg.

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

gunbai-bot Bot commented Jul 23, 2026

Copy link
Copy Markdown
Contributor Author

Addressed review 41764 (both findings):

  1. emit_family Rejected => [] — fixed. family_crate_pr_native_agreement_divergences() now returns [family_crate_emit_family_rejected_divergence()] (member=emit_family interpreted=emit_rejected native=emit_rejected), so emit_on_demand_family_crate_pr_native_agreement_holds stays false and *_failure_receipt names the setup refusal. Fixture: family_crate_emit_family_rejected_divergence_holds.

  2. TSV leg fallback — fixed. witness_execution_leg_label panics with a located message when the entry is absent from witness_entry_eligibility_census.tsv; empty execution_leg column in an existing row also panics at TSV load (no fabricated InterpretedLeg).

— sent from gentle-raven-495

briansrls and others added 3 commits July 23, 2026 07:54
…Grain

Extend census_entry_path_matches_emit_on_demand_family_grain to include
/execution/ emit_host rows (16 entries), excluding emit_host_gate* smoke
tests. Regenerated TSV/histogram; added classification witnesses and TSV
sync guard (review 41767).

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

gunbai-bot Bot commented Jul 23, 2026

Copy link
Copy Markdown
Contributor Author

Addressed review 41768 (both findings):

Finding 1 — emit_host_* misclassified as BulkFlipPendingCensusIncomplete: Valid. census_entry_path_matches_emit_on_demand only matched the emit_on_demand substring, so 16 src/v2/test/claim/execution/*emit_host* rows (e.g. emit_host_add_equals_eval_test.dag) were wrong in the committed TSV.

Fix: Renamed/extended to census_entry_path_matches_emit_on_demand_family_grain, which matches emit_on_demand* or /execution/ + emit_host (gate/smoke rows under dag/test/claim/emit_host_gate* stay BulkFlipPendingCensusIncomplete). Regenerated docs/probes/witness_entry_eligibility_census.tsv / histogram (EmitOnDemandFamilyGrain 8→24; BulkFlipPendingCensusIncomplete 603→588). Added census_emit_host_execution_family_row_holds + negative gate witness in witness_entry_eligibility_census_classification_test.dag.

Finding 2 — path-substring scaffold vs module_graph dissolve-on: Agreed interim debt; not a merge blocker. Module note now names the bounded execution/emit_host arm as aligning with the witness_bulk_routing sample until bulk-flip derives from module_graph membership.

Also landed review 41767 non-blocking items in the same commit: softened “authority” framing, witness_entry_eligibility_census_tsv_sync_test.dag + Rust witness_entry_eligibility_census_tsv_sync_tests, emit-time roster/count validation.

— sent from gentle-raven-495

briansrls and others added 2 commits July 23, 2026 08:14
Co-authored-by: Cursor <cursoragent@cursor.com>
…rors

Name the §3 parallel-representation on TSV/histogram rel paths in cli_run,
emit bin, and shell runner; add carrier_path_dissolve_on row on the .dag
authority so HAND-RUST literals are not silent duplicates.

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

gunbai-bot Bot commented Jul 23, 2026

Copy link
Copy Markdown
Contributor Author

Review 41776 (APPROVE): Verified — agreement loudness, census authority in .dag, HAND-RUST emit transport, fail-closed witness_execution_leg_label, and zero NativeRouted bulk routing all match current tree at 5d42cc6. No code changes required.

Review 41784 (APPROVE, path-mirror nit): Valid §3 parallel-representation on carrier rel paths. Addressed in 038e296: named dissolve-on on WITNESS_ENTRY_ELIGIBILITY_CENSUS_TSV_REL (cli_run.rs), emit-bin defaults, shell runner defaults, and witness_entry_eligibility_census_carrier_path_dissolve_on row on the .dag authority. Full fold (Rust reads paths from authority at load) stays on the existing emit-transport dissolve trigger.

— sent from gentle-raven-495

@gunbai-bot

gunbai-bot Bot commented Jul 23, 2026

Copy link
Copy Markdown
Contributor Author

Addressed review 41787:

Finding 1 — chrono_lite_utc_stamp() "unknown" fallback (blocking): Valid §5 absorbing fallback. Fixed in 14c5e916: chrono_lite_utc_stamp() now returns Result<String, String> and emit_witness_entry_eligibility_census propagates Err on date spawn failure, non-zero exit, empty stdout, or non-UTF-8 output — no fabricated stamp is written to the TSV/histogram header.

Finding 2 — substring path classifier (non-blocking): Agreed as 🟡 INTERIM scaffold. Already quarantined in witness_entry_eligibility_census.dag with named dissolve-on (module_graph Derived Group membership) and a single authority consumed by emit/leg projection; multi-match ordering (long-lane before emit-family) is documented in the module note. No additional substring arms in this PR.

Finding 3 — ^ledger_projection Placed without projection code in this PR (non-blocking): Agreed bookkeeping rider only — lane_state explicitly cites Pole B #6923 projection carrier ("marks this brick Placed citing the projection carrier"); Lane B does not claim the projection implementation landed here.

— sent from gentle-raven-495

@gunbai-bot

gunbai-bot Bot commented Jul 23, 2026

Copy link
Copy Markdown
Contributor Author

Review 41793 (APPROVE): Verified on HEAD 14c5e916 — no code changes required. Spot-check confirms: classification authority in witness_entry_eligibility_census.dag, TSV as generated carrier with count-sync guards (witness_entry_eligibility_census_tsv_sync_tests), floor witness_execution_leg_label panics on missing census rows, agreement loudness via *_failure_receipt companions with member=/interpreted=/native=, HAND-RUST/shell scaffolds carry named dissolve triggers, zero NativeRouted bulk routing (flips-last). Prior RC chain (41756/41764/41768/41787) addressed on ancestors of this HEAD.

— sent from gentle-raven-495

@gunbai-bot

gunbai-bot Bot commented Jul 23, 2026

Copy link
Copy Markdown
Contributor Author

Review 41794 (APPROVE): Verified on HEAD 14c5e916 — no code changes required. Confirms Lane B substance: v2.std.native_agreement carrier, census .dag + TSV + emitter transport, execution-leg threading, SCAFFOLD/dissolve-on on all HAND-RUST mirrors (WITNESS_ENTRY_ELIGIBILITY_CENSUS_TSV_REL, find/date shell-outs, substring classifier, entry_count=763), count/path parity gated by .dag sync test + Rust tsv_data_row_count_matches_declared_authority, fail-closed failure arms throughout. Substring classifier accepted as tracked interim scaffold (module_graph dissolve-on).

— sent from gentle-raven-495

briansrls and others added 2 commits July 23, 2026 09:06
Merge origin/main (#7107) added a discovery witness entry that CI's
merge ref includes but the committed census omitted. Regenerated TSV
(764 rows) and synced entry_count.

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

gunbai-bot Bot commented Jul 23, 2026

Copy link
Copy Markdown
Contributor Author

Review 41806 (APPROVE): Verified on HEAD 287d7b0c2 — no code changes required. Confirms Lane B substrate: native_agreement loudness, 764-entry single-authority census (.dag + generated TSV), emit-family rejection no longer silent (family_crate_emit_family_rejected_divergence), zero NativeRouted (flips deferred), HAND-RUST/shell scaffolds with dissolve-on, fail-closed legs/count/stamp paths. Post-merge census regen for non_fold_residue_frontier_test.dag (#7107) included in this HEAD.

— sent from gentle-raven-495

@gunbai-bot

gunbai-bot Bot commented Jul 23, 2026

Copy link
Copy Markdown
Contributor Author

Review 41808 (APPROVE): Verified on HEAD 287d7b0c2 — no code changes required. Non-blocking notes acknowledged and already tracked:

  • Substring classifier (census_entry_path_matches_*): INTERIM scaffold with witness_entry_eligibility_census_note + module_graph dissolve-on; new discovery entries defaulting to BulkFlipPendingCensusIncomplete is intentional until bulk-flip (not silent widen).
  • find/date HAND-RUST (collect_witness_entry_closure_paths, chrono_lite_utc_stamp): §7 SCAFFOLD headers + fail-closed stamp (Result, no "unknown" since review 41787 fix).
  • TSV path mirror (WITNESS_ENTRY_ELIGIBILITY_CENSUS_TSV_REL): review 41784 dissolve-on comment present; wired fold deferred to emit-transport dissolution.

Row-count refuse against .dag entry_count=764 and agreement loudness carrier confirmed on this HEAD.

— sent from gentle-raven-495

@gunbai-bot

gunbai-bot Bot commented Jul 23, 2026

Copy link
Copy Markdown
Contributor Author

Review 41815 (APPROVE): Verified on HEAD 2be8815c8c — no code changes required. Spot-check confirms Lane B scope: .dag classification authority (witness_entry_eligibility_census_entry_count = 672, discovery-aligned roster), TSV carrier regen-synced with bidirectional count guards, witness_execution_leg_label panics on missing rows (§5 refuse-not-widen), agreement loudness via *_failure_receipt companions, HAND-RUST scaffolds carry named dissolve-on triggers. Bulk flip correctly deferred.

— sent from gentle-raven-495

@gunbai-bot

gunbai-bot Bot commented Jul 23, 2026

Copy link
Copy Markdown
Contributor Author

Review 41816 (APPROVE): Verified on HEAD 2be8815c8c — no code changes required. Confirms: HAND-RUST headers on emit/leg/stamp transports; .dag↔TSV drift gated both directions (witness_entry_eligibility_census_declared_count_exposed_holds, tsv_data_row_count_matches_declared_authority, emit refuses roster≠authority); witness_execution_leg_label panic path; failure_receipt_companion wired for located divergence detail. Non-blocking nits (path-substring interim classifiers, exhaustive enum arms, nth(6) column indexing) acknowledged — all match current code intent.

— sent from gentle-raven-495

… entries

Regen carrier to 722 rows so pr-native agreement legs (e.g.
emit_on_demand_family_crate_witness_test.dag) have NativeFamilyLeg
TSV rows before witness_execution_leg_label attribution runs.

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

gunbai-bot Bot commented Jul 23, 2026

Copy link
Copy Markdown
Contributor Author

Review 41820 (REQUEST_CHANGES): Valid — fixed in 0d5a84 + 77fa006.

Finding: witness_execution_leg_label panics on TSV miss, but collect_witness_entry_closure_paths applied test/claim/execution/ discovery exclusions, so pr-native agreement entries (e.g. emit_on_demand_family_crate_witness_test.dag) had no TSV row despite .dag authority assigning NativeFamilyLeg{family_crate}.

Fix: census_discovery_exclusion_applies exempts test/claim/execution/ from census roster exclusions (execution grain stays out of hermetic discovery scan but is included in the leg-attribution carrier). Regen TSV to 722 entries; emit_on_demand_family_crate_witness_test.dag now carries NativeFamilyLeg{family_crate}. Re-flip path can reach *_failure_receipt loudness without panicking first.

— sent from gentle-raven-495

@gunbai-bot

gunbai-bot Bot commented Jul 23, 2026

Copy link
Copy Markdown
Contributor Author

Review 41824 (APPROVE): Verified on HEAD 77fa006 — no code changes required. Confirms Lane B substance on current tree: fail-closed leg attribution (TSV panic on miss; agreement *_failure_receipt loudness), .dag classification authority with HAND-RUST scaffolds + dissolve-on markers, 722-entry mechanical roster (incl. execution-grain explicit-roster entries per review 41820), bidirectional count sync guards, zero NativeRouted at landing.

— sent from gentle-raven-495

@gunbai-bot

gunbai-bot Bot commented Jul 23, 2026

Copy link
Copy Markdown
Contributor Author

Review 41825 (APPROVE): Verified on HEAD 77fa006 — no code changes required.

Non-blocking notes acknowledged:

  1. native_agreement_support.dag BuildFailed/RunFailed/Deferred arms — confirmed both sides carry the same sentinel (build_failed/run_failed/deferred); member_id still surfaces. Agree a future NativeAgreementOutcome split (Divergence vs RunFailure vs Deferred) would sharpen §5 clarity; deferred to post–bulk-flip loudness hardening, not blocking Lane B landing.
  2. Path-substring census classifiers — confirmed INTERIM with named dissolve-on toward module_graph Derived Group membership; single .dag authority feeds TSV feeds cli_run leg labels.

— sent from gentle-raven-495

briansrls and others added 2 commits July 23, 2026 11:24
Lane B added a RuntimeValue match with a wildcard arm in
native_agreement.dag; non_fold_residue_no_unrostered_or_stale requires a
FrontierRow with reason + dissolve_on before merge.

Co-authored-by: Cursor <cursoragent@cursor.com>
Move witness_entry_eligibility_census_emit above the silent_pick_crosscheck
SCAFFOLD block with its own dissolve-on comment so the unrelated DISSOLUTION
note stays paired with silent_pick_crosscheck.

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

gunbai-bot Bot commented Jul 23, 2026

Copy link
Copy Markdown
Contributor Author

Review 41834 (APPROVE): Minor finding fixed in 3152d152 — witness_entry_eligibility_census_emit moved above the silent_pick_crosscheck SCAFFOLD/DISSOLUTION block with its own dissolve-on comment so the falsifier-silent-pick note stays attached to silent_pick_crosscheck. chrono_lite_utc_stamp HAND-RUST scaffold acknowledged as acceptable interim.

— sent from gentle-raven-495

@gunbai-bot

gunbai-bot Bot commented Jul 23, 2026

Copy link
Copy Markdown
Contributor Author

Review 41836 (APPROVE): Verified on HEAD 3152d152 — no code changes required. Spot-check confirms: agreement loudness (NativeAgreementDivergence + *_failure_receipt at cli_run.rs:14686+), fail-closed seams (TSV-miss panic, emit count refusal), .dag census authority with HAND-RUST/bash scaffolds + dissolve-on, zero NativeRouted at landing, 722-entry roster incl. execution-grain explicit-roster rows, nfr row for runtime_value_discriminant_octet. PM intent (census+routing+attribution, flips last) matches diff.

— sent from gentle-raven-495

@gunbai-bot

gunbai-bot Bot commented Jul 23, 2026

Copy link
Copy Markdown
Contributor Author

Review 41837 (APPROVE): Verified on HEAD 3152d152 — no code changes required.

Advisory notes acknowledged:

  1. TSV-miss panic sharp edge — intentional §5 fail-closed; new *_test.dag without TSV regen hard-panics discovery (dissolve-on: construction-side leg derivation). Documented behavior, not blocking.
  2. runtime_value_discriminant_octet wildcard — confirmed enrolled in non_fold_residue.dag with nfr_dissolve_native_agreement_octet; tracked residue, not silent debt.

Lane B loudness + census authority + scaffolds match stated scope.

— sent from gentle-raven-495

briansrls and others added 2 commits July 23, 2026 12:14
…857)

Discovery exclusions must not shrink the leg-attribution TSV — long-lane
and other explicit-roster entries still run on the floor and need rows.
Generalizes review 41820 execution-grain fix to the full roster.

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

gunbai-bot Bot commented Jul 23, 2026

Copy link
Copy Markdown
Contributor Author

Review 41846 (APPROVE): Verified on HEAD c65fc5f408 — no code changes required. Confirms Lane B substance: .dag census authority (857-entry full witness_layer_roots roster, discovery exclusions do not shrink carrier), fail-closed loudness (*_failure_receipt companions), HAND-RUST/bash scaffolds with dissolve-on + TSV sync gates, nfr row for runtime_value_discriminant_octet, zero NativeRouted at landing (flips last).

— sent from gentle-raven-495

@gunbai-bot

gunbai-bot Bot commented Jul 23, 2026

Copy link
Copy Markdown
Contributor Author

Review 41847 (APPROVE): Valid finding fixed in latest commit — run_claim_failure_receipt no longer maps Err/non-Str to silent None; it returns failure_receipt_refused: … sentinels appended to the failure line. Empty string remains the clean companion (no divergence detail). Non-blocking notes (runtime_value_discriminant_octet nfr row, interim path-substring classifier) acknowledged as tracked scaffold debt.

— sent from gentle-raven-495

run_claim_failure_receipt now returns typed refusal sentinels for
interpreter errors and non-String results instead of swallowing them
into bare Bool(false) lines (§5 absorbing-fallback inside loudness path).

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

gunbai-bot Bot commented Jul 23, 2026

Copy link
Copy Markdown
Contributor Author

Review 41853 (APPROVE): Verified on HEAD fc7ba642 — no code changes required. Confirms scaffold discipline (dissolve-on on path classifier, TSV path mirror, chrono_lite_utc_stamp, nfr row for runtime_value_discriminant_octet), fail-closed seams (failure_receipt_refused sentinels, TSV-miss panic, count sync guards), 857-entry census carrier, Lane B loudness wired. Honest debt on-carrier.

— sent from gentle-raven-495

@gunbai-bot

gunbai-bot Bot commented Jul 23, 2026

Copy link
Copy Markdown
Contributor Author

Review 41856 (APPROVE): Verified on HEAD fc7ba642 — no code changes required. Confirms Lane B landing: agreement loudness (NativeAgreementDivergence + *_failure_receipt), 857-entry census single-authority with fail-closed emit/leg/count guards, zero NativeRouted at landing, ledger_projection plan sync only.

— sent from gentle-raven-495

witness_execution_leg_label projects row.entry through repo_relative_dag_path
before TSV lookup so floor_skip_discovery_witness and other callers passing
absolute paths do not panic on missing rows.

Co-authored-by: Cursor <cursoragent@cursor.com>
@briansrls
briansrls force-pushed the session/gentle-raven-495-lane-b-substance branch from cb83d6d to c696c70 Compare July 23, 2026 13:42
@gunbai-bot

gunbai-bot Bot commented Jul 23, 2026

Copy link
Copy Markdown
Contributor Author

Review 41878 (APPROVE): Verified on HEAD d587eb2c0 — no code changes required. Spot-check confirms: fail-closed loudness (failure_receipt_refused sentinels + *_failure_receipt companions), .dag census authority with HAND-RUST/bash scaffolds, zero NativeRouted at landing, TSV-miss panic with repo_relative_dag_path normalization, 857-entry carrier. Lane B scope matches diff.

— sent from gentle-raven-495

Import all InterpretedRetainedReason and EmitIneligibleCause variants
used by census_reason_column_for_entry so the module import list matches
the exhaustive match. Tighten chrono_lite_utc_stamp dissolve-on target.

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

gunbai-bot Bot commented Jul 23, 2026

Copy link
Copy Markdown
Contributor Author

Review 41879 (APPROVE):

  1. census_reason_column_for_entry variant imports — confirmed variants resolve via InterpretedRetainedReason / EmitIneligibleCause (not latent unbound ids); import list now names every arm the exhaustive match uses (commit on HEAD).

  2. chrono_lite_utc_stamp — HAND-RUST scaffold acknowledged; dissolve-on comment narrowed to v2.std.host_clock (or equivalent host intrinsic).

  3. entry_count = 857 three-way sync — intentional fail-closed: .dag constant ↔ emit walk ↔ TSV guarded by tsv_data_row_count_matches_declared_authority + emit refusal on mismatch; emit recomputes row count from walk and refuses when ≠ authority (construction backstop until pure .dag fold dissolves HAND-RUST emit).

— sent from gentle-raven-495

@gunbai-bot

gunbai-bot Bot commented Jul 23, 2026

Copy link
Copy Markdown
Contributor Author

Review 41882 (APPROVE): Verified on HEAD e989bc56cd — no code changes required. Confirms Lane B substance: agreement loudness + failure_receipt_refused wiring, .dag census authority (857-entry carrier), fail-closed seams (TSV-miss panic with path normalization, emit/count sync), zero NativeRouted at landing, scaffold discipline intact.

— sent from gentle-raven-495

@gunbai-bot

gunbai-bot Bot commented Jul 23, 2026

Copy link
Copy Markdown
Contributor Author

Review 41884 (APPROVE):

  1. octet_display "?" collapse — valid loudness gap. Fixed on HEAD 72a5f71: non-0/1 bytes now render via integer_nat_to_decimal_string (e.g. 2 → "2"); "?" is reserved for the Absent path in runtime_value_octet_label only. Witness: native_agreement_octet_display_names_raw_byte_holds.

  2. chrono_lite_utc_stamp HAND-RUST date shell — acknowledged; already SCAFFOLD with v2.std.host_clock dissolve-on (narrowed in review 41879). No change.

  3. census_entry_path_contains substring classifier — acknowledged INTERIM; dissolve-on to module_graph Derived Group membership is named on-carrier. No change.

— sent from gentle-raven-495

@gunbai-bot

gunbai-bot Bot commented Jul 23, 2026

Copy link
Copy Markdown
Contributor Author

Review 41889 (APPROVE): Verified on HEAD 72a5f71 — no code changes required. Confirms: interim path-substring census classifier is INTERIM with named dissolve-on (module_graph Derived Group membership); classification authority stays in .dag with HAND-RUST/shell transports marked SCAFFOLD; ledger_projection milestone update is plan-doc sync with main (family_row_disposition from known_red_probe_entries), not semantic dilution. Lane B scope matches diff.

Review 41891 (APPROVE): Verified on HEAD 72a5f71 — no code changes required. Spot-check confirms cleared items: runtime_value_discriminant_octet wildcard enrolled in non_fold_residue.dag (nfr_reason_native_agreement_octet / nfr_dissolve_native_agreement_octet); path-grain classifier INTERIM with dissolve-on on-carrier; census_reason_column_for_entry exhaustive over InterpretedRetainedReason + EmitIneligibleCause; native_agreement_failure_receipt empty string is clean-list case (invoked only on Bool(false) witnesses); witness_entry_eligibility_census_emit transport has carrier_path_dissolve_on; octet_display prints raw decimal for non-0/1 bytes (review 41884 fix on HEAD).

— sent from gentle-raven-495

@briansrls
briansrls merged commit a9da5e0 into main Jul 23, 2026
5 of 6 checks passed
@briansrls
briansrls deleted the session/gentle-raven-495-lane-b-substance branch July 23, 2026 15:38
briansrls added a commit that referenced this pull request Jul 23, 2026
My PR added ~12 witness test entries; main's witness_entry_eligibility_census
(#7111) fail-closes the floor when a witness entry has no census TSV row
(panic at cli_run.rs:8508). Bumped the declared count 864->876, regenerated
the census TSV + histogram, updated the count assertion. Sync + count witnesses
green by execution; the previously-panicking argv_command_render entry is now
present.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
briansrls added a commit that referenced this pull request Jul 23, 2026
…eanup (#7027)

* fix(srv3): DirectLayout on-ISO autoinstall + os-install reconcile spine (T3/T4)

Rebased onto main: StoragePolicyDirectLayout on seeded ISO autoinstall,
split reconcile modules (core/types/receipt/apply/dry_run/record_approval),
honest freeze scope and printf receipt echo, fail-closed observed_at parse,
ServeReady virtual-media session match, and review-driven witness coverage.

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

* fix(srv3): observe script bash syntax — drop stray HTTP_CODE= before if

Serve receipt echo was concatenated into curl_tail as HTTP_CODE=if test…,
breaking live reconcile observe on srv1. Witness guards the regression.

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

* fix(srv3): observe script curl HTTP_CODE — remove extra closing paren

$(curl … || echo 000) had a stray ) breaking bash on live srv1 observe.

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

* docs(srv4): BMC onboarding gap analysis — srv3-hardcoded plan + gcloud not provisioned

srv4 racked, BMC at FactoryDefault (403 PasswordChangeRequired). The rotation
workflow (bmc_converge_credential_idempotent, wired into host_standup_spine) is
fully modeled and fail-closed, but bottoms out on the srv3-hardcoded
new_altra_onboarding_plan and assumes gcloud is present. Documents 4 gaps
(G1 per-host parameterization [dispositive], G2 gcloud self-provision, G3
operator-token handler, G4 srv4 identity rows) for review before modeling.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

* feat(srv4): close BMC onboarding gaps — per-host plan, gcloud self-provision, operator-token handler, srv4 identity

Full close of the four gaps from the analysis doc (PR #7027), so BMC onboarding
is hands-off per-host instead of srv3-hardcoded:

G1 — per-host parameterization: altra_onboarding_plan(bmc_host, secret_name)
  constructor + srv3_onboarding_plan / srv4_onboarding_plan rows replace the
  srv3-literal new_altra_onboarding_plan. Threaded `plan` through every
  bmc_onboard func; de-nicknamed srv3_gcp_project -> bmc_secrets_gcp_project
  (fleet-wide). Zero-arg per-host entries srv3_converge_credential /
  srv4_converge_credential are what the standup decl_ref + executor invoke.

G2 — gcloud self-provision: modeled gcloud_cli_tool (extdeps/tools/gcloud.dag)
  + package_google_cloud_cli, and bmc_credential_actuator_toolchain_requirement
  (curl + gcloud) mirroring the OS-install toolchain-ensure.

G3 — token de-fork: gunbc.auth.access_token_source with
  AccessTokenSource = GcloudPrintToken | OperatorSuppliedToken{token} and
  resolve_access_token, so an operator-supplied token is a first-class handler
  (drives rotation with no gcloud on the actuator).

G4 — srv4 identity: operator_host_srv4 + srv4_bmc_endpoint (.195) in
  fleet_intent_network.

Verified: full-corpus typecheck clean (850 modules, 0 errors) + 11 witnesses
green by execution across every touched module, incl. a new discriminating
srv4_plan_targets_195_with_srv4_secret and the updated endpoint-count witness.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

* fix(bmc): mint OpenBMC-policy-compliant credential (found by live srv3/srv4 rotation)

First live execution of the rotation flow (srv3's was never run green) surfaced
that mint_bmc_credential's base64 octets are rejected by OpenBMC password
validation (PropertyValueFormatError). A firmware-policy divergence also showed:
srv4 (newer OpenBMC) accepts alphanumeric, but srv3 (OpenBMC 2.07.00, pwquality,
MinPasswordLength 9 / MaxPasswordLength 20) requires a 4th character class.

Fix: Urandom.ReadPassword — composition-guaranteed generator (>=1 upper/lower/
digit/special from the shell/JSON/basic-auth-safe set _.@#%-); mint_bmc_credential
mints a 16-char such password (within 9-20, accepted by both firmwares). The
fail-closed read-back gate correctly aborted every base64/alnum attempt before
rotating, so no lockout. Both srv3 (secret bmc-srv3-admin v6) and srv4 (v2) are
now live-rotated off factory 0penBmc; orphaned pre-rotation versions destroyed.

Full-corpus typecheck clean (850 modules, 0 errors) + witnesses green.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

* feat(access): model fleet SSH access — operator + automation public keys (durable in repo)

SSH-who, the third principal facet alongside POSIX-who (fleet_posix_accounts)
and GCP-who (fleet_operator_gcp_iam_member):

- extdeps/access/ssh.dag: SshPublicKey type + authorized_keys line renderer.
- gunbc/fleet_ssh_access.dag: operator MacBook key (global break-glass, logs in
  as briansrls) + fleet-automation key (machine access). Both PUBLIC keys grounded
  in the repo (public keys aren't secret). fleet_authorized_keys = both, applied
  to every host by breadth.
- fleet_automation_ssh_privkey_secret → SecretRef to Secret Manager
  'fleet-automation-ssh-key' (project gunbai-secrets, v1). The private key's only
  copy lives there; generated 2026-07-21, local copy shredded.
- keys/fleet-ssh-public-keys.txt: plain-text backup of both public keys.

FOLLOW-UP: fleet-automation-ssh-key has no secret-level IAM binding yet (project-
scoped access). Lock to a dedicated automation SA with secretAccessor, mirroring
bmc-assimilator on bmc-srv*-admin.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

* fix(bmc): remove fabricated-fallback in onboarding_secret_id (§5 fail-closed)

onboarding_secret_id matched plan.rotated_credential and, on the Chained arm,
fabricated a secret id (plan.bmc.host; pre-existing code fabricated a literal) —
a §5 "fabricated plausible output" fallback. Construction-first fix: narrow the
plan field from rotated_credential: CredentialFlow to secret_name: NonEmptyStr,
so the Chained state is unwritable and the function is total (plan.secret_name,
no match, no fallback). Dropped now-unused std.credentials imports.

Verified by execution: srv3/srv4 plan witnesses (now assert secret_name directly)
+ bmc_onboard load, all green. rotated_credential/Chained gone from the corpus.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

* feat(access): dedicated fleet-automation SA scoped to the SSH private key

Created service account fleet-automation@gunbai-secrets (least-privilege:
secretAccessor on fleet-automation-ssh-key only, mirroring bmc-assimilator's
scoping). Grounded in the model: fleet_automation_sa_email + SecretOwner record
tying the SA to the private-key secret, so "who owns the private key" is answered
in the repo, not just in GCP. Binding applied out-of-band (provenance recorded);
full WIF SecretAccessGrant modeling is follow-up.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

* feat(access): bake fleet SSH keys into autoinstall, disable password SSH

Wire the access model into the OS install: UbuntuAutoinstallPayload gains
ssh_authorized_keys (List<SshPublicKey>) + ssh_password_auth; os_install_emit
renders the subiquity ssh section with authorized-keys (operator + automation
public keys) and allow-pw. srv3 payloads set fleet_authorized_keys + allow-pw
false — installed hosts trust the fleet keys and refuse password SSH.

Verified by execution: srv3_os_install_emit witnesses green, incl. a new
discriminating one asserting both key lines present + "allow-pw: false".

Note: identity.password still carries the bootstrap hash; per-host strong
console break-glass credential is part of Step B (per-host install identity).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

* feat(srv4): autoinstall payload + seeded-ISO rows (Step B)

srv4 host identity baked at install time: srv4_autoinstall_identity (hostname
srv4, console break-glass hash; plaintext in Secret Manager host-srv4-console)
+ srv4_ubuntu_autoinstall_on_iso (NoCloudLocal, DirectLayout, fleet SSH keys,
allow-pw false). srv4 seeded-media artifact rows + srv4_seeded_install_media_remaster
mirror srv3, driven by the same install_media_remaster_script builder.

Dry-run verified (typechecks, script generates, ExitSuccess).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

* feat(uefi): model UEFI Shell + boot-config solver (dissolve manual UEFI GUI step)

The manual "enter UEFI setup, enable PXE / set boot" GUI step becomes a grounded,
solvable model:
- extdeps/firmware/uefi_shell.dag: UEFI Shell command surface (bcfg boot
  dump/add/mv/rm, map, reset) cited to the UEFI Shell 2.2 spec, with a renderer
  to the real command text + a script folder.
- gunbc/uefi_boot_config.dag: DesiredBootSource (install media | PXE entry) ->
  bcfg command sequence — the UEFI-shell realization of the same "what to boot"
  intent the Redfish BootSourceOverride path already models (§2, one intent / two
  realizations). srv4_uefi_install_boot targets fs0:\EFI\BOOT\BOOTAA64.EFI.

Verified by execution: witnesses assert the exact bcfg sequence for install-media
boot and for PXE-entry reorder.

Next: SOL send transport (extend serial_console, currently capture-only) to drive
these over obmc-console into srv4's UEFI shell.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

* feat(uefi/sol): SOL send transport + drive UEFI-shell boot-config over IPMI SOL

Confirmed live first (operator's caution): the ASRock ALTRAD8UD OpenBMC 2.07.00
supports IPMI SOL (ipmitool -I lanplus sol info → Enabled, ADMINISTRATOR, port
623). That capability was unmodeled — grounded it now: BmcCapability gains
CapabilitySerialConsole, added to the 2.07.00 list with a live-probe provenance row.

Transport: extdeps.bmc.serial_console gains SolConsoleTransport::IpmiSol +
SolConsoleSendIntent + sol_console_send_script (ipmitool sol activate with piped
input via IPMI_PASSWORD -E; obmc-console send arm too; RedfishSerialInterface send
fail-closed as read-only).

Runner: gunbc.uefi_shell_over_sol turns the solved bcfg sequence into serial input
(\r-submitted) and a SOL send script; srv4_uefi_boot_config_sol_send_intent targets
.195. So the manual UEFI GUI step is now: solve DesiredBootSource → bcfg → drive
over SOL, fully executable.

Verified by execution: witnesses assert the srv4 send carries the bcfg sequence,
the script uses ipmitool sol activate, and the ASRock 2.07.00 row declares the
serial-console capability.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

* fix(sol): IpmiSol exhaustiveness in srv3_sol_console_capture witness

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

* feat(uefi): model the UEFI Shell command surface + observable environment

Back up and ground the real shell interaction (not ad-hoc poking):
- Command surface expanded: connect -r (ConnectRecursive), devices (ListDevices),
  ifconfig (list / set dhcp / set static) alongside bcfg/map/reset — the commands
  actually used driving srv4 over SOL, cited to the UEFI Shell 2.2 spec.
- Observable environment types: UefiNetworkInterface (+ UefiMediaState), UefiBootOption,
  UefiDeviceMapping, UefiShellEnvironment — so the interaction is observe->decide->act.
- gunbc.srv4_uefi_observed: srv4's ACTUAL environment captured live over SOL 2026-07-21
  (map -r, bcfg boot dump -v, ifconfig -l): NVMe with Windows Boot Manager + EFI Shell,
  eth0/eth2 media present (eth0 link-local 169.254.0.18), eth1/eth3 disconnected.

Finding that motivated this: UEFI network stack is ALREADY up in srv4's shell (eth0 has
media) — PXE-enable via GUI is unnecessary; ifconfig -s eth0 dhcp reaches the network
directly. Windows-on-disk confirmed (operator OK'd wipe).

Verified by execution: new commands render, srv4 observed env asserts eth0-has-link +
Windows-present.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

* feat(uefi): boot-install decision/diagnostic model (observe→diagnose→decide→act)

Generalize the "we're at a UEFI shell, now what?" case into a goal-directed
decision procedure over the observed environment:

- DesiredOutcome = InstalledFleetNode (the goal: wipe + unattended Ubuntu).
- diagnose_boot_install(env) -> BootInstallSituation: pure read of the observed
  UefiShellEnvironment → InstallMediaReady | NetworkReady | NetworkUpNeedsDhcp |
  NoBootSourceAvailable. Fail-closed: no media + no link says so, never pretends.
- decide_boot_install(situation, goal) -> BootInstallAction: goal-directed; refusal
  is a first-class outcome (RefuseNoSource), not a silent no-op.
- boot_install_commands(action) -> List<UefiShellCommand>?: Absent for a refusal —
  a caller cannot extract a "do nothing" sequence and mistake it for progress.

Grounded on srv4's real observed env: diagnoses NetworkUpNeedsDhcp{eth0} (media up,
link-local) → DhcpThenNetworkBoot → ifconfig -s eth0 dhcp. Discriminating fail-closed
control witness: no-media/no-link env → RefuseNoSource → Absent commands.

Verified by execution.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

* feat(bmc): model self-contained BMC netboot serve (no runtime central server)

Answering "why srv1?" — it isn't needed at runtime. Model the BMC as the netboot
host: gunbc.bmc_netboot_serve.BmcNetbootServePlan + srv4 instance.
- bmc_netboot_serve_command: busybox httpd -f -p 8080 -h /tmp/netboot (the BMC
  hosts the ~88MB bootstrap: kernel/initrd/grub + a staged static busybox).
- bmc_netboot_grub_cfg: boots /vmlinuz + /initrd with url= at the Ubuntu MIRROR
  (host streams the ~1.5GB bulk directly, never on the BMC) and ds=nocloud-net;s=
  at the BMC's own seed dir.
- bmc_netboot_nocloud_user_data: the served seed = autoinstall_user_data(srv4
  payload) — carries fleet SSH keys + allow-pw:false, same emit as the on-ISO path.

So provisioning is BMC + internet: no central serve host at runtime; srv1's only
role is one-time (cacheable) extraction of the 88MB bootstrap from the ISO.
Scaffold-marked (medium-as-string ssh/httpd glue) like nbd_proxy_serve.

Verified by execution: grub.cfg targets mirror-bulk + BMC-seed, serve cmd is
busybox httpd, served seed carries the fleet keys.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

* refactor(bmc/netboot): model components structurally in extdeps (no concat blobs)

Per operator direction — model each piece appropriately in extdeps first, legibly,
instead of hand-built concat strings:

- extdeps/firmware/kernel_cmdline.dag: KernelCmdlineArg = KernelFlag | KernelKeyValue;
  kernel_cmdline_render via join/map (cited to kernel-parameters.rst).
- extdeps/bootloader/grub.dag: GrubConfig / GrubMenuEntry (structured), grub_config_render
  via join — replaces the string-blob grub cmdline pattern (cited to the GRUB manual).
- extdeps/tools/busybox.dag: busybox CliTool + service busybox.Httpd.Serve with
  structured argv transport (the idiomatic form, like curl.Http).
- extdeps/firmware/uefi_http_boot.dag: UefiHttpBootEntry + provisioning variants
  (cited to UEFI 2.10 HTTP Boot).

gunbc.bmc_netboot_serve recomposed to build a GrubConfig + UefiHttpBootEntry from the
plan (no bespoke concat); grub.cfg, http-boot target, and BMC-served nocloud seed all
derive from structured values. Bulk from the Ubuntu mirror, seed from the BMC.

Verified by execution: grub.cfg renders the full structured cmdline, http-boot entry
targets the BMC url, served seed carries the fleet keys.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

* feat(bmc/netboot): model BMC ssh transport + structured staging manifest

- extdeps/bmc/ssh.dag: service bmc.Ssh (ExecScript + PutFile) over sshpass -e
  (password via SSHPASS env, never argv) — structured argv, mirrors curl.Http.
- gunbc.bmc_netboot_serve: staging modeled as a structured manifest
  (BmcStagedFile / StagedContentSource = InlineText | LocalArtifact | FetchFromUri):
  busybox+kernel+initrd+grub as LocalArtifact, the rendered grub.cfg + nocloud
  user-data/meta-data as InlineText. Separates WHAT must be on the BMC from HOW
  it gets there.

Verified: manifest stages the rendered grub.cfg (ds=nocloud-net) and the seed
(fleet keys) inline, 7 files.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

* feat(exec): transport seam — one command, N transports (§3, no forked blobs)

extdeps/exec/command.dag: ShellCommand { argv } + CommandTransport = LocalShell |
SshExec { ssh_target }; command_over_transport wraps a command's argv with the
transport prefix; shell_command_render joins to a string. One operation, chosen
transport — not a per-site command blob.

- busybox: service busybox.Httpd removed in favor of busybox_httpd_command ->
  ShellCommand (single authority for the command shape; runs local OR over BMC-ssh
  via the seam, no dual representation).
- bmc.Ssh: ExecScript removed (superseded by SshExec transport); PutFile kept for
  file transfer.
- bmc_netboot_serve: the serve command is busybox_httpd_command over bmc_transport
  (SshExec root@bmc); local and BMC renderings both derive from it.

Discriminating witness serve_command_one_shape_two_transports: the same command
renders "busybox httpd -p 8080 -h /tmp/netboot" locally and the sshpass-wrapped
form over the BMC transport.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

* feat(bmc/netboot): orchestration provision func (realize via the seam)

bmc_netboot_provision: sequences the staged manifest + serve — mkdir + serve go
through the extdeps.exec.command seam (bmc_netboot_run_bmc), artifacts via
bmc.Ssh.PutFile, rendered grub.cfg/seed via Filesystem.Write then PutFile.
process_exit_first_failure collects the first failure (no fabricated success).
srv4_bmc_netboot_provision is the zero-arg entry. bmc.Ssh.PutFile gains a
mock_response for hermetic dry-run. Marked realization scaffold.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

* fix(bmc/netboot): httpd command uses the staged busybox binary (found by live run)

Live provision revealed the serve invoked the BMC's system busybox (no httpd
applet) instead of our staged static busybox. busybox_httpd_command now takes
busybox_bin; bmc_netboot_serve_command_local passes the staged path
(/tmp/netboot/busybox). Witness updated to the staged-path rendering.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

* feat(bmc/netboot): model the busybox cross-build (reproducible, not manual)

- extdeps/exec/command: shell_command_render now shell-quotes each arg (handles
  args with spaces like EXTRA_CFLAGS="-march=... -mfloat-abi=..."), robustness fix.
- gunbc/command_runner: run_shell_command / run_shell_commands — generic sequential
  runner over the seam with short-circuit (fold-with-effects, verified).
- extdeps/tools/busybox: busybox_source_1_36_1_url; apt package_gcc_arm_linux_gnueabi.
- gunbc/busybox_bmc_build: BusyboxCrossBuildPlan + busybox_build_commands (fetch →
  extract → defconfig → enable static → disable TC → cross-compile armv5te soft-float
  → install artifact) + busybox_bmc_build_run.

Solves the BMC-httpd wall found live: the AST2500 (armv6, no VFP) SIGILLs on prebuilt
busybox httpd; our conservative-flags build runs clean (verified: httpd serves HTTP 200
on the BMC). busybox_bmc_build_run regenerated the artifact from source end-to-end.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

* fix(bmc/netboot): srv4 boot NIC is eth2 (leases DHCP), not eth0 (found live)

eth0 has media but its UEFI DHCP falls back to link-local; eth2 leases 192.168.1.196
on the LAN segment with the BMC. Plan boot_interface + witness updated.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

* srv4 fleet subsumption + BMC virtual-media install path + modeling cleanup

Subsume srv4 into the fleet and get it onto GitHub Actions runners, plus the
supporting install-path modeling and several dissolved shell/§3 forks found
along the way.

Fleet membership (srv4):
- srv4_host + samsung_970_evo_500gb_catalog (its actual drive, cited), LAN
  endpoint 192.168.1.196, srv4_offer, deployed_intent_v1_srv4. Placement solver
  now allocates srv4 runner slots (fleet_concurrent_runs 30->40).

Runner deploy (the width-INCREASE gap, now modeled):
- runner_host_deploy.dag: RunnerHostDeploy intent citing the ctrl installer
  (install-actions-runner.sh) as the bound realization handler (§3 cite-upstream,
  not re-coined). Renders the CTRL_RUNNER_* invocation, the App-key SecretRef,
  and the actions-runner@srv4-NN enables. srv4: user briansrls, 5 slots
  (disk-cap note for the 500GB NVMe vs 2TB fleet).

Execution-surface honesty + toolchain provisioning (§5 model-reality gap):
- fleet_intent_execution_surface no longer lies: container_runtime Present{Docker}
  + toolchains [sccache] instead of none/[].
- extdeps/cache/sccache.dag: SccacheBinaryRelease (pinned v0.15.0 + per-arch
  sha256, cited to mozilla/sccache/releases) + install script.
- extdeps/container/docker_ce.dag: DockerCeAptRepo + packages + rootless-docker
  apt prereq install, cited to docs.docker.com.

BMC virtual-media install path (used to install srv4 end-to-end):
- extdeps/storage/nbd.dag, extdeps/linux/usb_gadget.dag (typed ConfigfsOp list,
  not scattered concats), gunbc/bmc_virtual_media.dag: nbd-server -> nbd-client
  -> configfs mass_storage USB gadget. Unified under extdeps/bmc/virtual_media.dag
  VirtualMediaIntent with the existing nbd-proxy-websocat path (§3 fork dissolved).
- extdeps/firmware/uefi_shell.dag + gunbc/bmc_netboot_shell_boot.dag: shell-native
  tftp/execute boot modeling.

Install bugfixes (root-caused live, captured in the model + witnesses):
- grub.dag: quote kernel cmdline args containing ';' (grub command separator) —
  ds=nocloud;s=... was truncated at ';', dropping the seedfrom, so autoinstall
  fell to interactive. grub_cmdline_arg_render + the seeded-media builders quote it.
- ubuntu_seeded_install_media_remaster.dag: xorriso -boot_image any replay (was
  mkisofs, which destroyed the arm64 El Torito/ESP boot structure); instance-id
  derived from hostname (was hardcoded srv3).

All new modeling lands with witnesses (green) and dissolution markers on the
shell-as-string leaves.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

* plans: fleet subsumption manual-gaps receipt (srv4 hand-steps -> modeling backlog)

Modeled plan doc capturing every step of srv4 install+subsumption that was done
by hand — each a modeling gap. Two families: (A) credential handling (every temp
credential file = a missing MaterializedSecret lifecycle; reach-secrets ADC;
SecretRef liveness after the stale App-key 401) and (B) provisioning (runner SLOT
provisioning = the width-INCREASE gap fleet-converge.sh already names, documented
in full: pinned ActionsRunnerRelease + per-slot dir seed + count reconcile, all
hand-unrolled this time; fleet runner-user; fresh-host prereqs; configfs
virtual-media install actuator + media-detach lifecycle). Each item carries
acceptance tier + RED control; the plan's dissolution trigger retires item-by-item,
fully gone when srv5 subsumes with zero hand-run shell.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

* WIP: srv4 pr

* WIP: srv4 pr

* WIP: srv4 pr

* WIP: srv4 pr

* WIP: srv4 pr

* WIP: srv4 pr

* WIP: srv4 pr

* review 41721: shell_quote escapes embedded apostrophes (witnessed); IPv4 link-local/removable-media classifiers grounded on extdeps.firmware.uefi_shell rows (prefix test, cited tokens, dissolve-on to parsed device-path); bmc_netboot_provision folds the staging manifest (single authority; hand-unrolled sequence deleted; FetchFromUri refuses typed)

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>

* plans: fold srv4 host-convergence OOM receipt into the manual-gaps doc

Section C added: the 2026-07-23 follow-on where srv4 OOM-killed live PR CI.
Sharper framing than the install-time hand-steps — this is an ENROLLMENT
failure: srv4 is not a member of the modeled fleet (fleet_intent declares
srv1/2/3 only), so the converge derivation cannot name it; the runner
installer hand-pointed at srv4 made it a member in GitHub's eyes and a ghost
in the model. Records: (1) model-without-actuator + emit-unprovable
(KnobUnimplemented refusal AND fleet_converge_emit at 104 compile errors, so
converge can neither apply nor emit today) — the displaced-cost pricing for
2-converge-reland; (2) the interim actuation receipt (swap 8->127G, per-slot
MemoryMax/SwapMax inf->16G/32G derived-equal on identical 125GiB RAM, oomd
installed+active, reclaim timer active — each interim, dissolution =
enrollment + converge lane); (3) the three fixes it prices — actuation lane,
SwapDevice modeled axis, and the enrollment wall as construction (installer
refuses on a host absent from fleet_intent). Canonical host-state rows stay on
the operator sheet (1a lane); this doc is the incident receipt.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

* WIP: srv4 pr

* WIP: srv4 pr

* WIP: srv4 pr

* crypto.hash: single-variant coproduct via leading-pipe form; verify-line rendering re-homed beside the Digest authority

type HashAlgorithm = Sha256 parsed as a type ALIAS to a nonexistent type
(the grammar's single-name RHS form), so no Sha256 variant constructor
existed and the sccache digest witness failed at runtime with 'undefined
variable: Sha256'. The leading-pipe form selects the coproduct parse path
explicitly. digest_shell_verify_line moves into extdeps.crypto.hash so the
match over HashAlgorithm lives beside its authority; sccache.dag consumes it
with the file path as a parameter.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>

* WIP: srv4 pr

* Regenerate DESIGN.md + fleet-converge.sh from .dag authorities (drift gate fix)

CI generated_artifact_drift_gate_passes was red on 05c6a3b from two
latent drifts, both now regenerated from their authorities via main_wet:

- DESIGN.md: the srv4 open-threads bullet was hand-added to the projection
  but not to design_document.dag (its authority). Added as an li() row there;
  DESIGN.md regenerated to match. docs/plans/srv4-bmc-onboarding-gap.md is a
  genuinely new file needing a reference, so the bullet stays — just homed in
  the .dag single authority, not the generated .md.
- .github/fleet-converge.sh: srv4 fleet enrollment updated the
  FleetConvergeArtifact authority; the committed script lacked the
  'gunbc converge --host srv4' line. Regenerated.

Verified: generated_artifact_drift_gate_passes returns true (exit 0).

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>

* WIP: srv4 pr

* De-fork BMC scp transport onto the single ssh/scp posture authority (review 41797)

bmc/ssh.dag (new in this PR) re-minted the sshpass -e + StrictHostKeyChecking=no
+ UserKnownHostsFile=/dev/null posture that extdeps.exec.command establishes as
the single authority — a §3 parallel representation in the same PR that adds the
unified transport seam. Fixed by construction, not a second copy:

- command.dag: extract sshpass_prefix() and ssh_host_key_override_opts() shared
  helpers; ssh_exec_prefix now composes them; add scp_command(local, remote)
  that reuses the SAME two helpers (scp is a distinct binary with the host in
  remote_target, so it cannot compose through command_over_transport's ssh
  prefix — but it shares the posture authority).
- bmc_netboot_serve.dag: bmc_netboot_put_path renders scp_command via the same
  shell.Exec.Run + shell_command_render path as bmc_netboot_run_bmc; the
  extdeps.bmc.ssh import and the whole bmc.Ssh service are deleted.
- Two discriminating witnesses: scp render carries the exact shared posture argv;
  red control asserts no second/forked posture. All bmc_netboot_serve witnesses
  PASS; gate-equivalent compile has zero hard diagnostics.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>

* De-fork BMC scp: trigger-text + discriminating witnesses (review 41797)

Completes the scp de-fork commit: dissolution trigger now names scp_command
(the single ssh/scp posture authority) instead of the deleted bmc.Ssh.PutFile,
and adds two witnesses proving the scp path carries the shared posture argv and
never a second/forked one. All bmc_netboot_serve witnesses PASS.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>

* WIP: srv4 pr

* WIP: srv4 pr

* WIP: srv4 pr

* WIP: srv4 pr

* WIP: srv4 pr

* Accept #7121 deletion of .github/fleet-converge.sh (paper transport retired; FleetConvergeArtifact deregistered)

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

* WIP: srv4 pr

* Regen ci.yml: drop fleet-converge.sh from auto-heal add-list (deregistered in #7121)

The generated ci.yml auto-heal git-add list is derived from the artifact
registry; #7121 removed FleetConvergeArtifact, so the regenerated list no
longer names .github/fleet-converge.sh. Fixes generated_artifact_drift_gate.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

* WIP: srv4 pr

* Regen ROADMAP.md: restore main's ts-ui-model row + drop trailing blank line (serializer drift)

A bad merge had reverted main's belt-B roadmap row from roadmap_authority.dag;
restored from main. Regenerating with a fresh seed also drops a trailing blank
line the current markdown serializer no longer emits (main's committed copy is
stale, kept green there by the auto-heal job). Fixes generated_artifact_drift_gate.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

* Merge main + regen artifacts with new-emitter seed (drop ROADMAP.md trailing line)

Branch was behind main's v1_compiler_emit_rust.rs (Lane D #7098); merged main
and rebuilt the seed. Emitted-Rust artifacts now match; ROADMAP.md re-regenerated
without main's stale trailing blank line. Fixes generated_artifact_drift_gate.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

* WIP: srv4 pr

* Enroll srv4 witnesses in the eligibility census (864 -> 876)

My PR added ~12 witness test entries; main's witness_entry_eligibility_census
(#7111) fail-closes the floor when a witness entry has no census TSV row
(panic at cli_run.rs:8508). Bumped the declared count 864->876, regenerated
the census TSV + histogram, updated the count assertion. Sync + count witnesses
green by execution; the previously-panicking argv_command_render entry is now
present.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

* Merge main (#7110) + regen census TSV to match merged roster

Kept branch current with main's witness/census churn; regenerated the eligibility
census TSV+histogram so committed == emit(merged roster) (876 entries, emit's
internal roster==count check green). Generated-artifact drift clean.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

---------

Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Brian Searls <briansearls1@gmail.com>
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.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