Skip to content

0.0.16 T3: private personal App and protected key handoff #606

Closed

Description

@jparker2006

Parent

Ticket T3 of confirmed spec #2920 (0.0.16).

What to build

Adopt the existing C-G1/J48 security follow-up #2868 into this spec. Build the user's own App path on the merged manifest/callback tool: private registration by default, selected repositories on the App owner's account only, and an explicit separate setting for the current factory's public multi-account App. Retain the fixed permission profile and user commit credit. Enforce the private App owner boundary in Python and Rust token paths, not only in the install screen.

Join the converted-key secret-store seam to a verified supported CloudRoom capability when it exists. Name CloudRoom agent-side save-secret as the upstream dependency; a fake sink is not shipment. Until it ships, retain the one-paste CloudRoom protected-prompt recovery, including the contract's documented temporary owner download/encoding/deletion rather than a hidden clipboard or credential output. Persist the App identity before handoff, reconcile partial/uncertain delivery and reuse the App/secret on later runs. No key in ordinary output, args, URLs, logs, prompts or Git content, and no new secret server. T4 prepares the upstream contribution independently; its patch alone never enables the no-paste capability.

Owned paths

  • tools/github-app/
  • crates/adapters/github/src/app.rs
  • crates/cli/src/github_token.rs
  • tests/cli-agent/github_token.rs
  • docs/agents/github-app.md
  • docs/evidence/openwiz-0.0.16/app-key-handoff.md
  • changes/setup-onboard-app-key.md

Relies on: contracts/setup-onboard.v1.md, contracts/setup-onboard.v1.schema.json, contracts/github-identity.v1.md, contracts/setup.v1.md, contracts/agent-github-reads.v1.md, contracts/open-development.v1.md

Links

Acceptance criteria

  • The user manifest is private and its installation/token paths reject an account other than the App owner; the factory public mode is explicit and remains compatible with its existing installations.
  • The prepared flow requires Create and Install only for the manifest steps, keeps the exact permission profile and selected repositories, and never silently publishes an App or registers another on reload.
  • With an observed supported secret save, the converted key goes directly to the protected store and delivered App identity agrees. With no supported save, the one-paste fallback is available and accurately explains its extra owner interactions.
  • Store failure, lost conversion/delivery replies, ID-without-key, wrong owner, revoked key, wrong token scope, replayed callbacks and partial provisioning stay safe and reconcile once. Rotation reuses the existing App.
  • Synthetic credentials planted in child output/errors never reach public output, provider arguments, logs or repository files. Tokens retain read downscoping, short lifetime and no internal personal-identity fallback.
  • Focused existing App/token tests are red first for the private default and foreign-owner acceptance. The sanitized evidence explains which route was proved and keeps no-paste live status unverified until observed.

Proof

P2/P3/P5/P6, including C-G1/J48 from #2868. Red-first App callback/token integration and failure/recovery tests, plus independent credential-boundary review. Existing fake-store tests prove only the seam, never CloudRoom availability.

Validation and authority

Run the affected checks only, plus format/type checks for touched code. Use the existing CI selection/registration rows; do not add a new project dependency or skip a missing required tool silently. Fixtures contain synthetic values only. Raw live/contributor/account evidence and exact decision words stay private; public results use verified private-comment pointers. New visible UI uses the existing image skill before implementation.

This graph is written for approval only. No ready label, builder start, live/account/machine/secret action, external posting, spending, merge, release or publication is authorized by this unapproved ticket. After graph approval, the project's merge rules apply to implementation; live work still needs T8's exact kit authorization. A closed blocker without its required verified merge/completion evidence does not release work. New scope or changed interfaces return through plan-graph change control.

was ClosedWiz #2868

Activity

  1. added this to the 0.0.16 milestone on Nov 15, 2026
  2. added
    ready-for-agent
    on Nov 15, 2026
  3. jparker2006 commented on Nov 15, 2026

    @jparker2006
    MemberAuthor

    launch-fleet: noted #699

    RN6’s repository-capitalisation-only contract change is pre-released for this ticket under C2. Consumer scope, blocker meaning and owned paths are unchanged; no ticket edit or new approval cutoff is needed. This acknowledges/releases only a #699-triggered contract hold, not any independent audit, needs-info, ordering or live gate.

    Private record: https://github.com/jparker2006/ClosedWiz/issues/325#issuecomment-6891382510

  4. added
    held
    and removed
    ready-for-agent
    on Nov 15, 2026
  5. jparker2006 commented on Nov 15, 2026

    @jparker2006
    MemberAuthor

    launch-fleet: held for #644: contract changed, re-approve. contracts/github-identity.v1.md, contracts/setup.v1.md changed in #644.

    T1 is verified merged into main. Its optional identity/brain fields, selected-identity ready rule and pinned init/receipt seams affect existing relied-on contracts. This is the mechanical consumer hold required by launch-fleet, not an assertion that T1 failed review. The current approved graph bodies, paths and dependency edges are unchanged; the prepared re-approval request is on spec #625. The #699 C2 release covers only its capitals-only change, not this #644 interface delivery. No independent hold or live authorization is released.

  6. added
    ready-for-agent
    and removed
    held
    on Nov 15, 2026
  7. jparker2006 commented on Nov 15, 2026

    @jparker2006
    MemberAuthor

    launch-fleet: start checked, branch room/606-0-0-16-t3-private-personal-app-and-p-xc9g

    Checkpoint remote head verified at a023fb2. The builder reports a later green push still in its hook; no green remote head, PR or CI result is inferred. Existing factory configuration remains an orchestrator-owned pre-merge gate.

  8. jparker2006 commented on Nov 15, 2026

    @jparker2006
    MemberAuthor

    Builder question: exact supporting paths for the carried App-tool copies.

    Found: tools/fleet-load/test_carried.py requires skills/launch-fleet/scripts/github-app/app.py, mint-token.py and manifest.json to stay byte-identical to tools/github-app/app.py, mint-token.py and manifest.json. This ticket must change all three sources (AC1: private user manifest by default; owner-bound installation check in the Python token path, mint-token.py), so CI's carried-copy check fails unless the three copies change with them. The copies are outside the owned paths and the approval names no supporting envelope.

    Smallest change: copy the three changed source files byte for byte into skills/launch-fleet/scripts/github-app/ (no other edit there, no change to test_carried.py or launch-fleet's SKILL.md).

    Options:

    • A (recommended): widen the paths to exactly those three copy files, byte-identical copies only.
    • B: keep them unowned; then this PR cannot pass CI's carried-copy check.

    FYI, no answer needed: the explicit factory setting is the public, non-secret variable OPENWIZ_GITHUB_APP_MODE=factory. Unset means a user App, bound to its owner. In factory mode only the identity pin's named installations are accepted. I document it in docs/agents/github-app.md. docs/agents/fleet.md's identity table and contracts/cli.v1.md are not owned here, so a factory host that mints for a cross-account installation needs that variable set once this merges. I'll list this under the PR's Gaps.

    Work the question doesn't touch continues meanwhile.

  9. added
    needs-info
    on Nov 15, 2026
  10. jparker2006 commented on Nov 15, 2026

    @jparker2006
    MemberAuthor

    Orchestrator ruling: option A granted. This ticket may also change exactly skills/launch-fleet/scripts/github-app/app.py, mint-token.py and manifest.json, as byte-identical copies of the three changed sources in tools/github-app/ only. No change to test_carried.py, to launch-fleet's SKILL.md or to anything else in that folder. Record the grant in the PR's Facts.

    On the FYI: list the OPENWIZ_GITHUB_APP_MODE=factory requirement under the PR's Gaps, and say plainly what a factory host without it does after this merges (which mints fail, and what the fallback is). The orchestrator sets the factory's variable before this PR merges, so hold the hand-back note for that line.

  11. 27 remaining items

  12. jparker2006 commented on Nov 16, 2026

    @jparker2006
    MemberAuthor

    Builder question 6 (review R3, follow-up to the question 5 grant): one asserted request list.

    Applying the grant: check_app reads GET /app once an installation candidate exists, so the baseline fake (tools/install/tests/public-release-security/baseline/test_baseline.py) needs one synthetic /app answer. I added it under the grant. But that test also asserts an exact allow-list of the App requests it records (line ~412): ('GET', '/app/installations'), ('GET', '/app/installations?page=2'), ('POST', '/app/installations/2002/access_tokens'). Its 4 cases fail with ('GET', '/app') not found in [...]. The fix is one more entry in that list:

    -                    self.assertIn((method, path), [('GET', '/app/installations'),
    +                    self.assertIn((method, path), [('GET', '/app'), ('GET', '/app/installations'),

    This is the same kind of request-list extension the grant allows for t7_app. It adds one App read (no token, no write). The count of exactly one token request (len([s for s in seen if s[0] == 'POST']) == mints) and every POST check stay as they are. Hiding the read from seen instead would be a recording change, so I didn't do that. (t7_app needed no request-list change: its new answers aren't recorded.)

    Everything else for R1–R3 is done and passing locally; this line is the only thing blocking the one combined push.

    Options:

    • A (recommended): allow exactly this one entry in that assertion.
    • B: refuse; then release stays red at the new head.
  13. jparker2006 commented on Nov 16, 2026

    @jparker2006
    MemberAuthor

    Fleet follow-up to question 6: its exact single ('GET', '/app') baseline request-list entry is pending; the existing private relay is verified, so no duplicate assertion request is needed. Keep recording that read and preserve the single-token/POST checks.

    One additional confirmation from the builder's current R3 implementation needs to be recorded alongside it: the service has an existing factory-repository fixture, so the proposed owned adapter fix honors the existing OPENWIZ_GITHUB_APP_MODE=factory setting and accepts only the contract's named factory installations; ordinary user mode remains owner-bound. This adds no config field or contract edit. Please explicitly confirm whether that use of the existing setting fits question 5's “no mode change” limit, or give the bounded alternative. Recommend confirming this existing-mode compatibility without expanding the named installation/repository allowlist. The prior question 5 sketch assumed the service was user-only, so the fleet is not silently substituting this compatibility behavior.

    R1–R3 remain local and unpushed per the builder; actual PR #864 is still at f00f466246d61157b169dbc1cc0974280fcb6bed, and needs-info is retained. No new push, re-check or factory-host setting change is requested while these answers are pending.

  14. jparker2006 commented on Nov 16, 2026

    @jparker2006
    MemberAuthor

    Orchestrator ruling: question 6 granted under the standing supporting-edit allowance (item 4): add the one ('GET','/app') entry to the asserted App request list in test_baseline.py, since the mint now makes that read. No other assertion changes. Push R1 to R3 together.

  15. jparker2006 commented on Nov 16, 2026

    @jparker2006
    MemberAuthor

    Fleet update: question 6's baseline assertion grant was read back and delivered to the retained builder; delivery accepted. Exactly the one GET /app request-list entry is covered, with no other assertion, POST-count or recording changes. The separately recorded existing-factory-mode confirmation in the earlier addendum remains awaiting an explicit answer; no wider permission is inferred from the assertion grant. No duplicate request or partial push is needed. Combined correction, actual new head/CI, the same reviewer's one re-check and the factory-host pre-merge gate remain.

  16. jparker2006 commented on Nov 16, 2026

    @jparker2006
    MemberAuthor

    Fleet update: the retained builder has been directed to push the combined R1, R2 and R3 correction once, then update Facts and the per-finding answer with the actual head, tree and CI. The existing q3/q4 corrected-fixture, q5 R3/check_app and q6 single-request-list grants were read back. The current orchestration direction settles the remaining push wait; no duplicate question is needed. The same reviewer's one re-check follows actual new-head ci/privacy green. Factory-host configuration remains a separate orchestrator-owned pre-merge gate, with no global setting change by this fleet.

  17. added 6 commits that reference this issue on Nov 16, 2026
  18. removed
    needs-info
    on Nov 16, 2026
  19. jparker2006 commented on Nov 16, 2026

    @jparker2006
    MemberAuthor

    Orchestrator ruling: the pre-merge gate I set on the factory's OPENWIZ_GITHUB_APP_MODE is lifted; #864 may merge when approved. Reason, checked today: no factory agent mints through the openwiz program yet (it is not installed in agent sandboxes), the App and its installation for the openwizdev repositories are on the same account, so user mode passes there, and only mints for the private repository's installation need factory mode. The setting is being requested from the owner separately. Keep the requirement listed under the PR's Gaps.

  20. jparker2006 commented on Nov 16, 2026

    @jparker2006
    MemberAuthor

    launch-fleet: archived

    #606 closed through merged PR #864. Approved head 299bf6782927dfcfb81a9c9591c7b0b08832a975 merged into default branch main as 99f71ceb3b53e921502cd3985afaba9db34a3299; ancestry and the closing-PR relationship were verified. Its retained builder and reviewer are archived. Exact-head APPROVE: #864 (comment) . One ordinary review plus one re-check is complete. The separate factory-setting gate was lifted by #606 (comment) ; requirements remain in Gaps. This is completion of already admitted work, with no deployed-host configuration or live/no-paste acceptance claim.

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

    ready-for-agent

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions