issue-289: ship create-issues reference docs instead of deferring to a missing process #290
No reviewers
Labels
No labels
bug
chore
documentation
enhancement
feature
ready
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
david/pi-extensions-and-skills!290
Loading…
Reference in a new issue
No description provided.
Delete branch "bug/issue-289/commit-working-tree-changes-create-issues-ships-its-reference-docs"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What & why
The
create-issuesskill's Documentation Required section has been namingdocs/reference/<slug>/folders and telling implementers that "A separate process downloads these". That process never existed — it was pi-loop's still-unimplemented research stage (ADR-014) — so the folders were never created. The cost was measurable:.pi-loop/runs/*directories referencedocs/reference/...pathsmissing-docsis the second-largest friction category (35 entries)extensions/vision/findings.md: "the separate download process did not run";extensions/penpot/findings.md: "thedocs/reference/directory does not exist"), and hand-authored fixtures from schemas to compensateThis change makes
create-issuesown the download end to end: a new Phase 6 turns the researched URLs into a JSON manifest, vendors each page verbatim with a dependency-free fetcher, and ships the tree through thecommit-docsworkflow — so the folders exist on the default branch before the issues that reference them are implemented.Per-file breakdown
Added
skills/create-issues/scripts/fetch-reference-docs.mjs— dependency-free (Node ≥ 20.19 built-infetch) reference-doc fetcher.{ groups: [{ slug, name, version, sources: [{ url, summary }] }] }manifest;--out,--dry-run,--refresh,--max-bytesflags.docs/reference/<slug>/<file>, with provenance in_meta.json(url,file,contentType,bytes,sha256,summary) and a regenerateddocs/reference/README.mdindex.versionor URL set changed (--refreshforces); a shrunken URL set removes orphaned files.http(s)URLs accepted; bodies capped at 5 MB by default; a source cannot overwrite the provenance file.skills/create-issues/scripts/fetch-reference-docs.test.mjs— 27-case suite covering manifest validation, dry-run (no network/writes), verbatim writes + provenance + index rendering, orphan removal, all-or-nothing failure, version/URL-set staleness,--refresh, the provenance-overwrite guard, and bad-args/bad-manifest exit codes. Verified locally: 27 pass / 0 fail.Modified
skills/create-issues/SKILL.md— the substantive change:--dry-runpreview, 6.3 fetch verbatim, 6.4 ship via thecommit-docsworkflow (date-driven branch, CI gate, ask before merge), 6.5 report the merge state and say so explicitly when the PR is unmerged (folders not yet on the default branch).package.json—npm testnow also runsskills/create-issues/scripts/*.test.mjs.README.md—create-issuesrow rewritten (milestones → steps, self-contained bodies, vendors dependency docs intodocs/reference/<slug>/, shipped as a docs PR); repo-layout note now mentionscreate-issues/shippingscripts/fetch-reference-docs.mjs.CHANGELOG.md— new Fixed entry documenting the phantom-download problem and the fix.Notes for the reviewer
commit-docsskill, so this PR introduces no new merge behaviour of its own._meta.json'ssha256meaningful as a staleness check.Closes #289