Regenerate docs/api and llms.txt for the undocumented core modules #440
Labels
No labels
agent-ready
bug
contract
documentation
duplicate
enhancement
good first issue
help wanted
invalid
needs-human
needs-input
question
wontfix
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
iterative-works/iw-cli#440
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
docs/api/andllms.txtdescribe a codebase that no longer exists.Evidence
The last commit to touch the published copies is
d52fce4(2026-06-12). Since then roughly 22 modules were added undercore/model|adapters|outputwith no page and no index line — among them:WorktreeKey,EffortSlug,ForgeConfig,ForgejoUrl,ForgejoClient,Herdr,TerminalWorkspaceBackend,WorkflowGate,CiGate,CiLog,DashboardJarand a further ~24 modules and 9 command scripts changed.
Why it went unnoticed
.claude/skills/build-iw-cli-skills/SKILL.md:66states the staleness rule: a changed file undercore/model/stales its module page. IW-423 Phase 2 followed that rule and refresheddocs/api/ServerTypes.md,docs/api/Constants.mdandllms.txt— the two pages it staled — which touched none of the missing 22.Lesson: a staleness rule keyed on "the page for a changed module" cannot detect a module that never had a page, so the index silently stops describing the codebase.
Fix
docs/api/andllms.txtfor the undocumented core modules.build-iw-cli-skillsa check for modules that have no page at all, not only pages that went stale.Index lines were deliberately not added for the missing modules during IW-423, because a link to a
docs/<Module>.mdthat does not exist is worse than no line.Recorded during IW-423; see
project-management/issues/IW-423/LESSONS.mdentry 17.Found during IW-601 phase 4 (§8): an existing page is also stale, not only missing ones.
docs/api/PhaseMerge.mdstill listsCICheckStatus,CIVerdict,evaluateChecksandbuildRecoveryPrompt, none of which exist incore/model/PhaseMerge.scalaany more.More stale output found during IW-652. One
build-iw-cli-skillsrun regenerates both:docs/api/with thebuild-iw-cli-skillsflow: it still documents the oldServerStatus(running,pid) andServerLifecycleService.createStatus, which IW-652 Phase 1 removed.build-iw-cli-skills) neediw serviceand theWorktreeServicesAPI.Found during IW-682 (port allocation for worktrees). Follow-up, verbatim:
iw port-slotand theWorktreePortSlotsAPI.Found during IW-513 (phase 3), for the regeneration:
llms.txtlistsGitHubClienttwice under Adapters.From IW-548 follow-ups:
docs/api/ReviewStateCliParser.mdshows a staleresolveIssueIdbody —docs/api/ReviewStateCliParser.md(~lines 319-327) shows aresolveIssueIdbody that no longer matchesReviewState.scala, which now usesWorktreeKeyResolver.fromFlagOrBranch; refresh the example.Intake: needs-human
Workflow: waterfall
Reason: G7 a standing [fix] finding — the analysis gives CommandDocsDriftTest as the precedent for a pin that requires every module to have a page, but that test asserts the opposite direction (D8.1 = A); also open: G7 (1 [human] finding: should the module-coverage check be a blocking CI pin, a skill-only check, or a warning)
Analysis: project-management/issues/IW-440/analysis.md on branch IW-440