Skip to content

docs: backfill package comment and fix OperationType doc convention - #205

Open
iamlasse wants to merge 1 commit into
marcus:mainfrom
iamlasse:docs/backfill-package-and-symbol-docs
Open

docs: backfill package comment and fix OperationType doc convention#205
iamlasse wants to merge 1 commit into
marcus:mainfrom
iamlasse:docs/backfill-package-and-symbol-docs

Conversation

@iamlasse

@iamlasse iamlasse commented Aug 4, 2026

Copy link
Copy Markdown

Summary

Backfills the two genuine documentation gaps found by measuring real coverage across the Go codebase.

The codebase is already ~100% documented — all 299 exported declarations have Go doc comments, and 24 of 25 packages have package-level doc comments (verified via `go doc`). Only two gaps remained, both fixed here:

  1. `cmd/provider-calibration` — the one package without a package doc comment. Added a `Command`-prefixed doc comment describing the tool (compares Codex CLI token usage across `codex_originator` variants to calibrate per-provider budget attribution; run via `make calibrate-providers`).

  2. `internal/security.OperationType` — its doc comment (`// Operation types for safety checks.`) violated the Go "name-first" doc convention (the comment should begin with the symbol name). Corrected to `// OperationType categorizes an operation performed by an agent for safety checks.`

Verification

  • `go build ./...` ✓
  • `go vet ./...` ✓
  • `go build ./cmd/nightshift` ✓
  • `go doc ./cmd/provider-calibration` now renders the package comment
  • `go doc internal/security OperationType` comment now starts with `OperationType`

The website docs (`task-reference.md`, `tasks.md`) were checked and are already in sync with all 59 builtin task types, so no website changes were needed. Scope is intentionally minimal and targets only the genuine gaps.


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


Automated by nightshift

Add a package doc comment to cmd/provider-calibration (the only package
out of 25 lacking one) and correct the internal/security.OperationType
comment to follow the Go 'name-first' doc convention.

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