Skip to content

docs: backfill missing package and exported-symbol documentation#187

Open
iamlasse wants to merge 2 commits into
marcus:mainfrom
iamlasse:docs/backfill-exported-symbol-docs
Open

docs: backfill missing package and exported-symbol documentation#187
iamlasse wants to merge 2 commits into
marcus:mainfrom
iamlasse:docs/backfill-exported-symbol-docs

Conversation

@iamlasse

Copy link
Copy Markdown

Summary

Documentation-only change (no behavior changes). Backfills missing Go-idiomatic
godoc so every exported symbol and package renders correctly under `go doc`.

What was documented

  • Exported constant blocks that previously had no doc comment:
    • `integrations` — `HintType` values
    • `orchestrator` — `EventType` and `TaskStatus` values
    • `security` — `AuditEventType` values and `OperationType` type + values
    • `setup` — `Preset` values
    • `tasks` — `CostTier` and `RiskLevel` values
  • Malformed doc comments corrected to godoc form:
    • `logging.Error` (was `// Error(msg string) ...`)
    • `security.OperationType` (was `// Operation types for safety checks.`)
  • Package doc added for the `cmd/provider-calibration` command (main).
  • Agent/Provider file headers (`claude.go`/`codex.go`/`copilot.go` in both
    `internal/agents` and `internal/providers`) reworded so they are no longer
    misinterpreted as package docs (the canonical `Package ...` doc already lives
    in `agent.go`/`provider.go`).
  • README — added a Package layout table mapping each package to its
    responsibility and pointing at `go doc`.

Validation

  • `gofmt -l` — clean on all touched files
  • `go build ./...` — passes
  • `go vet ./...` — passes
  • `go test ./...` — all packages pass
  • `golangci-lint run --enable=revive` — no remaining `exported`/`package-comments` violations
  • `go doc` spot-checks render the new comments correctly

Notes

A pre-existing stale branch `docs/backfill-missing-docs` on the fork holds a
different, unmerged prior attempt (CONTRIBUTING.md, ARCHITECTURE.md, CLI
reference). This PR was pushed under a distinct branch name to avoid
overwriting that work.

Nightshift-Task: docs-backfill
Nightshift-Ref: https://github.com/marcus/nightshift

iamlasse added 2 commits June 28, 2026 02:10
Add internal/commits with pure Normalize/validate functions enforcing the project's Conventional Commits rules (known type set, lowercase type, lowercase subject, 72-char subject limit, whitespace trimming, and 72-column body wrapping). Wire it into the CLI as 'nightshift commit normalize' (positional, --file, and stdin sources; --check to validate only), ship a commit-msg git hook under scripts/, and document the format and installation in docs/commit-messages.md.

Nightshift-Task: commit-normalize
Nightshift-Ref: https://github.com/marcus/nightshift
Add godoc comments for previously undocumented exported constant
blocks (integrations HintType, orchestrator EventType/TaskStatus,
security AuditEventType/OperationType, setup Preset, tasks
CostTier/RiskLevel), fix malformed doc comments (logging Error,
security OperationType), add a package doc for the
provider-calibration command, normalize agent/provider file headers
so they are not treated as package docs, and document the package
layout in the README.

Nightshift-Task: docs-backfill
Nightshift-Ref: https://github.com/marcus/nightshift
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