Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
190 commits
Select commit Hold shift + click to select a range
e93c60e
fix(ci): refuse unqualified native Claude test launches
schlessera Nov 20, 2026
94aabf1
fix(ci): seal native test storage and inference transport
schlessera Nov 20, 2026
a987074
fix(ci): confine worker exec payloads to scripted inference
schlessera Nov 20, 2026
0977669
fix(ci): propagate native admission through isolated test launchers
schlessera Nov 20, 2026
71eb80c
fix(ci): retain qualified fixture IPC for restricted workers
schlessera Nov 20, 2026
b9f1f4c
fix(ci): exclude shared repository IPC from native runtime mounts
schlessera Nov 20, 2026
80658b8
fix(ci): recognize native payloads behind executable wrappers
schlessera Nov 20, 2026
bf94fde
fix(ci): make caught native isolation refusals fail tests
schlessera Nov 20, 2026
5b1a53d
fix(ci): identify installed native runtimes by provenance and content
schlessera Nov 20, 2026
71d5949
fix(ci): preserve keyless fixture routes inside the native boundary
schlessera Nov 20, 2026
c937f21
fix(ci): close relay, admission and native audit review gaps
schlessera Nov 20, 2026
f9ca334
fix(ci): narrow the synthetic OAuth fixture credential
schlessera Nov 20, 2026
26d5ff7
docs(ci): refresh the moved subprocess guard citation
schlessera Nov 20, 2026
3e0f005
fix(ci): resolve worker payloads in their own launch environment
schlessera Nov 20, 2026
e402ec9
fix(ci): bind relay authority and prove native exec before receipts
schlessera Nov 20, 2026
f335fc2
fix(ci): type the guarded HTTP server receiver
schlessera Nov 20, 2026
a578f88
fix(ci): qualify absolute launch tools and native inspection receipts
schlessera Nov 20, 2026
d92b939
fix(ci): seal standalone native proof commands with the test boundary
schlessera Nov 20, 2026
631a311
fix(ci): scope relay capabilities to the current scripted service
schlessera Nov 20, 2026
89b8327
fix(ci): resolve preload files and preserve offline auth inspection
schlessera Nov 20, 2026
09e9ce5
fix(ci): preserve isolated measurement routes and synthetic auth cases
schlessera Nov 20, 2026
02bb114
fix(ci): isolate and audit the existing separate-UID native launcher
schlessera Nov 20, 2026
bd39a2a
test(ci): prove discovery refusal receipts cannot recurse through spawn
schlessera Nov 20, 2026
34e6c4c
fix(ci): reserve native launch receipts for observed exec evidence
schlessera Nov 20, 2026
d2e3945
fix(ci): retain fixture authority across native async and namespace b…
schlessera Nov 20, 2026
fdd91cc
test(ci): exercise the installed spawn interceptor and classify absen…
schlessera Nov 20, 2026
00f9fbb
fix(ci): treat cleared native sockets as absent and bind app relay au…
schlessera Nov 20, 2026
21b74c5
fix(ci): retain live relay authority across sanctioned socket hard links
schlessera Nov 20, 2026
a7bfe26
fix(ci): mount synthetic fixture tools and preserve native runtime se…
schlessera Nov 20, 2026
42d1b98
fix(ci): revoke Node relay aliases when their listener closes
schlessera Nov 20, 2026
dfd37eb
fix: require registered native fixture authority and inspect relay su…
schlessera Nov 21, 2026
e737a4d
fix: guard standalone native entries and mounted fixture sockets
schlessera Nov 21, 2026
04ec768
test: require standalone preload guard installation explicitly
schlessera Nov 21, 2026
ed9ca32
fix: validate native mount inventory and seal worker audit evidence
schlessera Nov 21, 2026
9328953
fix: fail closed on uncertain mounted symlink metadata
schlessera Nov 21, 2026
d8b63e8
test: size native plan watchdog for complete mount scans
schlessera Nov 21, 2026
f01bfa8
fix: include device bind sources in native mount admission
schlessera Nov 21, 2026
d09051a
fix: enforce native socket policy for child lifetime and admit live m…
schlessera Nov 21, 2026
7bc2809
test: keep documented measurement reproduction behind explicit opt-in
schlessera Nov 21, 2026
52b814c
test: classify measurement modes and require successful search witnesses
schlessera Nov 21, 2026
b60fdc7
test: report fixture-scoped socket mount refusal evidence
schlessera Nov 21, 2026
acbb5c9
test: admit offline Pi controls and witness denied search invocations
schlessera Nov 21, 2026
00bcce6
test: restrict native system mounts and keep fixture walks fail closed
schlessera Nov 21, 2026
e0be9c2
test: validate executed worker argv and fixture-owned read inputs
schlessera Nov 21, 2026
7fcccb8
test: classify executable targets without status-pipe argument data
schlessera Nov 21, 2026
e535102
test: require native executable identity in audit expectations
schlessera Nov 21, 2026
4020c20
test: retain native provenance scanning through wrappers and interpre…
schlessera Nov 21, 2026
d174847
test: omit unused persistent outputs from measurement fixtures
schlessera Nov 21, 2026
01c44cb
test: share private fixture directory metadata with the exact guard UID
schlessera Nov 21, 2026
95e51dc
test: admit equals-joined runtime paths and preserve guard mount visi…
schlessera Nov 21, 2026
7e56dd5
test: distinguish default private fixtures and assert permission denial
schlessera Nov 21, 2026
c46013a
test: preserve hosted qualification across the RTK cleared environment
schlessera Nov 21, 2026
dde8543
test: retain scrubbed native identity startup evidence
schlessera Nov 21, 2026
cd8ab9b
test: terminate audited native trees on cancellation
schlessera Nov 21, 2026
a477407
test: carry compiled socket policy into the RTK view
schlessera Nov 21, 2026
1f0c1fd
test: qualify keeper inputs and fail native refusals promptly
schlessera Nov 21, 2026
38df8bb
test: require keeper mount namespace entry
schlessera Nov 21, 2026
412a2e7
test: declare enforcement inputs across RTK re-entry
schlessera Nov 21, 2026
088ec42
test: prepare policy before compiler-free fixture namespaces
schlessera Nov 21, 2026
92deee1
test: return private identity audits to the runner owner
schlessera Nov 21, 2026
28c5140
test: qualify namespace mount targets and discover native launchers
schlessera Nov 21, 2026
84c62c3
test: discover delegated native launchers and separate guard receipts
schlessera Nov 21, 2026
a82296a
test: capture CLI refusal through the guard receipt channel
schlessera Nov 21, 2026
e2f26d1
test: retain scrubbed SDK stderr before native startup failure
schlessera Nov 21, 2026
0a8b2b8
test: scale native namespace subprocess watchdogs under load
schlessera Nov 21, 2026
044b201
test: diagnose failed native bootstraps and keep fixture effects on t…
schlessera Nov 21, 2026
f29eaab
test: keep measurement preload ahead of fixture type imports
schlessera Nov 21, 2026
9a84724
test: redact short bearer values as complete credential assignments
schlessera Nov 21, 2026
833e108
test: settle native diagnostics before exit and preserve readonly mou…
schlessera Nov 21, 2026
31283bb
test: preserve trusted relay startup and diagnostic evidence
schlessera Nov 21, 2026
70ea767
test: isolate native diagnostic tees and scale relay watchdogs
schlessera Nov 21, 2026
8c1b690
test: preserve declared native fixture policy and proxy authority
schlessera Nov 21, 2026
a08c103
test: retain admitted relay paths and distinguish native exits
schlessera Nov 21, 2026
cf975fa
test: keep helper controls visible and name identity startup refusals
schlessera Nov 21, 2026
76a3154
test: copy device diagnostics into isolated guard fixtures
schlessera Nov 21, 2026
b96b638
test: prove helper witnesses writable in both launch views
schlessera Nov 21, 2026
6a7a239
test: inventory and scale native fixture hang guards
schlessera Nov 21, 2026
44f3ccb
test: preserve direct native auth and expose startup identity evidence
schlessera Nov 21, 2026
9144f38
test: retain startup stage across resumed exec records
schlessera Nov 21, 2026
dc9e30e
test: classify configured native deadlines by exercised outcome
schlessera Nov 21, 2026
3092ff0
test: distinguish timeout receipt metadata from duration inputs
schlessera Nov 21, 2026
7b30928
test: preserve declared files and separate-UID device semantics
schlessera Nov 21, 2026
6cc9cb8
test: classify worker launches before preserving native auth intent
schlessera Nov 21, 2026
56633b9
fix: classify pinned status wrapper payloads recursively
schlessera Nov 21, 2026
5b95412
test: retain fixed RTK failure sources and final audit verdicts
schlessera Nov 21, 2026
768ca2f
fix: recognize pinned keyless host qualification shell shape
schlessera Nov 21, 2026
292fd71
fix: preserve keyless worker plans and normalize threaded native exec…
schlessera Nov 21, 2026
3812e1d
test: assert retained exec counters without dereferencing missing evi…
schlessera Nov 21, 2026
2b789a7
Fix native proof liveness, shared observations and retained refusals
schlessera Nov 21, 2026
c678ca7
Keep identity audit exports distinct and prove recorder version argv
schlessera Nov 21, 2026
08c9be5
Admit held strict fixture inputs and diagnose RTK projection
schlessera Nov 21, 2026
0a20496
fix: preserve native fixture plans and managed stage inspection
schlessera Nov 22, 2026
d4be13b
fix(test): preserve product native environments by default
schlessera Nov 22, 2026
5759750
fix(test): contain unknown native launches with tripwire masks
schlessera Nov 22, 2026
55bd2bf
fix(test): preserve unknown launch views and status descriptors
schlessera Nov 22, 2026
38917e7
fix(test): release completed unknown launch polling timers
schlessera Nov 22, 2026
710f18f
fix(test): isolate qualification tools from fixture PATH
schlessera Nov 22, 2026
a9031ac
fix(test): preserve unknown launch identity and acquired fixture inputs
schlessera Nov 22, 2026
2d28db3
fix(test): retain private proof files after container exit
schlessera Nov 22, 2026
d355098
fix(test): pass acquired views and register workload authority in its…
schlessera Nov 22, 2026
3ffa915
fix(test): skip only kernel-confirmed overlong executable candidates
schlessera Nov 22, 2026
8686fa8
fix(test): ignore non-path argv tokens without weakening runtime masks
schlessera Nov 22, 2026
416bd10
fix(test): preserve product keeper topology under tripwire masks
schlessera Nov 22, 2026
9067455
test(native): declare copied runtime and retain recovery capacity inputs
schlessera Nov 22, 2026
de2869c
fix(test): clean refused tripwire exits and parse fixture roots
schlessera Nov 22, 2026
5ce2de9
test(native): wait for atomically published keeper readiness
schlessera Nov 22, 2026
1ae2a12
Fix global native test isolation across fixture launch paths
schlessera Nov 22, 2026
3a11a84
Pin audit trace inodes and validate copied script destinations
schlessera Nov 22, 2026
253222e
test: balance native boundary proof with hosted shard weights
schlessera Nov 22, 2026
bb1ea9f
test: register the maintenance relay fixture origin before app setup
schlessera Nov 22, 2026
4d6fa52
test: preserve fixture transports and product boundary proofs
schlessera Nov 22, 2026
8f3270c
fix(test): bound real fixture waits and restore mount observers
schlessera Nov 22, 2026
e361175
fix(test): scope startup watchdogs without extending receipt defaults
schlessera Nov 22, 2026
45e7dac
fix(test): give dictation fixture writers the standard busy timeout
schlessera Nov 22, 2026
a7240d4
test: require refusal when a receipt owner PID has been reused
schlessera Nov 22, 2026
fb7867c
fix(test): finish native guard setup before product probe timing
schlessera Nov 22, 2026
1b69a43
fix(test): retain refusal evidence and private collector permissions
schlessera Nov 22, 2026
4c53162
fix(test): recheck readiness launch identity before release and cleanup
schlessera Nov 22, 2026
714170a
fix(test): keep exit refusals visible after receipt sink cleanup
schlessera Nov 22, 2026
ccd01c2
fix(test): disarm asynchronous readiness for synchronous launches
schlessera Nov 22, 2026
a98b02c
test: distinguish tracer startup waits from the fixed death bound
schlessera Nov 22, 2026
39867a2
test: observe tracer-owned payload exit through a pidfd
schlessera Nov 22, 2026
050f9f8
test: allow loaded native compositions to finish within hang watchdogs
schlessera Nov 22, 2026
e0a846e
fix(test): inspect exact ordinary managed stage input roles
schlessera Nov 22, 2026
37f4282
test: declare the Pi fixture service URL without its provider label
schlessera Nov 22, 2026
393584a
fix(test): preserve declared area and credential hand-off roles
schlessera Nov 22, 2026
577eac4
fix(test): reuse pinned fixture findings with complete launch checks
schlessera Nov 23, 2026
566ebd7
test: observe real stage lifetimes and measure product-only acknowled…
schlessera Nov 23, 2026
5a5ceaa
Merge origin/main into fix/native-claude-isolation
schlessera Nov 23, 2026
76f5258
fix(test): inspect live fixture entries through their pinned views
schlessera Nov 23, 2026
e94a348
test: record the enclosing guard interval once
schlessera Nov 23, 2026
f5c94b2
fix(test): retain the compiler link in private fixture etc
schlessera Nov 23, 2026
395cb28
fix(test): use real clients for sequential native provider cases
schlessera Nov 23, 2026
2b93774
fix(test): preserve receipts through pipe backpressure
schlessera Nov 23, 2026
8c7c986
test: reproduce nonblocking receipt backpressure exactly
schlessera Nov 23, 2026
5267772
test: give account partition app lifetimes a hang watchdog
schlessera Nov 23, 2026
863f080
fix(test): capture factories during explicit fixture observation
schlessera Nov 23, 2026
83a7361
fix(test): project only validated fixture managed policy
schlessera Nov 23, 2026
7bfcbb7
fix(test): pin the actual managed policy helper allocation
schlessera Nov 23, 2026
4c92331
fix(test): classify merged native proof deadlines
schlessera Nov 23, 2026
04b8e24
fix(test): refresh mutable inspection bytes and isolate timing receipts
schlessera Nov 23, 2026
ae84a34
Merge remote-tracking branch 'origin/main' into fix/native-claude-iso…
schlessera Nov 23, 2026
f6b6430
fix(test): frame receipt reads and select bootstrap evidence
schlessera Nov 23, 2026
6bc6b2f
fix(test): initialize qualification faults before tool capture
schlessera Nov 23, 2026
2f0194a
fix(test): reuse root lookups within provenance walks
schlessera Nov 23, 2026
2cd9ffe
fix(test): rehash mutable stages at execution boundaries
schlessera Nov 23, 2026
befd50f
fix(test): resolve stage links through actual registered binds
schlessera Nov 23, 2026
1d10a99
fix(test): copy the complete native preload closure
schlessera Nov 23, 2026
76ac8fa
fix(test): preserve non-native classification before stage admission
schlessera Nov 23, 2026
8d0dc08
test: exercise stage byte checks with admitted native version
schlessera Nov 23, 2026
6438a7d
test: replace per-stage inspection with an offline runner boundary
schlessera Nov 23, 2026
ed26a16
Merge remote-tracking branch 'origin/main' into fix/native-claude-iso…
schlessera Nov 23, 2026
9e5907d
test: refresh the rootless inventory after merging main
schlessera Nov 23, 2026
c5d250b
test: close test entry gaps and prove container refusal controls
schlessera Nov 23, 2026
dc3a7d9
test: run unit queues in the offline view with real UID maps
schlessera Nov 23, 2026
17c77c3
test: prove unit setup teardown and namespace mutations
schlessera Nov 23, 2026
b1e1ead
test: keep private unit inputs on reclaimable storage
schlessera Nov 23, 2026
4d8b408
test: normalize unit artifact destinations before projection
schlessera Nov 23, 2026
a7197a1
test: pin namespace evidence across recycled kernel inode numbers
schlessera Nov 23, 2026
b1e7845
test: preserve private mount-table lookup and repeated lease-free probes
schlessera Nov 23, 2026
6b5836c
test: challenge the finalized runner issuer before reusing evidence
schlessera Nov 23, 2026
956e910
test: provide an empty private fstab for namespace mount cleanup
schlessera Nov 23, 2026
5ea363b
test: retain the fixed issuer refusal for forged runner evidence
schlessera Nov 23, 2026
6a3f287
test: preserve fixture pipes and inert template inputs in offline runs
schlessera Nov 23, 2026
4475ee0
test: refresh qualified rootless files after fixture corrections
schlessera Nov 23, 2026
d98b700
test: retain concrete stream types for fixture entry pipes
schlessera Nov 23, 2026
9ceb59c
test: close undeclared inherited descriptors before qualification
schlessera Nov 23, 2026
b10183e
test: share private checkout capture with outer container preparation
schlessera Nov 23, 2026
1b556e5
test: provide private mount points for child bwrap overlays
schlessera Nov 23, 2026
c566fc7
test: capture read-only container inputs before startup
schlessera Nov 23, 2026
b17313e
test: cover remaining mount parents and expose mask signal parity
schlessera Nov 23, 2026
8db1790
test: prepare runtime masks in place without a process monitor
schlessera Nov 24, 2026
3eed661
test: check in-place mask PID parity and final issuer identity
schlessera Nov 24, 2026
a1b5b73
test: remove automatic runtime mask wrappers under the O1 ruling
schlessera Nov 24, 2026
0a2db49
test: prove unexpected native execution stays inside the offline view
schlessera Nov 24, 2026
69babdd
test: exercise actual native isolation and managed-helper mutations
schlessera Nov 24, 2026
04d42ee
test: capture container identity before image startup with a static p…
schlessera Nov 24, 2026
f0569f0
test: retain the bunx compiler entry in offline worker views
schlessera Nov 24, 2026
c6ed594
ci: prepare every test entry and enter runtime isolation before user …
schlessera Nov 24, 2026
1fa5fe2
test: preserve real compiler pipes and cover shared setup workflow fi…
schlessera Nov 24, 2026
1245055
test: use unbuffered writes throughout the Python signal fixture
schlessera Nov 24, 2026
9d72e4a
test: preserve OS pipes from the build anchor through compiler startup
schlessera Nov 24, 2026
27f4067
test: carry the prepared entry and complete preload closure into comm…
schlessera Nov 24, 2026
bd39ff6
ci: preserve coordinator receipts and prepare isolation after metadat…
schlessera Nov 24, 2026
6e1ebd8
test: export determinism JUnit after offline payload shutdown
schlessera Nov 24, 2026
d9d8c09
test: inventory public system inputs in the offline view
schlessera Nov 24, 2026
6ad28ee
test: classify rootless selections without first-party source pins
schlessera Nov 24, 2026
2399b89
test: qualify nested offline views through the pinned live issuer
schlessera Nov 24, 2026
308610b
test: preserve OS pipe and writable temp paths in standalone fixtures
schlessera Nov 24, 2026
cc6a06d
ci: prepare the selected checkout before heavy proof entry
schlessera Nov 24, 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
12 changes: 12 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,8 @@ jobs:
HEAD_SHA: ${{ github.event.pull_request.head.sha || github.sha }}
RED_MAIN_OID: ${{ needs.changeset.outputs.red_main_oid }}
run: bun scripts/ci-plan.ts
- name: Prepare the static offline test entry
run: bash scripts/ci-offline-setup.sh
- name: Strict types and curated fast tests concurrently on this runner
id: verify_proof
timeout-minutes: 4
Expand Down Expand Up @@ -444,6 +446,8 @@ jobs:
HEAD_SHA: ${{ github.event.pull_request.head.sha || github.sha }}
RED_MAIN_OID: ${{ needs.changeset.outputs.red_main_oid }}
run: bun scripts/ci-plan.ts
- name: Prepare the static offline test entry
run: bash scripts/ci-offline-setup.sh
- name: Complete browser proof
run: bun scripts/ci-proof.ts browser --shard=${{ matrix.shard }}/3
- name: Proof receipts and failure diagnostics
Expand Down Expand Up @@ -509,6 +513,8 @@ jobs:
HEAD_SHA: ${{ github.event.pull_request.head.sha || github.sha }}
RED_MAIN_OID: ${{ needs.changeset.outputs.red_main_oid }}
run: bun scripts/ci-plan.ts
- name: Prepare the static offline test entry
run: bash scripts/ci-offline-setup.sh
- name: Complete layout proof
run: bun scripts/ci-proof.ts layout --shard=${{ matrix.shard }}/2
- name: Proof receipts and failure diagnostics
Expand Down Expand Up @@ -564,6 +570,8 @@ jobs:
HEAD_SHA: ${{ github.event.pull_request.head.sha || github.sha }}
RED_MAIN_OID: ${{ needs.changeset.outputs.red_main_oid }}
run: bun scripts/ci-plan.ts
- name: Prepare the static offline test entry
run: bash scripts/ci-offline-setup.sh
- name: Complete captures proof
run: bun scripts/ci-proof.ts captures
- name: Proof receipts and failure diagnostics
Expand Down Expand Up @@ -617,6 +625,8 @@ jobs:
HEAD_SHA: ${{ github.event.pull_request.head.sha || github.sha }}
RED_MAIN_OID: ${{ needs.changeset.outputs.red_main_oid }}
run: bun scripts/ci-plan.ts
- name: Prepare the static offline test entry
run: bash scripts/ci-offline-setup.sh
- name: Complete endurance proof
run: bun scripts/ci-proof.ts endurance
- name: Proof receipts and failure diagnostics
Expand Down Expand Up @@ -743,6 +753,8 @@ jobs:
HEAD_SHA: ${{ github.event.pull_request.head.sha || github.sha }}
RED_MAIN_OID: ${{ needs.changeset.outputs.red_main_oid }}
run: bun scripts/ci-plan.ts
- name: Prepare the static offline test entry
run: bash scripts/ci-offline-setup.sh
- name: Repeat changed browser, layout and story specs under CPU load
timeout-minutes: 20
env:
Expand Down
12 changes: 12 additions & 0 deletions .github/workflows/heavy-feedback.yml
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,8 @@ jobs:
HEAD_SHA: "${{ inputs.head_sha }}"
FEEDBACK_PR: "${{ inputs.pr }}"
run: bun scripts/ci-plan.ts
- name: Prepare the static offline test entry
run: bash scripts/ci-offline-setup.sh
- name: Strict types and curated fast tests concurrently on this runner
id: verify_proof
timeout-minutes: 4
Expand Down Expand Up @@ -329,6 +331,8 @@ jobs:
HEAD_SHA: "${{ inputs.head_sha }}"
FEEDBACK_PR: "${{ inputs.pr }}"
run: bun scripts/ci-plan.ts
- name: Prepare the static offline test entry
run: bash scripts/ci-offline-setup.sh
- name: Complete browser proof
run: "bun scripts/ci-proof.ts browser --shard=${{ matrix.shard }}/3"
- name: Proof receipts and failure diagnostics
Expand Down Expand Up @@ -367,6 +371,8 @@ jobs:
HEAD_SHA: "${{ inputs.head_sha }}"
FEEDBACK_PR: "${{ inputs.pr }}"
run: bun scripts/ci-plan.ts
- name: Prepare the static offline test entry
run: bash scripts/ci-offline-setup.sh
- name: Complete layout proof
run: "bun scripts/ci-proof.ts layout --shard=${{ matrix.shard }}/2"
- name: Proof receipts and failure diagnostics
Expand Down Expand Up @@ -399,6 +405,8 @@ jobs:
HEAD_SHA: "${{ inputs.head_sha }}"
FEEDBACK_PR: "${{ inputs.pr }}"
run: bun scripts/ci-plan.ts
- name: Prepare the static offline test entry
run: bash scripts/ci-offline-setup.sh
- name: Complete captures proof
run: bun scripts/ci-proof.ts captures
- name: Proof receipts and failure diagnostics
Expand Down Expand Up @@ -431,6 +439,8 @@ jobs:
HEAD_SHA: "${{ inputs.head_sha }}"
FEEDBACK_PR: "${{ inputs.pr }}"
run: bun scripts/ci-plan.ts
- name: Prepare the static offline test entry
run: bash scripts/ci-offline-setup.sh
- name: Complete endurance proof
run: bun scripts/ci-proof.ts endurance
- name: Proof receipts and failure diagnostics
Expand Down Expand Up @@ -517,6 +527,8 @@ jobs:
HEAD_SHA: "${{ inputs.head_sha }}"
FEEDBACK_PR: "${{ inputs.pr }}"
run: bun scripts/ci-plan.ts
- name: Prepare the static offline test entry
run: bash scripts/ci-offline-setup.sh
- name: "Repeat changed browser, layout and story specs under CPU load"
timeout-minutes: 20
env:
Expand Down
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -43,3 +43,8 @@ debug-storybook.log
/docs/decisions/design-kit-schema-forms-*.json
/scripts/site-model-spike/
/scripts/policy-boundary-spike/

# Prepared static offline test bootstrap (source under scripts/offline-runner).
/.test-tools/

/scripts/offline-runner/__pycache__/
46 changes: 46 additions & 0 deletions docs/process/testing.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,52 @@ preload cleanup fallback; use `bun run test` for repeated or cancellable runs.
Turns must await owned observation saves before settling so teardown cannot
race storage writes.

### Qualifying a local test host

Project-owned test entries use the prepared static offline launcher. Prepare it
with `bash scripts/offline-runner/prepare.sh`, then put the checkout's
`.test-tools` directory first on `PATH` before `bun run test` or `bun test`.
The launcher tries the root-created boundary first, then a qualified rootless
user/network/mount/PID/IPC boundary. Rootless runs refuse separate-UID,
root-bwrap and setpriv selections before their modules execute. Unknown
rootless selections also refuse. Compatible files keep their filename
classification when edited; the kernel view provides containment. If neither boundary qualifies, the
whole invocation stops before test modules; masks and the preload are not an
unguarded fallback.

A host owner can explicitly install the fixed, root-owned setup entry with
`sudo bash scripts/offline-runner/prepare.sh --install-system` and, if needed,
a sudoers rule allowing **only** `/usr/local/libexec/brain-test-setup` through
noninteractive sudo. Never allow a writable checkout script or arbitrary
`unshare`, shell or interpreter command through that rule. Alternatively, the
host owner may enable unprivileged user namespaces so the qualified rootless
subset can run. Tests never change sudoers, sysctls or other host policy
automatically. A setup refusal names the failed stage and records a receipt;
it is not a skip or completed native proof.

This guarantee covers the project's launcher entries and the prepared `bun`
shim. A separately invoked absolute interpreter can already have executed
startup hooks before project code runs; the preload refuses native
qualification for that unsupported entry and cannot retroactively clean it.
Dependency/image acquisition is preparation, outside the offline test phase.

The private view's public system inputs are listed in
[`system-inputs.json`](../../scripts/offline-runner/system-inputs.json).
Tools, public TLS trust/configuration, linker, identity, locale, timezone and
font inputs are read-only. Scratch paths and POSIX shared memory are fresh;
host socket directories, private keys and managed settings are excluded.
The existing cgroup v2 hierarchy retains its host mount flags and kernel
permissions. The launcher neither grants delegation nor moves processes to
another cgroup; PID lists retain the kernel's PID-namespace filtering.

Automatic per-launch shell-mask wrappers are removed under the maintainer's
[O1 ruling for #4313](https://github.com/schlessera/brain-kit/issues/4313).
Their extra process changed signal delivery and could keep an aborted worker's
output open. The qualified kernel boundary, private IPC and settings, clean
startup environment, non-loopback preload and receipts remain mandatory.
The fixed stub remains for independent actual-native/stub-substitution proof;
product- and fixture-owned masks are unchanged. An unqualified entry refuses.

### Deliberate offline commands on Linux

Use the repository launcher when a manual test command needs OS-level network
Expand Down
3 changes: 2 additions & 1 deletion experiments/2052-title-provenance/probe.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { watchdogMs } from "../../scripts/test-deadlines";
/** Run through run.ts: the SDK, CLI and tool descendants share an offline netns. */
import { mkdirSync, readFileSync, writeFileSync } from "node:fs";
import { dirname, join } from "node:path";
Expand Down Expand Up @@ -53,7 +54,7 @@ try {
turnLock: { acquire: () => undefined, release: () => undefined } as never, log() {},
});
const messages: unknown[] = [];
const timer = setTimeout(() => controller.abort(), 45_000);
const timer = setTimeout(() => controller.abort(), watchdogMs(45_000));
try {
let succeeded = false;
for await (const msg of query({ prompt: turn.prompt, options: turn.options })) {
Expand Down
5 changes: 3 additions & 2 deletions experiments/measurement-results.test.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { watchdogMs } from "../scripts/test-deadlines";
import { expect, test } from "bun:test";
import { runTurn, report, costRows } from "../scripts/measure-show-block";
import { MeasurementResults, priceCoverage } from "../scripts/measurement-results";
Expand Down Expand Up @@ -107,11 +108,11 @@ test("drain timeout force-kills and awaits an owned native child ignoring SIGTER
});
const output = child.stdout[Symbol.asyncIterator]();
// Keep the deliberate missing-kill mutation bounded without hiding its receipt.
let watchdog = setTimeout(() => child.kill("SIGKILL"), 5000);
let watchdog = setTimeout(() => child.kill("SIGKILL"), watchdogMs(5000));
try {
expect(String((await output.next()).value)).toContain("ready");
clearTimeout(watchdog);
watchdog = setTimeout(() => child.kill("SIGKILL"), 500);
watchdog = setTimeout(() => child.kill("SIGKILL"), watchdogMs(500));
child.kill("SIGTERM");
expect(await observed.drain(50)).toBe(false);
expect(observed.processes).toEqual([{ closed: true, stdoutFinished: true, code: null, signal: "SIGKILL", forcedKill: true }]);
Expand Down
16 changes: 8 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,17 @@
"env-docs": "bun scripts/env-docs.ts",
"lint": "bun scripts/lint.ts",
"api-report": "bun scripts/api-report.ts",
"test": "bun scripts/test.ts --timeout 30000",
"test:experiments": "bun scripts/test-experiments.ts",
"test:skills": "bun scripts/test.ts --timeout 30000 ./scripts/skill-tests",
"test": ".test-tools/entry bun scripts/test.ts --timeout 30000",
"test:experiments": ".test-tools/entry bun scripts/test-experiments.ts",
"test:skills": ".test-tools/entry bun scripts/test.ts --timeout 30000 ./scripts/skill-tests",
"check:pr": "bun scripts/check-pr.ts",
"check:pack": "bun scripts/check-packages.ts",
"test:browser": "node scripts/visual.mjs",
"test:endurance": "node scripts/visual.mjs --project=ui-react-endurance",
"test:browser": ".test-tools/entry node scripts/visual.mjs",
"test:endurance": ".test-tools/entry node scripts/visual.mjs --project=ui-react-endurance",
"test:inventory": "bun scripts/proof-inventory.ts",
"test:layout": "node scripts/visual.mjs --project=ui-react-layout",
"visual": "node scripts/visual.mjs --project=visual --project=subjects",
"visual:update": "node scripts/visual.mjs --project=visual --project=subjects --update",
"test:layout": ".test-tools/entry node scripts/visual.mjs --project=ui-react-layout",
"visual": ".test-tools/entry node scripts/visual.mjs --project=visual --project=subjects",
"visual:update": ".test-tools/entry node scripts/visual.mjs --project=visual --project=subjects --update",
"typecheck": "tsc --noEmit",
"changeset": "changeset",
"version": "changeset version && rm -f bun.lock && bun install",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { watchdogMs } from "../../../../scripts/test-deadlines";
import { createFixtureWorkerStartupView } from "../../../ui-sdk/tests/helpers/worker-startup-view-fixture.js";
/** Keyless selected-runtime assembly receipt; caller denies all external network. */
import { mkdirSync, writeFileSync } from "node:fs";
Expand Down Expand Up @@ -45,7 +46,7 @@ try {
abortController, allowedTools, confirmPatterns: [],
turnLock: { acquire: () => undefined, release: () => undefined } as never, log() {},
});
const timer = setTimeout(() => abortController.abort(), 45_000);
const timer = setTimeout(() => abortController.abort(), watchdogMs(45_000));
try {
let success = false;
for await (const message of query({ prompt: turn.prompt, options: turn.options })) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import {watchdogMs} from '../../../../scripts/test-deadlines';
/** Real installed CLI, fictional credentials and a loopback-only namespace. */
import { expect } from "bun:test";
import { existsSync, mkdirSync, readFileSync } from "node:fs";
Expand Down Expand Up @@ -28,7 +29,7 @@ for (const enforced of [false, true]) {
if (new URL(request.url).pathname !== "/v1/messages") return Response.json({});
await request.json(); return reply(calls[sent++]);
} });
const controller = new AbortController(), timer = setTimeout(() => controller.abort(), 20_000);
const controller = new AbortController(), timer = setTimeout(() => controller.abort(), watchdogMs(20_000));
const lock = createTurnLockBinding({ turn: { ended: false, pendingReleases: new Map() }, writeLock: createKeyedLock(), lockWaitMs: 1000, log: () => {} });
const allowedTools = enforced ? [] : ["Bash"];
const wiring = createPermissionWiring({ req: { prompt: "Return to Ithaca.", signal: controller.signal, enforceAllowedTools: enforced,
Expand Down Expand Up @@ -61,7 +62,7 @@ for (const enforced of [false, true]) {
if (new URL(request.url).pathname !== "/v1/messages") return Response.json({});
await request.json(); return reply(sent++ === 0 ? { name: "Bash", id: "toolu_legacy", input: { command: "sleep 30", run_in_background: true } } : undefined);
} });
const controller = new AbortController(), timer = setTimeout(() => controller.abort(), 20_000);
const controller = new AbortController(), timer = setTimeout(() => controller.abort(), watchdogMs(20_000));
const env = { HOME: home, CLAUDE_CONFIG_DIR: join(home, ".claude"), PATH: process.env.PATH!, ANTHROPIC_BASE_URL: `http://127.0.0.1:${server.port}`, ANTHROPIC_API_KEY: "odysseus-offline-only-key", CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC: "1" };
try {
for (const resume of [false, true]) for await (const message of query({ prompt: resume ? "Keep Penelope's words." : "Return to Ithaca.", options: {
Expand Down
7 changes: 4 additions & 3 deletions packages/ui-backend-claude/tests/fixtures/host-relay-probe.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { watchdogMs } from "../../../../scripts/test-deadlines.ts";
/** Actual SDK/CLI protocol qualification, inside the caller's private network namespace. */
import { query, type AccountInfo } from "@anthropic-ai/claude-agent-sdk";
import { startInferenceRelay, ANTHROPIC_INFERENCE_ROUTES, INFERENCE_PLACEHOLDER, acquireHostCredentialExclusion, startEgressProxy, type EgressRecord } from "@schlessera/brain-ui-sdk/internal";
Expand Down Expand Up @@ -92,7 +93,7 @@ function files(path: string): string {
async function bounded<T>(promise: Promise<T>): Promise<T> {
let timer: ReturnType<typeof setTimeout> | undefined;
try { return await Promise.race([promise, new Promise<never>((_, reject) => {
timer = setTimeout(() => reject(new Error("Native cancellation did not reach its owned boundary.")), 5000);
timer = setTimeout(() => reject(new Error("Native cancellation did not reach its owned boundary.")), watchdogMs(5000));
})]); } finally { clearTimeout(timer); }
}
let session: string | undefined, hostAfterRefresh = false;
Expand All @@ -104,7 +105,7 @@ try {
if (turn === 3) { save(access[1]!, 1); holdRefresh = true; }
const before = readFileSync(join(host, ".credentials.json"));
const abort = new AbortController();
const timer = setTimeout(() => abort.abort(), 20_000);
const timer = setTimeout(() => abort.abort(), watchdogMs(20_000));
let release!: () => void;
const held = new Promise<void>(resolve => { release = resolve; });
let nativeChild: ChildProcess | undefined;
Expand Down Expand Up @@ -150,7 +151,7 @@ try {
try { await bounded(refreshEnded); }
catch { closeRefresh?.(); } // The parent requires refreshCancelled=true.
cancellationRetainedHostBytes = readFileSync(join(host, ".credentials.json")).equals(before);
const lock = await acquireHostCredentialExclusion({ domain: { directory }, timeoutMs: 1000 });
const lock = await acquireHostCredentialExclusion({ domain: { directory }, timeoutMs: watchdogMs(1000) });
lock.release(); cancellationReleasedLock = true;
}
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { watchdogMs } from "../../../../scripts/test-deadlines";
import { createFixtureWorkerStartupView, createFixtureMaintenanceHost } from "../../../ui-sdk/tests/helpers/worker-startup-view-fixture.js";
/** Keyless selected-runtime assembly receipt; caller denies all external network. */
import { mkdirSync, writeFileSync } from "node:fs";
Expand Down Expand Up @@ -58,7 +59,7 @@ try {
abortController, allowedTools: ["Read"], confirmPatterns: [],
turnLock: { acquire: () => undefined, release: () => undefined } as never, log() {},
});
const timer = setTimeout(() => abortController.abort(), 45_000);
const timer = setTimeout(() => abortController.abort(), watchdogMs(45_000));
try {
let success = false;
for await (const message of query({ prompt: turn.prompt, options: turn.options })) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { watchdogMs } from "../../../../scripts/test-deadlines.ts";
/** Actual ordinary Claude spawn/state path; copied storage fixture, not Btrfs qualification. */
import { query, type AccountInfo } from "@anthropic-ai/claude-agent-sdk";
import { startInferenceRelay, ANTHROPIC_INFERENCE_ROUTES, INFERENCE_PLACEHOLDER, acquireHostCredentialExclusion, startEgressProxy, type EgressRecord } from "@schlessera/brain-ui-sdk/internal";
Expand Down Expand Up @@ -110,7 +111,7 @@ function files(path: string): string {
async function bounded<T>(promise: Promise<T>): Promise<T> {
let timer: ReturnType<typeof setTimeout> | undefined;
try { return await Promise.race([promise, new Promise<never>((_, reject) => {
timer = setTimeout(() => reject(new Error("Native cancellation did not reach its owned boundary.")), 5000);
timer = setTimeout(() => reject(new Error("Native cancellation did not reach its owned boundary.")), watchdogMs(5000));
})]); } finally { clearTimeout(timer); }
}
let session: string | undefined, hostAfterRefresh = false;
Expand All @@ -122,7 +123,7 @@ try {
if (turn === 3) { save(access[1]!, 1); holdRefresh = true; }
const before = readFileSync(join(host, ".credentials.json"));
const abort = new AbortController();
const timer = setTimeout(() => abort.abort(), 20_000);
const timer = setTimeout(() => abort.abort(), watchdogMs(20_000));
let release!: () => void;
const held = new Promise<void>(resolve => { release = resolve; });
let live: LaunchedWorker | undefined;
Expand Down Expand Up @@ -173,7 +174,7 @@ try {
try { await bounded(refreshEnded); }
catch { closeRefresh?.(); } // The parent requires refreshCancelled=true.
cancellationRetainedHostBytes = readFileSync(join(host, ".credentials.json")).equals(before);
const lock = await acquireHostCredentialExclusion({ domain: { directory }, timeoutMs: 1000 });
const lock = await acquireHostCredentialExclusion({ domain: { directory }, timeoutMs: watchdogMs(1000) });
lock.release(); cancellationReleasedLock = true;
}
}
Expand Down
Loading
Loading