CAT-G1, G2: the forge's Go bundle serves both package seats' verbs into its package registry, for both packages
Claude-Session: https://claude.ai/code/session_01JG73KJNrH5EgFXMKKYSrig
This commit is contained in:
+12
-2
@@ -91,7 +91,7 @@ is read once and searched in memory; a binary file is passed over, a file over 4
|
||||
`skipped`, and at most `max` matches (default 100) are answered, with `truncated` when more were found. A
|
||||
search that reaches the call's deadline stops there and answers what it found, with `stopped_at_deadline`.
|
||||
|
||||
It reaches the forge through the same HTTP client as the npm-registry bundle (`internal/forgehttp`), as the
|
||||
It reaches the forge through the same HTTP client as the package-registry bundle (`internal/forgehttp`), as the
|
||||
tools' own account (novox/hq ADR 0365 §2, issue 469): the token the TypeScript bundle mints for `mesh-tools` and
|
||||
keeps (`MESH_GITEA_TOKEN_FILE`), sent only when its scopes line names that account, never the admin login. One tool
|
||||
call takes at most 50 seconds.
|
||||
@@ -181,10 +181,20 @@ No tool creates in the organisation: `gitea_create_repo` creates under the tools
|
||||
keeps `can_create_org_repo` false and its token has no `write:organization` (ADR 0428 §8).
|
||||
`go test ./cmd/repositories` runs it against a fake forge.
|
||||
|
||||
## The two package seats (novox/hq design 51, ADR 0605, ADR 0611)
|
||||
|
||||
The forge module holds `npm-package-registry` and `go-package-registry`, and the Go bundle `cmd/package-registry`
|
||||
serves both seats' verbs as tools `<seat>.<verb>`: `publish` and `publish-part` (a package's one file in chunks into
|
||||
the module's own object store `incoming`, its transfers in the state `transfers`; mesh-sdk's seat-neutral receiving
|
||||
side), `versions` and `remove` (a tagged version, by the builder). Before anything is uploaded the holder asks the
|
||||
builder whether it numbered the version with that digest; a package goes up as npm's publish sends it, a Go module's
|
||||
zip to the Go upload. Every outcome is said on the seat's events (`published`, `refused`, `removed`), a Go package's
|
||||
with its module path. Who may call each verb is the trusted config value `callers` (empty: design 51's list).
|
||||
|
||||
## The package registry's retention (novox/hq ADR 0251 §4, to-be 51)
|
||||
|
||||
Every publish adds a version to the registry, and until this nothing removed one. The Go bundle
|
||||
`cmd/npm-registry` says which versions each package holds, what keeps each one, and — asked with a why —
|
||||
`cmd/package-registry` says which versions each package holds, what keeps each one, and — asked with a why —
|
||||
deletes the versions nothing keeps.
|
||||
|
||||
| tool | | what |
|
||||
|
||||
Reference in New Issue
Block a user