Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
0f4f151
CI2-0 capsule 1: floor job derives GUNBC_NATIVE_CACHE_ROOT; native-bu…
Aug 8, 2026
45f88ed
CI2-0 capsule 1 fixups: exempt the plural derive step below the cost …
Aug 8, 2026
c6849a1
CI-0: delete the counted interpreter fallback — native is authoritati…
Aug 8, 2026
4fb46a6
CI-0 commit 3: WitnessExecutionClass — classify the enrolled roster e…
Aug 8, 2026
37393f4
Merge remote-tracking branch 'origin/main' into session/valiant-boar-65
Aug 8, 2026
5277857
regen ci.yml + falsifier.yml at merged head (heal HealAuthorCommitReq…
Aug 8, 2026
88617da
CI-0 commit 3 receipt: enrolled-roster census — 3/8,828 emitter-carri…
Aug 8, 2026
de473d8
Merge remote-tracking branch 'origin/main' into session/valiant-boar-65
Aug 8, 2026
8c4cd09
regen ci.yml after merging main (#7869 phase/termination/stderr trans…
Aug 8, 2026
e5e1cf9
CI-0 review fixes (witty-raven-412): diverged≠unavailable, single-pas…
Aug 8, 2026
8adee44
CI-0: live enrolled roster consumes the classifier — census witness o…
Aug 8, 2026
c13acf4
fix witness hygiene: delete orphaned live_census_rows helper (unreach…
Aug 8, 2026
08a0d40
census additions (operator asks msg_f9334d68/msg_b6cb7efd): declared …
Aug 8, 2026
6862179
witness bridge: re-observation receipt (scope ruling msg_e903115c + t…
Aug 8, 2026
c08891e
Merge remote-tracking branch 'origin/main' into session/valiant-boar-65
Aug 8, 2026
2c95843
consolidation: merge main + fold producer-branch receipt into #8043; …
Aug 8, 2026
a5d5146
CI2-0 Commit B (first slice): canonical realization-attempt harness, …
Aug 8, 2026
e2543bc
Commit B slice 2: first-located-cause reporting + bundle-identity uni…
Aug 9, 2026
efe5679
Commit B slice 3: typed test-marker capture scaffold (ruling msg_6487…
Aug 9, 2026
c617587
Commit B: operator seven-findings verdict recorded on the carrier; fi…
Aug 9, 2026
1e90fd9
Commit B: canonical closure attempt lands — findings 1,2,3,6 discharg…
Aug 9, 2026
028105e
classify_witness derives from declared_class_precedence (review 50672…
Aug 9, 2026
ceb70c9
CI2-0 Commit B sweep: canonical per-identity realization sweep over t…
Aug 9, 2026
50bdc74
CI red repair + review 50716 + sweep sample receipt
Aug 9, 2026
b73e803
Merge remote-tracking branch 'origin/main' into session/valiant-boar-65
Aug 9, 2026
3de4919
Merge remote-tracking branch 'origin/main' into session/valiant-boar-65
Aug 9, 2026
4930f7c
CI2-0 sweep corrections per operator verdict msg_6305b900
Aug 9, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,14 @@ jobs:
components: rustfmt
cache: false
rustflags: ''
- name: Derive native-cache root (rustc-version segment; after setup-rust-toolchain)
run: |
# 🟡 dissolve-on: ci_native_cache_root_script — orch-emitted foreign-executor prelude step deriving GUNBC_NATIVE_CACHE_ROOT from rustc -V after setup-rust-toolchain; leaf rustc/tr/mkdir/echo strings remain until typed toolchain probe lands on host_effect_apply (#5828 / shell→intent Phase 2)
if ! GUNBC_TOOLCHAIN_SEG_RAW=$(rustc -V 2>/dev/null); then echo "::error::rustc -V failed after setup-rust-toolchain: cannot derive native-cache toolchain segment"; exit 1; fi
GUNBC_TOOLCHAIN_SEG=$(echo "$GUNBC_TOOLCHAIN_SEG_RAW" | tr ' ' '-')
if [ -z "$GUNBC_TOOLCHAIN_SEG" ]; then echo "::error::rustc -V produced an empty native-cache toolchain segment after setup-rust-toolchain"; exit 1; fi
mkdir -p "$RUNNER_TOOL_CACHE/gunbc-native/$GUNBC_TOOLCHAIN_SEG"
echo "GUNBC_NATIVE_CACHE_ROOT=$RUNNER_TOOL_CACHE/gunbc-native/$GUNBC_TOOLCHAIN_SEG" >> "$GITHUB_ENV"
- name: Download release-bins artifact
uses: actions/download-artifact@v4
with:
Expand Down Expand Up @@ -276,6 +284,14 @@ jobs:
components: rustfmt
cache: false
rustflags: ''
- name: Derive native-cache root (rustc-version segment; after setup-rust-toolchain)
run: |
# 🟡 dissolve-on: ci_native_cache_root_script — orch-emitted foreign-executor prelude step deriving GUNBC_NATIVE_CACHE_ROOT from rustc -V after setup-rust-toolchain; leaf rustc/tr/mkdir/echo strings remain until typed toolchain probe lands on host_effect_apply (#5828 / shell→intent Phase 2)
if ! GUNBC_TOOLCHAIN_SEG_RAW=$(rustc -V 2>/dev/null); then echo "::error::rustc -V failed after setup-rust-toolchain: cannot derive native-cache toolchain segment"; exit 1; fi
GUNBC_TOOLCHAIN_SEG=$(echo "$GUNBC_TOOLCHAIN_SEG_RAW" | tr ' ' '-')
if [ -z "$GUNBC_TOOLCHAIN_SEG" ]; then echo "::error::rustc -V produced an empty native-cache toolchain segment after setup-rust-toolchain"; exit 1; fi
mkdir -p "$RUNNER_TOOL_CACHE/gunbc-native/$GUNBC_TOOLCHAIN_SEG"
echo "GUNBC_NATIVE_CACHE_ROOT=$RUNNER_TOOL_CACHE/gunbc-native/$GUNBC_TOOLCHAIN_SEG" >> "$GITHUB_ENV"
- name: Download release-bins artifact
uses: actions/download-artifact@v4
with:
Expand Down
8 changes: 8 additions & 0 deletions .github/workflows/falsifier.yml
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,14 @@ jobs:
components: rustfmt
cache: false
rustflags: ''
- name: Derive native-cache root (rustc-version segment; after setup-rust-toolchain)
run: |
# 🟡 dissolve-on: ci_native_cache_root_script — orch-emitted foreign-executor prelude step deriving GUNBC_NATIVE_CACHE_ROOT from rustc -V after setup-rust-toolchain; leaf rustc/tr/mkdir/echo strings remain until typed toolchain probe lands on host_effect_apply (#5828 / shell→intent Phase 2)
if ! GUNBC_TOOLCHAIN_SEG_RAW=$(rustc -V 2>/dev/null); then echo "::error::rustc -V failed after setup-rust-toolchain: cannot derive native-cache toolchain segment"; exit 1; fi
GUNBC_TOOLCHAIN_SEG=$(echo "$GUNBC_TOOLCHAIN_SEG_RAW" | tr ' ' '-')
if [ -z "$GUNBC_TOOLCHAIN_SEG" ]; then echo "::error::rustc -V produced an empty native-cache toolchain segment after setup-rust-toolchain"; exit 1; fi
mkdir -p "$RUNNER_TOOL_CACHE/gunbc-native/$GUNBC_TOOLCHAIN_SEG"
echo "GUNBC_NATIVE_CACHE_ROOT=$RUNNER_TOOL_CACHE/gunbc-native/$GUNBC_TOOLCHAIN_SEG" >> "$GITHUB_ENV"
- name: Download release-bins artifact
uses: actions/download-artifact@v4
with:
Expand Down
5 changes: 4 additions & 1 deletion dag/gunbc/ci_materialization.dag
Original file line number Diff line number Diff line change
Expand Up @@ -140,9 +140,12 @@ data ci_cost_floor_exempt_step_names_note: String = "Cost-floor roster BY STEP N
data ci_cost_floor_exempt_step_names: List<String> = [
"Isolate toolchain dirs",
"Pin rustup default (isolated RUSTUP_HOME has no default toolchain)",
"Unpack + verify release bins (claim_executor --verify-build-artifacts; fail-closed)"
"Unpack + verify release bins (claim_executor --verify-build-artifacts; fail-closed)",
"Derive native-cache root (rustc-version segment; after setup-rust-toolchain)"
]

data ci_native_cache_root_exempt_note: String = "Fourth exempt entry (CI2-0 capsule 1, 2026-08-08): the GUNBC_NATIVE_CACHE_ROOT derivation now runs in build, regen, AND ci — GITHUB_ENV is job-scoped, so each job that spawns native emit-host transports must derive its own root, and the three sites' LCA is the workflow isolation boundary. The script is one rustc -V plus a mkdir and a GITHUB_ENV append — a sub-second environment write whose store-tier discharge would cost more than the recompute it saves, the exact class the first two roster entries name. Dissolve-on: the same typed-toolchain-probe trigger the step's own 🟡 marker carries (#5828 / shell→intent Phase 2)."

data ci_sccache_provider_note: String = "C0 (operator ruling, 2026-07-09): this provider row is DERIVED from the cited catalog, never hand-typed. extdeps.cache.sccache owns what sccache IS (NativeInternal content hashing over RustcInvocation+ToolchainSpec, PerHostFilesystem locality, and a cited retention: a finite on-disk ceiling with least-recently-used replacement); this module owns only the ROLE: scope (whole tree, covers every LCA including the fleet frame - why the release build is already cross-run warm while the floor is not) and coverage (the release build script). WHAT THIS ROW USED TO REST ON, and no longer does (2026-08-06): the sentence here read Lru => SpacePacked, sound to drop, costs one recompile - an inference from a replacement ORDER to a space GUARANTEE, which the old fused eviction axis made silently for every Lru row. A least-recently-used order says which entry goes first when the store is full; it does not establish that the store is ever full rather than growing without limit. The boundedness now comes from the fact that actually carries it: sccache v0.15.0 Configuration.md documents SCCACHE_CACHE_SIZE as the maximum size of the local on-disk cache (default 10G), pinned at the modeled binary version rather than main, so the row projects through CapacityBounded with LeastRecentlyUsed replacement. The effective ceiling stays LimitUnobserved because a runner may override it and none was read. A catalog correction still flows into this gate with zero edits here, but eligibility is now ASKED rather than minted by the projection, and a row that stopped establishing a ceiling would refuse here, counted, never a silent shrink of the provider list."

fn ci_sccache_eligibility() -> CatalogProviderEligibility {
Expand Down
4 changes: 3 additions & 1 deletion dag/gunbc/ci_workflow.dag
Original file line number Diff line number Diff line change
Expand Up @@ -278,8 +278,10 @@ fn ci_floor_upstream_red_refusal_step() -> Step {
}
}

data ci_floor_native_cache_root_note: String = "The floor job runs the NativeBundle unit (gunbc_pr_native_batch), so it needs the same GUNBC_NATIVE_CACHE_ROOT prelude the build and falsifier jobs already carry: GITHUB_ENV is job-scoped, so the build job's derivation never reaches the floor, and the bundle workspace silently fell back to the shared /tmp scratch prefix instead of the toolchain-segmented durable root (CI2-0 re-observation 2026-08-08: every main floor run since enrollment cold-failed there and was absorbed by the counted interpreter fallback). Deriving the root after setup-rust-toolchain is the same ordering contract the other two jobs witness."

fn ci_floor_job_prelude_steps() -> List<Step> {
[ci_heal_revalidation_checkout_step(), ci_heal_revalidation_preflight_step(), ci_floor_gate_toolchain_step()]
[ci_heal_revalidation_checkout_step(), ci_heal_revalidation_preflight_step(), ci_floor_gate_toolchain_step(), ci_native_cache_root_step()]
}

fn ci_floor_spec_from_roster() -> CiSpec {
Expand Down
10 changes: 10 additions & 0 deletions dag/gunbc/doc_graph_roots.dag
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,16 @@ fn hand_authored_doc_path(b: HandAuthoredDocBind) -> String {
}

data hand_authored_doc_binds: List<HandAuthoredDocBind> = [
HandAuthoredDocBind {
home: PlanDoc,
slug: "ci2-native-cutover-reobservation",
primary_work: DeclarationRef { module_path: "gunbc.ci_workflow", decl_name: "ci_floor_native_cache_root_note", field: WholeDeclaration },
additional_works: [
DeclarationRef { module_path: "gunbc.ci_materialization", decl_name: "ci_native_cache_root_exempt_note", field: WholeDeclaration },
DeclarationRef { module_path: "gunbc.native_witness_transition_receipt", decl_name: "native_at_small_scale_transition_receipt", field: WholeDeclaration },
],
dissolution: HasTrigger { text: "the CI2 correctness flip lands — the native-selected population is native-required with the counted interpreter fallback deleted — and a main floor run's [native-selected-bundle] receipt shows verdict accepted with fallback = interpreted = unavailable = 0. The measured-standing content is superseded at that point by the run receipts and the transition-receipt authority; this doc records the pre-flip standing and its two located defects, and deletes with the fallback machinery it diagnosed." },
},
HandAuthoredDocBind {
home: PlanDoc,
slug: "review-surface-subject-map",
Expand Down
72 changes: 72 additions & 0 deletions docs/plans/ci2-native-cutover-reobservation.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
# CI2-0 re-observation: batch-5 native bundle standing on main (2026-08-08)

Re-observed against origin/main `6f4bc24444` before any change, per the CI2-0
brief's first law (re-observe starting standing; never copy it from the brief).
The brief's "0/3-native figure is retrospective-era" expectation was **refuted by
measurement**: 0/3 is the *current* standing, on every observed run.

## What is enrolled

- `gunbc_pr_native_batch()` (`v2.workflow.ci_floor_plan`): one
`NativeBundleWitnessKind` row →
`src/v2/test/claim/execution/native_selected_witness_bundle_production.dag`
:: `native_selected_logic_production_spec`; population = 3 members
(meet / join / complement), bundle identity `09d7d2e53554c783`.
- Executed by `claim_executor` `run_native_bundle_unit`
(`BatchUnit::NativeBundle`): cold native leg → warm native leg → planted-red
native leg → interpreter oracle → `native_transition_decision`.

## Measured standing (GitHub Actions run logs, `[native-selected-bundle]` receipts)

Every observed main-branch floor run from the first enrolled run
(30774223741, 2026-08-03T00:19Z, the #7671 merge push) through 31233572432
(2026-08-08T01:50Z) reports the identical receipt:

```
selected_witness_count 3 native_count 0 interpreted_count 3 unavailable_count 3
fallback_count 3 verdict fallback:native_realization_refused
planted_red_equivalent false cold_compile_wall_nanos ~70-77ms
transport causes: cold: process failed | warm: primary cold artifact unavailable
| planted-native: process failed
```

Sampled runs: 30774223741 · 30776356578 · 30778265303 · 30863019228 ·
30961317834 · 31058002966 · 31131446355 · 31156588100 · 31201159791 ·
31213648746 · 31219934483 · 31233572432. No run shows `accepted`.

**Native execution has never been authoritative on main.** The pre-merge
"outage" that motivated the counted-fallback arm (run 30764923923, review
47508's srv4-03 reading) shows the same signature — same workspace key
`2bc05a600ce0e4a0`, `compile_skipped=false`, ~133ms cold process-fail — so it
was never a transient toolchain outage: it is a deterministic cold-build failure
on every runner, absorbed since 2026-08-03 by the fallback arm, whose zeroed
failure frequency is exactly DESIGN §5's absorbing-fallback prediction.

## Located defects (each fixed by this capsule or the flip capsule)

1. **Cause dropped on the wire.** The transport result carries `stderr_octets`
and `build_log`, but `claim_executor::native_transport_observation` read only
success/stdout/nanos — every non-accepted verdict was located only as
"process failed". Fixed here: bounded stderr tail + build log rendered into
the transport causes (stderr/detail), never into the TSV receipt.
2. **Job-scoped env asymmetry.** `GUNBC_NATIVE_CACHE_ROOT` is derived in the
`build` job (and falsifier), but `GITHUB_ENV` is job-scoped and the floor
(`ci`) job never derived it — the bundle workspace fell back to the shared
`/tmp/gunbc_…` scratch prefix instead of the toolchain-segmented durable
root. Fixed here: `ci_floor_job_prelude_steps` carries
`ci_native_cache_root_step()` (authority `gunbc.ci_workflow`; ci.yml and
falsifier.yml regenerated).
3. **The emitted crate itself is healthy**: reproduced byte-for-byte locally
from `native_selected_logic_production_spec` and `cargo build` succeeds
(warnings only), so the failure is environmental to the floor job, not a
defect in the emitted bundle.

## What this capsule deliberately does not do

The §5 correctness flip (native-required-no-fallback; interpreter scheduling
deleted for the population; artifact-removal RED) is the next capsule. It can
only land once a floor run shows the native path `accepted` — flipping first
would turn every floor run red on a failure this capsule exists to name/fix.
Receipt/status homes unchanged: `std.selected_witness_bundle`
`NativeWitnessBundleExecutionReceipt.member_equivalence`,
`gunbc.native_witness_transition_receipt`.
46 changes: 44 additions & 2 deletions src/v1/stage0/src/bin/claim_executor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2514,6 +2514,14 @@ struct NativeTransportObservation {
success: bool,
compile_skipped: bool,
stdout: Vec<u8>,
/// Bounded tail of the failing process's stderr plus the transport's build
/// log. The transport has always carried both (`stderr_octets`, `build_log`);
/// dropping them here left every non-accepted verdict located only as
/// "process failed" — four days of identical main-run cold failures never
/// named their cause (CI2-0 re-observation, 2026-08-08). Rendered into the
/// FAIL/fallback detail and stderr, never into the TSV receipt.
stderr_tail: String,
build_log: Vec<String>,
artifact_lookup_nanos: u128,
cold_compile_nanos: u128,
native_execution_nanos: u128,
Expand Down Expand Up @@ -2680,10 +2688,32 @@ fn native_transport_observation(
_ => Err("native transport stdout contains a non-octet".to_string()),
})
.collect::<Result<Vec<_>, _>>()?;
let stderr_octets = free_monoid_elems(
ctx.field(fields, "stderr_octets")
.ok_or_else(|| "native transport result missing stderr".to_string())?,
ctx,
)?
.into_iter()
.map(|v| match v {
Value::Int(n) if (0..=255).contains(n) => Ok(*n as u8),
_ => Err("native transport stderr contains a non-octet".to_string()),
})
.collect::<Result<Vec<_>, _>>()?;
const STDERR_TAIL_BYTES: usize = 2000;
let tail_start = stderr_octets.len().saturating_sub(STDERR_TAIL_BYTES);
let stderr_tail = String::from_utf8_lossy(&stderr_octets[tail_start..])
.trim()
.to_string();
let build_log = match ctx.field(fields, "build_log") {
Some(v) => str_list_from_value(v, ctx)?,
None => return Err("native transport result missing build_log".to_string()),
};
Ok(NativeTransportObservation {
success: boolean("success")?,
compile_skipped: boolean("compile_skipped")?,
stdout,
stderr_tail,
build_log,
artifact_lookup_nanos: nanos("artifact_lookup_nanos")?,
cold_compile_nanos: nanos("cold_compile_nanos")?,
native_execution_nanos: nanos("native_execution_nanos")?,
Expand Down Expand Up @@ -2872,22 +2902,34 @@ fn run_native_bundle_unit(
// them made CI's outage red opaque (run 30764923923 refused with no cause on the
// wire). Rendered into the FAIL/fallback detail and stderr, never into the TSV
// receipt (its shape is a parsed contract).
// A failed process's located cause is its build log + stderr tail; "process
// failed" alone left the deterministic cold failure unnameable for four days
// of main runs (every verdict since enrollment was the counted fallback).
let process_failure_detail = |obs: &NativeTransportObservation| {
let log = obs.build_log.join(" ;; ");
let stderr = if obs.stderr_tail.is_empty() {
"<empty stderr>".to_string()
} else {
obs.stderr_tail.replace('\n', " ⏎ ")
};
format!("process failed; build_log: [{log}]; stderr tail: {stderr}")
};
let leg_cause = |name: &str, leg: &Result<NativeTransportObservation, String>| match leg {
Ok(obs) if obs.success && obs.stdout == primary.expected_stdout => None,
Ok(obs) if obs.success => Some(format!(
"{name}: ran but diverged (stdout {} bytes != expected {} bytes)",
obs.stdout.len(),
primary.expected_stdout.len()
)),
Ok(_) => Some(format!("{name}: process failed")),
Ok(obs) => Some(format!("{name}: {}", process_failure_detail(obs))),
Err(e) => Some(format!("{name}: {e}")),
};
let transport_causes: Vec<String> = [
leg_cause("cold", &cold),
leg_cause("warm", &warm),
match &planted_native {
Ok(obs) if obs.success => None,
Ok(_) => Some("planted-native: process failed".to_string()),
Ok(obs) => Some(format!("planted-native: {}", process_failure_detail(obs))),
Err(e) => Some(format!("planted-native: {e}")),
},
]
Expand Down
Loading