Repository navigation
Description
📚 Package Specification Audit Report
Date: 2026-11-16
Total Packages: 154 production packages under pkg/ (test-only pkg/workflowcontract is outside the production inventory)
Packages with Specs: 154 (50 with their own README.md; 104 covered by the parent specs pkg/linters/README.md and pkg/linters/internal/README.md)
Coverage: 100%
🚨 Missing Specifications
None. Every production package is covered by its own README or by a parent specification table that names it.
⚠️ Stale Specifications
Date-based staleness could not be measured. The repository history is a single commit (c304ed3, 2026-11-15), so every README and source tree shares the same date. Staleness was assessed by comparing exported symbols and imports against source instead (findings 1 to 4 below).
🔄 Findings
1. pkg/workflow: undocumented experimental-feature API
pkg/workflow/experimental_features.go exports ExperimentalFeature, ExperimentalCracktroSlide, ExperimentalFeatures(), and LookupExperimentalFeature(). They load data/experimental_features.json, which the file describes as the single source of truth. None of these symbols appear in pkg/workflow/README.md.
Recommendation: Add the four symbols to the Public API tables and state that the JSON file is the source of truth.
2. pkg/workflow: incomplete Dependencies section
The top-level package imports pkg/connectors, pkg/scanfindings, pkg/validationerror, and pkg/workqueue. The Internal list in the ## Dependencies section (around line 718) omits all four.
Recommendation: Add the four packages to the Internal dependency list.
3. Exported symbols missing from public tables
pkg/constants:CheckMembershipStepIDandDefaultCopilotVersionappear only in a usage snippet (pkg/constants/README.md, lines 273-274).pkg/workqueue: the exportedStatstype (types.go:407) appears only in an example.
Recommendation: Add rows for these symbols to the public API tables.
4. Placeholder descriptions with no behavior text
43 table rows read Exported function or method declared in <file>. There are 41 in pkg/workflow/README.md, one at pkg/cli/README.md:820 ((*GuidedError).Unwrap), and one at pkg/parser/README.md:408 ((*FormattedParserError).Unwrap).
Recommendation: Replace each placeholder with a one-line behavior description taken from the source doc comment.
🔗 Cross-Package Checks
- Import paths: all
pkg/references resolve. Other hits were external modules or GitHub URLs. - Naming and terminology: no conflicts found. Stream guidance is consistent: diagnostics go to stderr and structured output to stdout.
- Dependencies: see finding 2.
📊 Quality Ratings (affected specs only)
| Package | Rating | Main reason |
|---|---|---|
pkg/workflow |
Findings 1, 2, and 4 (4 undocumented exported symbols, incomplete dependency list, 41 placeholder rows) | |
pkg/constants |
✅ Good | Finding 3 (2 symbols only in examples) |
pkg/workqueue |
✅ Good | Finding 3 (1 type only in examples) |
pkg/cli |
✅ Good | Finding 4 (1 placeholder row) |
pkg/parser |
✅ Good | Finding 4 (1 placeholder row) |
Ratings are heuristic. Items flagged by the symbol scan were manually verified, and false positives were discarded (for example, Init, View, and Write are methods on unexported types).
Action Items
- Document the experimental-feature API in
pkg/workflow/README.md(finding 1) - Complete the
pkg/workflowDependencies section (finding 2) - Add
CheckMembershipStepID,DefaultCopilotVersion, andworkqueue.Statsto their public tables (finding 3) - Replace the 43 placeholder rows with behavior descriptions (finding 4)
- When opening a fix PR for this issue, include
Closes #<this issue number>(orFixes/Resolves) in the PR description.
📚 Next review scheduled for tomorrow. Close this issue once all items are resolved.
📚 Specification review by Package Specification Librarian · copilot · routed: haiku55 xhigh · ~5 AIC · ⌖ ~2 AIC · ⊞ 6.5K · ◷
- expires on Nov 19, 2026, 5:46 AM UTC-08:00
Activity