Repository navigation
fix(verification): port watch-pr, worktree-audit, and skill rigor fixes - #25
Merged
Merged
Conversation
jtaroreh
force-pushed
the
feat/agystack-pr3-empirical-verification
branch
from
November 22, 2026 22:31
9f1cd1a to
b933bb3
Compare
jtaroreh
changed the base branch from
feat/agystack-pr1-invariants
to
feat/agystack-pr2-formal-verification
November 22, 2026 22:31
Owner
Author
Verification Verdict: CLEAN & Restacked onto PR-2 at
|
Owner
Author
|
Independent verification verdict: PASS+NOTES Verified head SHA: Verification commands and observed results
Diff audit and notes
|
jtaroreh
force-pushed
the
feat/agystack-pr2-formal-verification
branch
from
November 23, 2026 00:48
bc5e91a to
73428c5
Compare
jtaroreh
changed the base branch from
feat/agystack-pr2-formal-verification
to
main
November 23, 2026 00:51
Ports upstream watch-pr fixes (gateOr ACTION_REQUIRED, isCrossRepository fork guard, reviewThreadPage pagination, pollUntilTerminal sleep cap), worktree-audit.sh runtime stat/date probing and strict base ref resolution, and empirical verification clauses in benchmark-checklist, perf-issue, create-verification-skill, and maintain-verification-skill while preserving Antigravity primitives.
jtaroreh
force-pushed
the
feat/agystack-pr3-empirical-verification
branch
from
November 23, 2026 00:51
b933bb3 to
0b96076
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
Port four
watch-predge-case fixes,worktree-audit.shportability and base-ref strictness, and empirical rigor rules from upstreampstackontofeat/agystack-pr1-invariants, while keeping Antigravity tools, brain artifacts, and model routing intact.Scope
skills/poteto-mode/scripts/watch-pr/types.ts,github.ts,policy.ts,fakes.test-helper.ts,github.test.ts, andpolicy.test.tsport four fixes with regression tests:Code Review GateACTION_REQUIREDclassification viagateOr(code-review-gate),isCrossRepositoryfork collision guards inorderStackandopenPullRequests, paginatedreviewThreadPagewithpageInfovalidation andresolveReviewThreads, and--timeoutsleep capping inpollUntilTerminal.skills/poteto-mode/scripts/worktree-audit.shadds runtime GNU vs BSDstatanddateprobing, strictorigin/HEAD,origin/main, andorigin/mastervalidation exiting1when all three are missing, explicit+refs/heads/...:refs/remotes/...fetch refspecs for single-branch clones, and optionalorigin prfallback, while keepingtrap 'rm -f "$prs"' EXIT INT TERM,substr($0, 10)path parsing,grep -rlFIfallback whenrgis absent, and~/.gemini/antigravitybrain transcript scans.skills/benchmark-checklist/SKILL.mdadds pre-runuptimeandnprocchecks, an explicit claim statement, A-B-A-B interleaved sampling,inconclusiveverdict criteria, and Antigravityperf_report.mdBrain Artifact delivery.skills/poteto-mode/playbooks/perf-issue.mdreplaces the eight strategy families with the seven ordered performance mantras (1. Don't do itthrough7. Do it cheaper) while retaininginvoke_subagent, theperf-issue(inherit) model config,principle-explain-the-number, andperf_report.md.skills/create-verification-skill/SKILL.mdrestores empty-data-dir launch readiness after migrations and seed data, logging unmet seed preconditions inGotchasinstead of weakening journeys, and listing unverified stand-in target differences, while keepingSurface Precedence Hierarchy,browser_subagent, and.agents/skills/verify-<app>/.skills/maintain-verification-skill/SKILL.mdreplaces benchmark-specific jargon (grader queues,2-vCPU,dense fill explosion) with generic remote-environment postmortem wording while retaining helper CLI contract checks, worktree isolation checks, background-poller cleanup, and.agents/skills/verify-*/.Out of scope: stacking onto PR-2 (handled by the stack coordinator after verification) and editing files outside these 11 paths.
Tradeoffs
GhGitHubReaderdrops the PR-1runJsonFnconstructor injection in favor of upstream'sreviewThreadPagemethod onGitHubReader, keeping pagination logic in one pure function (resolveReviewThreads) over the interface and testing theghCLI path via a temporaryghshim ingithub.test.ts.worktree-audit.shprobesstatanddateflags independently rather than gating both onstat -c, so a standalone GNUstatshim on macOS does not fail when/bin/dateis BSDdate.Blast Radius
cli.ts,render.ts, andtypes.compile.tscontracts stay unchanged and pass typechecking.bun testmedian runtime increases from ~267ms on trunk to 442ms because upstream's newghfork-identity subprocess test executes a freshly writtenghshim intmpdir().Verification
All checks ran on commit
9f1cd1a7c94f1cf1967e46e02430eb4315f953e1.ruff check .passed.pytest -v tests/had 412 passed, 3 skipped (test_live_cloud_bidirectional.pywithout live GCS bucket), and 153 subtests passed.cd skills/poteto-mode/scripts && bun testhad 61 passed and 0 failed across 4 files, with a 5-run median of 442ms (range 438-451ms, under 2000ms).bunx tsc --noEmit -p skills/poteto-mode/scripts/watch-pr/tsconfig.jsonexited0.bash -n skills/poteto-mode/scripts/worktree-audit.shexited0; live scratch tests passed against a bare remote, single-branch clone with-b origin/integration, spaced worktree and transcript paths, a stub GNUstatshim, stuborigin pr,--bad-flag(exit 2), missing base refs (exit 1), andtrapcleanup.python3 skills/setup-agystack/scripts/setup_runtime.py --doctorreturned"status": "OK".bash scripts/package-plugin.sh --testverified the dry-run package archive (agyCLI absent on PATH, strict CLI validation skipped).git diff --name-only origin/feat/agystack-pr1-invariants..HEADconfirmed only the 11 scoped files changed.