Back to Plate

Autoclose PR 5102

docs/plans/5102-autoclose-pr-5102.md

53.3.913.2 KB
Original Source

Autoclose PR 5102

Objective: Apply autoclosure to PR #5102 without reviewing or repairing source unless its exact per-PR task evidence passes the mandatory compliance gate.

Flow mode: one-shot execution

Goal plan: docs/plans/5102-autoclose-pr-5102.md

Template: docs/plans/templates/autoclosure.md

Primary template: docs/plans/templates/autoclosure.md

Applied packs:

  • agent-native (docs/plans/templates/packs/agent-native.md)

Completion threshold:

  • Read the live PR body/state/head, fetch its immutable head, and verify all three task-evidence requirements.
  • If any requirement fails, post the exact remediation comment once, read it back, close the PR, and read back state: CLOSED; all source/check lanes are N/A under the mandatory stop path.
  • Goal checker passes after receipts are recorded.

Verification surface:

  • gh pr view 5102 body/state/head read-back.
  • Immutable refs/pr/5102 plus git show only if the body names a plan.
  • Existing-comment inventory, exact remediation-comment read-back, and final state: CLOSED read-back when noncompliant.

Constraints:

  • Do not read/review/repair implementation or feedback after failed compliance.
  • Do not post the remediation comment twice.
  • Do not close unless the required comment is verified first.
  • Do not mutate the contributor branch or product source.

Boundaries:

  • intended delta: GitHub disposition of PR #5102 only
  • allowed repairs: none; noncompliance is comment-and-close, not repair
  • unrelated files: preserve; do not treat as blockers
  • non-goals: source review, feedback triage, tests, lint, repository checks, merge, release, or contributor-branch changes after failed compliance

Output budget strategy:

  • Read exact PR metadata and bounded comment bodies only; do not stream diffs, logs, tests, generated trees, or repository-wide searches.

Blocked condition:

  • GitHub comment post/read-back or PR close/read-back is unavailable after a distinct retry; never close without verified remediation text.

Start Gates:

GateAppliesEvidence
Existing PR or local future-PR slice resolvedyesexisting PR #5102 supplied by user
Dedicated task invocation and plan for exact PRnolive body contains zero exact 🧭 Task plan: lines
Task evidence verified at PR headnobody requirement failed; head file/owner checks stop as forbidden follow-on work
Active source/plan reconstructedyesautoclosure plan is this file; source remained unread because compliance failed
Intended delta and exclusions recordedyesGitHub disposition only; no product scope
Closure matrix classifiedyesmandatory noncompliant comment-and-close path; all source/check lanes N/A
Live PR feedback target resolvednoN/A: verified noncompliant close path stops before feedback
Feedback proof checkout bound to PR headnoN/A: compliance failed before proof checkout
Unfiltered feedback inventorynoN/A: compliance failed before feedback inventory
GitHub delivery expectation recordedyesverified comment before close, then final CLOSED read-back
Active goal checked or createdyesgoal created for exact PR #5102 disposition
Agent-native pack selectedyesmaterialized by autoclosure template requirement
Agent-facing action surface identifiednoN/A: no agent files or actions will change
Source rule versus generated mirror boundary identifiednoN/A: no source/generated files will change
agent-native-reviewer loaded or waiver recordednoN/A: no agent workflow change

Closure matrix:

LaneAppliesOwner/proofStatus
per-PR task ownershipyeslive body at 0b0f01d0e4e78c76fe53e17515017b2aa73ac65a has zero task-plan linesfailed: noncompliant
noncompliant closeyescomment https://github.com/udecode/plate/pull/5102#issuecomment-5355238494 + CLOSED read-backcomplete
source behaviornoN/A: compliance failure forbids source review/proofN/A
package/API/buildnoN/A: compliance failure forbids package proofN/A
CI-controlled template outputnoN/A: compliance failure forbids source/generated workN/A
docs/contentnoN/A: no PR source work allowedN/A
registry/changelognoN/A: no PR source work allowedN/A
browsernoN/A: no behavior proof allowedN/A
changesetnoN/A: no PR source work allowedN/A
agent workflownono agent source or action changeN/A
live PR feedbacknoN/A: noncompliant stop path; comment/CLOSED receipts replace feedback gateN/A
cleanup/reviewnoN/A: source review forbidden after compliance failureN/A
repository checknoN/A: source/check work forbidden after compliance failureN/A
GitHub deliveryyesexact comment read back, then gh pr view returned state: CLOSEDcomplete

Work Checklist: Checklist resolution: the first three rows are proven by the live body/comment/ state receipts below. Every row requiring compliant source, feedback, tests, review, generation, or agent changes is N/A because the mandatory compliance stop path forbids that work.

  • Every PR has its own task invocation and dedicated task plan; a batch plan or aggregate autoclosure is not used as a substitute.
  • Existing-PR and no-PR entry paths were distinguished before source review. A no-PR local slice has a dedicated current task plan and defers feedback/merge until delivery creates the exact PR, records it in the plan at head, and passes the task compliance gate.
  • Task evidence was verified from the PR body, fetched head, and exact PR ownership; otherwise the required comment and CLOSED state were read back and no source review, repair, merge, or release work continued.
  • Intended behavior and exclusions are reconstructed from real sources.
  • Each lane is proven or N/A with a concrete reason.
  • Generated output was changed through its owner and regenerated.
  • Package/docs/registry/template/browser/changeset contracts are synchronized.
  • Full resolve-pr-feedback ran for the exact compliant PR; every actionable P1-or-higher finding was fixed, proved, replied to, and resolved or received the required top-level reply receipt.
  • For a compliant PR, local committed HEAD, fetched PR ref, and live headRefOid matched before proof/reply/resolution and after every push. For a noncompliant PR, this and all feedback gates are N/A with the required remediation-comment and CLOSED receipts.
  • Unfiltered top-level PR comments and review bodies were fetched through the GitHub API, compared by ID/URL with helper output, and every excluded bot/author item was ledgered; identity alone never dismissed feedback. Only the exact terminal receipt produced/read back by this run is exempt from the versioned ledger.
  • All inline review threads were fetched with GraphQL cursor pagination without filtering resolved/outdated items; every thread has priority, rationale, relocation, and proof state in the ledger.
  • Every actionable feedback item has a persisted P0-P3 priority and one-sentence rationale from the autoclosure rubric; ambiguous P1-versus- lower items fail closed as P1.
  • Every P1-or-higher proof reran after the final material branch push, regardless of file type, including resolved or outdated threads that disappear from the helper's unresolved-thread output.
  • Feedback was re-fetched after the last push/reply/resolution and shows zero unresolved actionable P1-or-higher findings.
  • After all versioned plan/source updates were pushed, the exact-head P1 proof/read-back receipt was posted to the PR and read back; no terminal receipt-only branch push was created. A post-comment headRefOid fetch matches the OID recorded in that receipt, and a post-comment helper/raw feedback fetch still shows zero actionable P1-or-higher items and no new URL lacking a verdict or explicit deferral, except the verified receipt.
  • Any remaining P2-or-lower item has its exact URL plus the user's explicit priority deferral recorded; no feedback was silently ignored.
  • Accepted cleanup and review findings are closed.
  • PR body and check state match the final evidence.
  • Residual blocker/waiver has exact evidence and next owner.
  • Agent-native pack: source-of-truth rule files are edited instead of generated skill mirrors.
  • Agent-native pack: the changed agent action is discoverable from the skill/rule text.
  • Agent-native pack: generated mirrors are synced when .agents/rules/** changed, or N/A reason is recorded.
  • Agent-native pack: accepted agent-native review findings are fixed or explicitly rejected with reason.

Error attempts:

Failure signatureCountNext different moveResolution
None yet0N/AN/A

Completion Gates:

GateAppliesRequired actionEvidence
Per-PR task ownershipyesRecord exact PR and dedicated task-plan pathFailed: body has zero exact task-plan lines at live head OID
Noncompliant PR dispositionyesVerify task evidence or comment then close and read backexact comment read back at issuecomment-5355238494; final state CLOSED
Targeted behavior proofnoRun smallest missing owning proofN/A: forbidden by noncompliant stop path
Source/generated auditnoProve correct source and regenerated mirrorsN/A: forbidden by noncompliant stop path
Package/docs/registry/browser closurenoRun every applicable local contractN/A: forbidden by noncompliant stop path
Feedback proof checkoutnoCompliant PR onlyN/A: noncompliant stop path
Live PR feedback resolutionnoCompliant PR onlyN/A: noncompliant stop path
Feedback priority classificationnoCompliant PR onlyN/A: noncompliant stop path
Final P1 proof replaynoCompliant PR onlyN/A: noncompliant stop path
Final live feedback read-backnoCompliant PR onlyN/A: noncompliant stop path
External terminal receiptnoCompliant PR onlyN/A: noncompliant stop path
CleanupnoRun bounded cleanup or N/AN/A: no source changes
Agent-native reviewernoRun for workflow changes or N/AN/A: no agent workflow changes
Final lintnoRun pnpm lint:fixN/A: noncompliant stop forbids source/check work
Repository checknoRun pnpm checkN/A: noncompliant stop forbids source/check work
GitHub deliveryyesComment/read-back then close/read-backcomplete: comment verified before close; CLOSED state verified afterward
AutoreviewnoResolve every accepted actionable findingN/A: source review forbidden
Goal plan completeyesRun node .agents/skills/autogoal/scripts/check-complete.mjs docs/plans/5102-autoclose-pr-5102.mdexact checker exit 0 after receipts and closed phases
Agent source / generated syncnoRun pnpm install when .agents/rules/** changed and verify generated mirrorsN/A: no agent files changed
Agent action discoverabilitynoSource-audit the skill/rule path an agent will readN/A: no agent action changed
Agent-native reviewnoLoad reviewer for agent changesN/A: no agent workflow change

Phase / pass table:

PhaseStatusEvidenceNext
InventorycompletePR OPEN at 0b0f01d...; live body has zero task-plan linesmandatory close path
RepaircompleteN/A: repair forbidden for noncompliant PRdelivery
Review/checkscompleteN/A: source review/checks forbiddendelivery
Deliverycompleteexact remediation comment posted/read, PR closed, state/comment read backfinal audit
Closeoutcompletenoncompliant stop receipts recorded; no forbidden source work ranfinal

Verification evidence:

  • gh pr view 5102 --json state,body,headRefOid,url: OPEN, 0b0f01d0e4e78c76fe53e17515017b2aa73ac65a, zero exact task-plan lines.
  • Existing comments contained only CodeSandbox and changeset-bot messages; the mandated remediation text was absent.
  • Posted and read back https://github.com/udecode/plate/pull/5102#issuecomment-5355238494 with the exact required explanation.
  • gh pr close 5102 succeeded; final gh pr view returned state: CLOSED and the same exact comment URL/body at head OID 0b0f01d0e4e78c76fe53e17515017b2aa73ac65a.

Timeline:

  • 2026-08-20T11:26:03.176Z Autoclosure plan created.
  • 2026-08-20T11:28Z Fresh compliance read failed the mandatory body-line requirement; source/check lanes stopped.
  • 2026-08-20T11:27:59Z Exact remediation comment posted and read back.
  • 2026-08-20T11:29Z PR #5102 closed; final state and comment receipt read back.

Reboot status:

QuestionAnswer
Where am I?Closeout complete
Where am I going?Final response
What is the goal?Disposition PR #5102 strictly through autoclosure compliance
What have I learned?Body has zero exact task-plan lines; no further task evidence/source gate may run
What have I done?Verified missing task evidence, posted/read required comment, closed/read PR state

Open risks:

  • None. Reopening or replacing remains contributor-owned through $task #5102.