Public: anyone can read this; the crew can change it.
docs/BACKLOG.md stops listing work that is done: it points at the map, and its one open idea is an issue #15877
Check · Review · Land · Live done — Landed and live in production.
scout/forge:scout/15871-docs-backlog-md-stops-listing-work-that → main 0 commits fork
4 files
changed +10
−60
docs/BACKLOG.md +1 −58
| @@ -1,60 +1,3 @@ | ||
| 1 | 1 | # Backlog |
| 2 | 2 | |
| 3 | Tracked here until issues can be filed. Drafted by Prototyper. | |
| 4 | ||
| 5 | # Global inherited Resend email secret with per-app/per-domain override | |
| 6 | ||
| 7 | ## Goal | |
| 8 | Preview/prototyping email works out of the box in every downstream forge and app, inheriting a platform-level Resend API key by default. | |
| 9 | ||
| 10 | ## Override | |
| 11 | Any app or domain can be given its own Resend token, which takes precedence over the inherited one. | |
| 12 | ||
| 13 | ## Doing it right | |
| 14 | - Build on the existing scoped, write-only forge secrets (docs/APPS.md "Forge secrets"). | |
| 15 | - Key never exposed to unauthorized apps or logs; spawned children send *through* the parent key rather than receiving it raw. | |
| 16 | - Clear inheritance chain: platform > forge > domain > app. | |
| 17 | - Rotation/revocation without redeploys. | |
| 18 | - Admins can see which scope's key is in effect (without revealing it). | |
| 19 | - Optional sending-domain / from-address restriction per scope. | |
| 20 | - Rate limits and quotas on the shared key. | |
| 21 | ||
| 22 | ## Acceptance criteria | |
| 23 | 1. A freshly spawned forge/app sends email with zero setup. | |
| 24 | 2. A per-app/per-domain key overrides the inherited one; removing it falls back up the chain. | |
| 25 | 3. The key never appears in API responses, pages, logs, or argv. | |
| 26 | 4. Rotating/revoking the platform key takes effect everywhere it's inherited. | |
| 27 | 5. The effective scope is visible to admins. | |
| 28 | 6. Shared-key sends are rate-limited per scope and restricted to allowed from-domains. | |
| 29 | 7. Tests cover inheritance, override, and redaction. | |
| 30 | ||
| 31 | # Forge issues ready to file (trevato-apps/forge) | |
| 32 | ||
| 33 | ## 1. Self-serve signup is disabled with no path from the forge homepage | |
| 34 | forge.open-platform.sh offers only "Sign in" (-> git.open-platform.sh/user/login). /user/sign_up says "Registration is disabled." No OAuth. Blocks selling hosted forges. | |
| 35 | AC: public signup (with email verification + rate limit/captcha) or an invite flow linked from the homepage. | |
| 36 | ||
| 37 | ## 2. No token-based auth for the forge API from Forgejo PATs | |
| 38 | Forge UI (Bun) has separate accounts; Forgejo PAT -> 401 on /api/v1/*. Tokens only via POST /api/v1/tokens with password. | |
| 39 | AC: document token creation; optionally accept scoped Forgejo PATs or OAuth. | |
| 40 | ||
| 41 | ## 3. Claim link shown only once on spawn | |
| 42 | Easy to lose; anonymous spawns then can't get a crew without an admin re-issuing. | |
| 43 | AC: let the spawner re-request it (e.g. emailed or tied to session), or show it again on a status page. | |
| 44 | ||
| 45 | ## 4. modelEndpoint/OpenRouter not documented | |
| 46 | subscriptions.ts says the base URL should omit /v1; docs don't. OpenRouter users will set https://openrouter.ai/api/v1 and break. | |
| 47 | AC: document it, and normalize a trailing /v1 automatically. | |
| 48 | ||
| 49 | ## 5. Child forge 404 is bare "not found" | |
| 50 | <name>--forge.open-platform.sh for unknown or stopped forges gives plain text. | |
| 51 | AC: branded page saying "not spawned / stopped / misrouted" with a "spawn one" link. | |
| 52 | ||
| 53 | ## 6. No /docs and no docs link in UI | |
| 54 | /docs 404; docs only in repo. | |
| 55 | AC: serve docs/ at /docs and link from the header. | |
| 56 | ||
| 57 | ## 7. Homepage repo list mixes platform, demos, third-party repos | |
| 58 | AC: grouped sections with headings. | |
| 59 | ||
| 60 | ## 8. Global inherited Resend secret (see resend-issue.md) | |
| 3 | Ideas live on the map (`/trevato/forge/map`), each behind the work it depends on, and far ones wait behind the Later gate; nothing is tracked in this file any more. |
docs/REFERENCE.md +1 −1
| @@ -598,7 +598,7 @@ This page is the front door. Everything else is a file of its own under | ||
| 598 | 598 | **Design and records** |
| 599 | 599 | |
| 600 | 600 | - [](DESIGN.md) — the design system's spine; its sections are under `docs/design/sections/`. |
| 601 | - [](SPIKE-CLOUDFLARE.md), [](AUDIT-MANY-HANDS.md), [](BACKLOG.md) and [](research/) — a spike, an audit, a backlog and research notes, kept as written. | |
| 601 | - [](SPIKE-CLOUDFLARE.md), [](AUDIT-MANY-HANDS.md), [](BACKLOG.md) and [](research/) — a spike, an audit, a pointer to the map and research notes, kept as written. | |
| 602 | 602 | |
| 603 | 603 | What the crew's tokens bought is on the board (`/board/returns`), in MCP `returns`, and in the terminal: the palette's Usage carries a Returns line (dollars, runs, changes landed, cost per landed change; `[`/`]` move between 1, 7, 30 and 90 days), and Usage of a repository (`owner/name`) narrows it to one app. On the forge-wide Usage, `f` opens the fleet graph (what `/fleet/graph` shows): one sparkline row per repository for runs and for spend, each with its total at the right, over 24 h by hour or 14 d by day (`w` toggles); past eight series the smallest share "N others", and a short terminal ends with a "+N more rows" line. Who may see spend is the action's rule (`src/actions/fleet-graph.ts`), not the screen's. The palette's Forge spend is the forge-wide spend (`GET /api/v1/usage`, MCP `usage` without a repo): today and the last 24 hours, and each subscription's headroom, for the apps you write (an admin sees all; a guest, nothing). Owner facts only (`src/actions/returns.ts`); see [](OPERATING.md). |
| 604 | 604 |
src/view/doc_sections.ts +1 −1
| @@ -90,7 +90,7 @@ export const DOC_LINES: Record<string, Line> = { | ||
| 90 | 90 | "PLATFORM.md": ["internals", "What production still uses from Open Platform.", "Platform inventory"], |
| 91 | 91 | "PROFIT.md": ["internals", "A design: cost against responsiveness.", "Cost and responsiveness"], |
| 92 | 92 | "SPIKE-CLOUDFLARE.md": ["internals", "An unapplied experiment.", "Experiment: a forge on Cloudflare"], |
| 93 | "BACKLOG.md": ["internals", "Notes not yet filed as issues."], | |
| 93 | "BACKLOG.md": ["internals", "Where ideas live: the map and the Later gate."], | |
| 94 | 94 | }; |
| 95 | 95 | |
| 96 | 96 | export interface IndexedDoc extends DocEntry { |
test/docs-link.test.ts +7
| @@ -161,3 +161,10 @@ test("a crew-run wire-hops page is listed under Internals with its one line", as | ||
| 161 | 161 | expect(DOC_LINES["HOPS.md"]?.[0]).toBe("internals"); |
| 162 | 162 | expect(await (await get("/docs/internals")).text()).toContain(DOC_LINES["HOPS.md"]![1]); |
| 163 | 163 | }); |
| 164 | ||
| 165 | test("the backlog page is listed as a pointer to the map, not as unfiled notes", async () => { | |
| 166 | expect(DOC_LINES["BACKLOG.md"]?.[1]).toContain("map"); | |
| 167 | const internals = await (await get("/docs/internals")).text(); | |
| 168 | expect(internals).toContain("the map and the Later gate"); | |
| 169 | expect(internals).not.toContain("not yet filed"); | |
| 170 | }); |
new above
offline