carlos / platform Public

console: release read doors in the route inventories

The release manifest and artifact reads (#1389) join the inventories
their sibling GET .../releases and .../authorize are in: linkedRefuse in
linkedPolicies, a claimRead reason and a read probe in the claim fixtures,
the claim route census, and {file} in linkWalkFill.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
claude agent, operated by paul@keymail.dev pushed by paul@keymail.dev 7462f2507e07f2295d3d44db061576e71ed98943 parent 560e8cb
5 files changed, +13 −0
  • internal/console/claim_invariant_fixtures_test.go +4 −0
  • internal/console/claim_invariant_probes_read_test.go +4 −0
  • internal/console/linkedpolicy.go +2 −0
  • internal/console/links_auth_test.go +1 −0
  • internal/console/testdata/claim-routes.txt +2 −0

Intent

Human

<task-notification> <task-id>a8801e42360638fb9</task-id> <tool-use-id>toolu_01QYsnA2ocggQ6a7wVZ7xTHf</tool-use-id> <output-file>/home/paulca/.cache/tmp/claude-1001/-home-paulca-amadan-net-carlos-platform/a88005ac-72e4-481c-884f-581940b8c2c5/tasks/a8801e42360638fb9.output</output-file> <status>completed</status> <summary>Agent "Final-review fix wave + census" finished</summary> <note>A task-notification fires each time this agent stops with no live background children of its own. The user can send it another message and resume it, so the same task-id may notify more than once.</note> <result>**Status:** done. Pulled file names may now hold only ASCII letters, digits, '.', '_' and '-'. The trailing-dot, device-name, manifest, lock and .partial rules are unchanged, and the new test cases (COM¹, lpt³.txt, café, "a b") are refused. **Commit:** 560e8cbb "cli: pulled file names are plain ASCII" **Tests:** all pass: the targeted root tests, `TestPlan14RootReadCensus`, `go vet`, `make code-health`, and the darwin and windows builds. **Census:** it failed only on the root envelope `.`. I reran census-propose with the same NAME and CLAIMS. Only the overlay's coverage hash changed; the units, card and seal are the same, and it still waits for the reviewer. The note is added to `.superpowers/sdd/2026-11-25-release-copy-across-consoles/final-fix-report.md`. No concerns.</result> <usage><subagent_tokens>84476</subagent_tokens><tool_uses>5</tool_uses><duration_ms>135548</duration_ms></usage> </task-notification>

diff --git a/internal/console/claim_invariant_fixtures_test.go b/internal/console/claim_invariant_fixtures_test.go
index 4f4796fc0..3d84d36a5 100644
--- a/internal/console/claim_invariant_fixtures_test.go
+++ b/internal/console/claim_invariant_fixtures_test.go
@@ -906,6 +906,10 @@ var claimFixtures = map[string]claimFixture{
"route GET /api/cli/apps/{account}/{app}/releases": claimRead("lists releases"),
"route GET /api/cli/apps/{account}/{app}/releases/{version}/authorize": claimRead(
"reads one build's manifest digests"),
+ "route GET /api/cli/apps/{account}/{app}/releases/{version}/manifest": claimRead(
+ "reads one release's stored manifest bytes"),
+ "route GET /api/cli/apps/{account}/{app}/releases/{version}/artifacts/{file}": claimRead(
+ "streams one artifact the release's manifest names"),
"route GET /api/cli/apps/{account}/{app}/retention": claimRead("reads the retention policy"),
"route GET /api/cli/apps/{account}/{app}/routes": claimRead("lists registry routes"),
"route GET /api/cli/apps/{account}/{app}/schedules": claimRead("lists schedules and their box status"),
diff --git a/internal/console/claim_invariant_probes_read_test.go b/internal/console/claim_invariant_probes_read_test.go
index 882213357..d155f594e 100644
--- a/internal/console/claim_invariant_probes_read_test.go
+++ b/internal/console/claim_invariant_probes_read_test.go
@@ -325,6 +325,10 @@ var claimReadProbes = map[string]claimProbe{
"route GET /api/cli/apps/{account}/{app}/releases": claimAPIRead(nil, "/api/cli/apps/bab/kass/releases", `"version":"v1"`),
"route GET /api/cli/apps/{account}/{app}/releases/{version}/authorize": claimAPIRead(nil,
"/api/cli/apps/bab/kass/releases/v1/authorize", `"version":"v1"`, `"manifest_digest":"`),
+ "route GET /api/cli/apps/{account}/{app}/releases/{version}/manifest": claimAPIRead(nil,
+ "/api/cli/apps/bab/kass/releases/v1/manifest", `"app": "kass"`, `"version": "v1"`, `"file": "kass"`),
+ "route GET /api/cli/apps/{account}/{app}/releases/{version}/artifacts/{file}": claimAPIRead(nil,
+ "/api/cli/apps/bab/kass/releases/v1/artifacts/kass", "binary v1"),
"route GET /api/cli/apps/{account}/{app}/retention": claimAPIRead(nil, "/api/cli/apps/bab/titogo/retention", `"keep"`),
"route GET /api/cli/apps/{account}/{app}/routes": claimAPIRead(nil, "/api/cli/apps/bab/kass/routes", `"kass.carlosapp.dev"`),
"route GET /api/cli/apps/{account}/{app}/schedules": claimAPIRead(claimWorldSchedule, "/api/cli/apps/bab/titogo/schedules", `"sync"`),
diff --git a/internal/console/linkedpolicy.go b/internal/console/linkedpolicy.go
index ea4b78fed..55c51f620 100644
--- a/internal/console/linkedpolicy.go
+++ b/internal/console/linkedpolicy.go
@@ -166,6 +166,8 @@ var linkedPolicies = map[string]linkedPolicy{
"GET /api/cli/apps/{account}/{app}/tags": linkedRefuse,
"GET /api/cli/apps/{account}/{app}/tags/{version}": linkedRefuse,
"GET /api/cli/apps/{account}/{app}/releases": linkedRefuse,
+ "GET /api/cli/apps/{account}/{app}/releases/{version}/manifest": linkedRefuse,
+ "GET /api/cli/apps/{account}/{app}/releases/{version}/artifacts/{file}": linkedRefuse,
"GET /api/cli/apps/{account}/{app}/pipeline": linkedRefuse,
"PUT /api/cli/apps/{account}/{app}/pipeline": linkedRefuse,
"GET /api/cli/apps/{account}/{app}/pending": linkedRefuse,
diff --git a/internal/console/links_auth_test.go b/internal/console/links_auth_test.go
index aa602b3e8..8a40b62ae 100644
--- a/internal/console/links_auth_test.go
+++ b/internal/console/links_auth_test.go
@@ -489,6 +489,7 @@ var linkWalkFill = map[string]string{
"customer": "bcd",
"decision": "approve",
"domain": "example.com",
+ "file": "linux-arm64",
"file...": "app.css",
"hash": "deadbeef",
"jobID": "deadbeefdeadbeef",
diff --git a/internal/console/testdata/claim-routes.txt b/internal/console/testdata/claim-routes.txt
index 27fd5a506..27e1bfa9d 100644
--- a/internal/console/testdata/claim-routes.txt
+++ b/internal/console/testdata/claim-routes.txt
@@ -122,6 +122,8 @@ route GET /api/cli/apps/{account}/{app}/regions
route GET /api/cli/apps/{account}/{app}/relay
route GET /api/cli/apps/{account}/{app}/releases
route GET /api/cli/apps/{account}/{app}/releases/{version}/authorize
+route GET /api/cli/apps/{account}/{app}/releases/{version}/manifest
+route GET /api/cli/apps/{account}/{app}/releases/{version}/artifacts/{file}
route GET /api/cli/apps/{account}/{app}/retention
route GET /api/cli/apps/{account}/{app}/routes
route GET /api/cli/apps/{account}/{app}/schedules