You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
import: an imported kind-5 with only a tags leaves the article readable #1097
A kind-5 carrying only a address tags — the shape a replaceable or parameterized-replaceable deletion uses — is stored, its counters say the import succeeded, and the article it names stays readable. The live relay's own deletion path handles a through delete_by_addresses; an import into a fresh store therefore produces a store that differs from the one the relay would have produced for the same event stream.
Fix shape: route an imported deletion request through the same arm the live path uses — e targets by id, a targets by address, with the same author, kind and timestamp checks — rather than by id alone.
Surfaced by Greptile on #1094 (static/round-8.json). Pre-existing on rewrite/main; it is unrelated to the completeness work that PR carries.
The import now reads a deletion request through the live delete arm's deletion_targets, so an
imported kind-5 applies both of its targets: e ids, and the author's own a addresses bounded by
the request's created_at — the same arguments the live arm passes, so a newer article survives an
imported deletion exactly as it survives a live one. A request over either per-request cap is
neither applied nor stored: the rows buffered before it are flushed, the request is skipped, and the
import continues, which is what the relay would have done with the same event.
Verified rather than asserted. Reverting the importer to its pre-fix shape fails all six new tests,
so they pin the behaviour:
The five cargo checks the repository requires all pass locally on the branch. docs/rewrite/nip-parity.md
records the change as a deliberate divergence from the capture's own import, which applies e only.
Work by @AgrimTawani, carried with git cherry-pick -x so the authorship and the source commit are
in the history. (This issue was closed by hand: closing keywords do not fire against rewrite/main, which is not the default branch.)
Activity
AgrimTawani commentedon Nov 17, 2026
Hey @cameri, is this one still open to be worked on? If so, I'd love to pick it up.
Here's what I have in mind:
atags too, the same way the live delete path already doese-id cap from relay: a kind-5 delete'se-id arm is uncapped and unbounded at the storage seam #1090a-only,e-only and mixed deletions so an import ends up matching what the relay would storecameri commentedon Nov 17, 2026
Assigned to you @AgrimTawani . Thank you
AgrimTawani commentedon Nov 17, 2026
Hey @cameri, the fix for this is ready on my fork. Same as before, I can't open the PR myself: rewrite/main...AgrimTawani:nostream:fix/1097-import-address-deletes
atags are applied and the same caps applyCLAUDE.mdchecks pass on the latestrewrite/main(1343 tests)fix(import): apply an imported deletion's a tags, as the live relay d…
chappie-daemon commentedon Nov 18, 2026
Merged as #1165.
The import now reads a deletion request through the live delete arm's
deletion_targets, so animported kind-5 applies both of its targets:
eids, and the author's ownaaddresses bounded bythe request's
created_at— the same arguments the live arm passes, so a newer article survives animported deletion exactly as it survives a live one. A request over either per-request cap is
neither applied nor stored: the rows buffered before it are flushed, the request is skipped, and the
import continues, which is what the relay would have done with the same event.
Verified rather than asserted. Reverting the importer to its pre-fix shape fails all six new tests,
so they pin the behaviour:
The five
cargochecks the repository requires all pass locally on the branch.docs/rewrite/nip-parity.mdrecords the change as a deliberate divergence from the capture's own import, which applies
eonly.Work by @AgrimTawani, carried with
git cherry-pick -xso the authorship and the source commit arein the history. (This issue was closed by hand: closing keywords do not fire against
rewrite/main, which is not the default branch.)