Skip to content

0.1.2 TM14: create-repo seeds only a repository its own create reply verified #2759

Done
openwizdev/WizSkills
#355

Description

@jparker2006

Parent

Ticket TM14 of spec #2322 (0.1.2), seed only a repository OpenWiz created. Size: S.

What to build

TM4 (#2325) has first_fleet.py create-repo seed a passing test and a check workflow when OpenWiz creates the user's repository. Its review left one gap (logged as R1 on WizSkills #285): on resume after an interrupted create, a pending create record plus a private repository at that name is taken as proof OpenWiz created it, so a repository a teammate created meanwhile gets the starter files on its default branch. The first-run path also ignores the create result before seeding.

The fix: seed only when this operation's own create reply is verified, and bind the seeding to the repository id from that reply; the repository read back must have the same id. If the creation is uncertain (a lost reply, a different id, a repository that already existed), stop before writing either file and say why.

This ticket must merge before 0.1.2 ships.

Owned paths

  • skills/install/scripts/first_fleet.py in openwizdev/WizSkills (shared: only create-repo's seeding)
  • skills/install/tests/test_first_fleet.py in openwizdev/WizSkills (shared: only the seeding tests)
  • .changeset/2759-seed-verified.md in openwizdev/WizSkills (new)

Relies on: nothing

Links

Acceptance criteria

  • A resume where a teammate created a private repository with the same name writes neither file and says creation is uncertain (red first: this case writes both files today).
  • A lost create reply, or a repository id that differs from the create reply's, writes neither file.
  • A verified create still seeds both files once, as TM4 shipped.

Proof

test_first_fleet.py, red first for the teammate-created-same-name case.

Activity

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

    @jparker2006
    MemberAuthor

    launch-fleet: started (the 0.1.2 lead's direct start after the 0.1.1 seal; Claude Fable 5.2 Medium builder per Jake's model rule, Codex Sol 6.2 Medium review). Hand checks: open, only ready-for-agent, no claim, builder or pull request yet; its blocker #2325 merged; owned paths (create-repo's seeding) clash with no open pull request.

  4. jparker2006 commented on Nov 23, 2026

    @jparker2006
    MemberAuthor

    F4 supporting edit granted (planner), for #2759:
    skills/install/tests/fixtures/fake_gh.py

    In openwizdev/WizSkills: only the fake's answers that let create-repo bind seeding to its own create reply: accept id in repo view --json, give each fake repository a stable synthetic node id, answer gh api -X POST user/repos (and the orgs/<owner>/repos form) with a JSON reply keeping the old lost and fail behaviour, and log it as a repo create. No other fixture behaviour changes.

  5. jparker2006 commented on Nov 24, 2026

    @jparker2006
    MemberAuthor

    launch-fleet: look: builder routing unresolved for the start check; WizSkills branch room/2759-seed-verified exists and PR openwizdev/WizSkills#355 needs its assigned builder checked. No replacement started.

  6. jparker2006 commented on Nov 24, 2026

    @jparker2006
    MemberAuthor

    F4 supporting edit granted (planner), for #2759:
    skills/install/tests/fixtures/fake_gh.py

    Widens the earlier grant for R2 of WizSkills #355, synthetic answers only, no assertion change: (a) one gh api graphql read by owner and name returning the repository id, defaultBranchRef { id name target { oid } } and each starter file's text at that commit; (b) createCommitOnBranch on branch.id with expectedHeadOid, refusing an unknown ref id or a moved head, returning the new oid and keeping seed_lost; (c) a node(id:) read of that ref; and one switch that replaces the repository between the read and the write, for the red test.

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