docs: every package doc opens on the concept it owns #44

Merged
mikluko merged 2 commits from concept-docs into main 2026-12-01 11:36:44 +00:00
Owner

The doc ticket of the layout by concept (map kit-a1f, ticket kit-a1f.10). Every package's doc.go now opens with one sentence naming the GLOSSARY.md term the package owns. The sentences after it state what an importer may rely on.

Drafted from the package-boundaries-5 worktree, then checked claim by claim against the code. Dropped because nothing here verifies them:

  • that Karpenter drifts a node whose offering leaves the catalogue;
  • that nodeclass holds only what controller-gen generates for (Bootstrap has a method);
  • that every provider exposes the same metric names (WithNoun changes the noun).

reservedaddr now says instance where it said machine.

One exception for review: cloudprovider's first sentence names Karpenter's CloudProvider, not a glossary term, because the package spans launch, drift, hydrate and repair.

🤖 Generated with Claude Code

The doc ticket of the layout by concept (map kit-a1f, ticket kit-a1f.10). Every package's `doc.go` now opens with one sentence naming the `GLOSSARY.md` term the package owns. The sentences after it state what an importer may rely on. Drafted from the `package-boundaries-5` worktree, then checked claim by claim against the code. Dropped because nothing here verifies them: - that Karpenter drifts a node whose offering leaves the catalogue; - that `nodeclass` holds only what controller-gen generates for (`Bootstrap` has a method); - that every provider exposes the same metric names (`WithNoun` changes the noun). `reservedaddr` now says *instance* where it said *machine*. One exception for review: `cloudprovider`'s first sentence names Karpenter's CloudProvider, not a glossary term, because the package spans launch, drift, hydrate and repair. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
docs: every package doc opens on the concept it owns
Some checks failed
CI / verify (pull_request) Has been skipped
CI / changelog (pull_request) Successful in 1s
Vulnerabilities / govulncheck-1 (pull_request) Successful in 11s
Vulnerabilities / govulncheck (pull_request) Successful in 0s
CI / ci (pull_request) Has been cancelled
CI / check (pull_request) Has been cancelled
4b76d28975
Each first sentence names a GLOSSARY.md term and ends there; the rest
states what an importer may rely on. Drafted from package-boundaries-5,
then checked against the code: claims nothing here verifies are dropped
(drift on a vanished offering, "only what controller-gen consumes", the
same metric names on every provider), and reservedaddr says instance.

Closes kit-a1f.10.

Assisted-By: Claude <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Author
Owner

Green from provider-netactuate at 4b76d28. The provider-facing docs read right from our side. bootstrap: multipart user data, join.env, the generated k0s join. catalogue: we supply the Source, and the last good read is kept. cloudprovider: Refused, NoneLaunched, NoneAvailableEvent. ownership: hashed tags for a cloud whose tags can't hold the pairs, which is NetActuate's case. orphan: the sweeper. Each package now opens on its glossary concept.

Green from provider-netactuate at 4b76d28. The provider-facing docs read right from our side. bootstrap: multipart user data, join.env, the generated k0s join. catalogue: we supply the Source, and the last good read is kept. cloudprovider: Refused, NoneLaunched, NoneAvailableEvent. ownership: hashed tags for a cloud whose tags can't hold the pairs, which is NetActuate's case. orphan: the sweeper. Each package now opens on its glossary concept.
Author
Owner

Green from provider-hetzner at 4b76d28. The docs read right from a provider's side, and they match what hetzner relies on: the noun in the metrics, the release controller reading only NodeClaims, the ownership carrier left to the provider, and resolved.Current gated on the condition's generation.

One claim to tighten, non-blocking: catalogue/offering says the provider "marks an offering its cloud refuses, and folds that mark into each offering's Available before ranking, since ranking does not consult it". A provider on kit doesn't fold it itself. It hands the same *offering.Unavailable to catalogue.Config.Unavailable, which folds it into every listed offering (catalogue.go:55, :271), and to cloudprovider.Launcher.Unavailable, which skips a marked candidate at launch (launch.go:94). Hetzner does exactly that and folds nothing by hand. Something like "…and passes the Unavailable to the Catalogue and the Launcher, which fold it in; Rank itself does not consult it" would say what a provider actually does.

Green from provider-hetzner at 4b76d28. The docs read right from a provider's side, and they match what hetzner relies on: the noun in the metrics, the release controller reading only NodeClaims, the ownership carrier left to the provider, and `resolved.Current` gated on the condition's generation. One claim to tighten, non-blocking: `catalogue/offering` says the provider "marks an offering its cloud refuses, and folds that mark into each offering's Available before ranking, since ranking does not consult it". A provider on kit doesn't fold it itself. It hands the same `*offering.Unavailable` to `catalogue.Config.Unavailable`, which folds it into every listed offering (catalogue.go:55, :271), and to `cloudprovider.Launcher.Unavailable`, which skips a marked candidate at launch (launch.go:94). Hetzner does exactly that and folds nothing by hand. Something like "…and passes the Unavailable to the Catalogue and the Launcher, which fold it in; Rank itself does not consult it" would say what a provider actually does.
docs(offering): the catalogue and Launcher apply the Unavailable marks
All checks were successful
CI / verify (pull_request) Has been skipped
CI / changelog (pull_request) Successful in 1s
Vulnerabilities / govulncheck-1 (pull_request) Successful in 11s
Vulnerabilities / govulncheck (pull_request) Successful in 0s
CI / check (pull_request) Successful in 1m3s
CI / ci (pull_request) Successful in 0s
CI / verify (push) Has been skipped
CI / changelog (push) Has been skipped
CI / check (push) Successful in 1s
CI / ci (push) Successful in 0s
Vulnerabilities / govulncheck-1 (push) Successful in 10s
Vulnerabilities / govulncheck (push) Successful in 0s
434470ef48
Review round (Hetzner).

Assisted-By: Claude <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Author
Owner

Green from the exoscale session at 4b76d28. Every symbol, default and behaviour the changed docs name checks against the code at the head: ReleaseController's release triggers, the catalogue's stale serving, the overhead defaults, WithNoun's scope, and the reservedaddr strategy. No glossary Avoid words appear, and old paths survive only in the Deprecated stubs. vet passes. MINOR: ownership/orphan/doc.go:1 says "no NodeClaim claims any longer", where the glossary and reservedaddr say "speaks for"; align it. NIT: catalogue/doc.go:8 runs to 84 columns, unwrapped.

Green from the exoscale session at 4b76d28. Every symbol, default and behaviour the changed docs name checks against the code at the head: ReleaseController's release triggers, the catalogue's stale serving, the overhead defaults, WithNoun's scope, and the reservedaddr strategy. No glossary Avoid words appear, and old paths survive only in the Deprecated stubs. vet passes. MINOR: ownership/orphan/doc.go:1 says "no NodeClaim claims any longer", where the glossary and reservedaddr say "speaks for"; align it. NIT: catalogue/doc.go:8 runs to 84 columns, unwrapped.
mikluko deleted branch concept-docs 2026-12-01 11:36:44 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
karpenter/kit!44
No description provided.