@codedrifters/configulator 0.0.226 → 0.0.227
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/index.js +173 -1
- package/lib/index.js.map +1 -1
- package/lib/index.mjs +173 -1
- package/lib/index.mjs.map +1 -1
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -6744,7 +6744,179 @@ var prReviewBundle = {
|
|
|
6744
6744
|
"to a PR's branch \u2014 it only reviews, decides, and orchestrates merge",
|
|
6745
6745
|
"or comment. In loop mode, a failed review for one PR never stops",
|
|
6746
6746
|
"the loop; the reviewer comments and moves on. See the `pr-reviewer`",
|
|
6747
|
-
"agent definition for the full phase-by-phase contract."
|
|
6747
|
+
"agent definition for the full phase-by-phase contract.",
|
|
6748
|
+
"",
|
|
6749
|
+
"## Human-in-the-Loop Feedback Protocol",
|
|
6750
|
+
"",
|
|
6751
|
+
"The PR review pipeline is a **human-in-the-loop feedback loop**.",
|
|
6752
|
+
"Reviewers (human or agent) leave comments on the PR; the",
|
|
6753
|
+
"`pr-reviewer` sub-agent classifies each comment, reacts to it,",
|
|
6754
|
+
"delegates in-scope fixes to `issue-worker`, and updates a single",
|
|
6755
|
+
"sticky `## Reviewer notes` comment that is the canonical record of",
|
|
6756
|
+
"PR state. The sections below document the conventions humans need",
|
|
6757
|
+
"to read and drive that loop.",
|
|
6758
|
+
"",
|
|
6759
|
+
"### Trigger Model: Human-Triggered, Single-Pass",
|
|
6760
|
+
"",
|
|
6761
|
+
"Each reviewer pass runs exactly once and does not self-chain. A",
|
|
6762
|
+
"human re-invokes `/review-pr <n>` (or `/review-prs`) whenever the",
|
|
6763
|
+
"PR state changes enough to warrant another look \u2014 a new comment,",
|
|
6764
|
+
"a new commit, a resolved pushback, a label flip. The reviewer",
|
|
6765
|
+
"never reschedules itself and never loops back after handing off to",
|
|
6766
|
+
"`issue-worker`: the worker's run is the terminal step of that",
|
|
6767
|
+
"pass, and a human must re-invoke the reviewer to see the follow-up",
|
|
6768
|
+
"reactions and the auto-merge re-enablement decision.",
|
|
6769
|
+
"",
|
|
6770
|
+
"This keeps the loop cheap to reason about: every agent action is",
|
|
6771
|
+
"traceable to a specific human invocation, and there is no",
|
|
6772
|
+
"background automation to pause or cancel.",
|
|
6773
|
+
"",
|
|
6774
|
+
"### Reaction State Machine",
|
|
6775
|
+
"",
|
|
6776
|
+
"The reviewer signals its disposition toward each human comment via",
|
|
6777
|
+
"GitHub reactions on that comment. Five reactions carry meaning in",
|
|
6778
|
+
"this workflow; every other reaction is ignored.",
|
|
6779
|
+
"",
|
|
6780
|
+
"| Reaction | Meaning | Terminal? |",
|
|
6781
|
+
"|----------|---------|-----------|",
|
|
6782
|
+
"| `eyes` | Seen by reviewer; no terminal decision yet. Queued for processing on this or a later pass. | No |",
|
|
6783
|
+
"| `+1` | Reviewer accepted the comment's request; a fix has been queued or has already landed. | **Yes** |",
|
|
6784
|
+
"| `rocket` | The accepted fix has landed on the branch. The reviewer's reply cites the commit SHA that applied it. | **Yes** |",
|
|
6785
|
+
"| `thinking_face` | Reviewer pushback \u2014 the comment conflicts with an acceptance criterion, a CLAUDE.md convention, the project-context doc, or is ambiguous. **Blocks auto-merge** until resolved. | No |",
|
|
6786
|
+
"| `-1` | Declined as out-of-scope. A separate tracking issue was created; the reviewer's reply links to it. | **Yes** |",
|
|
6787
|
+
"",
|
|
6788
|
+
"Terminal reactions (`+1`, `rocket`, `-1`) are applied **only after**",
|
|
6789
|
+
"the corresponding action has truly completed \u2014 the fix accepted,",
|
|
6790
|
+
"the commit landed on the branch, or the out-of-scope tracking",
|
|
6791
|
+
"issue created and linked in a reply. The reviewer never applies a",
|
|
6792
|
+
"terminal reaction pre-emptively.",
|
|
6793
|
+
"",
|
|
6794
|
+
"A comment carrying only `eyes` or `thinking_face` from the",
|
|
6795
|
+
"reviewer is **non-terminal** and will be re-evaluated on the next",
|
|
6796
|
+
"pass. A comment carrying any terminal reaction authored by the",
|
|
6797
|
+
"reviewer is dropped from future classification.",
|
|
6798
|
+
"",
|
|
6799
|
+
"GitHub's reactions API uses `confused` as the content string for",
|
|
6800
|
+
"the `thinking_face` reaction (`content=confused` when POSTing).",
|
|
6801
|
+
"",
|
|
6802
|
+
"### Resolving a Pushback",
|
|
6803
|
+
"",
|
|
6804
|
+
"When the reviewer pushes back on a comment with `thinking_face`,",
|
|
6805
|
+
"auto-merge is blocked until the dispute is resolved. Humans have",
|
|
6806
|
+
"three ways to clear a pushback:",
|
|
6807
|
+
"",
|
|
6808
|
+
"1. **Withdraw the comment.** Delete the comment, or edit out the",
|
|
6809
|
+
" disputed request, then re-invoke `/review-pr <n>`. The reviewer",
|
|
6810
|
+
" drops the withdrawn item from its queue on the next pass.",
|
|
6811
|
+
"2. **Reply with clarification.** Post a reply on the same thread",
|
|
6812
|
+
" that addresses the reviewer's objection (cite the acceptance",
|
|
6813
|
+
" criterion you meant, supply the missing context, or concede the",
|
|
6814
|
+
" point). Re-invoke `/review-pr <n>` \u2014 the reviewer re-classifies",
|
|
6815
|
+
" the thread and may promote `thinking_face` to `+1` if the",
|
|
6816
|
+
" clarification satisfies it.",
|
|
6817
|
+
"3. **Force through with `review:auto-ok`.** Apply the",
|
|
6818
|
+
" `review:auto-ok` label to the PR as an explicit maintainer",
|
|
6819
|
+
" override. The reviewer will log the override in the sticky",
|
|
6820
|
+
" `## Reviewer notes` comment and proceed with auto-merge even",
|
|
6821
|
+
" though the dispute was never resolved by reply or withdrawal.",
|
|
6822
|
+
"",
|
|
6823
|
+
"### Fix-List Comment Format",
|
|
6824
|
+
"",
|
|
6825
|
+
"When Phase 4 delegates in-scope fixes to `issue-worker`, it posts",
|
|
6826
|
+
"a single PR-level comment whose body carries both a human-readable",
|
|
6827
|
+
"checkbox summary and a fenced ```json fix-list``` block. The JSON",
|
|
6828
|
+
"block is the authoritative payload the worker parses; the",
|
|
6829
|
+
"checkbox list is for humans reading the PR.",
|
|
6830
|
+
"",
|
|
6831
|
+
"```markdown",
|
|
6832
|
+
"## Reviewer: fix list for @issue-worker",
|
|
6833
|
+
"",
|
|
6834
|
+
"- [ ] @<author> \u2014 <instruction summary> (<file>:<line>)",
|
|
6835
|
+
"",
|
|
6836
|
+
"```json fix-list",
|
|
6837
|
+
"{",
|
|
6838
|
+
' "pr": <pr-number>,',
|
|
6839
|
+
' "branch": "<head-ref-name>",',
|
|
6840
|
+
' "generated_at": "<ISO-8601 timestamp>",',
|
|
6841
|
+
' "items": [',
|
|
6842
|
+
' {"comment_id": "<id>", "author": "<login>", "file": "<path>", "line": <n>, "instruction": "<imperative instruction>"}',
|
|
6843
|
+
" ]",
|
|
6844
|
+
"}",
|
|
6845
|
+
"```",
|
|
6846
|
+
"```",
|
|
6847
|
+
"",
|
|
6848
|
+
"Each `items[]` entry corresponds to one in-scope comment the",
|
|
6849
|
+
"reviewer queued on this pass. The `comment_id` is preserved",
|
|
6850
|
+
"exactly as returned by the GitHub API so that `issue-worker` can",
|
|
6851
|
+
"report per-item outcomes and the reviewer can apply `rocket` or",
|
|
6852
|
+
"`thinking_face` to the correct source comment on the next pass.",
|
|
6853
|
+
"",
|
|
6854
|
+
"### Sticky `## Reviewer notes` Comment",
|
|
6855
|
+
"",
|
|
6856
|
+
"Every PR has **one** canonical reviewer-notes comment. The",
|
|
6857
|
+
"reviewer creates it on the first pass, then **edits it in place**",
|
|
6858
|
+
"on every subsequent pass via",
|
|
6859
|
+
"`gh api .../issues/comments/<id> -X PATCH`. It is never",
|
|
6860
|
+
"duplicated and never replaced by a fresh per-pass summary.",
|
|
6861
|
+
"",
|
|
6862
|
+
"This sticky comment is the **single human-facing source of truth**",
|
|
6863
|
+
"for the PR's current state. Humans scanning the PR should read",
|
|
6864
|
+
"the sticky first, before scrolling back through individual threads.",
|
|
6865
|
+
"It carries, at a minimum:",
|
|
6866
|
+
"",
|
|
6867
|
+
"- **Mode** \u2014 `auto-merge` or `human-required`, with the Phase 2.75",
|
|
6868
|
+
" reason that chose that mode.",
|
|
6869
|
+
"- **AC status** \u2014 met, partial, or missing, with evidence links",
|
|
6870
|
+
" to files or tests.",
|
|
6871
|
+
"- **CI status** \u2014 green, pending, or red.",
|
|
6872
|
+
"- **Outstanding** \u2014 comments still carrying a non-terminal",
|
|
6873
|
+
" reviewer reaction (`eyes`, open `thinking_face`).",
|
|
6874
|
+
"- **Pushbacks** \u2014 every unresolved `thinking_face` the reviewer",
|
|
6875
|
+
" has left, with the reason captured in its pushback reply.",
|
|
6876
|
+
"- **Last pass** \u2014 the ISO 8601 timestamp of the most recent run.",
|
|
6877
|
+
"",
|
|
6878
|
+
"The sticky is updated on every pass \u2014 including passes that ended",
|
|
6879
|
+
"in a pushback-gated skip, a `NEEDS_CHANGES` findings comment, or",
|
|
6880
|
+
"a `human-required` hand-off \u2014 so it never goes stale while the",
|
|
6881
|
+
"reviewer is actively processing the PR.",
|
|
6882
|
+
"",
|
|
6883
|
+
"### Label Glossary",
|
|
6884
|
+
"",
|
|
6885
|
+
"Five review-workflow labels drive the feedback loop. Consumers",
|
|
6886
|
+
"that adopt this workflow are responsible for creating them in",
|
|
6887
|
+
"their own repos (the same way they create `priority:*` and",
|
|
6888
|
+
"`status:*` labels).",
|
|
6889
|
+
"",
|
|
6890
|
+
"| Label | Purpose |",
|
|
6891
|
+
"|-------|---------|",
|
|
6892
|
+
"| `origin:issue-worker` | PR was opened by the `issue-worker` agent. Eligible for auto-delegation of in-scope fixes. Human-authored PRs lack this label and will not trigger delegation unless the reviewer is invoked with `--allow-human-author`. |",
|
|
6893
|
+
"| `review:human-required` | Force human review regardless of what the policy would otherwise decide. The reviewer never enables auto-merge on a PR carrying this label. |",
|
|
6894
|
+
"| `review:auto-ok` | Force auto-merge regardless of what the policy would otherwise decide. **Also resolves outstanding `thinking_face` pushbacks** as an explicit maintainer override; the reviewer logs the override in the sticky summary. |",
|
|
6895
|
+
"| `review:awaiting-human` | Set by the reviewer when it completes its work on a `human-required` PR and is handing off the final merge decision. Cleared by a human (or by `review:auto-ok` flipping the PR back to `auto-merge` mode). |",
|
|
6896
|
+
"| `review:fixing` | Short-lived lease held by the reviewer while an `issue-worker` feedback-mode delegation is mid-run. Released automatically at the end of Phase 4 step (g). Contention on this label means a prior delegation crashed without releasing it and needs human investigation. |",
|
|
6897
|
+
"",
|
|
6898
|
+
"### Reviewing Human-Authored PRs: the `--allow-human-author` Flag",
|
|
6899
|
+
"",
|
|
6900
|
+
"By default the reviewer only **delegates** in-scope fixes on",
|
|
6901
|
+
"bot-authored PRs \u2014 those carrying the `origin:issue-worker`",
|
|
6902
|
+
"label. Running `/review-pr <n>` or `/review-prs` on a",
|
|
6903
|
+
"human-authored PR still produces a full review (reactions,",
|
|
6904
|
+
"replies, sticky summary, and auto-merge when the policy allows",
|
|
6905
|
+
"it) but skips the delegation hand-off to `issue-worker` \u2014 the",
|
|
6906
|
+
"human author is expected to apply the fixes themselves.",
|
|
6907
|
+
"",
|
|
6908
|
+
"Pass `--allow-human-author` to opt into delegation on",
|
|
6909
|
+
"human-authored PRs for a single invocation:",
|
|
6910
|
+
"",
|
|
6911
|
+
"```",
|
|
6912
|
+
"/review-pr <pr-number> --allow-human-author",
|
|
6913
|
+
"/review-prs --allow-human-author",
|
|
6914
|
+
"```",
|
|
6915
|
+
"",
|
|
6916
|
+
"The flag does **not** persist across invocations. Subsequent",
|
|
6917
|
+
"invocations return to the bot-only default and require the flag",
|
|
6918
|
+
"to be re-supplied if delegation on a human-authored PR is desired",
|
|
6919
|
+
"again."
|
|
6748
6920
|
].join("\n"),
|
|
6749
6921
|
platforms: {
|
|
6750
6922
|
cursor: { exclude: true }
|