8000 feat(comments): acknowledge a conversation I have read by dominikwozniak · Pull Request #102 · dominikwozniak/dw-mc · GitHub
[go: up one dir, main page]

Skip to content

feat(comments): acknowledge a conversation I have read - #102

Merged
dominikwozniak merged 1 commit into
mainfrom
feat/55-acknowledgement
Sep 18, 2026
Merged

dominikwozniak merged 1 commit into
mainfrom
feat/55-acknowledgement

Conversation

@dominikwozniak
Copy link
Copy Markdown
Owner

A pull request stays in Needs me for a comment I have read and have nothing to answer, and only a reply or a push takes it out. dw-mc comments <pr> --ack records an acknowledgement: my local word that the conversation, as far as its newest comment by a person, holds nothing for me. The bucket rule counts it beside my last comment and my last commit, so a newer comment brings the pull request back. It is scoped to a comment's moment rather than a head, and it never lifts changes requested.

Closes #55.

What changes

  • src/domain/bucket.ts — Facts carries acknowledgedAt; answeredAt is the latest of my comment, my commit and my acknowledgement, and it is what a human comment is measured against.
  • src/domain/acknowledgement.ts — the record, in an acknowledgements namespace of its own; the sweep reads it into Facts every run, so a quiet PR still sees it.
  • dw-mc comments <pr> --ack — records the newest comment by a person in the whole conversation, settled threads included, because the sweep counts those too; then says the bucket the PR sits in. The default view uses answeredAt as its cutoff, so what is acknowledged is not shown again.
  • CONTEXT.md — the Acknowledgement term; Needs me names the three moments.

Test plan

  • pnpm check — pass, 731 tests
  • src/domain/bucket.test.ts — 6 new cases: each of the three moments on its own, a comment newer than all three, a comment newer than the acknowledgement, changes requested held whatever is acknowledged
  • src/domain/acknowledgement.test.ts, src/domain/comments.test.ts — the record's round trip, and what --ack covers: settled threads in, bots out, nothing where no person spoke
  • src/cli/comments.test.ts — 4 new cases: no write without --ack, the moment recorded, nothing to acknowledge, acknowledged comments left out of the view
  • src/cli/status.test.ts — 2 new cases: an acknowledgement survives a head change, and a newer comment takes it back. With the sweep's read broken on purpose both fail.
  • by hand: node dist/bin.js comments --help lists --ack
  • by hand, still to do: dw-mc comments <pr> --ack on a PR in Needs me for a comment, then dw-mc status shows it out of Needs me

Risk

Low: --ack writes only to the state directory, never to GitHub. Facts saved by the released version lack the new field and are forgotten, so the first command after upgrading asks for one sweep. Way back: git revert, and a wrong acknowledgement is undone by deleting its file under acknowledgements/.

🤖 Generated with Claude Code

A pull request sat in Needs me for a comment I had read and had nothing
to answer, and only a reply or a push could take it out. dw-mc comments
--ack records an acknowledgement: my word that the conversation, as far
as its newest comment by a person, holds nothing for me. The bucket rule
takes the latest of my last comment, my last commit and that
acknowledgement, so a newer comment brings the pull request back.

It is scoped to a comment's moment and not to a head, because it is about
the conversation rather than the code, and changes requested stays with
the reviewer who can lift it.

Closes #55

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@dominikwozniak
dominikwozniak merged commit b3771a2 into main Sep 18, 2026
1 check passed
@dominikwozniak
dominikwozniak deleted the feat/55-acknowledgement branch September 18, 2026 10:23
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.

comments: acknowledge a conversation I have read

1 participant

0