Skip to content

[spec-librarian] Specification Audit — 2026-11-18 — 6 issues found #79038

Not planned

Description

@github-actions

📚 Package Specification Audit Report

Date: 2026-11-18
Total Packages: 156 production packages under pkg/
Packages with Specs: 156 (counting packages documented by a parent spec)
Coverage: 100%


Coverage Summary

Scope Count Documented by
Packages with their own README 51 <pkg>/README.md
Linter analyzers 98 Subpackages table in pkg/linters/README.md (every directory matched)
Internal linter helpers 7 pkg/linters/internal/README.md
Missing README 0 n/a

⚠️ Accuracy Issue (1)

typeutil: ParseIntValue spec omits rejection cases

pkg/typeutil/README.md lists float64 as a supported input and says (0, false) is returned only for "unrecognized or non-numeric" types. pkg/typeutil/convert.go (lines 49-74) also returns (0, false) for:

  • float64 NaN, +Inf, -Inf, and values outside the int range
  • uint64 values greater than the maximum int

convert_test.go covers these cases, so the spec is out of date, not the code.

Quality: Completeness 90%, Accuracy 70%, Consistency 95%, Freshness 40% (62 days behind), overall ⚠️ 75%


⚠️ Freshness (5 packages more than 30 days behind source)

Dates come from full git history: latest commit touching the README versus latest commit touching non-test .go files.

Package Spec updated Source updated Days behind Exported API drift Assessment
agentdrain 2026-09-11 2026-11-08 57 None Freshness flag only
importinpututil 2026-07-10 2026-10-25 107 None Internal normalization fix; spec text matches
intent 2026-08-18 2026-11-13 87 ResolveRisk moved from governance.go to resolver.go; signature unchanged Spec section matches
stringutil 2026-08-22 2026-11-03 72 None Freshness flag only (whitespace.go)
typeutil 2026-09-15 2026-11-17 62 Behavior change in ParseIntValue See accuracy issue

✅ Checks That Passed

  • No undocumented exported symbols in the 51 packages with their own README
  • No dangling .go file references and no broken github.com/github/gh-aw/pkg/... import paths in top-level package READMEs
  • Dependency claims match actual imports; every README has an H1
  • Identifier-level phantom candidates all exist in source
  • No cross-package terminology conflicts ("structured output" in pkg/cli and pkg/logger refers to different things)

Action Items

  • Document NaN, infinity, out-of-range float, and uint64 overflow rejection in the ParseIntValue section of pkg/typeutil/README.md
  • Re-verify and refresh the agentdrain, importinpututil, intent, stringutil, and typeutil specs against current source
  • When opening a fix PR for this issue, include Closes #<this issue number> 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 · ~6 AIC · ⌖ ~2 AIC · ⊞ 6.5K · ◷

  • expires on Nov 21, 2026, 5:27 AM UTC-08:00

Activity

  1. github-actions commented on Nov 21, 2026

    @github-actions
    ContributorAuthor

    This issue was automatically closed because it expired on 2026-11-21T13:27:14.489Z.

    Closed by Workflow

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions