Skip to content

feat(templates): promote alias-expansion-sweep aliases into frontmatter - #24

Merged
silversurfer562 merged 1 commit into
mainfrom
feat/promote-alias-sweep-frontmatter
Jul 11, 2026
Merged

feat(templates): promote alias-expansion-sweep aliases into frontmatter#24
silversurfer562 merged 1 commit into
mainfrom
feat/promote-alias-sweep-frontmatter

Conversation

@silversurfer562

Copy link
Copy Markdown
Member

Part of #9 — first of two PRs. The attune-rag override-retirement PR closes the issue.

What

Promotes the 12 alias sets (182 aliases) from attune-rag's aliases_override.json — always a temporary home per docs/specs/archive/alias-expansion-sweep/ — into the corresponding template frontmatter. Purely additive: existing frontmatter aliases preserved verbatim, promoted aliases appended in override-file order.

Validation

  • Global uniqueness: 221 distinct aliases corpus-wide, zero cross-template collisions (frontmatter parsed with YAML round-trip, all 182 promoted aliases verbatim-present).
  • Tokenizer rule: every promoted alias yields ≥2 tokens through attune_rag.retrieval._tokenize (clears MIN_ALIAS_OVERLAP=2).
  • attune-help suite: 248 passed; ruff clean.

Benchmarks (disclosed, gates pass)

scripts/benchmark_all_fixtures.py, before → after: overall P@1 75.1% → 73.4% (gate ≥73% ✔), R@3 83.8% → 83.2%. Same delta with attune-rag 0.1.23 (help CI's pin) and repo HEAD 0.8.0.

Why it moves at all: the retriever's content_preview tokenizes the first 500 chars of the raw file — bigger frontmatter displaces body text from the window. The alias-credit mechanism itself is behavior-neutral (main+override scores identically to main on this fixture set). Drop concentrates in the heavily-aliased templates: code-quality 56→48, planning 56→48, refactor-plan 68→60.

Measured follow-up (separate issue, attune-rag): stripping frontmatter from content before preview tokenization recovers to 74.8% on the promoted corpus. Filed as a fast-follow rather than expanding this PR.

Paraphrased coverage the sweep bought is preserved end-to-end: with this branch installed and the override stubbed, attune-rag's golden thresholds pass and paraphrased R@3 is 100% (diagnostic-1).

After merge

  1. Release attune-help so the corpus ships the aliases.
  2. attune-rag: bump the attune-help pin, retire the sweep entries from aliases_override.json (mechanism stays), regenerate bundled-corpus goldens — closes Promote attune-rag alias-expansion-sweep aliases into upstream frontmatter #9.

Promotes the 12 alias sets (182 aliases) from attune-rag's
aliases_override.json — their designated temporary home — into the
corresponding template frontmatter. Purely additive: existing aliases
are preserved verbatim, promoted aliases appended in override-file
order, no collisions introduced (221 distinct aliases corpus-wide,
verified globally unique; every promoted alias clears the retriever's
2-stemmed-token minimum).

Part of #9 (the attune-rag override
retirement closes it).
@codecov

codecov Bot commented Jul 11, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@silversurfer562
silversurfer562 merged commit 26108bf into main Jul 11, 2026
14 checks passed
@silversurfer562
silversurfer562 deleted the feat/promote-alias-sweep-frontmatter branch July 11, 2026 14:16
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.

Promote attune-rag alias-expansion-sweep aliases into upstream frontmatter

1 participant