rehearsal-5 task 4/13: The gateway serves the one-liner — install script + seeded agent cache #845
Labels
No labels
agent-blocked
agent-working
autopilot
bug
deferred
deploy-pending
enhancement
landing-pr
model-haiku
model-opus
model-sonnet
needs-design
needs-info
needs-triage
no-triage
out-of-scope
priority
ready-for-agent
ready-for-human
ready-for-session
rehearsal-183
snapshot-pending
standing-drive
wayfinder:grilling
wayfinder:map
wayfinder:prototype
wayfinder:research
wayfinder:task
wontfix
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Blocks
Depends on
Reference
Matou/idss#845
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
Part of the #183 phase-5 rehearsal arc (device-add + Nextcloud-on-device on a standing rented community).
docs/superpowers/specs/2026-08-25-183-phase-5-device-nextcloud-rehearsal-design.mddocs/superpowers/plans/2026-08-25-183-phase-5-device-nextcloud-rehearsal.md— this ticket is Task 4, carried verbatim below. The plan's Global Constraints apply to every step.Task 4: The gateway serves the one-liner — install script + seeded agent cache
Files:
internal/controlapi/install_doorway.go(+ its test) — bareGET /get(noarch) serves the POSIX install scriptinternal/controlapi/installscript.go+installscript_test.gointernal/clan/*gateway facts (exportIDSS_AGENT_CACHE=/var/lib/idss/agent-cachebeside the existing gateway env exports — find them whereIDSS_CLAIM_SECRETis exported) + the founding/provisioning supply step seeds the payload's pinned agent into that dir (followSupply.Seed's existing pattern)STATUS.mdInterfaces:
Consumes:
install.NewCacheSource(exists),AgentSource(exists), the payload'sagent-x86_64artifact.Produces:
curl -sSf https://<apex>/get | sh -s -- <code>works verbatim on a stock Ubuntu box: the script detects arch (uname -m→x86_64), fetches/get?arch=x86_64honoringX-IDSS-Release, installs to/usr/local/bin/idss-agent, thenIDSS_COMMUNITY_ORIGIN=<apex> idss-agent install "$1". A gateway with nothing seeded still 503s loud on the arch fetch (ADR 0100).Step 1: Write the failing doorway test — no-arch GET returns
text/x-shellscriptcontainingidss-agent install "$1"and the community origin; arch GET unchanged (regression assertions from the existing test kept).Step 2: Run → FAIL; implement (script rendered from the request's Host); → PASS.
Step 3: Write the failing seed test (clan side): the gateway env file carries
IDSS_AGENT_CACHE; the supply step's plan includes the agent artifact copy.Step 4: Run → FAIL; implement; → PASS;
go test ./...→ PASS.Step 5: Commit —
git commit -m "rehearsal-5: the community gateway serves the install one-liner — /get script + seeded agent cache (ADR 0208/0051) (task 4 of #<ticket>)".Global Constraints (from the plan)
failure is a named error, never a masked success. No sandbox-green claim (#377).
at P4-S3x; the takeover runs at provisioning's first deploy, never at join.
commit, then two single-node
clan.Deploycalls, device first (ruling: aroute to a dead service is the honest failure, a service with no route is
invisible).
test-results/standing-rented/; staleness gate =oc_bootstrap_stalenesspattern overagent/ go.mod go.sum internal/; thereaper stays honest — renewal, not exemption (
idss-rental-holdis forhumans, the executor never sets it).
#721/#722 (workstation) keep running; the prefix extraction (Task 10) is
behavior-preserving and #720 must stay green across it. Never touch the
executors' env files from a ticket.
POST/DELETE /issues/<n>/labels, never in anissue PATCH. "closes #NNN" in commit messages auto-closes — say "task N of
#NNN" instead.
git ls-tree origin/main docs/adr/at mint (IDIP + observability swarm lanes are minting concurrently).
git pull --rebaseimmediately before a STATUS commit (shared checkout).gofmt,go vet ./...,go test ./...green; TS:pnpm -r typecheck+unit suites green, pre-land.
journey.device.spec.ts+ device-add fixturesADR numbers ruled at mint — read 0207 → 0208, 0208 → 0209, 0209 → 0210
Task 1 (#842) has landed the phase-5 design tier. This ticket's body carries the
plan's assumed ADR numbers; they shifted by one at mint, exactly as the
Global Constraints line in your body told you to re-check.
/getWhy:
docs/adr/0207-design-keri-stack-version-pins.md(#771, the concurrentIDIP lane) had taken 0207 on
origin/mainbefore this arc minted.Use the ruled numbers in your commit messages and code comments. The plan
(
docs/superpowers/plans/2026-08-25-183-phase-5-device-nextcloud-rehearsal.md)is updated and records the mapping; commit
70a3bce6.Ruled by agent under ADR 0174 — veto anytime.
swarm-claim host=elitebook-distributed-server-03 run=10099
(automated multi-host claim — lowest live claim id works this ticket)
Ruled by agent under ADR 0174 — veto anytime (three two-way doors)
Building task 4/13, three under-specified choices were ruled in-flight. Each is
revertible by a later commit and proven by an existing seam test, none touches a
one-way door (no credentials, no security widening, no member trust, no data
loss, no spend):
Bare
/getscript is opt-in, not the shared default. The/getdoorwayhandler is REUSED by the get.idss.nz bootstrap (
bootstrap/cmd/bootstrap),whose own founding one-liner lives at
/and stops at install (no enroll,#582). Making bare
/getserve the community device-add script unconditionallybroke
bootstrap'sTestServeGet_FailsLoudand would have served a nonsenseIDSS_COMMUNITY_ORIGIN=get.idss.nz idss-agent installthere. So the communitygateway wires a new
WithInstallOneLiner(bare/get→ script) whileWithInstallDoorwaystays arch-only (bare/get→ 400). Proof:install_doorway_test.go(both faces) +bootstrapstays green.The payload's
agentartifact is the cache source. The interface named"the payload's
agent-x86_64artifact"; the payload actually stages it asagent(assemble-payload.sh).fleetwire.Supply.Seedcopies that into<cache>/x86_64/idss-agent. Proof:TestSupplySeed_SeedsAgentCache.RELEASE marker from a build-stampable
fleetwire.Releasevar (defaultsunknown, mirroring the agent's ownversiondiscipline — nothing stamps ityet across the repo). The cache needs a non-empty
RELEASEforinstall.CacheSource/X-IDSS-Release; the supply step writes it LAST so acrash mid-copy never points a release at an absent binary (ADR 0100).
Residue named, not swept: nothing stamps
fleetwire.Releaseat build yet (sameas
agent/cmd/agentversion), so a real deploy servesX-IDSS-Release: unknownuntil a build stamps it — a follow-up, not a blocker for this slice.
close-report for #845 — status
success✅ close-report gates passed — every claim verified against main; issue closed.
envelope