Skip to content

docs(specs): handoff for regen/staleness source_hash mismatch#41

Merged
silversurfer562 merged 1 commit into
mainfrom
docs/regen-staleness-hash-mismatch-spec
May 25, 2026
Merged

docs(specs): handoff for regen/staleness source_hash mismatch#41
silversurfer562 merged 1 commit into
mainfrom
docs/regen-staleness-hash-mismatch-spec

Conversation

@silversurfer562

Copy link
Copy Markdown
Member

Summary

Adds docs/specs/regen-staleness-hash-mismatch/decisions.md — a handoff doc capturing a bug surfaced by attune-gui's Phase 2 of living-docs-regen-automation (parked there pending this fix; see attune-gui#62).

The bug: attune-author regenerate <feature> writes a source_hash to frontmatter, but attune-author status <feature> immediately afterwards still reports the feature as stale. Loop never reaches a fixed point. Likely cause: regen hashes a budget-truncated source view; staleness hashes the full set.

This PR is docs only — no code change. The doc lays out the architecture, code pointers, and three candidate fix directions so a future session can dive straight into Phase 1 (repro test) without re-discovering the context.

Test plan

  • Read the decisions.md end-to-end — does the hypothesis ring true?
  • Confirm the suggested fix direction ("always write the full-set hash") aligns with intent
  • Companion tracking issue opened in this repo

🤖 Generated with Claude Code

Phase 2 of attune-gui's living-docs-regen-automation (Smart-AI-Memory/attune-gui#62)
surfaced an attune-author bug: regenerate writes a source_hash that the
immediately-following status check disagrees with. Likely cause: regen
hashes a budget-truncated source view while staleness hashes the full
set.

This decisions.md captures the handoff — repro, code pointers, fix
directions to choose between — so the next session picking this up
starts with the architecture context already laid out. No code fix yet;
that needs Phase 1 (failing test) first.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@silversurfer562 silversurfer562 merged commit e2a043a into main May 25, 2026
12 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