Skip to content

0.1.1 polish A: GitHub App and setup hardening #2287

Closed

Description

@jparker2006

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.

Owned paths

  • tools/github-app/setup.py
  • tools/github-app/test.py
  • tools/github-app/mint-token.py
  • tools/github-app/app.py
  • tools/install/setup/setup.py
  • tools/install/setup/test_check.py
  • tools/install/setup/store.py
  • tools/github-app/token-service.py
  • tools/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 Closes line 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

Activity

  1. added this to the 0.1.1 milestone on Nov 22, 2026
  2. added
    polish
    ready-for-agent
    on Nov 22, 2026
  3. jparker2006 commented on Nov 22, 2026

    @jparker2006
    MemberAuthor

    launch-fleet: started (the J308 lead's direct start under the J87 planner; Opus 5.5 Medium builder, J255)

  4. jparker2006 commented on Nov 22, 2026

    @jparker2006
    MemberAuthor

    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

  5. jparker2006 commented on Nov 22, 2026

    @jparker2006
    MemberAuthor

    Builder question (#610, B-G5): fixtures outside the owned paths

    The fix gates the loopback --api-base behind 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 explicit env= that would drop the setting:

    • tools/install/tests/journey/test_journey.py (its env() keeps only LANG, LC_ALL and TMPDIR)
    • 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 (via agent-token.py/refresh-token.py, which import app.api_base)

    Without the setting they would be refused, and CI would go red.

    Options:

    1. Add OPENWIZ_GITHUB_APP_TEST_API=1 to 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.
    2. Leave Polish: The production tools accept --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.

  6. added
    needs-info
    on Nov 22, 2026
  7. added 4 commits that reference this issue on Nov 22, 2026
  8. jparker2006 commented on Nov 22, 2026

    @jparker2006
    MemberAuthor

    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.

  9. removed
    needs-info
    on Nov 22, 2026
  10. jparker2006 commented on Nov 22, 2026

    @jparker2006
    MemberAuthor

    Builder question (#2339): the owned-paths CI gate needs an F4 grant for one supporting edit

    In #2339, owned-paths fails 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_repository when the answer is not selected) 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:

    1. A record author posts an F4 supporting edit granted comment naming tools/install/tests/public-release-security/baseline/test_baseline.py. I then re-run the job.
    2. Drop Polish: The token answer is accepted with repository_selection: "all". The e (C-G3) #616 from this pull request and revert the fake line.

    My pick: 1.

  11. added
    needs-info
    on Nov 22, 2026
  12. jparker2006 commented on Nov 22, 2026

    @jparker2006
    MemberAuthor

    F4 supporting edit granted (planner), for #2287:
    tools/install/tests/public-release-security/baseline/test_baseline.py

    Only the one synthetic field in its fake GitHub answer that the #616 check needs; no assertion change.

  13. removed
    needs-info
    on Nov 22, 2026
  14. jparker2006 commented on Nov 22, 2026

    @jparker2006
    MemberAuthor

    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

  15. added 7 commits that reference this issue on Nov 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    polishready-for-agent

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions