Skip to content
Toolkit

Job 012: steady-state

Status: ACTIVE Owner: @work, the routine

Phase: IMPLEMENT · Status: ACTIVE · Updated: 2026-09-17

Charter: ./README.md. Routine: ./ROUTINE.md (loop per .station/modules/work-agent/routines/job.md, claim refs claim/012-*). Items: ROADMAP → NEXT.

Objective

The repository is production-ready on every axis a session can control and stays that way; the charter carries the bar and it is not restated here.

Completed

  • Repository refresh, 2026-09-09 (the chartering PR). The 1,570-line ROADMAP, the 2026-08-12 audits, the product-gap assessment and Studio's July roadmap archived with register rows; ROADMAP reset to NEXT / ACTIVE / DEFERRED / DONE; the CI policy inverted (Actions runs; green checks are part of the gate); the three causes of red main fixed (fixture settings: {}, staticcheck pinned to 2026.1, UPLOAD_PATH in the E2E job); the Studio CI job runs the whole of verify rather than nine of its gates; twenty-nine undocumented configuration keys added to .env.example and docs/DEPLOYMENT.md, and the gateway/OAuth tables rebuilt from what config.go reads; reference docs' counts and links corrected; .station index and standards brought to the tree; routine standard written and the CS-Hourly Routine re-pointed at it. Visual pass: .station/jobs/012-steady-state/evidence/visual-baseline-2026-09-09.md.

  • Batch of 2026-09-16 (no remote in the session; landed as one change set, no claim refs): config-key-parity-gate — check:config-keys in verify, ledger, ADR-0162, watched failing (evidence .station/jobs/012-steady-state/evidence/config-keys-gate-watched-failing-2026-09-16.md); uploads-route-shadowed — dev proxy anchored on uploads/, both tables pinned by devProxy.test.ts; directory-null-image — settings | null guarded, DirectoryPage.test.tsx reproduces the throw. The two page rows wait on a running-stack pass to tick.

  • Second batch, 2026-09-16: api-types-residue slice 1 — Project into the contract, gated (125/125 across 7), generated, hand type deleted; watched failing on a struct field the contract did not declare. release-preparation slice 1 — the upgrade notes under [Unreleased], linked from docs/DEPLOYMENT.md; the version heading waits on a database check no session here can run.

  • Third batch, 2026-09-16: api-types-residue slices 2–3 — Domain and Workspace into the contract, gated (150/150 across 9), generated, hand types deleted. Domain surfaced a real drift: DomainsPage read two omitempty strings as always present; defaulted to ''. Counted the residue: 60 hand-written interfaces, 53 with a same-named struct.

  • Fourth batch, 2026-09-17: api-types-residue slices 4–7 — Pixel, PlanQuota, PluginConfigKey, Plugin (+ PluginStatus enum); 171/171 across 13. Plugin needed the toolchain to carry arrays: the schema reader parses items, the generator emits T[], the parity gate maps []T and fails when the contract's items disagrees (watched failing on a wrong items and on a missing one).

  • Fifth batch, 2026-09-17: slices 8–11 — WorkspaceMember, TeamMember, Team, PwaShortcut; 196/196 across 17. The struct-field parser now reads []*T (as []T; repositories never place a nil). Found and merged two duplicate declarations in api.ts (PwaShortcut, PwaSettings) that TypeScript had been silently merging.

  • Sixth batch, 2026-09-17: slices 12–14 — PwaSettings, Pwa, Tax; 232/232 across 20. wireKind maps a gated-schema field to a $ref and json.RawMessage to an object; inline enums for the manifest and tax vocabularies (the columns' CHECKs), which PwasPage's three option lists are now typed by.

  • Seventh batch, 2026-09-17 (first session with Go and PostgreSQL; no remote, one change set): ip-helpers-read-remoteaddr — one reader, middleware.ClientIP; the lockout was still header-keyed and the public limiter port-keyed (ADR-0163). /directory and /uploads ticked on a running stack (evidence .station/jobs/012-steady-state/evidence/visual-2026-09-17.md). api-types-residue slices 15–18 — Code, RedeemedCode, Signature, FeatureFlag; 268/268 across 24. Report: 003 .archives/audit-reports/003-steady-state-batch-2026-09-17.md.

  • Eighth batch, 2026-09-17: uploads-gallery, the owner's answer to the /uploads placeholder — one gallery for the page and for a picker that re-uses an upload from a block's asset field; Upload gated (280/280 across 25); unknown upload types refused; catalogue C4 follows one hop (ADR-0164, evidence .station/jobs/012-steady-state/evidence/visual-2026-09-17.md, report 004 .archives/audit-reports/004-uploads-gallery-2026-09-17.md).

  • Ninth batch, 2026-09-17: login-address-is-an-address; client-address-gate (check:client-address, A1–A3, 28 gates); uploads-filter-by-kind (server, contract, gallery, picker); asset-fields-offer-uploads slice 1, the bio page's image background. The page pass found the theme settings are written and read by nothing — a new NEXT row. Report: 005 .archives/audit-reports/005-steady-state-batch-2026-09-17.md.

  • Tenth batch, 2026-09-17: the bio page settings census (check:biolink-settings-reach, 37 → 21 rows, 29 gates); the directory served whole rows to anonymous callers — closed; the editor's frame, preview and settings rail; the top bar; resource duplication, slice 1; the resource-surfaces assessment (ADR-0165, report 006 .archives/audit-reports/006-resource-surfaces-assessment-2026-09-17.md).

Active

  • ci-green-on-main: the pinned staticcheck found chimw.RealIP (SA1019, IP spoofing); replaced by middleware.RealIP behind TRUSTED_PROXIES (ADR-0160). Ticks on the first green main run.
  • Nothing else claimed. The next run takes the top unclaimed NEXT row.

Blockers

  • Actions has no runner again since 2026-09-09 11:52 UTC (runner_id: 0, dead in four seconds, re-run refused 403) — an account condition, the owner's. The CI green on main row waits on it; PRs merge on the local gate with one comment until it clears.
  • None of this workstream's own. Owner decisions: ROADMAP → DEFERRED.

Decisions

  • AUDITS-081226.md left the root for .archives/removal-safe/ although docs/guides/station.md recorded its root placement as an operator request: every finding in it is either closed by a track or an owner decision already listed under DEFERRED, so the file is a record, not a driver. Restoring it is one git mv.
  • Closed workstreams 001–011 stay under .station/jobs/ rather than moving to the archive: their evidence/ and reports/CLOSE.md are cited by ADRs and by the DONE table, and the standard archives superseded workstreams, not finished ones.

Files changed

See the chartering PR. Nothing outside it.

Verification

  • npm run verify — exit 0 on the tenth batch (29 gates, 79 unit files / 1,488 tests); go vet, go test ./... green with DATABASE_URL set.
  • npm run verify — exit 0 on the ninth batch (28 gates, 78 unit files / 1,483 tests); go vet, go test ./... green with DATABASE_URL set.
  • npm run verify — exit 0 on the eighth batch (78 unit files / 1,482 tests); go vet, go test ./... green; the gallery driven through the UI on a running stack, seven steps and the picker.
  • npm run verify — exit 0 on the 2026-09-17 seventh batch (27 gates, 77 unit files / 1,473 tests, second zone, web build); go vet and go test ./... green, internal/repository against a migrated PostgreSQL 16.
  • npm run verify — exit 0 on the 2026-09-16 batch (27 gates, 77 unit files, web build); each new test watched failing on the unguarded input.
  • npm run verify — run on the chartering branch (result recorded in the PR).
  • CI on the chartering PR — the first run under the inverted policy; the CI green on main NEXT row ticks on the first green run of main after merge.

Next actions

  1. ci-green-on-main — confirm the first main run after the RealIP fix is green on all six jobs; tick the row with the run link. If red, root-cause it.
  2. one-experience-across-resources (Create verb first — it moves three specs), biolink-settings SEO group, duplicate for file and static.
  3. api-types-residue — next AiChat, BiolinkTheme, BiolinkTemplate; 35 structs remain, batch three per PR when none moves a page.
  4. release-preparation — the version heading, once a copy of the target database is checked against the upgrade notes; the tag is the owner's.

Source: .station/jobs/012-steady-state/SESSION.md

Library