Skip to content

chore: drop owner attributions from code comments - #1446

Merged
amiddavid merged 2 commits into
mainfrom
chore/drop-code-attributions
Nov 25, 2026
Merged

amiddavid merged 2 commits into
mainfrom
chore/drop-code-attributions

Conversation

@amiddavid

@amiddavid amiddavid commented Nov 25, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Code comments no longer say who decided a rule or when. David Amid asked for this on 2026-11-25: such notes "are meaningless after a few days". He said yes to code comments too. Refs #1435 (docs and script comments).

What changed

  • Comment lines only. No code, string literal, struct tag or test name changes. No behavior change. No data dependence change.
  • Removed a name, a date or a quote of the owner's words in 15 files. Each rule and reason stays, in plain words.
  • Undated wording that gives the reason for a choice ("the owner asked for ...", "the owner's rule") stays in about 20 files, on purpose. Domain uses (account owner, session owner, "owner's laptop") also stay.
  • PR fix(opencode): five small problems in the chat commands (#1161) #1171 also changes opencode-plugin/test/tui.test.mjs. My edit is one comment line near line 54. Check for a merge conflict there.

How it was tested

Tests ran on macOS, Go 1.27.4.

  • git diff origin/main shows only comment lines.
  • gofmt -l clean. go vet clean on the changed packages. go build ./... passes.
  • node --check passes on the 3 changed JS files.
  • claude plugin test . in context-guru-plugin: 128 pass, 0 fail.
  • node --test in opencode-plugin: 114 pass, 0 fail, 7 skipped.

Remove names, dates and quotes of owner decisions from Go, TypeScript
and JS comments. Keep each rule and its reason. Comment lines only.

Refs #1435

Assisted-By: Claude Opus 5.5
Signed-off-by: DAVID AMID <[email protected]>
@amiddavid

Copy link
Copy Markdown
Collaborator Author

Local tests: waived (owner rule)

@amiddavid amiddavid left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.332 offload-review skill, @amiddavid's session fresh 1 of 2 1 of 2 58161fc310e9 approve

Verdict: approve

Findings

None.

Non-blocking

  • The sweep is partial. The commit removes names, dates and quotes of owner decisions. Other owner attributions without a name, date or quote remain, for example tenant/feedback.go:24, dash/summarizeattr.go:20, dash/pricetier_callers_test.go:115, apply/tracker_restart_test.go:238, modes/modes_test.go:236, components/offload/extract_sweep_ping.go:685, components/offload/extract_sweep_warm.go:33, dash/limits.go:135, dash/store.go:920, dash/api.go:1014, proxy/control.go:1702, proxy/feedback.go:24, dash/uiinventory_test.go:53, keepalive/summarytextturn_test.go:209. If the goal is to remove owner attributions from code comments, these need a follow-up. A follow-up issue is enough.
  • keepalive/keeper.go:2604 — the rewritten comment line is about 140 characters. The old text wrapped over three lines. Style only.
  • components/offload/prefixask_gate.go:14 — "The rule checks the read only" can read as "read-only". "The rule checks only the read" is clearer. Style only.

What I checked

  • Read CLAUDE.md and the full diff of e9d4a6f1..58161fc3 (10 files, 12 insertions, 14 deletions).
  • Verified every changed line is a comment line. I filtered the diff for non-comment +/- lines: no output. So no behavior change, and no build risk from the edit itself.
  • Checked that each rewritten comment keeps its meaning and its issue reference:
    • prefixask_gate.go: the read-only choice stays, #721 stays, "the cap ships OFF" stays.
    • config.go: "240 needs a measurement" keeps the open measurement task, #716 and #435 stay.
    • model.ts: the name and date go, #1135 stays, the rule (no share shown for a guessed weight) stays.
    • keeper.go: the owner quote goes, the rule (summary due means only the summary goes, sweep question only when no summary is registered) stays in full.
    • The other five files drop only "owner decision" tags; the rules stay.
  • Searched the repo for the owner's name and for owner decisions with dates in Go, TS and JS comments: none remain. The commit message scope ("names, dates and quotes") is met. What remains is "the owner's rule" phrasing without a name, date or quote (see Non-blocking).
  • Checked whether any test asserts on comment text that the PR edits (grep over test files for "owner" near want/contain patterns): the hits are about data owners and test fixtures, not these comments. The dash/uiinventory_test.go and opencode-plugin tests near the edits scan dashboard/plugin source, not the edited test-file comments.
  • Host boundary, client rules, data dependence: not applicable. No code line changed, no component added or changed.
  • Fail open: not applicable, no executable change.

@amiddavid amiddavid left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.332 offload-review skill, @amiddavid's session fresh 2 of 2 1 of 2 58161fc310e9 blocking

Verdict: blocking

Findings

  1. keepalive/substitute.go:86 — a dated quote of the owner's words stays, so the PR does not do what its summary says

    • What fails: The PR summary says "Code comments no longer say who decided a rule or when", and "What changed" says it removed "a name, a date or a quote of the owner's words". The tree at the head still holds all three kinds:
      • keepalive/substitute.go:86-87 — "The owner's choice, 2026-10-30: "give it more time, it can run on the 210 sec mark"." A date and a quote.
      • proxyapp/idleexit.go:275 — "(owner, 2026-11-12)". A date.
      • agent/bob/gateway.go:18 — "(owner, 2026-11-12)". A date.
      • proxy/sweep_model_audit_test.go:25 — "(#491, David)". A name.
      • components/offload/extract_sweep_warm_test.go:991, :1461, :1557 — "(#491, David)". A name, three times.
    • Proof: grep -rn "owner, 2026\|David)" --include='*.go' ... at the head returns the lines above. None of these files is in the diff.
    • Fix: Apply the same rewrite in those files. Or narrow the summary and "What changed" to the 10 files the PR touches, and say the rest stays for a follow-up.
  2. PR body — the "Kept undated wording" list of 5 files is wrong; undated owner wording stays in about 18 more files

    • What fails: The body says undated wording ("the owner asked for ...") was kept in proxy/feedback.go, tenant/emailcode.go, tenant/account_test.go, tenant/feedback_test.go and context-guru-plugin/plugin_test.go. The read of that list is "this is all that stays". It is not. Undated owner wording also stays in:
      • config/config.go:161, :168 — "owner's laptop". This is a file the PR itself edits; lines 109-116 were rewritten and lines 161/168 in the same file were left.
      • tenant/feedback.go:24, tenant/keepalivestrategy.go:97, apply/tracker_restart_test.go:238, modes/modes_test.go:236, dash/limits.go:135, dash/store.go:920, dash/uiinventory_test.go:53, keepalive/summarytextturn_test.go:209, keepalive/sweeptextturn_test.go:32, components/offload/extract_sweep_ping.go:685, components/offload/extract_sweep_warm.go:33 and :507, components/offload/extract_sweep_verdict_test.go:9, components/offload/extract_sweep_apply.go:610, campaign/arms.go:30, proxy/auth_test.go:234, context-guru-plugin/plugin_test.go:8121, opencode-plugin/test/capture.test.mjs:17.
    • Proof: grep -rn "owner's\|the owner asked\|owner chose\|owner decided" --include='*.go' --include='*.ts' --include='*.js' --include='*.mjs' at the head, with the domain uses (account owner, session owner, envelope owner) removed by hand.
    • Fix: Decide the real scope. If the extra files are deliberate keeps, the body must list them or say "and elsewhere". If not, sweep them too.

Non-blocking

  • keepalive/keeper.go:2603 — the merged comment line is now about 150 characters, longer than the lines around it. Cosmetic only.
  • The PR flags a possible conflict with #1171 in opencode-plugin/test/tui.test.mjs. I did not check #1171's head. The PR body already names it, so the integrator should watch that merge.

What I checked

  • The full diff, base e9d4a6f1 to head 58161fc3. Every changed line is a comment line. No code, string literal, struct tag or test name changes. I verified this with a filter that keeps only non-comment +/- lines: it returns nothing.
  • Each rewrite keeps the rule and its reason. The #721, #716, #1135, #776 and #721-style issue references stay, so a reader can still find the decision record.
  • No dangling reference to the removed text: no test or comment quotes the removed date 2026-10-30 phrase or the removed owner quote from keeper.go (the 2026-10-30 hit in substitute.go is finding 1, not a dangling reference).
  • Data dependence: comment-only change, no component or feature change. No row update needed. The PR says the same.
  • Host boundary and client rules: no code change, so both checks are empty by construction.
  • The PR body's claims against the tree at the head: the "comment lines only" claim holds; the "no longer say who decided a rule or when" claim does not (findings 1 and 2).
  • Live tests were not run. The review rules do not approve them for this round.

Remove "(owner, 2026-11-12)", "(#491, David)" and a dated owner quote
from 6 more files. Comment lines only.

Refs #1435

Assisted-By: Claude Opus 5.5
Signed-off-by: DAVID AMID <[email protected]>
@amiddavid

Copy link
Copy Markdown
Collaborator Author

Finding 1: fixed in the new commit. Removed the dated quote in keepalive/substitute.go, "(owner, 2026-11-12)" in proxyapp/idleexit.go and agent/bob/gateway.go, and "David" in proxy/sweep_model_audit_test.go and components/offload/extract_sweep_warm_test.go (3 places). A wide search for names and "owner" next to a date finds no more comment hits.

Finding 2: the body now says undated reason wording stays on purpose, in about 20 files. The owner asked to remove names, dates and quotes only. Domain uses of "owner" also stay.

Non-blocking, long line in keeper.go: left as is.

@amiddavid amiddavid left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.332 offload-review skill, @amiddavid's session resumed 2 of 2 2 of 2 5893a9205a08 approve

Verdict: approve

Findings

None.

Earlier findings

  1. Round 1, finding 1 (dated and named attributions stay): fixed. The new commit removes all six spots I listed:
    • keepalive/substitute.go — the dated quote is gone. The plain sentence keeps the reason: the extra request runs on the 210 s mark, so the window gets more time.
    • proxyapp/idleexit.go:275 and agent/bob/gateway.go:18 — "(owner, 2026-11-12)" is gone from both.
    • proxy/sweep_model_audit_test.go:25 — "(#491, David)" is now "(#491)".
    • components/offload/extract_sweep_warm_test.go:991, :1461, :1557 — "(#491, David)" is now "(#491)" in all three.
      I re-ran the search for "owner" next to a date, for ", David" and for "David Amid" over Go, TS, JS and MJS files at the head: no hit outside test data (david in coref fixtures) and false positives ("PerHost", "MidSession"). The remaining dash/accountant_switch_test.go:670 hit is undated wording in a test message, which the body now declares an intentional keep.
  2. Round 1, finding 2 (the body's kept-list is wrong): fixed. The body now says undated reason wording stays in about 20 files, on purpose, and names the domain uses ("owner's laptop", account owner, session owner). I checked this against the tree: my grep counts about 20 files with undated owner wording. The claim now matches the tree.
  3. Round 1, non-blocking (long line in keeper.go): left as is. The author said so in the PR comment. Accept: style only.

Non-blocking

  • The body says "Removed ... in 16 files". The diff from base changes 15 files (10 in the first commit, 5 in the second). The new commit message also says "6 more files" where the stat shows 5. Count errors only. No reader is misled about scope, because the body states the rule (names, dates, quotes) and the rule now holds.

What I checked

  • Last review: round 1, 58161fc, 2026-11-25T20:55:25Z.
  • New commits read: 1 — 5893a920 "chore: drop the remaining dated and named notes from code comments".
  • Read in full: 2 reviews, 2 comments, 0 inline comments (from the three saved files).
  • New items since my last review:
    • Commit 5893a920: read the full diff and the code around each change. All changed lines are comments. I verified this with a filter that keeps only non-comment +/- lines over the whole base-to-head diff: no output. No code, string literal, struct tag or test name changed.
    • PR comment by the author at 2026-11-25T20:57:27Z (the fix reply): checked each claim against the head. Both claims hold.
    • Updated PR body: read in full. The scope claims now match the tree (see "Earlier findings" 1 and 2).
  • Each rewrite in the new commit keeps its rule and reason: the #491 references stay, the 210 s mark reason stays, the "not designed for hosted Bob" reason stays.
  • Data dependence: comment-only change, no component or feature change. No row update needed.
  • Host boundary and client rules: no code change, so both checks are empty.
  • Fail open: no executable change, not applicable.
  • Live tests were not run. The review rules do not approve them for this round.

@amiddavid amiddavid left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.332 offload-review skill, @amiddavid's session resumed 1 of 2 2 of 2 5893a9205a08 approve

Verdict: approve

Findings

None.

Status of earlier findings

  • Reviewer 2, finding 1 (dated quote and names stay in 6 more files): fixed. The new commit 5893a920 rewrites all 6 places: keepalive/substitute.go:86 (date and quote), proxyapp/idleexit.go:275 (date), agent/bob/gateway.go:18 (date), proxy/sweep_model_audit_test.go:25 (name), components/offload/extract_sweep_warm_test.go:991, :1461, :1557 (name). I re-ran the search at the new head: no "owner" next to a date, no "David" as a name, no owner-decision quote remains in Go, TS or JS comments.
  • Reviewer 2, finding 2 (PR body scope list wrong): fixed. The body now says undated wording stays in about 20 files on purpose, and that domain uses ("owner's laptop", account owner) stay. I checked the tree: what remains is undated reason wording and domain uses, which matches the stated scope.
  • My round-1 claim "no name or dated owner decision remains" was wrong. My round-1 grep was too narrow: it searched "David Amid" and not bare "David", and it missed the "(owner, 2026-11-12)" form. Reviewer 2 caught it. The new commit closes the gap.
  • My round-1 non-blocking notes: the long comment line in keepalive/keeper.go stays as is (author's choice, fine). The "read only" wording in prefixask_gate.go is unchanged (style only).

Non-blocking

  • PR body, "What changed" — it says the PR removes a name, date or quote "in 16 files". The full diff e9d4a6f1..5893a920 touches 15 files (10 in the first commit, 5 in the second, no overlap). Off by one. Fix the number or say "about 15".

What I checked

  • Last review: round 1, 58161fc310e912ea8fd7b33f50cc5313bcf5ef26, 2026-11-25T20:54:35Z.
  • New commits read: 1 — 5893a920 "chore: drop the remaining dated and named notes from code comments" (5 files, 8 insertions, 8 deletions).
  • Read in full: 2 reviews, 2 comments, 0 inline comments (from the three saved files).
  • New items since my last review, and what I did about each:
    • Review 2, round 1 (20:55:25Z): read in full. Both findings checked against the new head, see above.
    • Author comment (20:57:27Z): read in full. "Finding 1 fixed, finding 2 body updated, long line left as is." Verified each claim against the tree.
    • Author comment (20:52:30Z): the local-tests waiver line. Nothing to check.
    • New commit 5893a920: read the full diff and the code around each change.
  • Verified the new commit is comment-only: I filtered its diff for non-comment +/- lines and got no output.
  • Checked each rewritten comment keeps its meaning: substitute.go replaces the quote with the plain reason ("the extra request runs on the 210 s mark, so the window gets more time"); the #491, #776 and hosted-vs-local references stay; the Bob hosted rule stays in both gateway.go and idleexit.go.
  • Searched the new head for what the scope bans: "owner" next to a date, "David" as a name, and owner-decision quotes. None remain. The david hits in internal/coref and components/offload coref tests are test fixtures (a person's data in coref tests), not decision attributions. The quoted text in proxy/feedback.go:24 is user-facing feedback example text, not the owner's words.
  • Checked the PR body claims: "comment lines only" holds; the scope statement matches the tree; the file count is off by one (see Non-blocking).
  • Host boundary, client rules, data dependence, fail open: not applicable. No executable line changed in either commit.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant