Repository navigation
fix(ci): restore the release commit and push hook baseline - #204
nullStack65 wants to merge 2 commits into
Conversation
On release/native-0.1.10 the pre-commit hook fails on eight unused exports and the pre-push check fails on a scenario typecheck error and a stale agent context budget, so no code change can land without bypassing the hooks. Seven unused exports are used only inside their own module and lose their export. The client setThreadDelegationNudge wrapper has no caller and goes; the server command and its MCP tool stay. The upstream ACP refresh scenario imports rpcClient from scenarios/t3.ts, so the fork's identical helper moves there as upstream has it. The MCP tool list budget takes the measured size after the event subscription and delegation nudge tools landed. Model: claude-opus-5-5 Task: CLO-1066 Agent: claude-code Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars.
|
Git exports GIT_DIR to hooks. Under pre-push, the replay workspace fixture inherited it, so its git init, config, add and commit ran against the pushing worktree: it committed "initial" onto the branch being pushed and wrote the test identity into the shared repository config. Unset the inherited repository selectors, as the server's VcsProcess already does for its own git calls. Model: claude-opus-5-5 Task: CLO-1066 Agent: claude-code Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
RESULTRESULT — Independent bot review of #204 (release hook baseline and test-helper git identity leak): needs-fixAutomated reviewer: Claude (Opus 5.5) in a fresh read-only context, using an isolated clone and never the shared checkout. Dispatched by PR Reviewer, who audited the evidence and spot-checked the findings in the code. This is a bot review, not human approval. Base The Important
Nits
Evidence. Node 26.13.1. Dependencies were installed with {"reviewed_head":"7941765bfe7733d502567e421a4e230b60fd22fc","reviewer":"claude-opus-5-5 (PR Reviewer dispatch)","findings":[
{"id":"R204-1","severity":"important","summary":"ThreadFork.integration.test.ts runGit still inherits GIT_DIR and writes T3 Code Test identity","outcome":"open","rechecked_head":null},
{"id":"R204-2","severity":"important","summary":"~10 other test git helpers leak via inherited GIT_DIR; fix at pre-push hook layer","outcome":"open","rechecked_head":null},
{"id":"R204-3","severity":"nit","summary":"No regression test for the env scrub","outcome":"open","rechecked_head":null},
{"id":"R204-4","severity":"nit","summary":"Partial GIT_* denylist; drop-all pattern exists","outcome":"open","rechecked_head":null},
{"id":"R204-5","severity":"nit","summary":"Pre-existing ThreadStop test failure at base and head","outcome":"open","rechecked_head":null}]} |
On
release/native-0.1.10(dfc5038) the git hooks fail before any change is made, so no code commit can land without--no-verify, and one pre-push test writes into the repository being pushed:scripts/scenarios/acp-refresh-keeps-deleted-session-removed.e2e.ts. The upstream sync (sync: Antigravity and ACP fixes from upstream (2026-11-20) #154) importsrpcClientfromscenarios/t3.ts, but the fork'st3.tsnever exported it.AgentContextBudget.test.tsmeasures the MCP tool list at 61,917 bytes against a committed 61,564.OrchestratorMcpService.test.ts) fail, and do damage. Git exportsGIT_DIRto hooks, so the fixture'sgit init,config,addandcommitran against the pushing worktree, not its temp directory. Each run committed aninitialcommit onto the branch being pushed and wrote theT3 Code Testidentity into the shared repository config.The four Knip file findings that blocked this work earlier (
mirror-play-apk.cjs,verify-built-boot.ts,resolve-nightly-release.ts,smoke-cli-archive.ts) were already fixed as entry points by #186.Fix
layerEventsToolkit,isScheduledFreshRunincontextBoundary.ts, andcanonicalAuthor,authorIgnored,normalizePullRequestUrl,normalizeDeliveryandminutesInZone. Each one drops itsexport. None is a missing Knip entry point; nothing imports them from outside.setThreadDelegationNudgeand its input type have no caller anywhere, so they are removed. The serverthread.delegation-nudge.setcommand and its MCP tool are unchanged.rpcClientscenario helper is identical to upstream's exported one. It moves frommention-finds-older-linked-thread.e2e.tsintoscenarios/t3.ts, where upstream keeps it, and both scenarios import it.agentContextBudget.jsontakes the measuredmcpToolListJsonBytes. No model-facing text changes, so no eval run applies.packages/provider-testing/src/replayWorkspace.ts) unsets the inherited repository selectors (GIT_DIR,GIT_WORK_TREE,GIT_INDEX_FILEand related), as the server'sVcsProcessalready does for its own git calls.Checks
knip:check3/3.check:changedpasses: format, lint, Knip 2/2, GraphQL, typecheck (9 packages), tests (5 files).GIT_DIRpointed at an empty decoy repository,OrchestratorMcpService.test.tspasses 91/91 and the decoy stays empty. Without the fix, the same run fails 2 tests and commits onto the branch.This unblocks the failed-thread watcher wake (CLO-1066), whose PR is stacked on this commit.
Deploy: none
Model: claude-opus-5-5
Task: CLO-1066
🤖 Generated with Claude Code