Skip to content

Document v0.0.3 hostname home-host contract - #31

Merged
nodeselector merged 3 commits into
mainfrom
nodeselector-lockfile-hostname-contract-docs
Oct 8, 2026
Merged

nodeselector merged 3 commits into
mainfrom
nodeselector-lockfile-hostname-contract-docs

Conversation

@nodeselector

@nodeselector nodeselector commented Oct 8, 2026 •

Copy link
Copy Markdown
Collaborator

Why

#29 said hostname-aware producers record the hostname on every dependency. That is no longer the contract. An omitted hostname now means the dependency belongs to the home host, so producers only write hostname for pins bound to github.com while running on a GHE.com data-residency instance.

What changed

  • README: documents the v0.0.3 hostname contract:
    • An omitted value means the home host: the tenant on GHE.com, or github.com on github.com.
    • Producers only ever write github.com, and never write a *.ghe.com hostname.
    • github.com accepts an omitted value or github.com and rejects anything else.
    • GHE.com data-residency instances accept only v0.0.3. Producers migrate older lockfiles to v0.0.3 with an explicit github.com on every dependency.
  • Schema: the hostname description in schema/lockfile-v0.0.3.json and the generated schema_gen.go now carry the same meaning.
  • Go: the Action docs are now per-field comments, and the File example no longer shows hostname.

There is no behavior change. Hostname syntax validation is unchanged.

nodeselector and others added 3 commits October 8, 2026 11:41
Omitted hostname binds to the home host; producers write only github.com
(for github.com-bound pins on data-residency instances) and never *.ghe.com.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@nodeselector
nodeselector marked this pull request as ready for review October 8, 2026 18:59
@nodeselector
nodeselector requested a review from a team as a code owner October 8, 2026 18:59
Copilot AI balanced review requested due to automatic review settings October 8, 2026 18:59

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

The documentation changes are consistent across the README, schema, generated schema, and Go API.

0 open findings

What changed in this PR

Documents the v0.0.3 home-host semantics without changing validation behavior.

Changes:

  • Clarifies hostname omission, production, and migration rules.
  • Synchronizes schema and Go API documentation.
  • Updates examples to omit home-host hostname values.
File Description
README.md Documents the hostname contract and migration rules.
schema/​lockfile-v0.0.3.json Clarifies hostname schema semantics.
go/​pkg/​lockfile/​schema_gen.go Regenerates the embedded schema.
go/​pkg/​lockfile/​lockfile.go Updates examples and field documentation.
Files not reviewed (1)
  • go/pkg/lockfile/schema_gen.go: Generated file

🧠 Review effort: Balanced


💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@nodeselector
nodeselector merged commit 340e98f into main Oct 8, 2026
11 checks passed
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.

2 participants