Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
2 changes: 1 addition & 1 deletion .github/workflows/daemon-observation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ jobs:
persist-credentials: false
- uses: dtolnay/rust-toolchain@d1031067263f94b142dd6c0ce24c5eb9d02d52a0 # master
with:
toolchain: 1.88.0
toolchain: 1.95.0
- name: Observe exact current-checkout daemon boundary
working-directory: threads
env:
Expand Down
6 changes: 6 additions & 0 deletions docs/testing/e2e-contract.md
Original file line number Diff line number Diff line change
Expand Up @@ -333,6 +333,12 @@ advisory workflow remains visible but is not a protected-branch requirement.
Its run-scoped evidence is uncached; retries cannot reuse an existing artifact
directory or replace first-attempt history.

The downstream observation compiler is pinned separately to Rust `1.95.0`:
the inspected daemon's locked `sysinfo 0.39.6` requires Rust 1.95. Threads'
own toolchain, MSRV, and required compatibility baseline remain `1.88.0`.
Observation records the actual Cargo and rustc versions; a newer daemon
requirement must fail visibly until this separate pin is deliberately updated.

### Enforcement

- require the pinned Linux daemon suite after all eight journeys are stable;
Expand Down
2 changes: 2 additions & 0 deletions scripts/run-daemon-canary.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,8 @@ export function runCanary(covenPath, artifactPath, env = process.env, execute =
if (env.COVEN_REF && env.COVEN_REF !== "main" && env.COVEN_REF !== receipt.coven_sha) {
throw new Error("Coven checkout does not match the requested immutable revision");
}
receipt.rustc = execute("rustc", ["--version"], coven, { env });
receipt.cargo = execute("cargo", ["--version"], coven, { env });
const covenManifest = realpathSync(join(coven, "crates/coven-cli/Cargo.toml"));
const threadsManifest = realpathSync(join(threads, "crates/coven-threads-core/Cargo.toml"));
if (!existsSync(join(coven, "crates/coven-cli/tests/threads_e2e.rs"))) {
Expand Down
7 changes: 6 additions & 1 deletion scripts/tests/daemon-canary.test.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,9 @@ test("observation is separate from required PR CI and pins its actions", () => {
const workflow = readFileSync(
new URL("../../.github/workflows/daemon-observation.yml", import.meta.url), "utf8",
);
checkCiPins(workflow, "1.88.0");
checkCiPins(workflow, "1.95.0");
const coreCi = readFileSync(new URL("../../.github/workflows/ci.yml", import.meta.url), "utf8");
checkCiPins(coreCi, "1.88.0");
assert.match(workflow, /schedule:\s*\n\s*- cron:/);
assert.match(workflow, /workflow_dispatch:/);
assert.doesNotMatch(workflow, /pull_request|continue-on-error|secrets\.|write-all/);
Expand Down Expand Up @@ -102,6 +104,7 @@ function fixture(t) {
const execute = (exe, args, cwd, options) => {
invocations.push({ exe, args, cwd, options });
if (exe === "git") return args[0] === "rev-parse" ? "a".repeat(40) : "";
if (args[0] === "--version") return `${exe} 1.95.0 (synthetic)`;
assert.equal(exe, "cargo");
if (args[0] === "metadata") {
if (!args.includes("--locked")) writeFileSync(join(coven, "Cargo.lock"), "resolved overlay");
Expand All @@ -120,6 +123,8 @@ test("records explicit overlay resolution, inherited patch, exact invocation and
}, f.execute);
assert.equal(receipt.status, "passed");
assert.equal(receipt.run_attempt, "2");
assert.equal(receipt.rustc, "rustc 1.95.0 (synthetic)");
assert.equal(receipt.cargo, "cargo 1.95.0 (synthetic)");
assert.equal(receipt.local_threads_override_active, true);
assert.notEqual(receipt.coven_lock_before_sha256, receipt.coven_lock_overlay_sha256);
assert.match(readFileSync(join(f.coven, ".cargo/config.toml"), "utf8"), /\[patch\./);
Expand Down
Loading