The run-tests pre-push gate was failing on every branch, regardless of what was being pushed — discovered while trying to push unrelated work.
tests/test-check-rtk-prefix.sh's "pre-#113 corpus trips the gate" case reconstructed the historical (pre-sweep) corpus by reading files off the live main ref, asserting the gate should still catch a known drift (gitea-issues/SKILL.md's un-prefixed git remote get-url origin) there. main is the moving integration branch, and the actual fix for that drift (commit ed8c99e) merged back onto main — so the moment it merged, main stopped containing the drift the test exists to catch, and the assertion silently inverted from "this should fail" to "this now passes, incorrectly expected to fail."
Fix
Pin the historical-corpus reconstruction to 598a7c326a4bbfa4a39007eb95d944c4150686e8 — the last commit before ed8c99e where gitea-issues/SKILL.md still had the unprefixed call — instead of the moving main ref. A specific commit SHA is immutable, so this can't drift again the same way.
Also includes a routine apm.lock.yaml refresh to match the deployed install state (the drift AGENTS.md documents as expected from kyberforge's SessionStart hook), needed to clear the apm-audit-ci pre-push gate.
## Summary
The `run-tests` pre-push gate was failing on **every branch**, regardless of what was being pushed — discovered while trying to push unrelated work.
`tests/test-check-rtk-prefix.sh`'s "pre-#113 corpus trips the gate" case reconstructed the historical (pre-sweep) corpus by reading files off the live `main` ref, asserting the gate should still catch a known drift (`gitea-issues/SKILL.md`'s un-prefixed `git remote get-url origin`) there. `main` is the moving integration branch, and the actual fix for that drift (commit `ed8c99e`) merged back onto `main` — so the moment it merged, `main` stopped containing the drift the test exists to catch, and the assertion silently inverted from "this should fail" to "this now passes, incorrectly expected to fail."
## Fix
Pin the historical-corpus reconstruction to `598a7c326a4bbfa4a39007eb95d944c4150686e8` — the last commit before `ed8c99e` where `gitea-issues/SKILL.md` still had the unprefixed call — instead of the moving `main` ref. A specific commit SHA is immutable, so this can't drift again the same way.
Also includes a routine `apm.lock.yaml` refresh to match the deployed install state (the drift AGENTS.md documents as expected from kyberforge's `SessionStart` hook), needed to clear the `apm-audit-ci` pre-push gate.
## Test plan
- [x] `bash tests/test-check-rtk-prefix.sh` — 23/23 passed
- [x] `bash tests/run-tests.sh --strict` — 26/26 suites passed, 0 skipped, 0 failed
- [x] `apm audit --ci` — 10/10 checks passed
No linked issue — this was discovered as a blocker, not filed ahead of time.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
https://claude.ai/code/session_01PDj6F7SPXzh3FtPN78dZ88
The "pre-#113 corpus on main trips the gate" case reconstructed the
historical (pre-sweep) corpus from the live `main` ref. `main` is the
moving integration branch, and the #113 fix (ed8c99e) landed back onto
it — so the moment that fix merged, `main` stopped containing the bare
`git remote get-url origin` drift the case exists to catch, and the
assertion "the gate should fail on this corpus" silently flipped to
false. This blocked `git push` on every branch via the run-tests
pre-push hook, unrelated to whatever was actually being pushed.
Pin to 598a7c3, the last commit before ed8c99e where
gitea-issues/SKILL.md still had the unprefixed call. A specific commit
SHA is immutable, unlike `main`.
Co-Authored-By: Claude Sonnet 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01PDj6F7SPXzh3FtPN78dZ88
The kyberforge SessionStart hook re-resolves dependencies against the
holocron remote on every session start, which routinely leaves
apm.lock.yaml behind the actually-deployed .claude/ content (documented
in AGENTS.md). That mismatch fails apm-audit-ci and apm-pack-check-clean
at the pre-push gate regardless of what's actually being pushed.
Co-Authored-By: Claude Sonnet 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01PDj6F7SPXzh3FtPN78dZ88
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Summary
The
run-testspre-push gate was failing on every branch, regardless of what was being pushed — discovered while trying to push unrelated work.tests/test-check-rtk-prefix.sh's "pre-#113 corpus trips the gate" case reconstructed the historical (pre-sweep) corpus by reading files off the livemainref, asserting the gate should still catch a known drift (gitea-issues/SKILL.md's un-prefixedgit remote get-url origin) there.mainis the moving integration branch, and the actual fix for that drift (commited8c99e) merged back ontomain— so the moment it merged,mainstopped containing the drift the test exists to catch, and the assertion silently inverted from "this should fail" to "this now passes, incorrectly expected to fail."Fix
Pin the historical-corpus reconstruction to
598a7c326a4bbfa4a39007eb95d944c4150686e8— the last commit beforeed8c99ewheregitea-issues/SKILL.mdstill had the unprefixed call — instead of the movingmainref. A specific commit SHA is immutable, so this can't drift again the same way.Also includes a routine
apm.lock.yamlrefresh to match the deployed install state (the drift AGENTS.md documents as expected from kyberforge'sSessionStarthook), needed to clear theapm-audit-cipre-push gate.Test plan
bash tests/test-check-rtk-prefix.sh— 23/23 passedbash tests/run-tests.sh --strict— 26/26 suites passed, 0 skipped, 0 failedapm audit --ci— 10/10 checks passedNo linked issue — this was discovered as a blocker, not filed ahead of time.
🤖 Generated with Claude Code
https://claude.ai/code/session_01PDj6F7SPXzh3FtPN78dZ88