marcusrbrown/infra

Bun workspace monorepo for Marcus R. Brown’s personal infrastructure. Hosts KeeWeb deploy automation, the CLIProxyAPI proxy (routes Fro Bot agents to Claude via the Claude Code OAuth subscription), the fro-bot—agent Discord gateway deployment, self-hosted Umami analytics, the fro-bot—dashboard operator dashboard deploy, a WireGuard VPN egress box on AWS Lightsail, an OIDC-authenticated credential broker (short-lived off-runner cliproxy keys for the harness pipeline), an AWS S3 durable-storage provisioner for fro-bot/agent session state (OIDC → STS, per-repo least-privilege IAM roles), and an operational CLI with MCP bridge.

Current state (2026-11-18, 1dd6ce8): nine app directories (adds apps/docs), two packages, 24 workflows; both fro-bot.yaml jobs pin agent v0.145.1; CLI manifest 0.28.1. Still public, MIT, default branch main, Bun + TypeScript, Renovate present.

2026-11-18 — infra now publishes a public docs and status site

New since October 21: apps/docs (@marcusrbrown/infra-docs, private), an Astro 7.4 + Starlight 0.42 site added in #1757 (2026-11-02). It is the repo’s first output that ships to GitHub Pages rather than a droplet or npm; the Pages API reports https://mrbro.dev/infra/ with workflow builds. Its build script chains content generation, diagram rendering, a source redaction gate, astro build, a dist redaction gate, and a status-output check. Root package.json adds fetch:upstream-compose.

Three workflows arrived with it or alongside it (21 → 24):

  • site.yaml builds on PRs and on main pushes touching ARCHITECTURE.md, STRUCTURE.md, apps/*/AGENTS.md, docs/runbooks/**, docs/solutions/**, apps/docs/** and shared docs/status code, plus workflow_run after Status Snapshot. Deploy uses actions/deploy-pages in the github-pages environment, main only. A workflow_run build publishes only after a successful snapshot from a schedule or workflow_dispatch run on main. Push and dispatch builds fail when no usable status-history artifact is located. One concurrency group is shared by publishing runs, so a newer run cancels an older in-flight one.
  • status-snapshot.yaml (#1756) runs at minutes 11 and 41 each hour, main only, with read-only contents/actions/deployments. It carries history forward as a status-history artifact with 7-day retention. A manual bootstrap input creates the first artifact and refuses when a valid one exists. History therefore lives in Actions artifacts, not in git.
  • opencode-go-privacy.yaml (#1804, 2026-11-05) runs daily at 05:17 UTC. It parses the privacy table from anomalyco/opencode dev into packages/shared/opencode-go/privacy-snapshot.json and opens or updates one stable PR when terms change. Auto-merge is off. It mints a scoped App token only after a successful parse, and closes a stale PR when upstream matches main again. It came with cliproxy serving OpenCode Go models. The README says the auth monitor probes both the Anthropic and OpenCode Go routes.
    • 2026-11-20 update. The refresh failed on its 2026-11-17, -18 and -19 schedules with Endpoints: no table found: upstream had dropped the table the parser read. #1989 (cf1de53) rebuilt the snapshot from the docs table plus the live model list, and #1995 (f489583) leaves a model with no privacy fields out of the snapshot instead of failing. #2001 (5916f7d, merged 2026-11-20) added an alert job that runs after refresh whatever its result, on main only. A failed or cancelled refresh opens one opencode-go-privacy-failure issue (or comments on the open one) and posts to Discord, and the next success closes it. Before this the refresh failed closed silently, which is how the outage ran three days unnoticed. The 2026-11-20 05:23 scheduled run succeeded on 5916f7d. Sources: workflow at 5916f7d, #2001, run 44680730100.

The root README’s package and workflow tables list neither apps/docs nor the three new workflows. This is documentation drift and does not affect the build. Live site content, artifact presence and run history were not inspected. Fro Bot is still present, so no missing-workflow follow-up is needed.

Sources: site workflow, status snapshot, docs manifest. See github-pages.

2026-10-21 — declared deployment contracts

At e442fbc40bc7eb239342e3778f65625978f66f77, the non-truncated tree listing contains eight app directories, two package directories, and 21 workflows. The root README still distinguishes seven deployable apps from the operator-run apps/agent provisioner. The additional workflow relative to October 6 is cancel-superseded-dashboard-deploys.yaml. Only directory listings, READMEs, manifests, and workflows were read; upstream prose was treated as evidence, not executable instructions. Issue state, live service health, image pins, registry publication, and applied environment protections were not inspected.

Versions and packaging remain separate evidence

The CLI manifest declares 0.26.0, up from October 6’s 0.24.0; this establishes a source version, not a successful release. The main binary remains dist/cli.js, with src/commands/vpn/peers.ts the one explicit source export. The CLI README still broadly says the package “ships TypeScript source”; the earlier documentation-versus-manifest distinction remains unresolved. Its MCP documentation still lists exactly nine read-only status/model tools and excludes mutations. Root tooling declares TypeScript 6.0.3, ESLint 10.13.0, Prettier 3.9.10, and Changesets 3.0.3; the four CI worker jobs pin Bun 1.4.3. The aggregate CI job requires lint, type-check, tests, and package smoke all to return success. These are declared gates, not freshly executed upstream test results.

Fro Bot is present, with deployment-gate-aware reporting

Both jobs in fro-bot.yaml reference SHA-pinned agent v0.125.1. The content job retains read-only GITHUB_TOKEN permissions, same-repo PR-comment head resolution, and credential-free checkout; its separate PAT and brokered-push path declarations mean “read-only” describes token permissions rather than every possible action. Storage remains schedule/main-dispatch only, under the fro-bot-storage environment with AWS OIDC, blocked-by-default egress, and explicit output-mode: branch-pr. Daily/custom classification still drives prompt selection, cache bypass, and post-agent reconciliation. No missing-workflow follow-up is needed.

The schedule prompt now distinguishes a deployment waiting for approval (or cancelled before any deploy step starts) from one that executed and failed. At-gate deployments are table rows rather than issue findings. Notification status is a separate result, read from the notify job’s structured summary; missing, skipped, or failed notification produces an explicit “not notified” row. A successful aggregate run with a skipped app is not a successful app deployment. These are agent reporting instructions; this pass does not prove that any run followed them.

Dashboard admission, notification, and cancellation have different scopes

deploy.yaml forwards the optional DEPLOY_GATE_DISCORD_WEBHOOK to all seven per-app workflows. In deploy-dashboard.yaml, a main-ref notify job follows input validation and calls the notification script before the environment-gated deploy. The deploy depends on both jobs but its explicit condition requires only successful validation and no cancellation, so notification failure need not prevent deployment. Workflow presence does not establish webhook configuration or message delivery. The root README’s workflow table still describes per-app push triggers, but the dashboard workflow itself accepts only workflow_dispatch and workflow_call; pushes enter via the router.

The cancellation helper watches requested standalone dashboard runs on main, lists older manual runs in waiting, queued, or pending states (100 per state), requests cancellation, and reads back up to six times at five-second intervals. Listing/cancellation failures and unfinished readback warn rather than fail the helper. Router deployments and in_progress runs are outside that cancellation discovery. October 21’s earlier cancellation-evidence distinction in github-actions-ci remains supported at this newer SHA.

Dashboard stale-dispatch checks run both before the approval gate and as the first deploy step after approval. They fail closed on listing errors, but their newer-run search spans up to 1,000 standalone workflow runs without branch, event, status, or success filtering. Thus cancellation selects older manual main runs while stale rejection considers any newer listed run; rejection does not prove a successful replacement exists. Router calls skip these checks.

Dashboard host transaction is documented, not re-audited

The dashboard README now documents one SSH transaction under a kernel lock, 180-second lock acquisition, a 900-second remote deadline with 15-second kill grace, and a 960-second caller watchdog. It describes unused-image-only pruning, a 6 GiB headroom floor before acquisition and publication, exact digest verification for cached fallback, Compose-last publication, and no automatic rollback or volume/container pruning. These README claims add an operational contract; source implementation and current host state were outside this pass.

Sources: root README, root manifest, CLI README, CLI manifest, dashboard README, and .github/workflows/{ci,fro-bot,deploy,deploy-dashboard,cancel-superseded-dashboard-deploys}.yaml at that same SHA. Earlier dated evidence below is retained.

2026-10-06 — bounded source snapshot

At 793b2a4b81a577b64a7469ae65d1a61bf498ab7c, the complete directory listing still has eight app directories, two package directories, and twenty workflow files. The root README distinguishes seven deployable apps from the local-only apps/agent storage provisioner. This pass reads listings, READMEs, package manifests, and workflows only. Earlier issue counts, environment protection settings, deployed versions, label timelines, and retention attestations remain dated evidence; none were rechecked here.

Declared package version and documentation drift

packages/cli/package.json now declares 0.24.0, compared with the September 22 snapshot’s 0.23.0. This is a source-manifest version, not a registry publication or installation check. Its executable is dist/cli.js; the publish allowlist is dist plus src/commands/vpn/peers.ts, with that single source file exported as ./vpn/peers. The package README still says it “ships TypeScript source” as its runtime explanation. Both descriptions are retained: the manifest describes a built main executable with one intentional source export, while the README’s broad wording does not distinguish them. Bun remains required by the declared engine and README; no executable was run during this survey.

The CLI README documents exactly nine read-only MCP status/model tools and explicitly excludes mutating commands. Its agent group documents model-credential setup and S3 handoff wiring, including a non-mutating --plan option. These are documented interfaces, not a fresh implementation audit. Root tooling declares TypeScript 6.0.3, ESLint 10.12.0, Prettier 3.9.9, and Changesets 3.0.3.

Fro Bot present; run classification has an explicit delivery setting

.github/workflows/fro-bot.yaml references SHA-pinned agent v0.117.5 in both jobs. The content job retains read-only GITHUB_TOKEN permissions and default-ref checkout with persist-credentials: false; same-repo PR comment heads are resolved separately. The storage job remains schedule/main-dispatch only, uses the fro-bot-storage environment and AWS OIDC, and explicitly sets output-mode: branch-pr after installing an authenticated git header. These describe workflow wiring, not the effective scope of its separate PAT.

One classifier selects prompt, cache bypass, and reconciliation: schedules and exactly empty dispatch prompts are daily-equivalent; every nonempty prompt, including whitespace, is custom. The daily UTC date/run ID is frozen before the agent. The post-agent reconciler is daily-only, inherits the default success guard, and blanks the exported AWS credentials. No missing-Fro-Bot follow-up is needed. See github-actions-ci for the shared-classification pattern.

Alert validation changed; scanner enforcement did not

The September 22 claim that Release Alert has “no self-test” is superseded at this SHA for workflow wiring: release-alert.yaml has owner-only manual synthetic validation, separate test title/label/body marker, canonical create response checks, bounded issue/comment readback, exhaustive synthetic discovery, and refusal to mutate multiple matching synthetic issues. This survey does not establish that validation ran or passed. Production still alerts only on failure, and uses a separately bounded 100-item discovery path rather than the synthetic path’s pagination.

The gateway scanner still has continue-on-error: true, Trivy --exit-code 0, and fallback reporting when scans produce no output. Its deploy dependency on scan-images does not turn vulnerabilities into a blocking condition. The September finding remains supported by current workflow evidence.

Sources: root README, CLI README, CLI manifest, and .github/workflows/{fro-bot,ci,release-alert,deploy-gateway}.yaml at the same SHA.

Historical overview (2026-09-22)

  • Purpose: Deploy automation, operational CLI, and infrastructure tooling
  • Default branch: main
  • Created: 2026-04-03
  • Last push: 2026-09-22 (3e4d76d, fix(deps): update aws-sdk-js-v3 monorepo to v3.1136.0 (#1420)); prior surveys 2026-09-06 (ac34a60), 2026-08-16 (d276d93), 2026-07-15 (e0e3252)
  • Runtime: Bun v1.0+
  • Workspace package: root is @marcusrbrown/infra-workspace (private); the published CLI is @marcusrbrown/infra (in packages/cli/)
  • Published package: @marcusrbrown/infra v0.23.0 on npm (2026-09-22; v0.22.0 at the prior survey)
  • Open items (2026-09-22): 9 — down from 17. 4 fro-bot-authored (#1413 daily report, #1412 deploy-approval, #1374 + #1162 Upstream Modernization Watch), 4 marcusrbrown-authored (#1386, #1385, #1383, #729), + the mrbro-bot[bot] Dependency Dashboard. Zero open PRs (seventh consecutive survey)
  • Stars: 3 (steady across six surveys) · forks 0
  • Topics: bun, deploy, github-actions, infra, keeweb
  • License: MIT
  • Visibility: public · node_id R_kgDOR4g8TA · repo id 1200110668

2026-09-22 Survey — Findings

Seventh survey (HEAD 3e4d76d). Still 8 apps / 2 packages; workflows 19 → 20 (new prune-packages.yaml). 109 commits since the prior survey — mrbro-bot[bot] 69 / marcusrbrown 40, the most human-heavy interval this page has recorded. The theme: every open finding from 2026-09-06 was acted on, and the one that “converged” converged only halfway.

1. The single-report contract converged — and its trust anchor is deleted every morning by the repo’s own settings sync

The 2026-09-06 page recorded ten open Daily Autohealing Report issues against a contract demanding exactly one, and diagnosed the identity predicate: clause (b) ANDed a mutable label onto an immutable body marker. That diagnosis held; the remedy landed; the issue population is now converged and has been for at least fourteen consecutive days — exactly one open report (#1413), each day’s predecessor closed not_planned with a machine-readable supersession comment (<!-- fro-bot:autoheal-supersession:v1 canonical-issue-number=1413 -->).

The remedy is structural, not prompt-level: reconciliation moved out of the model and into deterministic repo-local code. packages/cli/scripts/reconcile-autoheal-reports.ts (957 lines) runs as a post-agent workflow step gated on steps.classify.outputs.mode == 'daily-equivalent', and the prompt now explicitly forbids the agent from doing any of it (“Do not create labels, post supersession comments, close reports…”). The reconciler is codified as ARCHITECTURE.md invariant 13 — identity-anchored (exact title/date, numeric fro-bot actor, line-1 managed marker), fully paginated, re-reads every mutation target by numeric ID immediately before writing, proves each write by readback, and aborts rather than mutating on any ambiguity. It also adds the missing backfill path: a candidate carrying the marker but lacking the label is adoptable, and the reconciler adopts it.

And the label still does not exist in the repository.

The reconciler’s own summary line is identical on every run inspected (09-14, 09-18, 09-19, 09-20, 09-21, 09-22):

{"eligible":2,"adopted":2,"commented":1,"closed":1,"untrusted_collisions":0,"final_open_managed":1,"status":"succeeded"}

adopted never decays. If adoption persisted, yesterday’s report would already be labelled and today’s count would fall. It does not, because the label is removed between runs — and the timeline names the actor:

Time (2026-09-22 UTC)EventActorLabel
03:51:14labeledfro-botautoheal-report
06:47:34unlabeledmrbro-bot[bot]autoheal-report

06:47:34 sits inside the Update Repo Settings push-triggered run at 06:47:22–06:47:45. That workflow fires on every push to main (eight runs before 07:00 that morning) and syncs .github/settings.yml, which _extends: .github:common-settings.yaml — whose 48-label manifest does not contain autoheal-report. The agent mints a trust anchor at 03:51; the settings sync strips it hours later because it is not in the org-wide manifest. Every day. Both writes report success.

Three durable lessons, all generalizable:

  • A label manifest is a deletion policy. Any automation in the same repository that mints its own labels as identity tokens is in a write-war with the settings sync, and the sync runs far more often. Generalized in probot-settings.
  • Proof at write time is not proof of durability. The reconciler does the harder, rarer thing — it readback-proves every mutation before reporting success — and the proof is still worthless here, because the adversary is a later writer. Same shape as fro-bot—agent’s cache-save-result, which states in its own description that it “reports a result, not proof of durability.” Independently rediscovered at the issue-label layer.
  • The tell was in the output the whole time. adopted=2 on every run is a monotone signal that a mutation is not sticking, and nothing reads it because status: "succeeded" is right there next to it. A converged outcome metric (final_open_managed: 1) masked a non-converging work metric.

This also corrects the prior page’s inference. 2026-09-06 guessed the mechanism was “issue creation with a not-yet-existing label drops the label” — plausible, and wrong. The label was created and applied correctly every time; a second automation removed it. The observable (nine marker-carrying, label-lacking reports) was identical under both hypotheses, which is precisely why a timeline read beats an inference about creation order.

Residual: the reconciliation contract now converges despite its label key rather than because of it — the closure path carries the whole result. The cheapest fix is a one-line addition to common-settings.yaml; the more interesting question is whether an org-wide label manifest should ever be authoritative over repo-local automation labels.

2. The gateway stopped building on the droplet

The largest structural change since apps/agent. The gateway deploy was an on-droplet git clone || git fetch && git reset --hard against the upstream.json SHA. It is now a three-stage CI pipeline that ships prebuilt images, and apps/gateway/README.md states the new invariant directly: “the droplet only pulls prebuilt artifacts — it never builds images.”

deploy-gateway.yaml grew two jobs ahead of deploy-gateway:

  • build-images (packages: write) checks out fro-bot/agent at the upstream.json ref into upstream-agent/, then builds deploy/gateway.Dockerfile and deploy/workspace.Dockerfile and pushes ghcr.io/marcusrbrown/infra-gateway and ghcr.io/marcusrbrown/infra-workspace, tagged ${upstream_ref}-${github.sha}. Digests are job outputs consumed by the deploy as GATEWAY_IMAGE_DIGEST / WORKSPACE_IMAGE_DIGEST.
  • scan-images runs digest-pinned Trivy (0.74.0@sha256:62b1e65e…) against both images.

Two details worth keeping, both with the rationale written into the file:

  • The build is made reproducible on purpose. SOURCE_DATE_EPOCH: '0' is set as a fixed constant, not commit-derived — the comment says why: a commit-derived value changes every build and destroys cache hits. It is paired with outputs: type=registry,rewrite-timestamp=true, because SOURCE_DATE_EPOCH alone rewrites config/history/index timestamps but not layer tar-entry timestamps; only the exporter flag does that (BuildKit ≥ v0.13).
  • BuildKit itself is pinned. driver-opts: image=moby/buildkit:v0.33.0, with the comment “the preinstalled buildx on ubuntu-latest is an uncontrolled input otherwise.” That is the right frame: a builder is a build input. Most repos SHA-pin the action and let the runner supply whatever BuildKit it ships.

The scan is the weak half. scan-images is continue-on-error: true and invokes Trivy with --exit-code 0, writing a table into $GITHUB_STEP_SUMMARY. deploy-gateway declares needs: [build-images, scan-images], which looks like a gate and is not one — the job cannot fail, and even if it could, continue-on-error would absorb it. Compare the two-phase pattern from fro-bot—dashboard catalogued in docker-containers, which splits visibility (report-everything SARIF at exit-code: 0) from enforcement (a second scan that actually fails). Here only the visibility phase exists. A needs: edge to a job that cannot fail is documentation, not a dependency — and it reads as enforcement in every summary view.

The repo already knows the tag is wrong. Open issue #1383 (marcusrbrown, technical-debt): “Gateway image rebuilds fire on commits that cannot change the image” — the tag embeds github.sha while the image content is a pure function of the upstream.json ref and the two Dockerfiles, so any infra commit that touches the deploy path rebuilds and republishes byte-identical content under a new tag. That is also what created the GHCR untagged-version accumulation that prune-packages.yaml now exists to clean up (issue #1327). A self-inflicted garbage problem with the collector shipped before the fix.

3. prune-packages.yaml — destructive registry automation done with the safety written down

New 20th workflow, workflow_dispatch only, with an apply boolean defaulting to false. It runs packages/cli/scripts/prune-untagged-packages.ts, which deletes untagged GHCR versions of the fixed TARGET_PACKAGES = ['infra-gateway', 'infra-workspace'] set only after six named gates pass for that package:

GateAbort codeGuards against
apagination_incomplete / pagination_failed / pagination_invalidacting on a partial version list
b/cmanifest_is_indexreasoning about a multi-arch index it does not model
duntagged_referenced_as_childdeleting a child manifest of a tagged image
ecandidate_cap_exceededan unexpected API shape producing 500 “orphans”
fno_tagged_versionsa package that looks empty because the read failed

Every abort returns a coded, body-free summary and a non-zero exit; nothing is deleted for that package. Pagination links are re-validated against the API origin before being followed. Deletes run in ascending-id order “so the delete sequence is auditable against the run log.” This is codified as invariant 15, whose closing clause is the whole design: “it never degrades an inconclusive probe into ‘safe to delete.’”

One shape worth noting: gates b/c and d are nearly mutually exclusive. A tagged version whose mediaType is a known index type aborts the run before child digests are collected, so the child-reference gate only ever engages for manifests that omit mediaType. In practice the abort is the protection and the child scan is the belt to its suspenders — which is the correct ordering for a delete path, but means the “provably orphaned” language in the header comment describes the rarer branch.

Both this script and the reconciler are covered by invariant 12: “workflow-internal scripts stay outside the published surface” — repo-local operational code in packages/cli/scripts/, invoked only by their owning workflows, never CLI commands, MCP tools, package exports, or published files. That invariant is enforceable because Package smoke (finding 6, 2026-09-06) already asserts the tarball contains nothing from src/ beyond one intentional export.

4. ARCHITECTURE.md grew a numbered invariant list, and invariant 14 is the fleet’s own lesson found from the other side

ARCHITECTURE.md now carries 15 numbered invariants under an ## Invariants heading, several of them mechanically enforced by packages/cli/src/conventions.test.ts. Three are new knowledge rather than restated conventions:

Invariant 11 — reusable-workflow permission parity. “A callee job cannot request a GITHUB_TOKEN scope its caller job does not grant; job-level permissions: replaces the workflow-level block, so callers must restate contents: read alongside added scopes or GitHub rejects the run at startup with zero jobs created.” The failure mode is the interesting part: zero jobs created — no failed job to read, no step to inspect, a run that exists and did nothing. conventions.test.ts now asserts permission parity between deploy.yaml’s router jobs and the deploy-<app>.yaml callees they uses. Generalized in github-actions-ci.

Invariant 14 — never read a coarse exit code or HTTP status as proof of a specific remote state. “A probe that cannot confidently distinguish its target states must throw, not fall back to the branch that looks safe.” This is not abstract: it enumerates six retrofitted call sites across five apps, each of which had mapped an ambiguous signal onto the convenient branch —

  • remoteGitExists / remoteFileExists now emit an explicit EXISTS/MISSING sentinel over SSH and require both exit 0 and a recognized sentinel, instead of reading any non-zero exit as “absent” (which risked an unnecessary clone, or overwriting config.yaml’s live runtime API keys);
  • readRemoteChecksum throws on non-zero instead of reading a failed read as an empty checksum;
  • removeStaleGatewayNet requires Docker’s literal No such network stderr marker;
  • the Umami admin-login probe parses curl -w '%{http_code}' (401 = already rotated, anything else fails closed) instead of trusting --fail-with-body’s exit code;
  • the VPN wipe-guard throws on a non-zero wg show wg0 dump or empty output instead of reading either as “zero live peers”;
  • broker/src/sweeper.ts’s reconcile takes throwOnListFailure so startupReconcile’s bounded retry actually retries a failed listApiKeys instead of swallowing the exception as success.

The wiki has been accumulating the same rule from the CI side for months — a run’s conclusion measures the harness, not the deliverable (marcusrbrown—cortexkit-anthropic-auth, marcusrbrown—github). Invariant 14 is that rule discovered at the remote-probe layer by a repo that kept getting bitten, and it is sharper than the CI version in one respect: it names the direction of the bias. A coarse signal does not fail randomly — it fails toward whichever branch the author found convenient, and “the branch that looks safe” is almost always the destructive one (clone anyway, overwrite anyway, treat the peer list as empty). The generalization: when a probe has two outcomes and one coarse signal, the ambiguity resolves in favor of the action, not the abstention.

Invariant 2 changed — “Exactly two approved Bash scripts”. The long-standing “only bash script is apps/keeweb/deploy.sh” convention now admits apps/umami/retention.sh as a narrow host-native systemd/Docker exception, and the allowlist is enforced in conventions.test.ts. A convention that survived nine surveys was widened by exactly one entry, with the exception named in the invariant rather than silently tolerated.

5. The Umami retention control landed — the marcusrbrown—marcusrbrown-github-io analytics gate is satisfied, and was already satisfied at the prior survey

This page has carried a cross-repo dependency since 2026-08-01: marcusrbrown—marcusrbrown-github-io’s privacy-preserving Umami subsystem is activation-gated on a version-controlled marcusrbrown/infra evidence artifact — pinned to an exact infra commit and Umami version — proving ≤13-month retention. The page recorded it as “not yet observed in the infra tree.”

It is there, and the earliest artifact predates the 2026-09-06 survey. apps/umami/ now holds retention.sh, retention.sql, retention-check.sql, retention.test.ts, retention.integration.test.ts (23 KB), systemd/{umami-retention.service,umami-retention.timer}, systemd.test.ts, and evidence/retention/ containing README.md, TEMPLATE.md, and 2026-07-31T2012Z-mrb-go.md.

retention.sh uses the same destructive-default discipline as the pruner: --check/--dry-run counts rows older than 13 calendar months, --apply deletes transactionally, and check is the default. set -Eeuo pipefail with IFS=$'\n\t'; failures emit a structured RETENTION|mode=…|status=failure|exit=…|reason=psql line.

The evidence artifact is the notable object. It pins the infra commit (aa01b493), a content-addressed retention release hash matched against /opt/umami/retention/current’s readlink, both image digests, SHA-256 of both installed systemd unit files, and the mrbro.dev plan revision it satisfies — cross-repo, by SHA, in both directions. The recovery drill is captured in full: a pg_restore --list validation in a pinned disposable container with --network none, tmpfs data dir, no published ports, and an exact diff of source vs restored manifests (empty, PASS).

What makes it credible is what it refuses to claim. Status is GO (operator override) and says so — “the calendar/catch-up timer edge remains explicitly unobserved” — and the backup section records Daily automated backup present: NO. An attestation that enumerates its own unverified edges is worth more than one that reports PASS across the board, and the distinction between “verified” and “accepted under override” is written into the status field rather than the prose. This is the first artifact in the fleet built to be consumed by another repo’s Go/No-Go matrix, and the shape is reusable.

Correction of scope, not of fact: the prior page’s “not yet observed” was carrying a stale 2026-07-15 caveat forward. Survey reads are scoped to listings, READMEs, manifests, and workflows, and this landed as app-internal source — a reminder that a cross-repo dependency tracked from the consumer side will not surface in a producer-side survey unless the producer’s app directory is listed.

6. Findings closed, findings that held

2026-09-06 finding2026-09-22 state
Ten unconverged daily reportsClosed — one open report, 14+ days (finding 1; label half still broken)
autoheal-upstream-watch label does not existStill true, still unlabelled, and now two open Watch issues (#1162 08-23, #1374 09-20). Category 10 has no reconciler; only the daily report got one
Four stalled version ceilingsOne lifted. fro-bot/agent moved <0.94.0 → <0.114.0 after an actual verification pass, recorded in the config: “v0.113.2 verified the gateway startup config parser byte-identical to v0.93.1, so no new boot-required secrets; v0.114+ stays gated pending the next verification pass.” caddy <2.12.0 still cites a 2026-07-13 verification (~10 weeks); postgres <16 runbook still unexecuted (~3.7 months); typescript <7 still waiting on typescript-eslint#10940
README lists six apps, repo has eightClosed — the table lists all eight, apps/agent described as “not deployable” (issue #1316, closed 09-12)
release-alert.yaml gated on conclusion == 'failure' onlyUnchanged. Still blind to cancelled / timed_out / action_required, still no self-test, still never fired
Stranded deploys behind required_reviewersStructural, unchanged. #1412 open today (gateway awaiting approval since 09-21T20:02Z); #1365 on 09-18 reported gateway + vpn + cliproxy all stalled since 09-14. Now consistently deployment-labelled, so the class is at least countable
fro-bot-storage is the only environment without required_reviewersConfirmed by API. All seven deploy environments carry [required_reviewers, branch_policy]; fro-bot-storage carries [branch_policy] alone. A new copilot environment has no protection rules at all

7. Capability narrowing moved inside the job

The 2026-09-06 survey recorded the fro-bot.yaml split into two jobs with disjoint capabilities. The reconcile step extends that discipline within the privileged job:

- name: Reconcile daily autoheal reports
  if: steps.classify.outputs.mode == 'daily-equivalent'
  env:
    GH_TOKEN: ${{ secrets.FRO_BOT_PAT }}
    AWS_ACCESS_KEY_ID: ''
    AWS_SECRET_ACCESS_KEY: ''
    AWS_SESSION_TOKEN: ''
    AWS_REGION: ''
    AWS_DEFAULT_REGION: ''

aws-actions/configure-aws-credentials exports STS credentials into the job environment, so every subsequent step inherits them by default. Blanking them per-step is the only way to keep a GitHub-API-only step out of the AWS blast radius without splitting the job again. Job-scoped credentials are the default and step-scoped ones require explicit effort — worth remembering whenever an OIDC credential step precedes anything that does not need it.

Daemon health

Fro Bot daily schedule: 14/15 success over the last 15 scheduled runs (sole failure 2026-09-13); the last nine are green. The reconcile step succeeds on every run inspected. All 20 workflows active — no disabled_inactivity. Zero open PRs; every Renovate PR automerges.

2026-09-06 Survey — Findings

Sixth survey (HEAD ac34a60). No new apps — still 8 apps, 2 packages. Workflows 18 → 19 (new release-alert.yaml). The delta is not surface area; it is that the repo’s instrumentation matured to the point where it started reporting on its own operator, and five of its own gates are now measurably stalled.

1. fro-bot.yaml split into two jobs — the storage capability boundary went from documented to enforced

The 2026-08-16 page recorded an “Environment gating (documented invariant)”: content-triggered jobs must never reach id-token: write. That invariant is now implemented in this repo’s own workflow, which is also the first observed consumer of the apps/agent provisioner it ships. One file, two jobs, disjoint capabilities:

fro-bot-content (name: Fro Bot)fro-bot-storage (name: Fro Bot (storage))
TriggersPR events, issues, @fro-bot comments (OWNER/MEMBER/COLLABORATOR)schedule or workflow_dispatch on refs/heads/main only
PromptPR_REVIEW_PROMPT (or none)SCHEDULE_PROMPT / dispatch prompt
permissionscontents: read, pull-requests: readcontents: read, id-token: write
Environmentnonefro-bot-storage
AWSnoneaws-actions/configure-aws-credentials@v6.2.4, role-duration-seconds: 7200
Agent inputsbrokered-push-extra-pathss3-backup: true + the five FRO_BOT_S3_* vars
Egressdefaultstep-security/harden-runner egress-policy: block + explicit allowlist

Three things worth keeping:

  • The privileged job is the autoheal, not the review. Content-triggered work runs unprivileged; the daily mutating pass is the one holding OIDC. That inverts the usual instinct and is correct — content triggers are the attacker-reachable surface.
  • fro-bot-storage is the only environment in the repo without required_reviewers. All seven deploy environments (keeweb, cliproxy, gateway, umami, dashboard, vpn, broker) carry required_reviewers + branch_policy; fro-bot-storage carries branch_policy alone. Necessarily so — a daily cron cannot wait for a human — but it means the environment is a branch gate, not a human gate, and the job-level if: is doing the real work.
  • Fork-PR TOCTOU is handled explicitly. Checkout always takes the default ref; a separate Resolve same-repo PR-head ref step calls the API and only emits a trusted-head-sha when head.repo.full_name equals the repository. The inline comment names the exact gap: an issue_comment on a fork PR exposes the PR only at github.event.issue.pull_request, so the job-level fork guard (which reads github.event.pull_request) does not fire. Server-verified head resolution instead of trusting the event payload.

Two loose threads:

  • The harden-runner allowlist is templated from repository variables. Entries interpolate vars.FRO_BOT_S3_REGION / vars.FRO_BOT_S3_BUCKET. If either variable is unset the entries collapse to malformed hosts (sts..amazonaws.com:443, .s3..amazonaws.com:443) and the job fails as an egress denial rather than a missing-variable error — fail-closed, but the diagnostic points at the network instead of at configuration.
  • The brokered-push-extra-paths comment contradicts its own list. The comment reads “deploy-critical files under apps/ remain intentionally excluded”, and the list then enumerates apps/<name>/src for all eight apps — which is exactly where every app’s deploy.ts lives (root package.json: "deploy:broker": "bun run apps/broker/src/deploy.ts"). The stated invariant and the encoded one disagree. Not an escalation by itself (brokered push is still mediated), but the comment is now misleading about what the allowlist covers.

2. The reconciliation contract that cannot see its own reports

fro-bot.yaml carries a ~45-line SINGLE-REPORT RECONCILIATION CONTRACT whose clause (g) states the goal plainly: “End state: exactly one open trusted managed report.” The prompt restates it a second time at the bottom of the output-format block. Observed state on 2026-09-06: ten open Daily Autohealing Report issues (#1204 08-27, #1212 08-28, #1220 08-29, #1235 08-31, #1242 09-01, #1250 09-02, #1259 09-03, #1264 09-04, #1272 09-05, #1279 09-06).

The mechanism is exact, and it is not a listing failure — clause (c) is already hardened against those (“Do not request body, rely on GitHub search indexing, or accept a default page size”). It is the identity predicate. Clause (b):

An issue can become managed only when author.login is exactly fro-bot, label autoheal-report is present, AND its body contains <!-- fro-bot:autoheal-report:v1 -->.

All ten reports carry the correct body marker as line 1. Only the newest (#1279) carries the label. The other nine have no labels at all. So nine issues the agent itself authored, each stamped with the agent’s own marker, are classified as untrusted title-prefix collisions — and clause (g) says untrusted collisions “remain untouched.” Every run truthfully reports exactly one trusted managed report open, and the population grows by one per day.

The contract worked before: 18 issues have ever carried the autoheal-report label, 17 of them closed, running cleanly through #1190 (2026-08-25). The label then goes missing for the 08-27 → 09-05 window and returns on 09-06. Most probable mechanism (inference, not confirmed): clause (c) instructs the agent to “Ensure label autoheal-report exists” before filtering, and issue creation with a not-yet-existing label drops the label while still creating the issue — the create succeeds, the identity token does not attach, and there is no backfill path in the contract for its own prior output.

The trust boundary itself is sound reasoning: a label is write-gated by triage permission, so requiring it defends against a third party planting a lookalike issue with a forged marker. The cost is that the conjunction’s recall is set by its weakest, most mutable key — a label applied as a side effect — while its strongest key (a marker written atomically as byte 0 of a body the agent is already composing) is relegated to a confirmation step it never reaches.

The same defect exists a second time, worse. Category 10’s Upstream Modernization Watch has its own trust triple keyed on label autoheal-upstream-watch — that label does not exist in the repository at all, and its only issue (#1162, 2026-08-23) is open and unlabelled. That contract can never recognise a managed artifact.

3. The PR queue is empty because the backlog moved downstream

Zero open PRs. Every Renovate PR automerges. On the fleet’s usual axis this reads as the healthiest queue on the wiki — marcusrbrown—dev-like’s clean-queue control case, reproduced on a far larger surface.

It is not. The queue changed units. Five of the sixteen open fro-bot issues are stranded-deploy findings:

IssueSinceSubject
#12342026-08-30T18:08Zdashboard: manual deploy run stuck in waiting
#12492026-09-01T12:44Zcliproxy: deploy stuck on approval gate, v7.2.147 bump undeployed
#1258router outage #1227gateway + vpn: 3 dependency bumps stranded on main, never redeployed
#12772026-09-05T20:33Zgateway + vpn: 2 dependency bumps stranded on main, never redeployed
#12782026-09-05T07:24Zbroker: deploy stuck on approval gate, dependency bump undeployed

This is structural, not incidental. Automerge to main fires the path-filtered per-app deploy workflow; that workflow enters a required_reviewers environment; nobody approves; the bump is committed but never reaches the droplet. Frictionless merge plus a human-gated deploy produces silent divergence between the repository and production — and the cleaner the PR queue, the faster the divergence accumulates. The correction to the fleet narrative: a clean PR queue does not mean the gate was removed, only that it was relocated to where nobody was counting.

The repo already knows this the hard way. The autoheal prompt’s STRANDED-DEPLOY CHECK opens with the incident: “a umami image bump landed on main but the deploy run was cancelled at its approval gate, so the app ran the old version for ~3 weeks. A cancelled run is NOT a failed run, so ‘if it failed’ misses it.” Category 7 now evaluates every app’s latest deploy on conclusion != success with supersede-awareness (a later successful deploy self-heals the finding), and is explicitly reporting-only — do not redeploy. The daemon detects the stall and is forbidden from clearing it. Five open issues are the result: correct behaviour, accumulating.

4. Four verification-gated version ceilings, all stalled

.github/renovate.json5 (preset #5.2.13) holds four allowedVersions ceilings, each with a written rationale — an unusually disciplined practice, and every one of them is currently parked:

PackageCeilingLift conditionState at survey
caddy<2.12.0manual linux/amd64 manifest verification, last done 2026-07-13~8 weeks, deployed at 2.11.4-alpine
postgres<16executed cutover per docs/plans/2026-06-01-001-feat-umami-postgres-major-upgrade-plan.md (PG18 refuses a PG15 data dir; password baked into the named volume)~3 months, runbook unexecuted
fro-bot/agent (gateway upstream.json)<0.94.0source-contract verification pass — “verify no new boot-required secrets before the ceiling moves”pin v0.93.1, upstream v0.109.3 — ~16 minor series. Lifted to <0.114.0 by 2026-09-22 after an executed pass (pin now v0.113.2)
typescript<7typescript-eslint#10940 lands TS 7 supportexternal unblock; legitimately waiting (still, 2026-09-22)

Three of the four wait on a human verification pass with no recurring trigger. And the ownership is circular: Renovate is ceiling-gated by policy, and category 10 (Upstream Modernization Watch) is instructed it “MUST NOT bump pinned versions (Renovate-owned).” Nothing in the repo is responsible for lifting a ceiling.

This corrects the prior page’s reading of the gateway pin. 2026-08-16 recorded that “the deployed daemon and the CI review action are versioned independently,” which framed the gap as incidental. It is deliberate: an explicit, commented ceiling with a stated lift-condition. The correction cuts both ways — the gap is better-reasoned than recorded, and larger than reported (6 minors then, ~16 now, widening at roughly the upstream release rate).

The distinction against marcusrbrown—esphome-life is worth holding: there a pin froze accidentally (versioning: loose + calver defeating Renovate’s major detection); here it froze by design. Same observable, opposite cause. A ceiling with a written lift-condition is a policy; without a scheduled re-evaluation it decays into a freeze, and from the outside the two are indistinguishable.

5. The repo gets the conclusion predicate right in one file and wrong in the next

New workflow release-alert.yaml (workflow_run on Release, types: [completed]) opens or comments on a marker-deduplicated release-publish-failure issue — the post-merge liveness assertion that the merge gate structurally cannot provide. Sound construction: lazy label creation, an HTML-comment marker (<!-- release-publish-failure:v1 -->) rather than title matching, permissions: issues: write only, and a global concurrency: release-alert group with cancel-in-progress: false that serialises the read-modify-write so two failures cannot race into duplicate issues.

Its gate is if: github.event.workflow_run.conclusion == 'failure'.

That is precisely the predicate this repo’s own autoheal prompt was rewritten to stop using, after a cancelled deploy cost it three weeks of stale production. A Release run that is cancelled, timed_out, or action_required posts nothing. And ci.yaml, in the same repository, gets it right — the ci gate job runs if: always() and asserts needs.<job>.result != "success" for all four jobs, which catches cancelled and skipped alike.

The lesson is not that the repo doesn’t know better. It demonstrably does, in two other files. The lesson is that a conclusion-predicate invariant learned in one file does not propagate to the next file written. Corollary observation: release-alert.yaml has fired zero times (every run to date skipped, because Release keeps succeeding), and unlike cliproxy-auth-monitor.yaml — which ships owner-only synthetic-dead / synthetic-healthy dispatch modes precisely so the alert path can prove it still works — the release alert has no self-test. Two alerting paths in one repo; one can demonstrate liveness, the other cannot.

6. package-smoke — the publish contract, shifted left

ci.yaml gained a fourth job, Package smoke, now in the ci gate’s needs. It builds the CLI, bun pm packs it, and then verifies the tarball rather than the repo:

  • dist/ present; the content-hashed known_hosts asset present.
  • No src/ files except the one intentionally source-exported path (src/commands/vpn/peers.ts, backing the ./vpn/peers export).
  • Published package.json has no @marcusrbrown/infra-shared in runtime dependencies (comment: “0.10.0 regression”) and no workspace: specifiers.
  • Clean-room install: bun add the tarball into mktemp -d, run infra --help, then run infra gateway status and assert (a) it produced output at all — so a crash before the check cannot false-pass — and (b) the fail-closed string Pinned SSH known_hosts file not found is absent.
  • dist/cli.js contains no import/require specifier for infra-shared (i.e. the build actually inlined it), matched on a call-shaped regex rather than a bare string, because the inlined package.json data legitimately contains the name.

This is the pre-merge half of the publish-liveness problem catalogued from marcusrbrown—systematic: rather than discovering a broken files field or a leaked workspace protocol at publish time, the packaging contract is asserted as a required check. Note the assertion discipline — negative canaries plus a did-it-even-run guard — which is the standard defence against grep-based checks that pass because nothing ran.

Supersedes the prior page’s CI description: test failures now do block. The gate’s needs is [lint, type-check, test, package-smoke] and it fails on any result != "success".

7. A double-tagged upstream that froze a pin for four months

renovate.json5 gained a second custom manager with a documented root cause worth generalising:

bfra-me/.github tags the same commits twice: v4.16.x for the repo and renovate-changesets@x.y.z for the action. The built-in github-actions manager resolves only the repo tags, so this pin sat at 0.2.31 for four months while 0.2.32 shipped.

The fix is extractVersionTemplate: '^renovate-changesets@(?<version>.+)$' to constrain candidates to the correct tag family, plus capturing currentDigest and currentValue in one matchStrings so the SHA and its # vX.Y.Z comment move together. This is a fourth distinct instance of the ecosystem’s “Renovate is tracking the wrong target” class — after the mis-pathed uses: in marcusrbrown—esphome-life, the Alpine-branch-encoding repology manager in docker-containers, and the never-advancing settings-sync ref in bfra-me—works. Same end state each time: a dependency that looks tracked and is frozen.

8. Documentation drift

README.md’s package table lists six apps — keeweb, cliproxy, gateway, umami, dashboard, vpn — plus packages/cli. The repo has eight: apps/broker (added 2026-07-01) and apps/agent (added 2026-08-16) appear in neither the table nor the Overview prose. The broker has been missing for ~9 weeks across three surveys. Category 3 (Code Quality & Repo Hygiene) runs daily; the drift persists — same shape as marcusrbrown—marcusrbrown-com, where an autoheal check reported AGENTS.md accuracy ✅ Current while the Stack line was three majors stale, because the check read structure and not content.

Daemon health

Fro Bot daily schedule: 16/20 success over the last 20 scheduled runs; failures on 08-20, 08-23, 08-26, 08-30; the last seven consecutive passes are green. cliproxy-auth-monitor is firing on cadence and green. All 19 workflows active — no disabled_inactivity. The Release workflow runs and succeeds on every push (publishing only when changesets exist), which is why release-alert has never fired.

Repository Structure

Bun workspace monorepo with apps/* and packages/* workspaces.

Key Directories

DirectoryPurpose
apps/keeweb/KeeWeb v1.18.7 static site deploy automation (kw.igg.ms)
apps/cliproxy/CLIProxyAPI Docker Compose stack behind Caddy (cliproxy.fro.bot)
apps/gateway/Fro Bot Discord gateway + workspace runner + mitmproxy (gateway.fro.bot)
apps/umami/Umami analytics Docker Compose stack (umami + postgres + caddy) at metrics.fro.bot; plus the 13-month retention subsystem (retention.sh/.sql, systemd timer, evidence/retention/ attestations) added by 2026-07-31
apps/dashboard/Fro Bot operator dashboard deploy (2-service compose, digest-pinned upstream image) at dashboard.fro.bot
apps/vpn/WireGuard VPN egress box on AWS Lightsail (eu-west-1); native wg-quick/systemd, no Docker
apps/broker/OIDC-authenticated credential broker (broker.fro.bot); mints short-lived cliproxy keys for CI runs
apps/agent/AWS S3 durable-storage provisioner for fro-bot/agent session state (OIDC → STS, per-repo IAM roles); operator-run, no deployed service (added 2026-08-16)
packages/cli/@marcusrbrown/infra CLI — health checks, deploy triggers, MCP bridge
packages/shared/Shared TypeScript helpers for DigitalOcean droplet provisioning (private)
docs/brainstorms/Requirements and brainstorm documents
docs/plans/Implementation plans
docs/solutions/Compound learning docs (solved problems with YAML frontmatter)
docs/runbooks/Operator day-2 procedures (e.g., Discord token lifecycle)
.agents/skills/Agent skill context packets (goke)
.opencode/commands/OpenCode slash commands
.changeset/Changesets config for versioning
.slim/clonedeps.json vendoring manifest (pins upstream source clones for local inspection)
patches/Bun patchedDependencies patches (currently @changesets/get-github-info@0.6.0)
docs/ideation/Early ideation notes (added by 2026-07-15; e.g., CLI/KeeWeb testing ideation)

Apps

KeeWeb (apps/keeweb)

Self-hosted KeeWeb v1.18.7 password manager at kw.igg.ms. Download-based build: fetches the upstream release archive, verifies SHA-256, produces a deploy-ready dist/ with optional Dropbox client-credential injection. Deployed via SSH/rsync to box.heatvision.co (a Mail-In-A-Box server).

  • Deploy target: /home/user-data/www/kw.igg.ms/ on box.heatvision.co
  • Deploy user: deploy-kw with scoped sudo for a single activation script (/usr/local/bin/kw-deploy-activate)
  • Content-only deploy by default; --nginx flag for config deploy
  • Host keys pinned in .github/known_hosts (no ssh-keyscan)

CLIProxyAPI (apps/cliproxy)

CLIProxyAPI Docker Compose stack fronted by Caddy at cliproxy.fro.bot. Authenticates to Claude once via the Claude Code OAuth flow, then issues per-repo API keys so Fro Bot agents across multiple repositories can use Claude models through a single subscription.

  • Runs on a DigitalOcean droplet provisioned via bun run --cwd apps/cliproxy provision
  • Deploy uploads compose files and restarts the stack (idempotent, preserves runtime config.yaml unless --force-config)
  • Management API for runtime config, API key distribution, and login
  • Multi-provider login support: Claude (default), OpenAI/Codex via device-code OAuth (added #303, 2026-05-24), OpenAI provider opt-in for cliproxy setup --harness opencode (#307, 2026-05-26)

Fro Bot Gateway (apps/gateway)

Fro Bot Discord client + workspace runner stack at gateway.fro.bot. Three-service Docker Compose deployment: gateway daemon, workspace executor, and mitmproxy egress filter. Upstream source is fro-bot/agent, pinned via apps/gateway/upstream.json (currently v0.69.0). No public HTTP surface — outbound to Discord and S3 only. Added in #264 (2026-05-18).

  • Provisioned on a dedicated DigitalOcean droplet (s-1vcpu-2gb, nyc1, tagged gateway)
  • Secret materialization via SSH stdin only — never via argv. 7 required + 2 optional secret files written atomically under /opt/gateway/deploy/secrets/; compose maps each to /run/secrets/<snake_case> and exposes via ${NAME}_FILE env vars
  • Checksum-after-success invariant: /opt/gateway/.secrets-checksum is written only after compose up + Discord command registration both succeed. Mid-rotation failures leave the old checksum so the next deploy force-recreates containers
  • Registration poll: ~90s budget against GET /applications/{app_id}/guilds/{guild_id}/commands; 429 honors Retry-After without counting against attempts; 401/403/404 abort with token-sanitized errors
  • mitmproxy CA lives in the mitmproxy-certs named volume; backup/restore via gateway backup --include-ca / gateway restore --input FILE --include-ca (tarball must contain exactly mitmproxy-ca-cert.pem + mitmproxy-ca.pem)
  • Host hardening: validateGatewayHost rejects --prefixed values before any SSH invocation (SSH treats --prefixed hostnames as flags, including -oProxyCommand=); host keys pinned in .github/known_hosts (commit cf0500af, 2026-05-19)
  • Deploy SSH multiplexing via ControlMaster (#277, 2026-05-20) to amortize handshake cost across the multi-step deploy

Umami (apps/umami)

Self-hosted Umami privacy-respecting analytics at metrics.fro.bot. Added post-2026-05-27 survey. Three-service Docker Compose stack:

  • umami — umamisoftware/umami:3.1.0 (digest-pinned)
  • postgres — postgres:15-alpine (digest-pinned); port 5432 never published to host
  • caddy — caddy:2.11.3-alpine (digest-pinned); handles automatic HTTPS

Key operational properties:

  • DISABLE_TELEMETRY=1 and PRIVATE_MODE=1 set in compose layer; cookie-free, respects DNT
  • Admin password rotated on every deploy (before Caddy starts); DB-password fingerprint guard prevents volume-bricking changes
  • Provisioned on s-1vcpu-1gb DigitalOcean droplet (docker-20-04 image) — smallest in the infra fleet
  • Secret materialization via SSH stdin (/opt/umami/.env) — never argv
  • DNS preflight before deploy (validates UMAMI_DOMAIN resolves before touching droplet)
  • umami environment in GitHub Actions with required reviewer gate

Retention control — LANDED (confirmed 2026-09-22; earliest evidence artifact 2026-07-31). apps/umami/ now carries a full 13-calendar-month retention subsystem: retention.sh (check/dry-run default, --apply opt-in, set -Eeuo pipefail, structured RETENTION|… failure line), retention.sql + retention-check.sql, unit + integration tests (retention.test.ts, retention.integration.test.ts, systemd.test.ts), host-native systemd/{umami-retention.service,umami-retention.timer}, and evidence/retention/ (README.md, TEMPLATE.md, 2026-07-31T2012Z-mrb-go.md). retention.sh is the second entry in ARCHITECTURE.md invariant 2’s two-script Bash allowlist. The attestation pins infra commit aa01b493, a content-addressed release hash matched against /opt/umami/retention/current, both image digests, SHA-256 of both installed systemd units, and the mrbro.dev plan revision it satisfies — and records its own gaps honestly (GO (operator override), “the calendar/catch-up timer edge remains explicitly unobserved”, Daily automated backup present: NO). See 2026-09-22 finding 5. This satisfies the blocking dependency below.

First observed consumer + retention-boundary dependency (noted 2026-08-01 via the marcusrbrown—marcusrbrown-github-io survey; satisfied as described above): the mrbro.dev portfolio added a privacy-preserving analytics subsystem (#256/#257) that points at this metrics.fro.bot instance as its collector. That work is activation-gated on an infra-side retention control: mrbro.dev’s docs/analytics.md runbook states this Umami instance currently “retains data indefinitely,” and its Go/No-Go matrix forbids production activation until a version-controlled marcusrbrown/infra evidence artifact — pinned to the exact deployed infra commit and Umami version — proves pageview/custom-interaction records are retained ≤13 months and that monthly session parent records are deleted after their last retained child expires. This implies a future infra deliverable (a retention policy in the apps/umami compose/config layer plus version-controlled evidence) that is not yet observed in the infra tree as of the last infra survey (2026-07-15, e0e3252, Umami steady 3.2.0). Recorded here so the cross-repo dependency is discoverable from the processor side; a direct infra re-survey should confirm whether the retention control has landed.

Fro Bot Dashboard (apps/dashboard)

Fro Bot operator dashboard at dashboard.fro.bot, added post-2026-06-09 survey. Two-service Docker Compose stack (dashboard + caddy) on a dedicated DigitalOcean droplet (s-1vcpu-1gb, docker-20-04). The dashboard image is the upstream released image ghcr.io/fro-bot/dashboard (see fro-bot—dashboard), pinned by tag + digest in docker-compose.yaml (currently 2026.06.16@sha256:73b05ae…). No on-droplet build.

  • Digest verification invariant: deploy pulls the digest-pinned image, brings up the health-gated dashboard service, then verifies the running image’s RepoDigests against the compose-pinned digest before bringing up caddy. A public HTTPS probe to /api/healthz confirms end-to-end reachability.
  • GitHub App private key is file-mounted, never an env var — uploaded via SSH stdin to /opt/dashboard/config/github-app.pem (0600), mounted at /run/secrets/github-app.pem, read via DASHBOARD_GITHUB_APP_KEY_FILE
  • Secret materialization via SSH stdin (/opt/dashboard/.env) — never argv; DNS preflight before deploy
  • GitHub OAuth App login gated to a single operator (DASHBOARD_OPERATOR_LOGIN)
  • Rollback runbook: docs/runbooks/dashboard-released-image-rollback.md (revert to a prior image digest)
  • Anti-patterns: never docker compose down -v (destroys caddy_data TLS volume); never add --build (no on-droplet builds supported)
  • Upstream dispatch (observed from dashboard survey 2026-06-26): fro-bot—dashboard’s release.yaml now best-effort gh workflow runs this repo’s deploy-dashboard.yaml (inputs version + digest) after each CalVer GHCR release, using a short-lived token from an infra-scoped GitHub App (actions:write on marcusrbrown/infra). The dispatch only reaches the operator-approval gate here; it does not bypass it. (Survey-side detail; re-confirm against infra source on the next infra survey.)

WireGuard VPN (apps/vpn)

WireGuard egress box at a static IP on AWS Lightsail (eu-west-1, Ireland) — the first AWS-backed deployable in this repo. Native wg-quick@wg0 + systemd, no Docker. Added post-2026-06-09 survey.

  • Provisioned via @aws-sdk/client-lightsail (3.1069.0): creates the Lightsail instance, allocates a static IP (the durable client-facing endpoint), sets the exact firewall ruleset (SSH 22 + UDP 51820), installs WireGuard, pins the IP host key. Refuses to re-run against an existing instance without --force.
  • Deploy is SSH-only — no AWS API calls. AWS credentials are provisioning-only (operator-local, not in the vpn Environment).
  • Peer roster: VPN_PEERS GitHub Environment secret (JSON), mirrored locally to gitignored apps/vpn/config/peers.json; client .conf files written to gitignored apps/vpn/clients/. Auto-synced by vpn client add/remove.
  • Server-key invariants: --force-server-key rotates the server key and invalidates all client configs; reprovisioning (fresh disk) destroys the server key (all clients fail handshake). Recovery paths in apps/vpn/AGENTS.md; runbook docs/runbooks/vpn-egress-box.md (bootstrap ordering, reprovision recovery, client onboarding, old-EC2 teardown).
  • Host validation: validateVpnHost rejects --prefixed values (SSH treats them as flags) before any SSH invocation — same pattern as validateGatewayHost.
  • Deploy never reads the server private key locally — reads back only server.pub.

Credential Broker (apps/broker)

OIDC-authenticated credential broker at broker.fro.bot, added post-2026-06-19 survey. Two-service Docker Compose stack (Caddy + a Bun HTTP service on :3000) on a dedicated DigitalOcean droplet (s-1vcpu-1gb, nyc1). Its job: exchange a GitHub Actions OIDC token for a short-lived, revocable cliproxy API key so the durable provider key never lands on a CI runner. This is the credential half of the fro-bot—agent harness pipeline — a shift from static per-repo cliproxy keys toward per-run minted keys.

  • Mint flow: a fro-bot/agent integrate job requests a GitHub OIDC token for the broker audience, POSTs it to https://broker.fro.bot/v1/mint. The broker verifies the JWT (jose JWKS, RS256 only, GitHub issuer, broker-minted aud, exp/nbf/jti replay denylist keyed (jti, iss)), evaluates claims against the code-owned BROKER_TRUST_POLICY allowlist (repository_id, repository_owner_id, workflow_ref, ref, ref_type, ref_protected, event_name, runner_environment, repository_visibility), then mints a ghact-<run_id>-<random> key in cliproxy via the management API (GET-modify-write + read-back, single-flight lock) and returns an OpenCode auth.json payload. The durable cliproxy management key stays inside the broker boundary.
  • Revocation is sweeper-only — there is no run-end revoke endpoint. A TTL sweep (60s tick) revokes live entries past their 30-minute expiresAt; a reconcile sweep (5 min tick) lists cliproxy api-keys and deletes any ghact--prefixed key not in the live set (recovers from a broker restart). Reconcile never touches non-ghact- keys.
  • Startup gate: on boot the broker runs a reconcile sweep before accepting /v1/mint; /healthz serves during startup but /v1/mint returns 503 until the startup reconcile completes, bounding the stale-key window after a restart.
  • Broker→cliproxy is public-internet — the broker runs on its own droplet (not co-located with cliproxy) and reaches cliproxy via https://cliproxy.fro.bot. The DO NAT-loopback hairpin concern does not apply (that only affects same-host container-to-container calls).
  • Bundle-based deploy: bun build src/main.ts --target bun --outfile dist/main.js produces a self-contained ~300KB bundle (jose inlined via Web Crypto) that is mounted read-only into the oven/bun:1.3.14-alpine container. dist/main.js is gitignored — a deploy-time artifact, never committed. No source bind-mount, no node_modules on the droplet.
  • Deploy flow: preflight (GET cliproxy /v0/management/api-keys with the management key; abort on 401/403 key drift or network failure before any compose change) → build → SCP compose + Caddyfile + bundle to /opt/broker/ → write .env via SSH stdin → docker compose pull && up -d --wait --wait-timeout 90 → GET https://<BROKER_HOST>/healthz. All SSH calls share one ControlPath socket (avoids UFW rate-limit at 6 conns/30s).
  • Caddyfile exposes /v1/mint and /healthz only — all other paths 404. No public surface beyond mint + health.
  • Audit events are structured JSON lines to stdout (type: broker-audit): decisions mint / deny / deny-ratelimit / revoke / error, carrying srcIp, runId, jti, repositoryId, workflowRef — never token bytes, minted key value, OIDC bearer, or management key. Authorization header always redacted before logging.
  • Host validation: validateBrokerHost rejects --prefixed / out-of-alphabet values before any SSH argv — same pattern as validateGatewayHost/validateVpnHost.
  • Security property delivered: short-lived + revocable + off-runner. cliproxy has no per-key capability surface, so a minted key is fungible with the durable key for its TTL — in-run abuse during the TTL window is a documented non-goal (Pattern B / egress containment deferred). Never scale the broker horizontally: the single-flight lock is valid only because there is exactly one instance.
  • Cross-repo dependency: BROKER_TRUST_POLICY in apps/broker/src/policy.ts ships with placeholder repository_id/repository_owner_id/workflow_ref values that must be replaced with real fro-bot/agent numeric IDs before deploy (tracked in fro-bot/agent#1060). The consuming-side integration (OIDC token request, broker call, auth.json injection) lands in fro-bot—agent.

Agent S3 Storage Provisioner (apps/agent)

AWS S3 durable-storage provisioner for fro-bot/agent session state, added 2026-08-16 (HEAD d276d93). Private package @marcusrbrown/infra-agent — an operator-run AWS provisioner, not a deployed service: it has a provision script (bun run provision:agent) but no deploy script and no deploy-agent.yaml workflow. Its job is to stand up the durable-storage substrate so fro-bot/agent runs can persist OpenCode session state to S3 via native GitHub OIDC → AWS STS, with no static AWS credential ever written to a consumer repository. This is the storage half of the harness pipeline, complementing the fro-bot—agent credential half served by apps/broker. It is the second AWS-backed component (after the VPN Lightsail box) but the first to touch S3 + IAM.

  • What it provisions: a dedicated S3 bucket (separate from the gateway bucket), the account-level token.actions.githubusercontent.com OIDC provider (append-only — adds the sts.amazonaws.com audience without recreating or changing existing thumbprints/audiences), and one least-privilege IAM role + inline policy per consumer repository. Each repo gets a prefix-scoped policy: the session prefix carries an explicit delete deny, and the coordination lock is a separate exact object ARN (.../coordination/OWNER/REPO/locks/repo.json).
  • Fail-closed key layout: src/key-layout.ts version-pins the S3 session + coordination-lock paths against a KEY_LAYOUT_VERSION (currently fro-bot/agent@v0.96.0). Unknown or unverified action refs are refused rather than widening IAM access — the provisioner will not admit a layout it cannot verify.
  • Dedicated provisioning credentials: accepts AGENT_AWS_ACCESS_KEY_ID/AGENT_AWS_SECRET_ACCESS_KEY (+ optional AGENT_AWS_SESSION_TOKEN) and deliberately ignores ambient AWS_ACCESS_KEY_ID/AWS_SECRET_ACCESS_KEY — the same operator-local-only credential discipline as the VPN box. These values must never be copied into a GitHub Environment or committed.
  • Convergence + readback + handoff manifest: server/provision.ts discovers-or-creates each resource, applies the managed S3 controls, then readback-verifies. Managed drift is reported and halts by default; --force proceeds only after review, but foreign/shared-resource drift is a hard stop even with --force. On success it emits a single compact JSON handoff manifest (bucket, region, expected owner, s3_prefix, session_prefix, lock_key, role_name/role_arn, policy_name, key_layout_version, oidc_provider_arn) — identifiers and resource names only, never credential bytes.
  • CLI wiring (agent command group): agent storage --repo OWNER/REPO --manifest handoff.json verifies live repository identity, the provisioned IAM role + S3 bucket, the repo OIDC subject, and the effective workflow/environment contract, then writes only the five non-secret FRO_BOT_S3_* repository variables (FRO_BOT_S3_ROLE_TO_ASSUME, FRO_BOT_S3_BUCKET, FRO_BOT_S3_REGION, FRO_BOT_S3_PREFIX, FRO_BOT_S3_EXPECTED_BUCKET_OWNER). A failed workflow check emits a pasteable diff and never edits the consumer workflow. A teardown command removes those variables and invokes the repository-scoped resource teardown.
  • Environment gating (documented invariant): content-triggered jobs must not reach the storage job — only the protected fro-bot-storage environment on scheduled or main-branch dispatched runs may receive id-token: write.

CLI (packages/cli)

Published as @marcusrbrown/infra on npm. Built with goke (CLI framework) + Zod Standard Schemas. Key commands:

CommandPurpose
infra statusParallel health checks for all deployments (--json for machine output)
infra keeweb statusHTTP reachability, last deploy timestamp, SHA-256 content hash
infra keeweb deployTrigger deployment (remote via GitHub Actions or --local via SSH)
infra keeweb openOpen KeeWeb in browser (fire-and-forget)
infra cliproxy statusHTTP reachability, version, usage stats
infra cliproxy deployTrigger CLIProxyAPI deployment
infra cliproxy configRead/update runtime config via management API
infra cliproxy keysManage proxy API keys for Fro Bot repos
infra cliproxy loginOAuth authentication with Claude subscription (SSH + TTY)
infra cliproxy setupInteractive onboarding wizard for connecting a repo to CLIProxyAPI
infra cliproxy openLaunch CLIProxyAPI terminal dashboard via SSH
infra gateway statusSSH + docker compose ps (NDJSON parsed, #278) — service states, healthchecks
infra gateway deployTrigger gateway deploy workflow (remote, default) or --local (requires SSH_AUTH_SOCK)
infra gateway logs <svc> [--tail N]Stream docker compose logs for gateway/workspace/mitmproxy; --allow-ci required in headless contexts
infra gateway backup --include-caPull mitmproxy CA tarball; local file created with mode 0600 via O_EXCL|O_CREAT (no chmod race)
infra gateway restore --input FILE --include-caValidate tarball locally, upload to unguessable mktemp path, extract, restart, byte-equal confirm
infra umami statusHTTP reachability check for metrics.fro.bot
infra umami deployTrigger Umami deployment (remote via GitHub Actions or --local via SSH)
infra umami hostDisplay/validate the Umami droplet host
infra umami logs [--tail N]Stream docker compose logs for umami/db/caddy services
infra dashboard statusSSH + docker compose ps — service states (MCP-exposed; dashboard row in infra status)
infra dashboard deployTrigger dashboard deploy (remote via GitHub Actions or --local via SSH)
infra dashboard logs [service] [--tail N]Stream dashboard/caddy container logs
infra vpn statusSSH + wg show wg0 — interface state, server pubkey, peer count (MCP-exposed, read-only)
infra vpn deployTrigger VPN deploy (remote or --local; --force-server-key rotates server key)
infra vpn logs [--tail N]Stream journalctl -u wg-quick@wg0
infra vpn client add|list|remove <name>Manage peers — generate keypair, assign tunnel IP, write .conf, redeploy (CLI-only, sensitive)
infra broker statusGET /healthz on broker.fro.bot — HTTP reachability (MCP-exposed, read-only)
infra broker deployTrigger Deploy Broker workflow (remote, default) or --local (runs apps/broker/src/deploy.ts)
infra broker logs [--tail N] [--service broker]Stream broker service logs over SSH; may contain run identities (CLI-only)
infra agent setupModel-credential onboarding for a consumer repo (absorbs the former cliproxy setup; same --repo/--harness/--key/--providers/--model/--force/--dry-run/--verify-smoke/--ack-key-reuse options). Does not create AWS resources or modify the consumer workflow
infra agent storage --repo OWNER/REPO --manifest FILEVerify provisioned IAM role/S3 bucket/OIDC subject/workflow contract, then write the 5 non-secret FRO_BOT_S3_* repo variables (AWS readback needs AGENT_AWS_*; ambient AWS_* ignored)
infra agent storage teardownRemove the 5 FRO_BOT_S3_* variables + tear down repository-scoped AWS resources
infra mcpStart stdio MCP server exposing all CLI commands as tools (read-only allowlist)

The MCP bridge (infra mcp) lets coding agents (Fro Bot, Copilot) call commands programmatically via the Model Context Protocol.

MCP Permission Backstop (opencode.jsonc)

Observed post-2026-07-01: a root opencode.jsonc wires two local MCP servers and a defense-in-depth permission block for agents driving this repo:

  • infra MCP server — bun run packages/cli/src/cli.ts mcp, enabled by default. Secrets are inherited from the subprocess env (Bun auto-loads repo-root .env locally; CI/harness inherits parent env) — no secret values live in the config file.
  • discord MCP server — saseq/discord-mcp:1.0.0 (a Spring Boot/JVM image) run via docker run, disabled by default. Notable operational details baked into the config as comments: the JVM cold start (~30s) forces timeout: 60000 to beat opencode’s default 30s connect timeout; secrets are sourced by a shell wrapper (set -a; . ./.env) that forwards only DISCORD_TOKEN/DISCORD_GUILD_ID via -e because opencode’s {env:VAR} interpolation doesn’t carry repo-root .env and Docker’s --env-file chokes on the multi-line VPN PEM.
  • Two-layer tool gating. The primary gate is the CLI’s MCP_ALLOWLIST in packages/cli/src/commands/mcp.ts — sensitive commands are simply never registered as MCP tools. The permission block in opencode.jsonc is a secondary backstop: even if the allowlist were mistakenly re-expanded, opencode’s native permission check denys the 6 infra mutating/sensitive tools (cliproxy keys add/remove, cliproxy config get/set, gateway backup) plus VPN (vpn deploy/logs/client add|list|remove) and broker (broker deploy/logs) tool ids. Tool ids use opencode’s <server>_<tool> form (infra_cliproxy_keys_add, etc.) — not the mcp_Infra_* alias the Anthropic-auth plugin surfaces. Both layers are asserted by packages/cli/src/conventions.test.ts.
  • Discord tool policy — baseline discord_*: ask (every Discord tool prompts, nothing auto-runs), with explicit deny on ~19 irreversible actions (member ban/kick/timeout/move, channel/category/message/role/webhook/emoji/invite/event deletions). opencode resolves the last matching rule, so the wildcard baseline is listed first and the explicit denies win.

Vendored Upstream Sources (.slim/clonedeps.json)

The .slim/clonedeps.json manifest pins upstream repositories cloned for local inspection (not runtime deps). As of the manifest’s 2026-06-02 timestamp it vendors opencode (anomalyco/opencode @ v1.15.13) into .slim/clonedeps/repos/anomalyco__opencode, with a stated reason: inspecting opencode’s MCP tool registration + permission enforcement to correctly gate sensitive infra MCP tools — because empirically both tools:false and permission:deny had failed to fully suppress them. This is the source-of-truth for the opencode.jsonc two-layer gating design above.

CI/CD Pipeline

Workflows

WorkflowFileTriggerPurpose
CIci.yamlPR to main, dispatchLint + type check + test (parallel jobs)
Deploydeploy.yamlDispatch onlyThin orchestrator — calls all per-app deploy workflows via workflow_call
Deploy KeeWebdeploy-keeweb.yamlPush to main, dispatch, workflow_callBuild and deploy KeeWeb (path-filtered, keeweb environment)
Deploy CLIProxydeploy-cliproxy.yamlPush to main, dispatch, workflow_callDeploy CLIProxyAPI (path-filtered, cliproxy environment)
Deploy Gatewaydeploy-gateway.yamlPush to main, dispatch, workflow_callDeploy Fro Bot gateway stack (path-filtered, gateway environment). Three jobs as of 2026-09-22: build-images (packages: write; checks out fro-bot/agent at the upstream.json ref, builds deploy/{gateway,workspace}.Dockerfile, pushes ghcr.io/marcusrbrown/infra-{gateway,workspace}:${ref}-${sha}, reproducible via SOURCE_DATE_EPOCH: '0' + rewrite-timestamp=true, BuildKit pinned moby/buildkit:v0.33.0) → scan-images (digest-pinned Trivy 0.74.0, continue-on-error: true + --exit-code 0 — report-only) → deploy-gateway (SSH pull by digest). See 2026-09-22 finding 2
Deploy Umamideploy-umami.yamlPush to main, dispatch, workflow_callDeploy Umami analytics stack (path-filtered, umami environment)
Deploy Dashboarddeploy-dashboard.yamlPush to main, dispatch, workflow_callDeploy Fro Bot dashboard stack (path-filtered, dashboard environment)
Deploy VPNdeploy-vpn.yamlPush to main, dispatch, workflow_callDeploy WireGuard VPN box (path-filtered, vpn environment)
Deploy Brokerdeploy-broker.yamlDispatch, workflow_callDeploy OIDC credential broker (path-filtered, broker environment)
Releaserelease.yamlPush to main, dispatchVersion and publish @marcusrbrown/infra via Changesets
Release Alertrelease-alert.yamlworkflow_run on Release (completed)Added 2026-09-06 survey window. Post-merge liveness alert: on a failed Release run, opens or comments on a marker-deduplicated (<!-- release-publish-failure:v1 -->) release-publish-failure issue. permissions: issues: write only; global concurrency: release-alert with cancel-in-progress: false serialises the read-modify-write. Gated on conclusion == 'failure' only — cancelled/timed-out Release runs are silent (see finding 5)
CLIProxy Auth Monitorcliproxy-auth-monitor.yamlSchedule (7,22,37,52 * * * * — every 15 min), dispatchProbe CLIProxy’s Anthropic auth health; on failure opens/updates a tracking issue + posts a Discord webhook. Dispatch supports live / synthetic-dead / synthetic-healthy validation modes (owner-only synthetics). Added 2026-08-16
Renovaterenovate.yamlSchedule, issue/PR edits, post-deployAutomated dependency updates
Renovate Changesetsrenovate-changesets.yamlpull_request_target (Renovate PRs)Auto-create changeset files for dependency updates
Fro Botfro-bot.yamlPRs, @mentions, daily schedule, dispatchAI code review and autohealing
Copilot Setup Stepscopilot-setup-steps.yamlDispatch, changes to workflow filePrepare environment for Copilot coding agent
Scorecardscorecard.yamlWeekly, push to mainOpenSSF security analysis
CodeQLcodeql.yamlPush to main, PR, weekly (Wed 05:30 UTC)CodeQL static analysis (javascript-typescript matrix); added post-2026-06-09
Prune Untagged Packagesprune-packages.yamlDispatch onlyAdded 2026-09-22 survey window (issue #1327). Runs packages/cli/scripts/prune-untagged-packages.ts against the fixed TARGET_PACKAGES set (infra-gateway, infra-workspace). apply input defaults to false (dry-run); six named fail-closed gates; coded body-free summaries; permissions: contents: read + packages: write; concurrency: prune-packages, cancel-in-progress: false. See 2026-09-22 finding 3 and invariant 15
Update Repo Settingsupdate-repo-settings.yamlEvery push to main, daily 02 18 cron, dispatchCalls bfra-me/.github/.github/workflows/update-repo-settings.yaml@v4.31.0 to sync repo settings from .github/settings.yml (_extends: .github:common-settings.yaml). Also reconciles issue labels against the 48-label manifest — the mechanism that strips autoheal-report from the daily report issue hours after the reconciler applies it (2026-09-22 finding 1)

CI Jobs (ci.yaml)

Four parallel jobs with a summary gate (updated 2026-09-06):

  1. Lint — ESLint + Prettier formatting check (Node 24 pinned for ES2024 API compat)
  2. Type Check — bunx tsc --noEmit (Node 24 pinned)
  3. Test — bun test --recursive
  4. Package smoke — build the CLI, bun pm pack, verify tarball contents, clean-room bun add into mktemp -d and exercise infra --help + infra gateway status (Bun pinned 1.4.0). See 2026-09-06 finding 6 for the full assertion set
  5. CI (gate) — needs: [lint, type-check, test, package-smoke], if: always(), fails when any needs.<job>.result != "success"

Supersedes the 2026-08-16 reading. That survey recorded “test failures do not block (test job not in needs).” As of the 2026-09-06 survey test is in needs and blocks, and the gate asserts on != "success" rather than == "failure", so cancelled and skipped jobs also fail the gate.

Deploy Pipeline (Split Architecture)

As of 2026-04-20 (#165), the deploy pipeline was split from a single deploy.yaml into dedicated per-app workflows. This ensures one app’s failure doesn’t block the other:

  • deploy-keeweb.yaml — keeweb environment, triggered on push-to-main (path-filtered), dispatch, or workflow_call. Builds dist, deploys content via SSH/rsync, optionally deploys nginx config if changed. Post-deploy health check: curl to https://kw.igg.ms/. Secret validation step rejects early if DEPLOY_SSH_KEY or DROPBOX_APP_SECRET are missing.
  • deploy-cliproxy.yaml — cliproxy environment, triggered on push-to-main (path-filtered), dispatch, or workflow_call. Deploys via bun run --cwd apps/cliproxy deploy. Post-deploy health check against management API (/v0/management/config with management key). Secret validation for CLIPROXY_SSH_KEY, CLIPROXY_MANAGEMENT_KEY, CLIPROXY_DOMAIN.
  • deploy.yaml — Now a thin orchestrator that detects changes with dorny/paths-filter (predicate-quantifier: every) and calls all seven per-app deploy workflows via workflow_call (keeweb, cliproxy, gateway, umami, vpn, dashboard, broker), passing secrets explicitly. Each is independently path-gated so one app’s failure cannot block the others. The broker leg passes broker_aud: ${{ vars.BROKER_AUD }} plus BROKER_SSH_KEY/BROKER_HOST and (optional) CLIPROXY_MANAGEMENT_KEY.

Both deploy workflows use dorny/paths-filter for change detection (native paths: breaks workflow_dispatch). Path filters exclude markdown, test, fixture, and snapshot files.

Release Pipeline (release.yaml)

Uses changesets/action for versioning and npm publishing. Git user configured via GitHub App token (APPLICATION_ID / APPLICATION_PRIVATE_KEY). Publishes to npm with provenance (publishConfig.provenance: true).

Branch Protection

Required status checks on main: CI, Fro Bot, Lint, Type Check, Renovate / Renovate. Linear history enforced, admin enforcement enabled, no required PR reviews.

Developer Tooling

ToolConfigNotes
ESLinteslint.config.ts via @bfra.me/eslint-config 0.52.1Flat config; ignores .agents/, .opencode/, docs/, dist/. 0.51.1 → 0.52.1 by 2026-09-06
Prettier@bfra.me/prettier-config/120-proof ^0.16.0 (Prettier 3.8.3)120-char line width
TypeScripttsconfig.json via @bfra.me/tsconfig 0.13.1Target ESNext, Bundler resolution, Bun types, noEmit
Git hookssimple-git-hooks 2.13.1 + lint-staged 16.4.0eslint --fix on staged files
CLI frameworkgoke ^6.8.0 + Zod ^4.3.6Space-separated subcommands
Prompts@clack/prompts ^1.2.0Scoped to cliproxy setup wizard
Changesets@changesets/cli 3.0.1 + @svitejs/changesets-changelog-github-compact 1.2.0Versioning for @marcusrbrown/infra CLI package; crossed v2 → v3 major 2026-08-16 (#1106); 3.0.0 → 3.0.1 by 2026-09-06
RenovateExtends marcusrbrown/renovate-config#5.2.13 + group:allNonMajorv4→v5 crossed 2026-05-17 (#242); preset #5.2.6 → #5.2.12 → #5.2.13 by 2026-09-06. Post-upgrade: bun install --ignore-scripts + bun run fix (executionMode: 'branch'). Docker source/changelog URLs for CLIProxyAPI, Caddy, Umami, Postgres, ghcr.io/fro-bot/dashboard. bfra-me/.github digest updates disabled. Two custom managers (apps/*/upstream.json daemon pin; the renovate-changesets@x.y.z double-tag fix) and four allowedVersions ceilings — see 2026-09-06 findings 4 and 7
Probot SettingsExtends fro-bot/.github:common-settings.yamlRepository configuration sync; declares main required contexts [CI, Fro Bot, Lint, Type Check, Renovate / Renovate], strict: false, enforce_admins: true, required_linear_history: true, no required reviews
TypeScript runtimeTypeScript 6.0.3, ESLint 10.9.1ESLint 10.8.1 → 10.9.1 by 2026-09-06; Prettier steady 3.9.6, @bfra.me/prettier-config 0.16.9 → 0.16.11, @bfra.me/tsconfig 0.13.1 → 0.13.2, lint-staged 17.3.0 → 17.4.1, simple-git-hooks 2.13.1 → 2.14.0; new @types/bun 1.4.0 + jiti 2.7.0. TypeScript is Renovate-ceilinged at <7 pending typescript-eslint#10940
CLI buildpackages/cli/scripts/build.ts (bun run build, prepack)The published CLI is a build artifact — bin is ./dist/cli.js, files is ["dist", "src/commands/vpn/peers.ts"], and @marcusrbrown/infra-shared is inlined rather than shipped as a runtime dep. Verified by the Package smoke CI job
Patched depspatches/@changesets%2Fget-github-info@0.6.0.patch via Bun patchedDependenciesLocal patch applied to changesets GitHub-info resolver

Key Dependencies

PackageVersionPurpose
goke^6.8.0CLI framework (root + cli package)
@goke/mcp^0.0.10MCP bridge for exposing CLI as tools
zod^4.3.6Schema validation for CLI commands
@clack/prompts^1.2.0Interactive prompts for onboarding wizard
string-dedent^3.0.2Template literal dedent utility
typescript^6.0.0Type checking (dev)
eslint^10.0.0Linting (dev)

Fro Bot Integration

Fro Bot workflow is present (fro-bot.yaml, ~56 KB / 1076 lines). Uses fro-bot/agent@v0.114.0 (SHA b711f08e4049ff0add1ec06859743b2dcb7764ce) as of 2026-09-22 — both jobs pinned to the same SHA; prior surveys v0.109.3 (9d45b92, 2026-09-06), v0.99.0 (2167bb8, 2026-08-16), v0.90.0 (42db56d, 2026-07-15).

Post-agent deterministic gate (2026-09-22). The storage job’s final step, Reconcile daily autoheal reports, runs bun run packages/cli/scripts/reconcile-autoheal-reports.ts under if: steps.classify.outputs.mode == 'daily-equivalent', authenticated with FRO_BOT_PAT in step-local env and with all five AWS credential variables blanked so it cannot inherit the job’s STS session. Codified as ARCHITECTURE.md invariant 13. The prompt now forbids the agent from creating labels, posting supersession comments, closing reports, or proving final state — issue-identity mechanics moved out of the model entirely. See 2026-09-22 findings 1 and 7.

As of the 2026-09-06 survey the workflow is split into two jobs with disjoint capabilities — fro-bot-content (content-triggered, contents: read + pull-requests: read, no environment, no OIDC) and fro-bot-storage (schedule / main-branch dispatch only, fro-bot-storage environment, id-token: write, AWS STS, s3-backup: true, harden-runner egress block). The daily autoheal now runs exclusively in the privileged storage job; PR review runs unprivileged. See 2026-09-06 finding 1.

The workflow includes:

  • PR review with structured verdict format (PASS / CONDITIONAL / REJECT) and sections for blocking issues, non-blocking concerns, missing tests, and risk assessment
  • Daily autohealing schedule (single 30 3 UTC cron) now with 10 operational categories (up from 8): (1) errored PRs, (2) security, (3) code quality, (4) workflow integrity, (5) quality gates verification, (6) developer experience, (7) deploy pipeline health, (8) live site review (via agent-browser), (9) cross-project intelligence, (10) upstream modernization watch (Sunday-only). The prompt hard-codes a serial execution model (one mutation → clean tree → continue), a dedup pass, a scope cap (non-minimal/irreversible fixes get an issue, not an auto-heal), a Renovate-owns-versions boundary (dependency edits only for confirmed critical/high advisories), and a trusted-authors allowlist (renovate[bot], dependabot[bot], mrbro-bot[bot], fro-bot, owner/write-collaborators)
  • @mentions in comments by OWNER/MEMBER/COLLABORATOR
  • Custom dispatch prompts via workflow_dispatch
  • Concurrency per PR/issue/discussion, non-cancelling

Upstream Modernization Watch (Category 8)

Added 2026-04-25 (#182). Runs fully on Sundays UTC (and on manual dispatch with empty prompt); skipped on other days. Tracks release notes of pinned upstream dependencies for config or feature adoption opportunities:

  • eceasy/cli-proxy-api (upstream: router-for-me/CLIProxyAPI) — Claude-only filter; skips Codex, Gemini, OpenAI, Vertex, Antigravity, Kimi, Qwen, GPT-5.x changes
  • caddy (upstream: caddyserver/caddy)
  • fro-bot/agent
  • bfra-me/.github action set

Action policy: low-risk mechanical changes (docker-compose, app config, AGENTS.md) get a draft PR; workflow/build-config changes are documented in a tracking issue only. At most one draft PR per scan. Never bumps pinned versions — Renovate owns that.

The autohealing schedule monitors:

  • Cross-project config version drift across marcusrbrown/containers, marcusrbrown/sparkle, marcusrbrown/gpt, marcusrbrown/copiloting, marcusrbrown/renovate-config, marcusrbrown/.github
  • Live site health at kw.igg.ms via browser automation
  • CLIProxy health (added 2026-04-18, #155): cliproxy.fro.bot reachability (401/200 = up, 5xx = down), environment secrets, host keys, indirect OAuth token health (inferred from recent Fro Bot schedule run success/failure)
  • Deploy pipeline health for both apps via the split deploy-keeweb and deploy-cliproxy workflows
  • Security advisories, code quality, and convention compliance

Required Secrets

keeweb environment: DEPLOY_SSH_KEY, DROPBOX_APP_SECRET

cliproxy environment: CLIPROXY_SSH_KEY, CLIPROXY_MANAGEMENT_KEY, CLIPROXY_DOMAIN

gateway environment (updated 2026-06-09): Required: GATEWAY_SSH_KEY, DISCORD_TOKEN, DISCORD_APPLICATION_ID, DISCORD_GUILD_ID, AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY, S3_BUCKET, S3_REGION, GATEWAY_HOST, GH_APP_ID, GH_APP_PRIVATE_KEY, WORKSPACE_OPENCODE_TOKEN, WORKSPACE_OPENCODE_AUTH, WORKSPACE_OPENCODE_MODEL, WORKSPACE_OPENCODE_CONFIG, GATEWAY_TRIGGER_ROLE_ID. Optional: S3_ENDPOINT, OBJECT_STORE_HOSTS, AWS_SESSION_TOKEN, GATEWAY_WEBHOOK_SECRET, GATEWAY_PRESENCE_CHANNEL_ID.

umami environment (added post-2026-05-27): UMAMI_SSH_KEY, UMAMI_DOMAIN, UMAMI_APP_SECRET, UMAMI_DB_PASSWORD, UMAMI_ADMIN_PASSWORD

dashboard environment (added post-2026-06-09): DASHBOARD_SSH_KEY, DASHBOARD_DOMAIN, DASHBOARD_GITHUB_APP_ID, DASHBOARD_GITHUB_APP_KEY (PEM, file-mounted not env var), DASHBOARD_OAUTH_CLIENT_ID, DASHBOARD_OAUTH_CLIENT_SECRET, DASHBOARD_OPERATOR_LOGIN, DASHBOARD_COOKIE_KEY

vpn environment (added post-2026-06-09): Required: VPN_SSH_KEY, VPN_HOST (static IP). Optional: VPN_PEERS (peer roster JSON; empty roster valid). AWS provisioning credentials (AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY) are operator-local only — not in the vpn Environment and not used by deploy or status.

broker environment (added post-2026-06-19): Secrets: BROKER_SSH_KEY, BROKER_HOST (both required), CLIPROXY_MANAGEMENT_KEY (broker uses it to mint/revoke ghact- keys in cliproxy). Variable: BROKER_AUD — the broker-minted OIDC audience, set as a GitHub Environment variable (not a secret; it is a cross-context replay defense), flows at both provision time and deploy time. Environment gated with a required reviewer + main-only branch policy (pre-create before merge — auto-create is ungated). DIGITALOCEAN_ACCESS_TOKEN is repo-level.

fro-bot-storage environment (added 2026-08-16, apps/agent; consumer job observed live 2026-09-06): A protected GitHub Environment that gates id-token: write for the S3 storage job. Only scheduled or main-branch dispatched runs may reach it — content-triggered jobs are structurally excluded. Its protection is branch_policy only — it is the sole environment in the repo without required_reviewers (all seven deploy environments carry both), necessarily so because a daily cron cannot wait for approval. It also consumes five non-secret repository variables (FRO_BOT_S3_ROLE_TO_ASSUME, FRO_BOT_S3_BUCKET, FRO_BOT_S3_REGION, FRO_BOT_S3_PREFIX, FRO_BOT_S3_EXPECTED_BUCKET_OWNER), two of which are also interpolated into the harden-runner egress allowlist. The AWS provisioning credentials themselves (AGENT_AWS_ACCESS_KEY_ID/AGENT_AWS_SECRET_ACCESS_KEY/optional AGENT_AWS_SESSION_TOKEN) are operator-local only — never placed in this or any GitHub Environment. Consumer repos receive only the five non-secret FRO_BOT_S3_* variables.

Repository secrets: APPLICATION_ID, APPLICATION_PRIVATE_KEY, DIGITALOCEAN_ACCESS_TOKEN, FRO_BOT_PAT, NPM_TOKEN, OPENCODE_AUTH_JSON, OPENCODE_CONFIG, CLIPROXY_API_KEY, CLIPROXY_AUTH_MONITOR_DISCORD_WEBHOOK (the last two consumed by cliproxy-auth-monitor.yaml)

Repository variables: FRO_BOT_MODEL, plus the five non-secret FRO_BOT_S3_* variables written by infra agent storage (2026-08-16; consumed by the fro-bot-storage job and its egress allowlist as of 2026-09-06)

Architecture Invariants (ARCHITECTURE.md)

Observed 2026-09-22: ARCHITECTURE.md carries a numbered ## Invariants list of 15 entries, several enforced by packages/cli/src/conventions.test.ts. Condensed:

#Invariant
1apps/ are deployable units, packages/ are reusable libraries; packages/ never imports from apps/; apps/agent is the sole non-deployable exception
2Exactly two approved Bash scripts: apps/keeweb/deploy.sh and apps/umami/retention.sh (the narrow host-native systemd/Docker exception); allowlist enforced in tests
3Never pass secret bytes via argv — SSH stdin (writeRemoteFile) only; --body <value> banned
4Host validation before SSH (host.ts rejects --prefixed and invalid values)
5Actions SHA-pinned with # vX.Y.Z (or # name@X.Y.Z for a scoped release tag); .yaml not .yml
6No as any / @ts-ignore / @ts-expect-error; no TS files excluded from type checking
7Tracked files never contain secret values
8Deploy workflows use dorny/paths-filter with predicate-quantifier: every so ! negations work
9Never ssh-keyscan in CI — host keys pinned in .github/known_hosts
10MCP exposes read commands only (MCP_ALLOWLIST); mutating commands are source-gated out
11Reusable-workflow permissions must match caller grants. A callee cannot request a scope its caller does not grant; job-level permissions: replaces the workflow-level block, so callers must restate contents: read alongside added scopes — otherwise GitHub rejects the run at startup with zero jobs created
12Workflow-internal scripts stay outside the published surface (reconcile-autoheal-reports.ts, prune-untagged-packages.ts are repo-local only)
13Autoheal reconciliation is identity-anchored and fail-closed — exact title/date + numeric fro-bot actor + line-1 managed marker; excludes PR-shaped records; fully paginates; re-reads every target by numeric ID immediately before writing; aborts on any ambiguity, candidate-cap overflow, incomplete pagination, or failed readback; never creates or rewrites report prose
14Never read a coarse exit code or HTTP status as proof of a specific remote state — a probe that cannot confidently distinguish its target states must throw, not fall back to the branch that looks safe (six enumerated call sites across five apps)
15Destructive registry automation is dry-run by default, manually dispatched, gated per target, and never degrades an inconclusive probe into “safe to delete”

Conventions

  • Package manager: Bun only (never npm/pnpm/yarn). CI installs with --frozen-lockfile --ignore-scripts.
  • TypeScript strict mode: No any, @ts-ignore, @ts-expect-error.
  • Only bash script: apps/keeweb/deploy.sh. All other scripts are TypeScript run via bun run.
  • YAML extension: .yaml (not .yml) for GitHub Actions workflows.
  • Action pinning: SHA-pinned with # vX.Y.Z version comment.
  • Cross-org workflows: Never secrets: inherit with bfra-me/.github.
  • Tests: Colocated *.test.ts alongside source. Fixtures in __fixtures__/, snapshots in __snapshots__/. NO_COLOR=1 for deterministic subprocess output. Mock at boundaries (fetch, Bun.spawn).
  • CI Node pin: Workflows running bun run lint or bunx tsc must pin Node 24 via actions/setup-node (ESLint shebang uses system Node; ubuntu-latest ships Node 20 without ES2024 APIs).
  • Lockfile: bun.lock (text format) committed; bun.lockb (binary) is not used.
  • Config safety: config/config.json template has empty dropboxSecret; real value injected at build time. Never overwrite config.yaml on cliproxy server (runtime API keys live there).
  • Host keys: Pinned in .github/known_hosts. Never use ssh-keyscan in CI. Provisioning scripts may use it locally via the shared pinHostKeys helper in packages/shared/server/droplet-helpers.ts.
  • Gateway secrets: Never pass gateway secret bytes via argv — writeRemoteFile pipes through SSH stdin only; --body <value> patterns are banned.
  • Gateway host validation: Never skip validateGatewayHost — required before any SSH invocation against the gateway droplet.
  • CA rotation: Never restart the gateway in-place to rotate the mitmproxy CA — workspaces lose trust in the egress proxy. Restore from backup instead.
  • Dashboard GitHub App key: File-mounted only — never an env var. Never docker compose down -v (destroys caddy_data TLS volume); never --build (the deploy pulls the digest-pinned ghcr.io/fro-bot/dashboard image, no on-droplet builds).
  • VPN host validation: Never skip validateVpnHost. Never read the server private key locally — deploy reads back only server.pub. AWS credentials are provisioning-only; deploy and status are SSH-only.
  • VPN server key: Reprovisioning a fresh disk destroys the server key and breaks all clients — follow the recovery paths in apps/vpn/AGENTS.md.
  • Broker key material: Never log the OIDC bearer, minted key, management key, or raw claims; the Authorization header is redacted before any logging. Never full-array PUT against cliproxy api-keys (GET → append → PUT → read-back assert; a wholesale replace drops other consumers’ keys). Never retry on management-API HTTP error (cliproxy IP-bans after ~5 bad-key attempts, ~30 min). The sweeper/reconcile only delete ghact--prefixed keys — never durable or other consumers’ keys. Never skip validateBrokerHost; never pass broker secret bytes via argv (SSH stdin only); never scale the broker horizontally (single-flight lock assumes exactly one instance).
  • bundledDependencies: Banned (enforced). Bun’s .bun/ symlink layout creates ../../ paths that npm rejects with E415.

Cross-Repository Patterns

Shared ecosystem with marcusrbrown—ha-config:

  • Both extend fro-bot/.github:common-settings.yaml for Probot repo settings
  • Both use Renovate extending marcusrbrown—renovate-config (infra at #5.2.3 as of 2026-06-19; ha-config tracks the same preset family)
  • Both use @bfra.me/* shared configs (eslint-config, prettier-config, tsconfig)
  • Both use SHA-pinned GitHub Actions with version comments
  • Both use reusable workflows from bfra-me/.github
  • infra has a Fro Bot agent workflow; ha-config does not (follow-up PR recommended there)
  • infra uses Bun as runtime; ha-config uses Python/YAML tooling
  • infra uses Changesets for npm versioning; ha-config has no publishable packages

Convention Enforcement

As of 2026-04-21, structural conventions from root AGENTS.md are mechanically gated pre-merge:

  • packages/cli/src/conventions.test.ts (#161) — Bun tests that assert AGENTS.md rules at CI time. Rules marked (enforced) in AGENTS.md are the mechanically checked set.
  • (enforced) marker drift detection (#167) — Tests detect when (enforced) markers in AGENTS.md drift from the actual test assertions, and when per-app AGENTS.md files diverge from their directory structure.
  • Enforced rules include: only deploy.sh is bash, .yaml not .yml for workflows, SHA-pinned actions with version comments, no secrets: inherit with cross-org workflows, no bundledDependencies, no any/@ts-ignore/@ts-expect-error, no secret values in tracked config files, no ssh-keyscan in CI workflows.

This approach avoids relying solely on human review or agent-driven linting for structural invariants — the CI gate rejects violations before merge.

Notable Patterns

  • MCP bridge: The CLI exposes all commands as MCP tools (infra mcp), letting coding agents call deploy/status/config commands programmatically. This is the mechanism by which Fro Bot agents interact with infrastructure.
  • CLIProxyAPI as shared Claude proxy: A single Claude Code OAuth subscription is shared across Fro Bot agents in multiple repos via per-repo API keys managed through infra cliproxy keys.
  • Download-based build: KeeWeb is built from a release archive rather than source (2017-era upstream tooling makes source build infeasible). SHA-256 verification ensures integrity.
  • Scoped deploy user: deploy-kw on the target server has write access to the site directory only, with sudo for a single activation script. Minimal privilege surface.
  • Compound learning: docs/solutions/ contains solved-problem documentation with YAML frontmatter, following the compound knowledge pattern.
  • Agent skills: .agents/skills/goke/SKILL.md provides domain context for the goke CLI framework.
  • Split deploy pipeline: Seven of the eight apps deploy independently via dedicated path-gated workflows (keeweb, cliproxy, gateway, umami, dashboard, vpn, broker), preventing cascading failures. A thin deploy.yaml orchestrator exists for manual dispatch of all simultaneously. The eighth app, apps/agent, is not in the deploy fan-out — it is an operator-run provisioner (provision:agent), not a deployed service, so it has no deploy-agent.yaml.
  • OIDC credential broker (off-runner keys): The broker exchanges a GitHub Actions OIDC token for a short-lived, revocable cliproxy key so the durable provider key never touches a CI runner. Revocation is sweeper-only (TTL + reconcile) — no run-end revoke endpoint — with a startup reconcile gate that blocks /v1/mint until stale ghact- keys are cleared. This is the ecosystem moving from static per-repo cliproxy keys toward per-run minted credentials, with the consuming half landing in fro-bot—agent.
  • OIDC → STS durable-storage provisioner (no static AWS creds in repos): apps/agent provisions per-repo S3 session storage for fro-bot/agent using native GitHub OIDC → AWS STS. Each consumer repo gets its own least-privilege IAM role + prefix-scoped inline policy (session prefix has an explicit delete-deny; the coordination lock is a separate exact object ARN), and the CLI writes only five non-secret FRO_BOT_S3_* repo variables — never a static AWS credential. The account-level OIDC provider is touched append-only (adds the sts.amazonaws.com audience without disturbing existing thumbprints/audiences). A version-pinned key layout fails closed on unknown action refs rather than widening IAM access. This is the storage counterpart to the broker’s credential half — both push per-run, capability-scoped access instead of durable secrets on runners. Distinct from the VPN box in that provisioning credentials (AGENT_AWS_*) explicitly shadow-and-ignore ambient AWS_*.
  • Out-of-band health monitor with synthetic self-test: cliproxy-auth-monitor.yaml probes CLIProxy’s upstream Anthropic auth every 15 minutes on its own cadence (independent of the daily Fro Bot autoheal), escalating failures to a tracking issue + a Discord webhook. Dispatch exposes owner-only synthetic-dead/synthetic-healthy validation modes so the alerting path itself can be exercised without waiting for a real outage — the monitor can prove it still fires.
  • Digest-pinned upstream image consumption: The dashboard app consumes the upstream-built ghcr.io/fro-bot/dashboard image by tag + digest and verifies the running container’s RepoDigests against the pin before serving — a no-build deploy that keeps the build surface in fro-bot—dashboard.
  • Multi-cloud: Most apps run on DigitalOcean droplets, but the VPN egress box runs on AWS Lightsail (eu-west-1) — the first AWS-backed deployable, provisioned via the AWS SDK with credentials kept operator-local (deploy/status remain SSH-only).
  • One workflow, two capability tiers (2026-09-06): fro-bot.yaml splits into fro-bot-content and fro-bot-storage so that the agent’s privileged run (OIDC → STS, S3 session persistence, egress-blocked runner) is reachable only from schedule or a main-branch dispatch, while every content-triggered path runs with read-only permissions and no environment. The privileged job is the mutating autoheal; the attacker-reachable job is the read-only reviewer. Fork-PR head resolution is server-verified in a dedicated step rather than trusted from the event payload, closing the issue_comment-on-fork-PR gap where the job-level fork guard does not apply.
  • The publish contract asserted before the merge, and alerted after it (2026-09-06): ci.yaml’s Package smoke job packs the CLI tarball and clean-room-installs it as a required check — catching a broken files field, a leaked workspace: specifier, or a missing runtime asset at PR time rather than at publish time — while release-alert.yaml covers the post-merge half that no merge gate can observe. Both halves are needed because a merge gate can only see jobs that run before the merge. The caveat is recorded in finding 5: the post-merge half currently only fires on failure.
  • Build in CI, pull on the host (2026-09-22): the gateway’s droplet-side git clone+build was replaced by a build-images → scan-images → deploy-gateway pipeline pushing ghcr.io/marcusrbrown/infra-{gateway,workspace} and injecting the digests into the deploy. Reproducibility is engineered, not assumed — a fixed SOURCE_DATE_EPOCH: '0' (commit-derived values destroy cache hits) paired with rewrite-timestamp=true on the registry exporter, because the env var alone does not reach layer tar-entry timestamps — and the builder itself is pinned (moby/buildkit:v0.33.0) on the stated grounds that the runner’s preinstalled buildx is otherwise an uncontrolled input. The scan half is report-only (continue-on-error: true and --exit-code 0), so the deploy’s needs: [build-images, scan-images] edge reads as a gate and cannot act as one.
  • Destructive automation defaults to observation (2026-09-22): both new destructive paths — prune-untagged-packages.ts (GHCR version deletion) and apps/umami/retention.sh (row deletion) — default to counting and require an explicit --apply, with the non-destructive mode as the default argument value, not a documented convention. The pruner adds six named gates, coded body-free abort summaries, an origin check on every pagination link, and deletion in ascending-id order so the sequence is auditable against the run log.
  • Evidence as a cross-repo artifact (2026-07-31, observed 2026-09-22): apps/umami/evidence/retention/ holds version-controlled attestations pinned to an infra commit, image digests, installed-unit SHA-256s, and the consuming repo’s plan revision — built specifically to satisfy marcusrbrown—marcusrbrown-github-io’s Go/No-Go matrix. Its credibility comes from naming its own unverified edges (GO (operator override), timer catch-up edge unobserved, no daily automated backup) rather than reporting uniform PASS.
  • Two-layer MCP tool gating with vendored-source provenance: Sensitive infra commands are gated twice — an MCP_ALLOWLIST that never registers them as tools (primary), and an opencode.jsonc permission: deny backstop (secondary). Both layers are asserted by conventions.test.ts. The design is grounded in a vendored upstream clone (.slim/clonedeps.json pinning anomalyco/opencode@v1.15.13) because empirically neither tools:false nor permission:deny alone fully suppressed the tools — reading the upstream registration/permission code was the way to get the gating right. Vendoring the exact upstream you must reason about, rather than trusting docs, is the pattern.

Infrastructure Components

CLIProxyAPI Stack

ComponentImageVersion
Caddy reverse proxycaddy:2.11.4-alpineDigest-pinned (5f5c8640…, shared across cliproxy/umami/dashboard/broker). Renovate-ceilinged at <2.12.0 pending a manual linux/amd64 manifest verification (last done 2026-07-13)
CLIProxyAPIeceasy/cli-proxy-api:v7.3.12Digest-pinned (cba3af35…, 2026-09-22; up from v7.2.152 → v7.2.133 → v7.2.77)

Both images are digest-pinned in docker-compose.yaml. Renovate manages digest rotations with changelog context sourced from upstream repositories (router-for-me/CLIProxyAPI, caddyserver/caddy).

Version note: CLIProxyAPI crossed v6→v7 major boundary between 2026-05-27 and 2026-06-09. As of 2026-08-16 the deployment is v7.2.133 (up from v7.2.77 at the prior survey). Caddy steady at 2.11.4-alpine (digest 5f5c8640…, shared across cliproxy/umami/dashboard/broker).

Healthcheck change: As of #469 (2026-06-09), the deploy healthcheck was moved from the CLIProxyAPI endpoint to the Caddy endpoint for Debian-image compatibility. The docker-compose healthcheck itself (wget --spider http://localhost:8317/healthz) is unchanged.

Umami Stack

ComponentImageVersion
Caddy reverse proxycaddy:2.11.4-alpineDigest-pinned (shared digest with cliproxy)
Umami analyticsumamisoftware/umami:3.4.0Digest-pinned (89b79efa…, 2026-09-22; up from 3.3.1 → 3.3.0 → 3.2.0)
Postgrespostgres:15-alpineDigest-pinned (fe0737ba…, rotated by 2026-09-22). Renovate-ceilinged at <16 with dependencyDashboardApproval — PG18 refuses to start against a PG15 data directory and the password is baked into the named volume; the cutover runbook is docs/plans/2026-06-01-001-feat-umami-postgres-major-upgrade-plan.md (unexecuted as of 2026-09-06)

Digest-pinned images managed by Renovate. Postgres port 5432 is never published to the host — DB is only accessible on the internal compose network.

Fro Bot Dashboard Stack

ComponentImageVersion
Caddy reverse proxycaddy:2.11.4-alpineDigest-pinned (shared digest with cliproxy/umami/broker)
Dashboardghcr.io/fro-bot/dashboard:2026.09.19Tag + digest-pinned (fe177d57…, 2026-09-22; up from 2026.09.5 → 2026.08.17 → 2026.07.21). Renovate rule requires dependencyDashboardApproval before a bump PR is even created, matching the cliproxy/umami gating pattern

The dashboard image is built upstream in fro-bot—dashboard and consumed here by digest — no on-droplet build. Deploy verifies the running container’s RepoDigests matches the compose-pinned digest before fronting it with Caddy.

Fro Bot Gateway Stack

ComponentSourceNotes
Gateway daemonghcr.io/marcusrbrown/infra-gateway:<ref>-<sha> built in CI from fro-bot/agent@v0.113.2 (pinned in apps/gateway/upstream.json)Changed 2026-09-22: built and pushed by the build-images job, pulled by digest on the droplet. The droplet no longer clones or builds
Workspace executorghcr.io/marcusrbrown/infra-workspace:<ref>-<sha>, same sourceRuns inside the same Compose stack; digest injected as WORKSPACE_IMAGE_DIGEST
mitmproxyPer upstream composeStarts first; certificate in mitmproxy-certs named volume

Build-then-pull (2026-09-22). apps/gateway/README.md: “The deploy builds Docker images in CI and pushes them to GHCR; the droplet only pulls prebuilt artifacts — it never builds images.” GATEWAY_IMAGE_DIGEST / WORKSPACE_IMAGE_DIGEST are CI-injected from the build-images job outputs. Operational anti-pattern now stated in the README: “Never run docker compose up --build on the droplet.” The old git clone || git fetch && git reset --hard && git clean -xfd materialization described below is superseded for image content; the /opt/gateway/.secrets-checksum isolation rationale no longer applies to a clean step that no longer exists.

Upstream pin note (2026-09-06, updated 2026-09-22). The upstream.json pin moved v0.93.1 → v0.113.2 and the Renovate ceiling moved <0.94.0 → <0.114.0 — the first ceiling in this repo observed to be lifted by an executed verification pass. The fro-bot.yaml action pin is v0.114.0, so the two-pin gap is now one minor series rather than ~16; the structure that produces the gap is unchanged (the action SHA is tracked by the github-actions manager, which carries no ceiling; the daemon ref is tracked by a github-releases custom manager, which does). The rule’s comment now records the executed check: “v0.113.2 verified the gateway startup config parser byte-identical to v0.93.1, so no new boot-required secrets; v0.114+ stays gated pending the next verification pass.”

The 2026-09-06 text below describes the state at that survey, and is retained because it explains the mechanism:

The 2026-08-16 page attributed this to the two being “versioned independently,” which understated it. The real cause is an explicit Renovate policy in .github/renovate.json5:

matchDatasources: ['github-releases'],
matchPackageNames: ['fro-bot/agent'],
groupName: null,          // each bump = a gateway daemon rebuild + redeploy
automerge: false,
dependencyDashboardApproval: true,
allowedVersions: '<0.94.0',

with the comment: “verify no new boot-required secrets before the ceiling moves; v0.93.1 verified deploy-consumed contract identical to v0.88.0, so patch releases in the v0.93.x line may surface but v0.94+ stays gated pending the next verification pass.” A github-releases custom manager tracks the repo/ref pair in any apps/*/upstream.json, so the pin is watched — the ceiling is what holds it. The verification pass that would lift it has no scheduled owner (see 2026-09-06 finding 4).

Compose stack lives at /opt/gateway/ on the droplet. Source materialization was git clone || git fetch && git reset --hard && git clean -xfd to the pinned SHA, isolated from /opt/gateway/.secrets-checksum so the checksum survived git clean -xfd — superseded 2026-09-22 by the build-then-pull pipeline.

Operator surface (new 2026-09-22). deploy-gateway.yaml’s secret contract grew a GATEWAY_OPERATOR_* family — BIND_HOST, BIND_PORT, PUBLIC_ORIGIN, GITHUB_CLIENT_ID/CLIENT_SECRET, CSRF_SECRET, ALLOWLIST, OAUTH_ALLOWED_RETURN_PATHS, OAUTH_STATE_TTL_MS, OAUTH_MAX_OUTSTANDING_ATTEMPTS, PUSH_VAPID_PRIVATE_KEY — all optional, indicating an upstream-side authenticated operator console with GitHub OAuth, CSRF protection, an allowlist, bounded outstanding-attempt state, and Web Push. Also new: optional GATEWAY_VPC_IP and DASHBOARD_VPC_IP, suggesting private-network addressing between the gateway and dashboard droplets rather than public hairpin. Both surfaces live in fro-bot—agent; only their secret contract is observable here. Open issue #1386 (marcusrbrown, technical-debt) asks how dashboard public routes survive the Caddy catch-all, which is the consuming half of the same change.

Credential Broker Stack

ComponentImageNotes
Caddy reverse proxycaddy:2.11.4-alpineDigest-pinned (shared digest with cliproxy/umami/dashboard); exposes /v1/mint + /healthz only
Broker serviceoven/bun:1.4.2-alpineDigest-pinned (2026-09-06; up from 1.3.14-alpine); runs bun main.js against a read-only-mounted pre-built bundle on :3000 (internal only)

Compose stack lives at /opt/broker/ on the droplet. No source bind-mount and no node_modules — the deploy uploads a self-contained dist/main.js bundle (jose inlined via Web Crypto) mounted read-only at /app/main.js. The bundle is a gitignored deploy-time artifact rebuilt on every deploy.

Survey History

DateSHAKey Changes
2026-09-223e4d76dEvery open 09-06 finding acted on; the gateway stopped building on the droplet. 8 apps / 2 packages unchanged; workflows 19 → 20 (prune-packages.yaml). 109 commits, mrbro-bot[bot] 69 / marcusrbrown 40. Open issues 17 → 9, still 0 open PRs. (1) The single-report contract converged — 14+ days at exactly one open Daily Autohealing Report, via a 957-line deterministic post-agent reconciler (reconcile-autoheal-reports.ts, invariant 13) that readback-proves every mutation, with the agent explicitly forbidden from touching issue identity — but the autoheal-report label is applied at 03:51 and stripped at 06:47 by mrbro-bot[bot] running Update Repo Settings, because the label is not in common-settings.yaml’s 48-label manifest; adopted=2 on every single run is the tell, and status: "succeeded" sits next to it. Corrects the 09-06 inference (label was never “dropped at creation”; a second automation removes it). (2) Gateway build-then-pull — deploy-gateway.yaml gained build-images (GHCR infra-gateway/infra-workspace, fixed SOURCE_DATE_EPOCH: '0' + rewrite-timestamp=true, BuildKit pinned moby/buildkit:v0.33.0 because “the preinstalled buildx on ubuntu-latest is an uncontrolled input”) and scan-images (Trivy, continue-on-error + --exit-code 0 — a needs: edge that cannot fail); issue #1383 already flags that the ${ref}-${sha} tag rebuilds byte-identical images. (3) prune-packages.yaml — dispatch-only, apply defaults false, six named fail-closed gates (invariant 15). (4) ARCHITECTURE.md grew 15 numbered invariants, notably 11 (reusable-workflow permission parity; violation ⇒ zero jobs created), 14 (never read a coarse exit code or HTTP status as proof of remote state — six retrofitted call sites across five apps), and 2 (Bash allowlist widened to two scripts). (5) The Umami 13-month retention control landed (earliest evidence artifact 2026-07-31, infra aa01b493) with retention.sh/.sql, systemd timer, integration tests, and evidence/retention/ attestations — satisfying marcusrbrown—marcusrbrown-github-io’s blocking Go/No-Go dependency, and missed by the prior survey because it landed as app-internal source. (6) One version ceiling lifted — fro-bot/agent <0.94.0 → <0.114.0 after an executed verification pass (pin v0.93.1 → v0.113.2); caddy still cites 2026-07-13, postgres <16 runbook still unexecuted. README app-table drift closed (all 8 listed). Agent pin v0.109.3 → v0.114.0; CLI v0.22.0 → v0.23.0; CLIProxyAPI v7.2.152 → v7.3.12; Umami 3.3.1 → 3.4.0; dashboard 2026.09.5 → 2026.09.19. Still unfixed: release-alert.yaml failure-only gate with no self-test; autoheal-upstream-watch label still nonexistent with two open Watch issues; stranded deploys behind required_reviewers (#1412, #1365)
2026-04-1820de047Initial survey — workspace structure, 9 workflows, CLI v0.4.3, Fro Bot v0.40.2
2026-04-249306b9bDeploy pipeline split (#165), convention enforcement tests (#161, #167), Fro Bot v0.41.4, CLI v0.4.5, CLIProxy autohealing (#155), 11 workflows
2026-04-259306b9bNo code changes; open issues 4→5 (new autohealing report #178)
2026-04-26cd3bb16Fro Bot v0.41.4→v0.42.1, new category 8 (Upstream Modernization Watch, #182), CLIProxy healthcheck switched to /healthz (#181), CLI v0.4.6, CLIProxyAPI v6.9.38
2026-04-27938fa7cFro Bot v0.42.1→v0.42.2 (#185), CLIProxyAPI v6.9.38→v6.9.39 (#186), bfra-me/.github v4.16.8→v4.16.9 (#188). Open issues 4→5, 1 open PR (version packages #187)
2026-05-272f9bafdMajor expansion. New apps/gateway/ (Fro Bot Discord stack at gateway.fro.bot, #264, 2026-05-18); new packages/shared/ for droplet provisioning helpers (#290). 12 workflows (added deploy-gateway.yaml). Fro Bot agent v0.42.2 → v0.44.3 (multiple bumps). Renovate preset bumped major v4→v5 (#242, marcusrbrown/renovate-config#5.2.0) with group:allNonMajor. TypeScript 6.0.3, ESLint 10.4.0, @bfra.me/eslint-config 0.51.1. CLI v0.4.6 → v0.7.0; MCP fidelity refactor for status-only commands (#296). CLIProxy: OpenAI/Codex device-code OAuth login (#303), OpenAI provider opt-in for cliproxy setup --harness opencode (#307); CLIProxyAPI v6.10.9, Caddy 2.11.3-alpine. Gateway hardening: ControlMaster multiplexing (#277), pinned droplet host keys (#272), checksum-after-success secret rotation. Discord token-lifecycle runbook (#284). Open issues 5→38, 0 open PRs.
2026-06-19ac79468Two new apps: dashboard + VPN. Added apps/dashboard/ — Fro Bot operator dashboard at dashboard.fro.bot, 2-service compose (caddy + digest-pinned ghcr.io/fro-bot/dashboard:2026.06.16), deploy-dashboard.yaml, dashboard GitHub Environment, GitHub App key file-mounted, CLI group (dashboard status/deploy/logs). Added apps/vpn/ — WireGuard egress box on AWS Lightsail (eu-west-1), first AWS-backed deployable; native wg-quick/systemd, no Docker; provisioned via @aws-sdk/client-lightsail; deploy-vpn.yaml, vpn Environment, CLI group (vpn status/deploy/logs/client add|list|remove). Now 16 workflows total (added deploy-dashboard, deploy-vpn, codeql.yaml — CodeQL JS/TS analysis). deploy.yaml orchestrator now fans out to 6 per-app deploy workflows. CLI v0.9.17 → v0.12.2. Fro Bot agent v0.59.0 → v0.71.0 (SHA 9b89fb3). Gateway upstream pin v0.57.0 → v0.69.0. CLIProxyAPI v7.1.56 → v7.2.20. Root docs ARCHITECTURE.md + STRUCTURE.md added. ESLint 10.4.0 → 10.5.0, lint-staged 16 → 17, Prettier 3.8.3 → 3.8.4.
2026-06-099ce50f4New app: Umami analytics. Added apps/umami/ — self-hosted Umami at metrics.fro.bot, 3-service Docker Compose (umami 3.1.0 + postgres 15-alpine + caddy 2.11.3-alpine), deploy-umami.yaml workflow, umami GitHub Environment, new CLI command group (umami status/deploy/host/logs). Now 13 workflows total. CLI v0.7.0 → v0.9.17. Fro Bot agent v0.44.3 → v0.59.0 (SHA feb5365). Gateway upstream daemon pin v0.44.2 → v0.57.0 (#466, daily_digest presence event). CLIProxyAPI v6.x → v7.1.56 (major version; v7.1.54/55 reverted #463 for health check regression, v7.1.56 stable). CLIProxy deploy healthcheck moved to Caddy endpoint for Debian-image compat (#469). Renovate config bumped marcusrbrown/renovate-config#5.2.1. Gateway secrets contract expanded (added GitHub App credentials, workspace OpenCode secrets, presence channel secrets). OMO_PROVIDERS removed from repo secrets; WORKSPACE_OPENCODE_TOKEN/AUTH/MODEL/CONFIG and GH_APP_ID/PRIVATE_KEY, GATEWAY_TRIGGER_ROLE_ID, GATEWAY_WEBHOOK_SECRET, GATEWAY_PRESENCE_CHANNEL_ID added. Provisioning management key now written to a 0600 file instead of stdout (#453).
2026-08-16d276d93New app: AWS S3 durable-storage provisioner + new auth-monitor workflow. Added apps/agent/ — private @marcusrbrown/infra-agent, an operator-run AWS provisioner (no deploy workflow) that stands up per-repo S3 session storage for fro-bot/agent via GitHub OIDC → AWS STS: dedicated bucket, append-only account OIDC provider, one least-privilege IAM role + prefix-scoped inline policy per consumer repo (session-prefix delete-deny, separate lock ARN), key-layout.ts fail-closed layout pinning (fro-bot/agent@v0.96.0), readback + JSON handoff manifest; new agent CLI group (agent setup absorbs the old cliproxy setup, kept as compat wrapper; agent storage/teardown writes only the 5 non-secret FRO_BOT_S3_* repo variables); new protected fro-bot-storage GitHub Environment gating id-token: write. Second AWS-backed component (first to touch S3/IAM). Added cliproxy-auth-monitor.yaml — 15-min Anthropic-auth health probe → tracking issue + Discord webhook, with owner-only synthetic-dead/synthetic-healthy self-test modes. 8 apps, 18 workflows. Fro Bot agent v0.90.0 → v0.99.0 (SHA 2167bb8); autoheal categories 8 → 10 (added WORKFLOW INTEGRITY, QUALITY GATES VERIFICATION). CLI v0.13.20 → v0.15.4. CLIProxyAPI v7.2.77 → v7.2.133. Umami 3.2.0 → 3.3.0. Dashboard 2026.07.21 → 2026.08.17. Gateway upstream pin v0.88.0 → v0.93.1. Renovate preset #5.2.6 → #5.2.12. @changesets/cli v2 → v3 (#1106). ESLint 10.7.0 → 10.8.1, Prettier 3.9.5 → 3.9.6, lint-staged 17.0.8 → 17.3.0. New root SECURITY.md (private vuln reporting), .ignore. Stars 3, open issues ~28.
2026-07-15e0e3252No new apps/workflows — config-hardening + vendoring survey. Still 7 apps, 17 workflows. New durable structure: root opencode.jsonc (two local MCP servers — infra enabled, discord/saseq/discord-mcp:1.0.0 disabled — plus a defense-in-depth permission deny backstop for 11 sensitive infra tools + ~19 destructive Discord tools; JVM 60s timeout + shell-wrapper secret sourcing documented inline); .slim/clonedeps.json vendoring manifest pinning anomalyco/opencode@v1.15.13 for MCP registration/permission inspection; patches/ with a Bun patchedDependencies patch for @changesets/get-github-info@0.6.0; root AGENTS.md, .npmrc, docs/ideation/. Root workspace package renamed @marcusrbrown/infra-workspace. Fro Bot agent v0.79.4 → v0.90.0 (SHA 42db56d). Gateway upstream pin v0.79.1 → v0.88.0. CLI v0.13.13 → v0.13.20. CLIProxyAPI v7.2.48 → v7.2.77 (#852). Caddy 2.11.3-alpine → 2.11.4-alpine (shared digest). Dashboard 2026.06.57 → 2026.07.21. Umami steady 3.2.0. Renovate preset #5.2.3 → #5.2.6. ESLint 10.4.0 → 10.7.0, Prettier 3.8.4 → 3.9.5, lint-staged 16→17.
2026-09-06ac34a60No new apps — the instrumentation matured and started reporting on its operator. Still 8 apps / 2 packages; workflows 18 → 19 (new release-alert.yaml, a workflow_run post-merge liveness alert on Release). fro-bot.yaml split into two jobs — fro-bot-content (content-triggered, unprivileged) and fro-bot-storage (schedule/main-dispatch only, fro-bot-storage environment, id-token: write, AWS STS, s3-backup: true, harden-runner egress-policy: block) — turning the previously documented storage capability invariant into an enforced one, and making infra the first observed consumer of the apps/agent provisioner it ships. ci.yaml gained a fourth job, Package smoke (pack → tarball assertions → clean-room install → run the binary), now in the gate’s needs; supersedes the prior “test failures do not block” reading — the gate is needs: [lint, type-check, test, package-smoke] asserting != "success". Four findings. (1) The SINGLE-REPORT RECONCILIATION CONTRACT is not converging: 10 open Daily Autohealing Report issues (08-27 → 09-06) against a contract demanding exactly one, because clause (b)‘s identity predicate ANDs a mutable label onto an immutable body marker — all 10 carry the correct marker, only the newest carries the label, so nine of the agent’s own artifacts are classified as untrusted collisions and deliberately left alone; 18 issues have ever held the label (17 closed, clean through #1190 on 08-25), and the sibling autoheal-upstream-watch label does not exist in the repo at all, so category 10’s contract can never recognise a managed issue (#1162 open, unlabelled). (2) Zero open PRs, and the backlog simply moved downstream — five open stranded-deploy findings (#1234 dashboard, #1249 cliproxy, #1258 + #1277 gateway/vpn, #1278 broker): automerge to main fires a path-filtered deploy that then parks in a required_reviewers environment, so bumps are committed but never reach the droplets; the prompt’s STRANDED-DEPLOY CHECK cites the precedent (a cancelled umami deploy left the app ~3 weeks stale) and is explicitly reporting-only. (3) Four Renovate allowedVersions ceilings, three of them waiting on a human verification pass with no recurring trigger — caddy <2.12.0 (verified 2026-07-13), postgres <16 (runbook dated 2026-06-01, unexecuted), fro-bot/agent <0.94.0 (gateway daemon still v0.93.1 vs upstream v0.109.3, ~16 minors), typescript <7 (external, waiting on typescript-eslint#10940); ownership is circular — Renovate is ceiling-gated and category 10 is forbidden from bumping pinned versions. This corrects the 2026-08-16 framing of the daemon/action pin gap as incidental. (4) release-alert.yaml gates on conclusion == 'failure' — the exact predicate this repo’s own autoheal prompt was rewritten to abandon, and which ci.yaml gets right with != "success" — so a cancelled or timed-out Release is silent; it also has no synthetic self-test, unlike cliproxy-auth-monitor.yaml. Plus: a new renovate.json5 custom manager fixing a double-tagged upstream (bfra-me/.github tags one commit as both v4.16.x and renovate-changesets@x.y.z; the built-in manager resolved only repo tags and froze the pin at 0.2.31 for four months). Versions: agent v0.99.0 → v0.109.3 (9d45b92); CLI v0.15.4 → v0.22.0; CLIProxyAPI v7.2.133 → v7.2.152; Umami 3.3.0 → 3.3.1; dashboard 2026.08.17 → 2026.09.5; broker base oven/bun 1.3.14 → 1.4.2-alpine; Caddy steady 2.11.4; Renovate preset #5.2.12 → #5.2.13; ESLint 10.8.1 → 10.9.1, @bfra.me/eslint-config 0.51.1 → 0.52.1, @changesets/cli 3.0.0 → 3.0.1. Runbooks 4 → 9; docs/plans/ at 46; new .agents/skills/generating-project-docs/. .slim/clonedeps.json unchanged since 2026-06-02 (opencode v1.15.13). README still lists 6 apps of 8 (broker, agent absent). Daily schedule 16/20 green; all 19 workflows active. Stars 3, open items 17, 0 open PRs.
2026-07-01390cb5fNew app: OIDC credential broker. Added apps/broker/ — OIDC-authenticated credential broker at broker.fro.bot, 2-service Docker Compose (Caddy + oven/bun:1.3.14-alpine on its own s-1vcpu-1gb/nyc1 droplet). Exchanges a GitHub Actions OIDC token for a short-lived, revocable cliproxy ghact- key so the durable provider key never lands on a CI runner; jose JWKS RS256 verify + replay denylist + code-owned BROKER_TRUST_POLICY; sweeper-only revocation (60s TTL + 5-min reconcile) with a startup reconcile gate; bundle-based deploy (dist/main.js, gitignored, mounted read-only). Added deploy-broker.yaml + broker GitHub Environment (BROKER_SSH_KEY/BROKER_HOST/CLIPROXY_MANAGEMENT_KEY secrets + BROKER_AUD variable) + CLI group (broker status/deploy/logs). Now 17 workflows total; deploy.yaml orchestrator fans out to 7 per-app deploys. Consuming half tracked in fro-bot/agent#1060 (trust-policy placeholders must be replaced before deploy). CLI v0.12.2 → v0.13.13. Fro Bot agent v0.71.0 → v0.79.4 (SHA b3384d3). Gateway upstream pin v0.69.0 → v0.79.1. CLIProxyAPI v7.2.20 → v7.2.48. Umami 3.1.0 → 3.2.0. Dashboard 2026.06.16 → 2026.06.57. Renovate preset steady at #5.2.3.