Skip to content

Fix docs-refresh pipeline (promote gap + snapshot step) and drop tracked .idea - #11

Merged
franco-zalamena-iterable merged 4 commits into
mainfrom
fix-refresh-docs-token
Aug 3, 2026
Merged

Fix docs-refresh pipeline (promote gap + snapshot step) and drop tracked .idea#11
franco-zalamena-iterable merged 4 commits into
mainfrom
fix-refresh-docs-token

Conversation

@franco-zalamena-iterable

Copy link
Copy Markdown
Contributor

Makes the auto-refresh pipeline work end-to-end: polish:a writes
.polished.md directly (was a dead-end .layer-a.md), workflow now runs
snapshot:refresh so the auto-PR passes its own gate, plus the -- arg fix and
untracking .idea/. Verified locally: full fetch→polish→snapshot chain +
check:all green.

franco-zalamena-iterable and others added 4 commits July 30, 2026 16:56
pnpm 9 forwards the `--` separator through to the script, so
`pnpm fetch:sources -- android` reached fetch.ts as argv ["--","android"] —
process.argv[2] was "--", making it look for config/--.yml (run 30558452626).
Same issue in set-source-ref.ts (positional platform/sha/label). Filter out a
stray "--" in both so they work whether or not pnpm forwards it. polish-layer-a
already tolerates it (regex-based arg scan).

Verified locally: `pnpm fetch:sources -- android` resolves android.yml and
fetches all 14 articles.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
…freshes snapshot

The refresh pipeline could not produce a correct refresh on its own. Two gaps:

1. polish:a wrote its output as `<slug>.layer-a.md`, but every consumer
   (snapshot, validate:polished, recompute:manifest) reads `<slug>.polished.md`.
   The `.layer-a.md` suffix was a vestige of a removed Layer-B LLM stage that
   v1 never runs, so nothing ever promoted layer-a → polished. A local refresh
   only worked via a manual `cp`. Fix: polish:a writes `.polished.md` directly,
   matching the Stage-2 contract in config (writes paths.polished_dir).

2. refresh-docs.yml ran polish + bumped the pin but never ran snapshot:refresh,
   so the auto-refresh PR would ship a stale snapshot and fail its own
   snapshot:verify gate in check:all. Add a Refresh snapshot step.

Verified locally: fetch → polish → set-source-ref → snapshot:refresh →
snapshot:verify now works with no manual step; check:all passes; regenerated
corpus is byte-identical to the committed refresh except polished_at.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
.idea/ was accidentally committed earlier on this branch; add it to .gitignore
and remove it from tracking. IDE config shouldn't ship in the repo.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@franco-zalamena-iterable
franco-zalamena-iterable merged commit bb61a2e into main Aug 3, 2026
1 check passed
@franco-zalamena-iterable
franco-zalamena-iterable deleted the fix-refresh-docs-token branch August 3, 2026 23:10
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