Skip to content

docs(kiro): note the repeated all_set dedupe - #11

Merged
chaodu-agent merged 4 commits into
mainfrom
docs/kiro-dedupe-note
Nov 26, 2026
Merged

chaodu-agent merged 4 commits into
mainfrom
docs/kiro-dedupe-note

Conversation

@chaodu-agent

Copy link
Copy Markdown
Contributor

Docs-only update for PR #10.

@chaodu-agent

This comment has been minimized.

@chaodu-agent

This comment has been minimized.

@chaodu-agent

This comment has been minimized.

@chaodu-agent

Copy link
Copy Markdown
Contributor Author

Note

LGTM ✅ - Round-3 F1 is fixed: the README now says "previous stateful event", which matches the code, and no blocking findings remain.

What This PR Does

Adds a short pointer in step 3 of the Kiro walkthrough (docs/kiro.md) saying that back-to-back all_set events for the same session do not send another Web Push, linking to the README Web Push section. It also corrects that README section so it describes the dedupe rule accurately.

How It Works

Docs only (README.md +1/-1, docs/kiro.md +2/-0). Since round 3 (797d5e5 -> 37897aa), README.md:598 changed "previous event" to "previous stateful event". This matches the code: Store::push_with_prior (crates/nearpushd/src/store.rs:141-145) takes prior from the newest same-session buffered event that has a state (find_map(|e| e.state)), and should_push (crates/nearpushd/src/webpush.rs:311-323) skips an all_set only when prior == Some(AllSet). A dismissal writes a stateless dismissed event (record_dismissal, crates/nearpushd/src/server.rs:1182-1195), so all_set -> dismiss -> all_set still suppresses the second push, and the README now says so.

Findings

# Severity Finding Location
1 🟢 Round-3 F1 resolved: README wording now matches push_with_prior and should_push, including the dismissed case README.md:598
2 🟢 Pointer is correct: blank line plus 3-space indent keeps it inside step 3, and the anchor matches the README heading docs/kiro.md:105-106
3 🟢 Smallest viable change: +3/-1 across two docs files, one canonical rule, no code, config, dependency or CI change -
Finding Details

🟢 F1: Round-3 F1 resolved

README.md:598 now reads "An all_set is not pushed when the same session's previous stateful event in the buffer was already all_set". This agrees with store.rs (find_map(|e| e.state) skips stateless events), with the should_push doc comment in webpush.rs, and with docs/apple-watch.md:87-89. The README, the Apple Watch doc and the code now describe the rule the same way.

🟢 F2: Pointer placement and link

The sentence sits in step 3, the step that produces all_set, and the relative link ../README.md#notifications-and-apple-watch-web-push resolves to the heading at README.md:593. Step 4 numbering is unaffected.

🟢 F3: Smallest viable change

The PR restates no policy text; future changes to the dedupe rule only need a README update.

Optional, non-blocking: README.md:598 is now 92 characters while the paragraph wraps at about 87, and docs/kiro.md:106 is a single 198-character line (96 characters of it are the Markdown link). Both files already contain lines longer than 90 characters and no line-length check is configured, so this is not a finding. Wrap them only if the files are edited again.

Baseline Check
  • PR opened: 2026-11-26
  • Head: 37897aa49eb8e0ba3aae3599f222ba51387bd237, base main, merge-base ad893dc3231c72b102b796e359a2e02848c91773
  • Diff: README.md | 2 +-, docs/kiro.md | 2 ++
  • Main already has: the dedupe logic and its test (webpush.rs, store.rs), the README Web Push section, the precise rule in docs/apple-watch.md:87-89, and a pointer from docs/kiro.md:164-166 to the README for Web Push
  • Net-new value: a factual fix to the canonical README rule, plus a pointer from the Kiro step that produces all_set
  • CI: poll-and-review passes. Local git diff --check passes. No build was run because the diff is docs only.
Reviewer Verdicts
Reviewer Verdict Notes
Reviewer A LGTM Pointer design is sound; formatting is non-blocking
Reviewer B LGTM README now matches the stateful-event lookup in push_with_prior, including the all_set -> dismiss -> all_set case
Reviewer C LGTM Smallest viable change; anchor coupling is low risk and degrades to the README top if renamed
Reviewer D No report -

All reports agree that round-3 F1 is fixed and that neither line length should block.

What's Good (🟢)
  • Each round narrowed the change. The final PR fixes a real inaccuracy in the canonical doc and adds one pointer.
  • The README, docs/apple-watch.md and the code now describe the dedupe rule consistently.

5. Three Reasons We Might Not Need This PR

  1. The README is already linked - docs/kiro.md:164-166 already sends Web Push readers to the README.
  2. The rule is not Kiro-specific - dedupe is daemon-wide Web Push behavior; adding per-rule pointers to agent docs can slowly turn them into piecemeal indexes.
  3. No user action follows from it - the note is informational and requires no configuration.

These do not outweigh the README correction, which fixes a description that was wrong for normal usage.

@chaodu-agent
chaodu-agent merged commit 44ff166 into main Nov 26, 2026
2 checks passed
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.

1 participant