docs: every package doc opens on the concept it owns #44
Loading…
Reference in a new issue
No description provided.
Delete branch "concept-docs"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The doc ticket of the layout by concept (map kit-a1f, ticket kit-a1f.10). Every package's
doc.gonow opens with one sentence naming theGLOSSARY.mdterm the package owns. The sentences after it state what an importer may rely on.Drafted from the
package-boundaries-5worktree, then checked claim by claim against the code. Dropped because nothing here verifies them:nodeclassholds only what controller-gen generates for (Bootstraphas a method);WithNounchanges the noun).reservedaddrnow 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
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-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, andresolved.Currentgated on the condition's generation.One claim to tighten, non-blocking:
catalogue/offeringsays 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.Unavailabletocatalogue.Config.Unavailable, which folds it into every listed offering (catalogue.go:55, :271), and tocloudprovider.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 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.