Skip to content

ci: adopt ci-kit — PR checks per suite family; sminos and codex-companion timing tests made event-driven (ci-kit M3) - #198

Merged
SSFSKIM merged 27 commits into
mainfrom
ci-kit-adoption
Oct 16, 2026
Merged

SSFSKIM merged 27 commits into
mainfrom
ci-kit-adoption

Conversation

@SSFSKIM

@SSFSKIM SSFSKIM commented Oct 16, 2026 •

Copy link
Copy Markdown
Owner

Who is submitting this PR? (required)

Field Value
Your model + version Claude Opus 5.5 (claude-opus-5-5): the ci-kit M3 task executor
Harness + version Claude Code, a subagent of the ci-kit plan-executor (session "CI-opt")
All plugins installed doperpowers, cua, ptc, daily-journal, designer, eli5
Human partner who reviewed this diff Not yet. The ci-kit controller reviews it at medium (the ci-kit spec's Decision Log)

What problem are you trying to solve?

doperpowers had no CI (TECH-DEBT T2 #4). Every suite ran by hand on the MacBook, which sits at load 90–330. At that
load the sminos suites' timing assertions failed on unchanged code (TECH-DEBT T3): the git-mirror "two seconds",
send --wait's ack window, "at most once more", the watcher's finalize-vs-retire, and test-bridge-requests.sh.
This PR is milestone M3 of SSFSKIM/ci-kit (spec docs/doperpowers/specs/2026-10-15-ci-kit-design.md):
doperpowers adopts the kit, and its timing-sensitive tests become event-driven.

What does this PR change?

It adopts ci-kit with its two files. .github/ci-kit.yml gives one gate per suite family that runs without model
calls, and .github/workflows/ci.yml calls the kit's reusable workflow at @v1. Every PR gets ci / <gate> checks
on GitHub's free hosted runners. The checks are added, never required. Each timing-sensitive test is made
event-driven, in its own commit. Only test files, CI files, TECH-DEBT and the version change. Nothing under skills/, agents/, hooks/ or
output-styles/ changes. The version moves to 7.160.1, above main, at the author's request. The branch merges main
(#200–#203 and 7.160.0) and gives the timing waits those changes brought the same liveness bound.

Gate Lane Runs
shell-lint ubuntu scripts/lint-shell.sh on the files changed between CI_KIT_BASE and CI_KIT_HEAD
sminos ubuntu SMINOS_PART=core tests/sminos/run-sminos-tests.sh: the runner's own cases
sminos-suites ubuntu SMINOS_PART=suites …: the bridge, uplink, hub, sync and archive shell suites, and the three Python suites
issue-tracker ubuntu tests/issue-tracker/test-*.sh and the meta-grammar fuzz
board-api ubuntu tests/claude-code/board-api/test-*.sh, without integration/
claude-code ubuntu the hermetic tier: worktree-path-policy, sde-workspace, kairos-hook, to-human-stream-hook
mods ubuntu tests/mods/run-mods-tests.sh (claude plugin test, no credentials)
triaging-feedback ubuntu npm ci && npm test in application-agents/triaging-feedback
repo-checks ubuntu lint-shell's own test, cross-doc links, version bump, review engine, Codex manifests

SMINOS_PART (core, suites, or unset for both) is the one change to how a suite runs. With DC7's suites, sminos took
9.5 min serially. Split, the slowest gate is about 8 min, and the list of suites stays inside the runner.

Is this change appropriate for the core library?

It is the repository's own CI and tests, not plugin behavior. Plugin users see nothing.

What alternatives did you consider?

  • Plain workflows per suite. Every repo would re-implement the kit's selection, trailer and lane rules. The ci-kit
    spec chose a shared kit.
  • Load-calibrated timing budgets. These still fail when the load changes mid-test, and they keep a speed claim
    inside a correctness test (ci-kit spec §6). The fixes wait on the event, under one 30 s liveness ceiling.
  • Listing the sminos sub-suites in ci-kit.yml. It would drift from the runner. SMINOS_PART keeps one list.

Does this PR contain multiple unrelated changes?

No. The adoption and the stabilization are one milestone: a gate is only useful once its suite stops failing under
load. Each test fix is its own commit.

Existing PRs

Environment tested

Harness (e.g. Claude Code, Cursor) Harness version Model Model version/ID
GitHub-hosted runners (ubuntu-latest, macos-latest) through ci-kit v1 ci-kit b82b9aa n/a n/a

Evaluation

A10, per test. Each test ran under an induced CPU load on GitHub-hosted runners only, never on the MacBook or the
mini. The load is stress-ng --cpu <2×nproc> on ubuntu (8 workers on 4 vCPU), or yes > /dev/null loops at
2× cores on macOS (6 on 3 vCPU), the latter for test-bridge-requests.sh, whose flake was macOS's. The harness ran beside each test in a throwaway ci-gate run.

Test (commit subject) Before the fix After the fix
sminos send --wait ack case failed 13/20 at 2× (run 38821204952) 20/20 at 2× (38833109533)
sminos watcher-vs-retire 0/20 at 2×; failed 20/20 at 8× (38823131524) 20/20 at 2× (38833109533); 20/20 at 8× (38835255682)
sminos running daemons' delivery ("two seconds") and the nudge 0/20 at 2×; failed 19/20 and 11/20 at 8× (38823131524) 20/20 at 2× (38833109533); 20/20 at 8× (38835255682)
sminos kill-before-settle ("at most once more") failed 4/20 at 2× (38821204952), 12/20 at 8× 20/20 at 2× (38833109533); 20/20 at 8× (38835255682)
sminos stale-lock log line (120s old) failed 18/20 at 8× (38823131524) 20/20 at 8× (38835255682)
sminos run-exits-on-code-change failed 6/20 at 8× (38823131524) 20/20 at 8× (38835255682)
sminos test-uplink derivation lock ("the two fail apart") ended the suite unloaded in the A10 series (stabC11, run 38852905278) sub-suites part 20/20 at 2× (38854421330; 38862575846 on the merged head)
sminos test-uplink ssh mark ("still in the fetch") failed unloaded (38825812343), 2/20 at 2×, 4/20 at 8× 20/20 at 2× (38833109533)
sminos inbox stand-ins (test_policy_requests.py) failed 1/20 and 1/20 at 2× (38825622022, 38829082720) 20/20 at 2× (38833109533)
test_rpcs.py Resume on Linux (start time read a second early) failed unloaded on ubuntu (38824130969) fixed at its source by #203 (/proc); suites part 20/20 at 2× on the merged head (38862575846)
sminos test-bridge-requests.sh macOS: failed 2/20 at 2× with only the waits fixed (38825621237); probe: 1 full run and 2/5 reruns 20/20 macOS at 2× (38827587101)
issue-tracker review-standin (glibc collation) failed on every ubuntu run (probe 38810355572) passes on ubuntu (38820597895)

A10, the gates. 20 of 20 consecutive ci-gate runs of the head 8220494 were GREEN across all nine gates (labels stabF1–stabF20): runs 38864246208, 38865038947, 38865996618, 38866858454, 38867671952, 38868552548, 38869467508, 38870386713, 38871274429, 38872183101, 38873130125, 38873860615, 38874827767, 38875666124, 38876573177, 38877544701, 38878527366, 38879513602, 38880557341, 38881548718. Every ci/ ref was deleted afterwards. Earlier series were reset by fixes (a test-uplink race, red at stabC11, run 38852905278) and by merges of main. The 2× stress of the sminos sub-suites on the merged head was 20/20 (38862575846).

8× series on the head (run 38835255682). Every M3 target passed 20/20. That run's red jobs are speed claims that only 8× breaks, which their owners hold: test-uplink.sh "an event from the hub reaches m within a second while the fetch hangs" (17/20), and test_session_plane.py test_a_presence_within_a_second (8/20). Both pass 20/20 at 2×, and both are recorded in TECH-DEBT for a pinned-core perf gate (ci-kit §6).

A1. PR run 38864241036 on 8220494: every check green, 8m14s from created to verdict.

Negative proof. A committed shell file with a ShellCheck error (SC2068, tests/shell-lint/neg-proof.sh, a
throwaway commit) turns ci / shell-lint red: run 38828692666, RED 1/1.

Unresolved Review Findings

None. codex-companion is not gated: the owner discarded the component on 2026-10-16, and this PR does not touch it.

Rigor

  • If this is a skills change: I used doperpowers:writing-skills (not a skills change)
  • This change was tested adversarially, not just on the happy path (induced CPU load, before and after)
  • I did not modify carefully-tuned content

Human review

  • A human has reviewed the COMPLETE proposed diff before submission (the controller's medium review follows)

…th sides alike

glibc and macOS sort collate '_' differently, so the hard-coded expected
order matched macOS only and the assertion failed on ubuntu (hosted probe,
run 38810355572). The expected list now goes through the same sort -u as
the actual one: the set is what is pinned, not an order.
SSFSKIM added a commit that referenced this pull request Oct 16, 2026
Review of #198: the documented SMINOS_FAMILY_ONLY=1 run skips the guard where
SMINOS_PART, run_suites and summary were defined, and the unconditional tail
then aborted under set -u. They now come before the guard, so a focused run
finishes and reports (1053 assertions, family-only, run locally).
SSFSKIM added a commit that referenced this pull request Oct 16, 2026
Review of #198: the changed files were read through a process substitution,
whose exit status nothing checks. If the kit's fetch of the change basis
failed (it only warns), the diff failed, the list came out empty, and the
gate passed with "no changed files". The diff now writes to a file under
the gate's -eo pipefail.
SSFSKIM added a commit that referenced this pull request Oct 16, 2026
Review of #198: test_rpcs.py runs tests/mods/live-resume-check.py's Resume
call, which imports live-control-check.py and live-bridge-check.py, against
its fake engine. A change to those files alone selected mods and not the
suite that runs them.
.github/ci-kit.yml names one gate per suite family that runs without model
calls (shell-lint, sminos, issue-tracker, board-api, claude-code, mods,
triaging-feedback, repo-checks), each scoped to its area by
paths; .github/workflows/ci.yml is the kit's caller, pinned at @v1. Checks
are added, never required. Suites that call a model, need Docker, or test
the installed plugin cache stay local.
… second

The case slept 0.5 s and read the newest frame id, then gave the send 5 s to
see it acknowledged. On a loaded host (TECH-DEBT T3) the frame had not landed
yet: the id read was the previous frame's, and the window ran out. The case
now waits for the ACK-1 frame itself and gives the send a liveness window.
wait_until is the suite's poll for such conditions, with one generous ceiling
(LIVENESS_SECONDS) that bounds liveness, not the machine's speed.
It slept 0.8 s and retired. Under load the spawn had not recorded the seat
yet, or still held its lifecycle lock (retire refused, rc 4), so the case
asserted on a retire that never happened (TECH-DEBT T3: "the watcher's
finalize does not overwrite a retire"). It now waits for the record and
retries the retire while the lock is held.
… seconds

"the say lands within two seconds" and the nudge's three were speed claims:
the base itself missed 2 s in 11 of 48 runs at load ~130 (TECH-DEBT T3). The
cases now wait for each loop's first tick (its daemon.json rewritten) instead
of sleeping 1.5 s, then for the frame in b's socket under the liveness bound.
The nudge case keeps its meaning by putting the loop's interval (3600 s) far
beyond that bound: only the nudge delivers in time.
"at most once more: two frames in all" failed 4 of 20 runs at 2x load before,
and still 5 to 10 of 20 once the waits were lengthened. Diagnostics showed why
(y's inbox held one frame, and the restarted tick saw y live). The inbox
stand-in held any connection while the hold file existed, and marked it held.
The doomed tick probes y's socket (connect, close) before it pushes, so under
load the probe was held and marked, and the case killed the tick before its
frame was sent. The stand-in now holds only a connection that carries a
frame. The case's waits are also under the liveness bound instead of 5 s.
… deadline

The suite failed on the hosted macOS runner (1 full run, 2 of 5 reruns; ci-kit
probe) at "the terminal answering first": its until_true gave each condition
5 s. until_true now polls under one liveness ceiling (30 s) rather than a
count of tries. The background-window case raced its own 800 ms deadline (a
sleep 0.4 that had to land inside it, a sleep 0.6 that had to land past it,
and a 5 s window for the accepted decision). It now raises one window open for
the whole case and one whose deadline it waits out, so neither check depends
on how fast the machine is. One clock wait stays, lengthened to 2 s: the
bridge must have read the record as waiting before it turns idle, and it
exposes no sign that it has.
…the engine's do

On ubuntu, test_rpcs.py's two Resume cases failed in the CI gate. They failed
with "job … took the session, but no process of it holds the session after
30 s". The fake engine's records had no startedAt, so sminos read the
holder's start from ps -o lstart. Linux derives that from a boot time
truncated to the second, so the holder could read as started a second
before the launch, and launched_by refused it. The real engine writes
startedAt (ms), and the fake now writes it too, taken at the holder's
spawn.
…them

With DC7's suites the sminos gate took 9.5 min on ubuntu, close to the 10 min
a PR's checks have. run-sminos-tests.sh takes SMINOS_PART=core|suites. core
is its own cases, about 3.5 min. suites is the files it runs after them, the
bridge, uplink, hub, sync and archive shell suites and the three Python
suites, about 5.5 min. Unset, it still runs both, as before. The list of
suites stays in the runner, so CI and a local run cannot drift apart.
… terminal answers

The after-fix series on the hosted macOS runner (2x load) still failed 2 of
20 runs at "the terminal answering first", with 30 s to spare. The dialog's
close is read as the terminal's answer only once the bridge's watcher (every
0.25 s) has read the record as waiting since the raise. A loaded runner let
the record turn busy before that read, so the close went unseen. The bridge
exposes no sign of the read, so the case now waits on the clock, 2 s, before
both the perm02 and perm03 closes.
…0 s old

The case set the lock's mtime to 120 s ago, then asserted on the literal
"120s old". At 8x load the tick read it a second or more later, so it said
121 s or more (18 of 20 runs failed). The case now accepts any age the lock
can have when the tick reads it.
It slept 1.5 s, touched the daemon's code once, and gave the loop 5 s to
exit. If the touch landed before the loop read its own code, the change
became the loop's baseline and was never seen (6 of 20 runs at 8x load). The
case now touches under the liveness bound until the loop exits.
…he gate

"the tick loop is still in the fetch all along" failed in an unloaded CI run
(its daemon.json moved 50 ms after it was read), and once at load ~218
(TECH-DEBT T3). The stand-in marked ssh-entered before it looked at the gate.
So a fetch that started between the case's rm of the mark and its touch of the
gate marked "entered", passed through, and let its tick finish while the
case believed the loop hung. The mark now means a call that is waiting at
the gate.
… they close

test_policy_requests.py failed 1 of 20 runs in each of two loaded series
("'written here, while read-only' not found in ''"). Its Inbox thread closed
the connection, then recorded the frame. sminos's send_frame returns as soon
as the connection closes, and the test read the inbox at once, before the
thread had appended. fake_holder.py (test_rpcs.py's session process) had the
same order. Both now record first, then close.
…try rewritten as what landed and what remains
Review of #198: the documented SMINOS_FAMILY_ONLY=1 run skips the guard where
SMINOS_PART, run_suites and summary were defined, and the unconditional tail
then aborted under set -u. They now come before the guard, so a focused run
finishes and reports (1053 assertions, family-only, run locally).
Review of #198: the changed files were read through a process substitution,
whose exit status nothing checks. If the kit's fetch of the change basis
failed (it only warns), the diff failed, the list came out empty, and the
gate passed with "no changed files". The diff now writes to a file under
the gate's -eo pipefail.
Review of #198: test_rpcs.py runs tests/mods/live-resume-check.py's Resume
call, which imports live-control-check.py and live-bridge-check.py, against
its fake engine. A change to those files alone selected mods and not the
suite that runs them.
…l it holds

"the two fail apart" removed the derivation lock file and made a directory in
its place. The running loop takes that lock every tick (SMINOS_DERIVE_EVERY=1),
so it could come back between the rm and the mkdir. The mkdir then failed
under set -e and ended the whole suite: one red in the A10 ci-gate series,
run 38852905278. It now retries both under the liveness bound.
…ss bound

The bridge, uplink, hub, sync and archive suites polled with a count of tries,
5 to 20 s. Several of those calls are not followed by || true: a slow start of
a stand-in (the hub's port, an inbox socket) would end the suite under set -e,
not just fail a check. Each until_true now waits under the same 30 s ceiling
as run-sminos-tests.sh's wait_until and test-bridge-requests.sh's until_true.
Every call site waits for a condition it then asserts, so only a failing run
takes longer.
#203 fixes the Linux start-time refusal at its source (sminos_rpc reads
/proc). The stand-in's startedAt and the TECH-DEBT note about it go, so
test_rpcs.py exercises that path. Version files take main's side; the bump
follows.
@SSFSKIM
SSFSKIM merged commit 979192b into main Oct 16, 2026
11 checks passed
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