Skip to content

Make plan write ownership and closure evidence explicit - #276

Merged
DocksDocks merged 5 commits into
mainfrom
270-model-plan-write-ownership-and-close-event-evidence
Dec 1, 2026
Merged

DocksDocks merged 5 commits into
mainfrom
270-model-plan-write-ownership-and-close-event-evidence

Conversation

@DocksDocks

@DocksDocks DocksDocks commented Dec 1, 2026 •

Copy link
Copy Markdown
Owner

Plan run: #270 Model plan write ownership and close-event evidence

Pull request: #276. Full CI passed all 10 jobs.

What changed

  • Prepare a writable issue with the identified viewer. Distinguish pending, confirmed and existing ownership. Check the guarded pre-write owners again before reopening.
  • Keep close time and closer together. Narrow a merged pull request before consuming its evidence. Carry the pending parent link with the created issue.

Decisions and corrections

  • Keep fixture events independent. A GitHub view, a GraphQL read and a mutation can each make a different change visible. The public CLI tests already exercise this ordering.

Delegated decisions

Reviews

Plan review passed in round 2. The first code panel and self-review found read-only label options on the write path and missing coverage for ownership races. The second code round identified a fixture condition and clarified what closesPlan returns. Commits 4aaf78f74e and dc3104a6bb address the findings.

Code review passed in round 3 on dc3104a6bb, with no open findings.

Verification

A1–A4: bun run check:types, targeted lint and formatting, and 182 tests across eight public CLI suites passed at dc3104a6bb3122a6c0991af4d70cb58cd8fb3b88. Cases cover intervening ownership changes, partial identities, malformed unmerged responses, and child-link direction. A5: the authorized ready event started run 46557006144 on its first attempt. The tested merge 21c26cd52e0d2d1bea45142f5c1429bcd28d08a4 had base 2120ef6e and reviewed head dc3104a6bb as parents. GitHub accepted that run's Full CI job and reported CLEAN.

Limits and failures

The complete local bun run check is a separate checklist item. A remote result does not count as a local run.

Kept resources

On merge: parent #267 and its other child issues. If left open: also this PR, #270 and its linked branch.

After merge

Archive #270 and mark plan_io done in #267. No release or deployment.

Checklist

  • bun run check passes locally: not run in full.
  • bun run check:types passes.
  • Tested locally end to end: A2 and A3 drive the public plan CLI.
  • Required Full CI passes.
  • Code review passes.

Closes #270

Tie the verified viewer to a writable issue. Send an assignee ID only while the claim is pending and require the confirmed login on subsequent writes.

Verified: bun run check:types; targeted lint and format; bun run test:unit cli/test/unit/plan/write-postconditions.test.ts (9 passed)
Include the formatted stored-ID comparison from the verified ownership change.

Verified: bun run check:types; focused lint and format; write-postconditions.test.ts (9 passed)
Return merge evidence only for a merged pull request. Preserve the close-event comparison and carry the fallback parent with the created issue.

Verified: 174 public CLI tests in eight plan suites; bun run check:types; targeted lint and format
- Carry the verified owner into comment recovery. Select label IDs explicitly for writes.
- Exercise the final owner read, claim confirmation, malformed merge evidence, and creation without a parent.
- Cover the body-only reopen read before the guarded ownership read.
- Document the Boolean closing decision rather than restating the pull request shape.
@DocksDocks DocksDocks linked an issue Dec 1, 2026 that may be closed by this pull request
@DocksDocks
DocksDocks marked this pull request as ready for review December 1, 2026 01:54
@DocksDocks
DocksDocks merged commit 5926c47 into main Dec 1, 2026
10 checks passed
@DocksDocks
DocksDocks deleted the 270-model-plan-write-ownership-and-close-event-evidence branch December 1, 2026 02:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Model plan write ownership and close-event evidence

1 participant