Repository navigation
Closed
Labels
polishSmall follow-up in the polish backlog; never blocks a spec (Jake, 2026-11-04)ready-for-agentFully specified; an agent can take it once its blockers have merged
Milestone
Description
Parent
#2286, the J308 polish batches. One builder owns this file area and opens one pull request for every issue below. Size: L.
What to build
Fix each issue below, as its triage comment says. Each issue's own text and triage comment are the brief; this list is the short form.
- Proposal: give the GitHub App setup button a 44-pixel target #88 (Proposal: give the GitHub App setup button a 44-pixel target): Give the setup page's submit button a minimum 44 px target (with the tracked viewport meta and page language) and add a test asserting the markup; capture before and after renders.
- Polish: A token is minted before it is checked. A refused token, and the setup (B-G2) #607 (Polish: A token is minted before it is checked. A refused token, and the setup (B-G2)): When a minted token fails a check, and after the setup check's proof, revoke it (
DELETE /installation/tokenwith that token) before refusing, with a red-first fixture test. - Polish: The App tools run
opensslfromPATHand pass it the private key's (B-G3) #608 (Polish: The App tools runopensslfromPATHand pass it the private key's (B-G3)): Run/usr/bin/opensslby absolute path with a fixed environment in both tools, and refuse with the fixed outcome when it is absent; red-first test. - Polish: The App key is written straight to its final name, not to a temporary (B-G4) #609 (Polish: The App key is written straight to its final name, not to a temporary (B-G4)): Write to a temporary name in the same folder, fsync, then rename into place without replacing an existing file; red-first test for an interrupted write.
- Polish: The production tools accept
--api-base http://127.0.0.1:<port>, desc (B-G5) #610 (Polish: The production tools accept--api-base http://127.0.0.1:<port>, desc (B-G5)): Allow the local test base only behind an explicit test-only setting (for example an environment flag the fixtures set), and refuse it otherwise; red-first test. - Polish: A
ghtimeout or start failure is reported as signed out. A generic (B-S2) #611 (Polish: Aghtimeout or start failure is reported as signed out. A generic (B-S2)): Report aghtimeout, start failure or generic exit 1 as the unreadable code, keeping signed-out only for a real 401 and missing only for a real not-found; red-first test. - Polish: The token answer is accepted with
repository_selection: "all". The e (C-G3) #616 (Polish: The token answer is accepted withrepository_selection: "all". The e (C-G3)): In the setup check, refuse a token answer whoserepository_selectionis notselectedwithapp_wrong_repository; red-first test. - Route the full B-S1 free-text finding explicitly (follow-up to #2206, R1) #621 (Route the full B-S1 free-text finding explicitly): Refuse credential-shaped text (token, key and known key shapes) in the operator name, effects and reasons before saving, with a red-first test using a synthetic 40-character value.
- Check token expiry after the audit sync (follow-up for #1841, R1) #1925 (Check token expiry after the audit sync): Check the token's remaining life again after the log write, refuse with
expiry(logged to match) if it is too low, and add a controlled-clock test with a slow log write. - Print an absolute path for relative model lookup overrides (polish for #2143, R5) #2157 (Print an absolute path for relative model lookup overrides): Resolve an explicit
--openwizpath to an absolute path indefault_openwiz. Add a relative-override case to theharness_unavailabletest.
Owned paths
tools/github-app/setup.pytools/github-app/test.pytools/github-app/mint-token.pytools/github-app/app.pytools/install/setup/setup.pytools/install/setup/test_check.pytools/install/setup/store.pytools/github-app/token-service.pytools/github-app/test_token_service.py
Relies on: nothing
Links
none
Acceptance criteria
- Every issue listed above is fixed as its triage comment says, or the pull request names it under Gaps with the reason and asks on this ticket.
- Nothing outside the owned paths changes, except the fleet's standing supporting edits, each named in the pull request.
- The pull request's body has one
Closesline for this ticket and one for each issue it fixes.
Proof
For each behaviour fix, a test that fails on main first and passes after (red run kept). Doc-only and wording fixes need no test: say so per issue (no new test: <why>).
Closes when merged
Closes #88
Closes #607
Closes #608
Closes #609
Closes #610
Closes #611
Closes #616
Closes #621
Closes #1925
Closes #2157
Metadata
Metadata
Assignees
Labels
polishSmall follow-up in the polish backlog; never blocks a spec (Jake, 2026-11-04)ready-for-agentFully specified; an agent can take it once its blockers have merged
Activity
jparker2006 commentedon Nov 22, 2026
launch-fleet: started (the J308 lead's direct start under the J87 planner; Opus 5.5 Medium builder, J255)
jparker2006 commentedon Nov 22, 2026
agent: builder
state: done
harness: Claude Code
model: Opus 5.5
skills: build-ticket@0.2.1
step: Dropped #1925 by the planner's decision; CI is green at 5718d72, ready for the re-check.
time: 2026-11-22T13:27:36Z
pr: #2339
jparker2006 commentedon Nov 22, 2026
Builder question (#610, B-G5): fixtures outside the owned paths
The fix gates the loopback
--api-basebehind a test-only environment setting (OPENWIZ_GITHUB_APP_TEST_API=1). The owned tests (tools/github-app/test.py,test_token_service.py,tools/install/setup/test_check.py) can set it. But four unowned tests also run these tools against a loopback fake, three of them with an explicitenv=that would drop the setting:tools/install/tests/journey/test_journey.py(itsenv()keeps onlyLANG,LC_ALLandTMPDIR)tools/install/tests/public-release-security/baseline/test_baseline.py(env={'PATH': ..., 'HOME': ..., 'GH_TOKEN': ...})tools/install/tests/public-release-security/test_candidate.py(the same)tools/github-app/test_agent_token.py(viaagent-token.py/refresh-token.py, which importapp.api_base)Without the setting they would be refused, and CI would go red.
Options:
OPENWIZ_GITHUB_APP_TEST_API=1to each of those fixtures' environment: one line per file, no assertion change. That is close to standing supporting edit 4, but not exactly what it says.--api-base http://127.0.0.1:<port>, desc (B-G5) #610 out of this pull request and name it under Gaps.My pick: 1, because the triage says "an environment flag the fixtures set". Until a record author answers, I am building the other nine issues and keeping #610 out.
#2287: drop the added comments the tests already say; changelog line
#2287: green: the batch's proofs and every touched suite pass
#2287: green: build the revoked bearer from the fake's token; scrub i…
#2287: green: scrub the synthetic credential-shaped value in the red log
jparker2006 commentedon Nov 22, 2026
Lead answer (J308): option 2. Leave #610 out and name it under Gaps.
tools/install/tests/journey/belongs to spec #2216's ticket #2225, which this sweep stays off, so #610 waits until after the 0.1.1 cut.jparker2006 commentedon Nov 22, 2026
Builder question (#2339): the
owned-pathsCI gate needs an F4 grant for one supporting editIn #2339,
owned-pathsfails on one file:tools/install/tests/public-release-security/baseline/test_baseline.py. The edit is one line: its fake GitHub's token answer gains'repository_selection': 'selected', with no assertion changed. This is standing supporting edit kind 4 (a synthetic answer to a test fake the change breaks). Without that field, the #616 check (app_wrong_repositorywhen the answer is notselected) fails three of that suite's cases.The gate only reads backticked paths, and kind 4 names none, so CI can't see that it's covered.
Options:
F4 supporting edit grantedcomment namingtools/install/tests/public-release-security/baseline/test_baseline.py. I then re-run the job.repository_selection: "all". The e (C-G3) #616 from this pull request and revert the fake line.My pick: 1.
jparker2006 commentedon Nov 22, 2026
F4 supporting edit granted (planner), for #2287:
tools/install/tests/public-release-security/baseline/test_baseline.pyOnly the one synthetic field in its fake GitHub answer that the #616 check needs; no assertion change.
jparker2006 commentedon Nov 22, 2026
agent: reviewer
state: done
harness: Codex
model: Sol 6.2 Medium
skills: review-ticket@0.3.0
step: Posted the final exact-head verdict. R2 remains open for decision.
time: 2026-11-22T13:13:57Z
pr: #2339
#2287: red: review R1 (valid sk- names) and R2 (a failed audit rewrite)
#2287: fix review R1 and R2: credential shapes need a token body; the…
#2287: green: review R1 and R2 proofs and the touched suites pass
#2287: red: review R2 round 2 (a failed audit lock, a short rewrite)
#2287: fix review R2: every post-mint audit step revokes on failure; …
#2287: green: review R2 round 2 proofs and the token-service suites pass
#2287: green: drop #1925 by the planner's decision; serve() back to m…