oficina / base Public

readme: say how Contra's binary reaches the account, with mail submission on

Fable's review: prepare-apps ships without --mail submit, and a Base-installed
Contra refuses to start without submission, so following the README would
have produced a Contra that fails every install. Contra's make release also
writes an unsuffixed file. The operator now ships Contra first on Base's
account and copies it in under the stamped version, so the script finds it
already shipped.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
claude agent, operated by paul@keymail.dev d02ade3246baf2265cc699021ba286d85ff63f1f parent 7b73a16
1 file changed, +17 −5
  • README.md +17 −5

CI passed — run details

CI log
=== build ===
CGO_ENABLED=0 go build ./...
=== vet ===
go vet ./...
=== fmt-check ===
=== staticcheck ===
go run honnef.co/go/tools/cmd/staticcheck@v0.7.0 ./...
=== govulncheck ===
go run golang.org/x/vuln/cmd/govulncheck@v1.8.0 ./...
No vulnerabilities found.
=== gitleaks ===
11:22AM INF Unknown SCM platform. Use --platform to include links in findings. host=amadan.net
11:22AM INF 1 commits scanned.
11:22AM INF scanned ~2382600 bytes (2.38 MB) in 216ms
11:22AM INF no leaks found
=== budget ===
go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget size
budget size: 22 directories within budget
=== script-test ===
scripts/prepare-apps_test.sh
ok   releases lookup failure stops before ship
ok   app owned elsewhere stops the script
ok   apps listing failure stops before create
ok   ambiguous release dir is refused
ok   explicit version resolves the ambiguity
ok   releases match is exact, not substring
ok   shipped version is only promoted, existing app not created
ok   fresh account creates, ships, promotes to edge, enables
ok   failing promote stops the script
ok   ship is retried while uploads are rate limited
all passed
hack/fonts_test.sh
fonts_test: ok
=== test ===
go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -count=1 ./...

receipt: test step 7.399s against a 60s target (the gate's other steps are not in this figure)
receipt: 16 packages ran, 0 cached, 6 without tests, 0 failed
receipt: slow package 6.536s amadan.net/oficina/base/internal/webtest
receipt: slow package 981ms amadan.net/oficina/base/internal/issuer
receipt: slow package 601ms amadan.net/oficina/base/internal/operations
receipt: slow package 212ms amadan.net/oficina/base/internal/consumer
receipt: slow package 175ms amadan.net/oficina/base/internal/web
receipt: slow test 1.52s amadan.net/oficina/base/internal/webtest TestHomeDoesNotWaitOnAStalledSnapshot
receipt: slow test 1.08s amadan.net/oficina/base/internal/webtest TestAskZoneIsToldOnce
receipt: slow test 710ms amadan.net/oficina/base/internal/issuer TestAuthorizeSignsForInstalledApp
receipt: slow test 520ms amadan.net/oficina/base/internal/operations TestOperationsRefusals
receipt: slow test 250ms amadan.net/oficina/base/internal/issuer TestAuthorizeRefusals
=== native ===
strings: copy review's strings.json is not here (git-ignored); its comparison skipped
strings: 119 in the catalog, 116 used
worktree-lib_test: ok
diff --git a/README.md b/README.md
index a8d70a0..c048da6 100644
--- a/README.md
+++ b/README.md
@@ -164,11 +164,23 @@ doesn't list an app but the name can't be claimed, because someone else owns it.
`carlos auth login` first.
Not every catalogue app is built here. Contra's binary comes from its own
-repository (`carlos/contra`): run `make release` there and copy
-`contra-linux-arm64-<version>` into `releases/` beside Base's builds. Its
-version is Contra's commit, not Base's, so keep one build of each app in
-`releases/` rather than passing a version: a version you pass must match every
-app's file name.
+repository (`carlos/contra`), and it must be shipped with mail submission on,
+which this script doesn't do. So before running the script:
+
+1. Run `make release` in Contra. It writes `releases/contra-linux-arm64` and
+ prints the version it stamped.
+2. Ship it yourself on Base's account (`BASE_PLATFORM_ACCOUNT`; `oficina` in
+ production): `carlos ship --app contra --account <account> --mail submit
+ --version <version> releases/contra-linux-arm64`. Claim the name first with
+ `carlos apps create` if the account doesn't have `contra` yet. An app
+ called `contra` on another account is a different app and doesn't matter.
+3. Copy the binary into Base's `releases/` as `contra-linux-arm64-<version>`,
+ the same version. The script then finds it already shipped, promotes it to
+ `edge` and enables instances.
+
+Contra's version is its own commit, not Base's, so keep one build of each app
+in `releases/` rather than passing a version: a version you pass must match
+every app's file name.
## Writing an app Base can install