Skip to content

test(time): the integration tests read the wall clock through EpochMs too, and the gate scans tests/ - #5006

Merged
joelteply merged 1 commit into
canaryfrom
clock-residuals
Oct 13, 2026
Merged

joelteply merged 1 commit into
canaryfrom
clock-residuals

Conversation

@joelteply

@joelteply joelteply commented Oct 13, 2026 •

Copy link
Copy Markdown
Contributor

The reviewer's follow-up to #5000: four integration tests in core/continuum-core/tests/ still kept private clocks, and the wall_clock gate did not scan tests/.

What changed

test was now
architecture_demand_pull_cognition.rs private now_ms continuum_core::time::EpochMs::now().millis()
architecture_killer_loop_burst_cognition.rs private now_ms same
capability_grant_e2e.rs private now_ms same
forge_custodian_daemon.rs a clock-hashed "unique" tmp dir uuid::Uuid::new_v4().simple()

source-hygiene::wall_clock now also scans continuum-core/tests/ and reports those paths as tests/..., so they stay at zero.

Executed on the M5 (Fable), not on the 5090

  • The 5090's local build was killed twice by host memory pressure while it served Kimi. Per Astra, it is not retried there.
  • forge_custodian_daemon.rs is cfg(unix), so its witness can only run on a Mac or Linux node.
  • CI's --lib run and check are not an integration pass; the receipt below is.

Measured

  • Fable / M5, SHA 5a4d930, 2026-10-13T04:52–05:00Z, isolated worktree, -j1. Results: architecture_demand_pull_cognition 3/3, architecture_killer_loop_burst_cognition 2/2, capability_grant_e2e 1/1, forge_custodian_daemon 1/1, source-hygiene 32/32; 0 failed. On a Mac the run needs --features test-fixtures,metal,accelerate.
  • Gate mutation proof, 5090, 2026-10-12: a clock planted in capability_grant_e2e.rs failed the gate at tests/capability_grant_e2e.rs:151. The plant was removed.
  • Gate on this branch: no violations in src/ or tests/.

🤖 Generated with Claude Code

https://claude.ai/code/session_01Q4NU4VNiELPQfBpCacDZGc

… too, and the gate scans tests/

Four tests in core/continuum-core/tests/ kept private clocks after #5000:
architecture_demand_pull_cognition, architecture_killer_loop_burst_cognition and
capability_grant_e2e each had a `now_ms`; forge_custodian_daemon hashed the clock
for a "unique" tmp dir, which now uses Uuid::new_v4().simple().
wall_clock::WallClockReadOnlyByEpochMs now also scans tests/, so they stay at zero.
Mutation-proven: a planted clock in capability_grant_e2e.rs failed it at :151.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Q4NU4VNiELPQfBpCacDZGc
@joelteply

Copy link
Copy Markdown
Contributor Author

Measured: clock integration run on the M5 (Fable)

SHA 5a4d9308c, isolated worktree (not the shared tree), one job at -j1 under nice, beside 4 serving residents. 2026-10-13T04:52:15Z → 05:00:29Z.

cargo test -p continuum-core --features test-fixtures,metal,accelerate -j1 --test architecture_demand_pull_cognition --test architecture_killer_loop_burst_cognition --test capability_grant_e2e --test forge_custodian_daemon

test target result
architecture_demand_pull_cognition 3 passed, 0 failed
architecture_killer_loop_burst_cognition 2 passed, 0 failed
capability_grant_e2e 1 passed, 0 failed
forge_custodian_daemon (cfg(unix)) 1 passed, 0 failed

cargo test -p source-hygiene (same SHA, 04:52:04Z): 32 passed, 0 failed.

Note: on macOS the requested command must add metal,accelerate; without them core/llama/src/lib.rs:38 refuses the build by design (my first attempt hit that, nothing ran). This proves the clock refactor only, not Kimi's ability or learning.

@joelteply joelteply changed the title test(time): the integration tests read the wall clock through EpochMs too, and the gate scans tests/ [UNEXECUTED CANDIDATE] test(time): the integration tests read the wall clock through EpochMs too, and the gate scans tests/ Oct 13, 2026
@joelteply
joelteply marked this pull request as ready for review October 13, 2026 05:01
@joelteply
joelteply merged commit 886dc48 into canary Oct 13, 2026
7 checks passed
@joelteply
joelteply deleted the clock-residuals branch October 13, 2026 05:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant