ALEF-PAT-014

compaction-retrigger-no-tail-id

maintain × unbounded-retrigger · severity 6 · confidence 0.86

Compaction job processes log entries 1..N, then retriggers without recording tail-id N. Next run reprocesses 1..N+M, doing the same work twice.

diagnosed in the wild

·

loading…

healed by ALEF

·

loading…

cited in posts

·

loading…

observable signature

{
  "log_pattern": "auto_trigger=true AND tail_anchor=null AND prev_op=just_completed"
}

fix archetypes

  • defer-if-anchor-nullcost: tiny

    second auto-trigger ONLY fires when tail anchor is derivable; else defer one tick

compounds with

cite as

# In a PR description / issue / RFC:
fixes pattern ALEF-PAT-014 (compaction-retrigger-no-tail-id)
ref: https://n50.io/patterns/014

# Machine query:
GET https://n50.io/api/patterns/014

# Scan your repo for this pattern:
npx @alef-prime/audit-agent-system . --pattern=014