Repository navigation
docs: a behavior change for an edge case needs a human developer's permission - #760
Conversation
…rmission The owner set this rule for the release process and for all development: a PR does not change behavior because of an edge case without permission from a human developer. - CLAUDE.md: a new hard boundary. A fix that changes what the proxy does for users or other cases needs a human developer's yes before it merges, and the PR names the change at the top. - RELEASING.md step 2: the permission is a merge condition. The integrator reads the diff for behavior changes, also in a PR called "test-only" or "docs-only", and gets the yes in words. A peer agent's report is not enough. #759 is the example. Assisted-By: Claude Opus 5.5 (1M context) <[email protected]> Signed-off-by: DAVID AMID <[email protected]>
amiddavid
left a comment
There was a problem hiding this comment.
| Reviewer | Kind | Started by | Context | Review | Round | Head | Verdict |
|---|---|---|---|---|---|---|---|
| Reviewer 1 (glm, user of @amiddavid) | GLM rits/zai-org/glm-5-3 via Claude Code 2.1.312 | offload-review skill, @amiddavid's session | fresh | 1 of 2 | 1 of 2 | aa6f0e453e46 |
approve |
Verdict: approve
Findings
None. This is a docs-only PR. It adds one hard boundary to CLAUDE.md and one merge condition plus a section to RELEASING.md. No code, config or test changes.
Non-blocking
RELEASING.md:45— The example says "The owner rejected it" about #759. That PR is still open at review time. A reader may read "rejected" as "closed". Suggest "The owner rejected that behavior" or "rejected the change as written".CLAUDE.md:41— The bullet says "changes what the proxy does". The same rule inRELEASING.md:39says "A PR must not change behavior", which covers every host (bifrost adapter, Cortex plugin, the library). The CLAUDE.md wording is narrower than the rule's intent. One extra word fixes it: "what the proxy or the library does"..claude/skills/offload-review/SKILL.md:114— The skill still says "If both verdicts are approve, tell the user that the PR is ready to merge." Under the new rule, two approvals are no longer enough when the PR changes behavior. The skill's message goes to a human, who can give the yes, so this is a gap in wording only. The skill could name the new merge condition.
What I checked
- Read
CLAUDE.md,RELEASING.mdanddocs/design.mdat the PR head, and the full diffccb62c7c..aa6f0e45(2 files, +17 lines, 0 deletions). - Checked the two new texts against each other. The author duty ("name the change at the top of the PR: who it affects, old and new behavior, how to turn it off") and the peer-agent exclusion ("a peer agent's report is not enough") match in both files.
- Verified the example against PR #759 (open, "fix: keep the cached part safe after a proxy restart, and label partial cache reads as misses (#496)"). Its diff confirms the claims:
DefaultRestartGraceof 1 hour, and inside the grace an unknown thread key reads as all-cached, so no component may edit it. The PR also adds a--restart-graceflag with0to turn it off. - Checked that no other process doc is now stale:
grepfor "behavior change" across the repo's markdown finds no other merge-condition list that misses the new rule. Only the skill wording above is close. - Checked the commit itself: DCO
Signed-off-bypresent,Assisted-By:attribution per repo rules, conventional-commit titledocs:. - Checked the PR against its own new rule: it changes no proxy or library behavior, so there is no behavior change to name at the top.
- Live tests not approved, and none are needed for a docs-only change.
amiddavid
left a comment
There was a problem hiding this comment.
| Reviewer | Kind | Started by | Context | Review | Round | Head | Verdict |
|---|---|---|---|---|---|---|---|
| Reviewer 2 (glm, user of @amiddavid) | GLM rits/zai-org/glm-5-3 via Claude Code 2.1.312 | offload-review skill, @amiddavid's session | fresh | 2 of 2 | 1 of 2 | aa6f0e453e46 |
blocking |
Verdict: blocking
Findings
- RELEASING.md:45 — the example states a cost that #759 does not have, and a rejection that has no record on #759
- What fails: a reader who checks #759 against this example finds the doc wrong. The rule then loses its evidence, and the repo holds two opposite records: RELEASING.md says the owner rejected #759; the PR itself shows approval and stays open.
- Proof: three parts, each checked against the PR record and the code.
- "It also made every new thread unchangeable for 1 hour after every restart" is wrong. In #759 (head
b62b16e6,modes/tracker.go), the grace reading (graceLocked) applies only to a key with no record.TurnFromrecords the key on that same request, so the freeze lasts one request. #759's own body says: "while the grace runs, a brand-new thread cannot be changed on its first request. Its second request acts on the new tail as usual." Both reviews say the same: "the cost is one turn per thread". A thread is not unchangeable for 1 hour. It is unchangeable on its first request, and only when that request lands inside the hour after a restart. - "The owner rejected it" has no record on #759. The PR is OPEN at head
b62b16e6, with two approving reviews (2026-10-27T19:26Z) and no owner comment that rejects it. I searched the issues too: no record there. The rejection lives only in this PR's body. The new rule itself demands a human's yes "in words" — the rejection of #759 should meet the same bar: posted on #759, or named with the place it lives. - Half of the "rule" is what #759 already does. "The grace lasts only until the thread's first message" matches #759's code: the all-cached reading ends when the first message records the key. Only the second half (the model's cache lifetime, not a flat 1 hour) differs from #759. As written, the example rejects a PR and sets a rule that the rejected PR already follows in part. A reader who checks will be confused about what was actually rejected.
- "It also made every new thread unchangeable for 1 hour after every restart" is wrong. In #759 (head
- Fix: state the real cost ("the first request of each new thread, inside the hour after a restart, went out unchanged"). Post the owner's rejection on #759 in words, or say where the decision lives. Reword the rule so it names only the real change: the grace duration, set by the thread's model cache lifetime.
Non-blocking
- RELEASING.md:39 — the opening sentence is narrower than its own bullets. The sentence limits the rule to a change "because of an edge case". The "What counts" bullet covers every behavior change, and so does the CLAUDE.md bullet. Make the sentence match the bullets.
- CLAUDE.md:39 — the new bullet does not link to the RELEASING.md section. The "Metadata first" bullet links its doc page. A link helps an agent find the full process.
- "Unchangeable" is not a common word. If the example stays, write "cannot be changed".
What I checked
- The full diff: 2 files, 17 added lines. Both files read in full around each change.
- The PR body of #760.
- PR #759, the example's subject: the body, all 4 reviews, the author comment, the state and the head (OPEN,
b62b16e6, unchanged since the approvals at 2026-10-27T19:26Z). - The grace code on #759's head,
modes/tracker.go:NewTracker,TurnFrom,graceLocked,SetRestartGrace. The freeze is one request per unknown key; the record then governs the next turn. - Issue #496, which #759 closes: its 2026-10-27 update, for the "one rare case" the example names. The case is real: after a restart, the tracker lost the cached-prefix boundary.
- A search of the repo and the issues for any public record of the owner's rejection of #759. I found none.
- PR #744, the second case in the PR body: merged with title "test: fix the flaky-test batch", so "called test-only" holds. #744 is not named in the doc itself.
- Consistency between the CLAUDE.md bullet and the RELEASING.md section: the merge-conditions list, the author and integrator duties, and the "peer agent's report" clause agree in both files.
- The docs-only review exception (RELEASING.md:96) against this PR's two reviews: the owner asked for them, which the exception allows.
- No code changed, so no tests apply. I did not run builds or tests. Live tests were not approved.
…e review skill Round 1 of the review, both reviewers: - RELEASING.md: the example now states the real cost of #759 as first written (a fixed 1-hour window, for every model, in which the first request of each new thread went out unchanged). The owner's rejection is now posted on #759, and the example links to it. The rule names the real change: the window lasts only for the thread's model cache lifetime. - RELEASING.md: the opening sentence covers every behavior change, as its bullets do. - CLAUDE.md: the rule covers the library as well as the proxy, and links to the RELEASING.md section. - offload-review skill: two approvals do not make a behavior-changing PR ready; it needs a human developer's yes. Assisted-By: Claude Opus 5.5 (1M context) <[email protected]> Signed-off-by: DAVID AMID <[email protected]>
|
Replies to round 1, fixed in Reviewer 2, finding 1 (the #759 example). Agreed on all 3 parts.
Reviewer 2, non-blocking.
Reviewer 1, non-blocking.
|
amiddavid
left a comment
There was a problem hiding this comment.
| Reviewer | Kind | Started by | Context | Review | Round | Head | Verdict |
|---|---|---|---|---|---|---|---|
| Reviewer 1 (glm, user of @amiddavid) | GLM rits/zai-org/glm-5-3 via Claude Code 2.1.312 | offload-review skill, @amiddavid's session | resumed | 1 of 2 | 2 of 2 | d3d0fab30754 |
approve |
Verdict: approve
Findings
None. One new commit, d3d0fab3. It fixes every round-1 finding and non-blocking point, mine and reviewer 2's. I checked each fix against the files and, for the example, against the record on #759.
Earlier findings
- Reviewer 2, finding 1 (the #759 example) — fixed. All 3 parts:
- Cost: the example now says "the first request of each new thread went out unchanged" inside the window. This matches #759's code, where the grace reading applies only to a key with no record, so the freeze lasts one request.
- Record: I fetched the linked comment (issuecomment-6454348090 on #759, posted 2026-10-27T21:43:46Z). It exists, it records the owner's decision in the owner's words, and it rejects "the fixed 1-hour restart grace for every model". The example's link and claim match it.
- Rule: the example now states the owner's rule as posted: the window lasts only for the cache lifetime of the thread's model (5 min, 1 h or 30 min), and it ends at the thread's first message. This is the owner's wording, not a claim that every part differs from #759, so reviewer 2's confusion concern is gone.
- Reviewer 2, non-blocking — all fixed. The opening sentence now covers every behavior change and names the edge-case fix as the main risk.
CLAUDE.mdlinks to the RELEASING.md section, with a correct anchor. "Unchangeable" is gone. - My non-blocking — all fixed. "Rejected that window" names the change, not the PR.
CLAUDE.mdsays "what the proxy or the library does". The skill's step 4 now says a behavior-changing PR needs a human developer's yes even with 2 approvals.
Non-blocking
.claude/skills/offload-review/SKILL.md:114— Step 4 still opens with "tell the user that the PR is ready to merge. Stop." and adds the behavior-change condition in the next sentences. Reading the first sentence alone could mislead. Moving the condition into the first sentence would be cleaner. The full step is clear, so this does not block.
What I checked
- Last review: round 1, aa6f0e4, 2026-10-27T21:40:03Z.
- New commits read: 1 (
d3d0fab3"docs: make the #759 example match the record, and name the rule in the review skill"). - Read in full: 2 reviews, 1 comment, 0 inline comments (from
.review-in-reviews.txt,.review-in-comments.txt,.review-in-inline.txt). - New items since my last review: reviewer 2's round-1 review (blocking, 1 finding + 3 non-blocking — checked each against the fix commit); the author's reply comment (checked each claim against the diff); commit
d3d0fab3(full diffaa6f0e45..d3d0fab3, 3 files, +11/−7); the worktree is at headd3d0fab30754. - Verified the new example against the linked decision on #759: comment 6454348090 exists, was posted by the integrator, quotes the owner's words, and matches the example's claims (fixed 1-hour window rejected; the rule about model cache lifetime and the first message).
- Checked the CLAUDE.md link anchor
#behavior-changes-need-a-humans-permissionagainst the heading "Behavior changes need a human's permission". GitHub's anchor rules drop the apostrophe, so the anchor is correct. - Read the skill's step 4 in context (
SKILL.md:112-122) to check the added condition fits the numbered flow. - Checked the new commit itself: DCO
Signed-off-bypresent,Assisted-By:attribution, conventional-commit titledocs:. - Live tests not approved. No code changed in this PR, so none apply.
amiddavid
left a comment
There was a problem hiding this comment.
| Reviewer | Kind | Started by | Context | Review | Round | Head | Verdict |
|---|---|---|---|---|---|---|---|
| Reviewer 2 (glm, user of @amiddavid) | GLM rits/zai-org/glm-5-3 via Claude Code 2.1.312 | offload-review skill, @amiddavid's session | resumed | 2 of 2 | 2 of 2 | d3d0fab30754 |
blocking |
Verdict: blocking
The merged files are now correct. One finding remains, and it is in the PR record, not in the files: the PR body still states the cost that round 1 proved wrong.
Findings
- PR body, "Why" section — the body still states the #759 cost that round 1 proved wrong
- What fails: a reader of the PR page still reads "The fix also made every new thread unchangeable for 1 hour after every restart". Round 1 proved this wrong, and the author agreed. The fix changed
RELEASING.mdbut not the PR body. The body lags the new head in two more places: the Summary keeps the old narrow rule ("because of an edge case"), which this PR widened; and "What changed" does not name theSKILL.mdchange that commitd3d0fab3adds. - Proof: I fetched the PR body at head
d3d0fab3after the fix commit. The "#759" bullet under Why still carries the old sentence. Round 1's proof stands: in #759 (b62b16e6,modes/tracker.go,TurnFrom), the first request records the key, so the freeze lasts one request. #759's own body and both of its reviews say "one turn per thread". The author's reply on this PR agrees the claim was wrong, and names the fix inRELEASING.mdonly. - Fix: edit the PR body. For the #759 bullet, use the same words as the fixed example: a fixed 1-hour window after every restart, for every model, in which the first request of each new thread went out unchanged. Widen the Summary rule sentence to match
RELEASING.md. Add theSKILL.mdchange to What changed. Note:gh pr editsilently no-ops on this repo. Usegh api -X PATCH repos/rossoctl/context-guru/pulls/760 --input <file>and read the result back from the server.
- What fails: a reader of the PR page still reads "The fix also made every new thread unchangeable for 1 hour after every restart". Round 1 proved this wrong, and the author agreed. The fix changed
Earlier findings
Mine, round 1
- The #759 example — fixed, all three parts. I checked each against the new head and the record:
- The cost: the example now says "#759, as first written... added a fixed 1-hour window after every restart, for every model. In that window, the first request of each new thread went out unchanged." This matches the code:
DefaultRestartGraceis 1 hour, and the freeze is one request per new thread. - The record: the owner's decision is posted on #759 (comment
6454348090, 2026-10-27T21:43:46Z). I fetched and read it. It quotes the owner's words, names the rejected window, and states the rule. The example links to it. - The rule: it now names the real change, the window duration set by the thread's model cache lifetime. The clause "it ends at the thread's first message" stays, and it matches what #759 already does — but it is the owner's rule as recorded, and the example now says exactly what was rejected (the fixed window, for every model). The contrast I flagged is gone.
- The cost: the example now says "#759, as first written... added a fixed 1-hour window after every restart, for every model. In that window, the first request of each new thread went out unchanged." This matches the code:
- The opening sentence was narrower than its bullets — fixed.
RELEASING.md:39now covers every behavior change, and adds that the rule matters most for an edge-case fix. CLAUDE.mdhad no link — fixed. It links toRELEASING.md#behavior-changes-need-a-humans-permission. The anchor matches the heading.- "Unchangeable" — gone.
Reviewer 1, round 1 (I checked each myself)
- "Rejected" could read as "closed" — fixed. The example now says the owner rejected "that window", and says where the decision was given.
CLAUDE.mdsaid "the proxy" only — fixed. It now says "the proxy or the library".- The review skill said 2 approvals make a PR ready — fixed in step 4. See my non-blocking note on the wording.
Non-blocking
- SKILL.md step 4 — the new gate sits after "Stop." The step reads "tell the user that the PR is ready to merge. Stop." and only then adds the behavior-change gate. An agent that obeys "Stop." literally never reaches the gate. Move the gate before "Stop.".
What I checked
- Last review: round 1,
aa6f0e453e467a830af7fbac1656619009947153, 2026-10-27T21:42:39Z. - New commits read: 1 —
d3d0fab3"docs: make the #759 example match the record, and name the rule in the review skill". - Read in full: 2 reviews, 1 comment, 0 inline comments (from the three saved files).
- New items since my last review, and what I did about each:
- Commit
d3d0fab3: full diff read (aa6f0e45..d3d0fab3), plus each changed file around the change. All three changes verified against the record (see "Earlier findings"). - The author's reply comment (2026-10-27T21:44:48Z): read in full. Every claim in it that I could check held up, except that it names the fix in
RELEASING.mdonly — the PR body was left with the old claim, which is my finding. - The decision comment on #759 (
issues/comments/6454348090): fetched and read in full, to verify the link the example now carries. It exists, it quotes the owner's words, and it states the rule the example repeats. - Reviewer 1's round-1 review (21:40:03Z, before my last review): I had not read it in round 1, for independence. I read it now in full and checked its three non-blocking points myself (see "Earlier findings").
- Commit
- The PR body at the new head, fetched from the server after the fix commit: this produced finding 1.
- The commit message: conventional title,
Signed-off-by,Assisted-Byper repo rules. - No code changed, so no tests apply. I did not run builds or tests. Live tests were not approved.
Round 2: step 4 of the offload-review skill said "Stop." before the new behavior-change check, so an agent that stops there never reached it. The check now comes first, then the message, then the stop. Assisted-By: Claude Opus 5.5 (1M context) <[email protected]> Signed-off-by: DAVID AMID <[email protected]>
|
Replies to round 2, fixed in Reviewer 2, finding 1 (the PR body). Agreed. I changed the body with
Both reviewers, non-blocking (SKILL.md step 4). Agreed: "Stop." came before the new check. Step 4 now checks the diff first, then gives one of 2 messages, then stops. |
amiddavid
left a comment
There was a problem hiding this comment.
| Reviewer | Kind | Started by | Context | Review | Round | Head | Verdict |
|---|---|---|---|---|---|---|---|
| Reviewer 1 (glm, user of @amiddavid) | GLM rits/zai-org/glm-5-3 via Claude Code 2.1.312 | offload-review skill, @amiddavid's session | resumed | 1 of 2 | 3 of 3 | 6c094d52577a |
approve |
Verdict: approve
Findings
None. One new commit, 6c094d52, plus a PR-body edit. Both fix the two round-2 items. I checked each against the files and against the PR body on the server.
Earlier findings
- Reviewer 2, round-2 finding 1 (the PR body) — fixed. I fetched the PR body from the server at head
6c094d52. All three parts:- The #759 bullet now uses the same words as the fixed
RELEASING.mdexample: a fixed 1-hour window after every restart, for every model, in which the first request of each new thread went out unchanged. It links to the owner's decision on #759. - The Summary states the wide rule, matching
RELEASING.md. - What changed names the
SKILL.mdstep-4 change.
- The #759 bullet now uses the same words as the fixed
- My round-2 non-blocking (skill step 4 order) — fixed, and so is reviewer 2's copy of it. Step 4 now checks the diff for a behavior change first, then gives one of two messages, then stops. "Stop." no longer sits before the gate. I read the step in context (
SKILL.md:114-118).
Non-blocking
- PR body, #759 bullet — it adds "and a benchmark measured that state" to the window's cost. The repo files do not carry this claim, and I could not check it from the record I have. It reads as history from #759's development. Not a defect in the merged files.
What I checked
- Last review: round 2, d3d0fab, 2026-10-27T21:46:10Z.
- New commits read: 1 (
6c094d52"docs(review): check for a behavior change before 'ready to merge'"). - Read in full: 4 reviews, 2 comments, 0 inline comments (from
.review-in-reviews.txt,.review-in-comments.txt,.review-in-inline.txt). - New items since my last review, and what I did about each:
- Reviewer 2's round-2 review (21:47:41Z, blocking on the PR body): read in full, checked the fix against the PR body fetched from the server. Fixed.
- The author's reply comment (21:48:55Z): read in full. Every claim in it held up against the commit and the body I fetched.
- Commit
6c094d52: full diff read (d3d0fab3..6c094d52, 1 file, +5/−4), plus the changed step read in context inSKILL.md. The worktree is at head6c094d52577a.
- The PR body at head
6c094d52, fetched from the server withgh api: checked the #759 bullet, the Summary rule and the What changed list against the fixed files. - Checked the new commit itself: DCO
Signed-off-bypresent,Assisted-By:attribution, conventional-commit titledocs(review):. - No code changed in this PR, so no tests apply. Live tests were not approved.
amiddavid
left a comment
There was a problem hiding this comment.
| Reviewer | Kind | Started by | Context | Review | Round | Head | Verdict |
|---|---|---|---|---|---|---|---|
| Reviewer 2 (glm, user of @amiddavid) | GLM rits/zai-org/glm-5-3 via Claude Code 2.1.312 | offload-review skill, @amiddavid's session | resumed | 2 of 2 | 3 of 3 | 6c094d52577a |
approve |
Verdict: approve
Findings
None. The round-2 finding is fixed, and the new commit adds no defect.
Earlier findings
Mine, round 2
- The PR body still stated the wrong #759 cost — fixed. I read the body back from the server at head
6c094d52. The Why bullet now says: "#759, as first written... added a fixed 1-hour window after every restart, for every model. In that window, the first request of each new thread went out unchanged." This matches the code and the fixed example. The bullet links to the owner's decision (comment6454348090on #759, verified in round 2). The Summary now states the wide rule, asRELEASING.mddoes. What changed names all three files,SKILL.mdincluded. - Non-blocking: the SKILL.md gate sat after "Stop." — fixed in
6c094d52. Step 4 now checks the diff for a behavior change first, then gives one of two messages, then stops. The gate can no longer be skipped by an agent that obeys "Stop." literally.
Mine, round 1, and reviewer 1's round-1 points — all fixed in d3d0fab3 and verified in my round-2 review. Nothing in the new commit touches them.
What I checked
- Last review: round 2,
d3d0fab30754d914d7f767f2fe36f3be9ff58699, 2026-10-27T21:47:41Z. - New commits read: 1 —
6c094d52"docs(review): check for a behavior change before "ready to merge"". - Read in full: 4 reviews, 2 comments, 0 inline comments (from the three saved files).
- New items since my last review, and what I did about each:
- Commit
6c094d52: full diff read (d3d0fab3..6c094d52, 1 file, +5/−4), and step 4 read in context (SKILL.md:108-123). The reorder is correct; the two messages match the rule inRELEASING.md. - The author's reply comment (2026-10-27T21:48:55Z): read in full. Each claim checked against the server.
- The PR body: fetched from the server at the new head. Every claim in the reply held up: the #759 bullet, the Summary rule, and the What changed list.
- Reviewer 1's round-2 review (21:46:10Z, before my last review): read in full now. Its non-blocking point on step 4 matches mine and is fixed by the new commit.
- Commit
- The cumulative diff
ccb62c7c..HEAD: 3 files, +23/−1. No file changed that the replies do not name. - The new commit itself: conventional title
docs(review):,Signed-off-by,Assisted-Byper repo rules. - No code changed, so no tests apply. I did not run builds or tests. Live tests were not approved.
Summary
A PR must not change behavior unless a human developer allows it. This matters most for a fix aimed at an edge case, where a wider change is easy to miss. The owner set this rule on 2026-10-27, for the release process and for all development. This PR writes it into
CLAUDE.md,RELEASING.mdand the offload-review skill.Why
/api/insightsreads on a hosted proxy. The integrator found it in the diff only after the merge.What changed
CLAUDE.md, Hard boundaries: a new rule. A fix that changes what the proxy or the library does (a default, a time limit, what gets cached, offloaded or shown) needs a human developer's yes before it merges. The PR names the change at the top: who it affects, the old and new behavior, and how to turn it off. An agent never decides this. It links to theRELEASING.mdsection.RELEASING.md, step 2: the permission is a merge condition. A new section says what counts, what the author and the integrator do, and what happens to a change found after the merge. fix: keep the cached part safe after a proxy restart, and label partial cache reads as misses (#496) #759 is the example, with a link to the owner's decision..claude/skills/offload-review/SKILL.md, step 4: after 2 approvals, the skill checks the diff for a behavior change. If there is one, it says the PR needs a human developer's yes, with the old and the new behavior, instead of "ready to merge".How it was tested
Docs only. No code changes.
Data dependence
No change.
🤖 Generated with Claude Code