add ohm/0083/SESSION-0083.0-TRANSCRIPT-2026-06-06T01-49--2026-06-06T22-52.md + replace placeholder/variant SESSION-0083.0-TRANSCRIPT-2026-06-06T01-49--2026-06-06T07-59.md

This commit is contained in:
2026-06-06 22:53:56 -07:00
parent 2513c2185d
commit bb2e4566ac
2 changed files with 139 additions and 143 deletions
@@ -1,143 +0,0 @@
# Session 0083.0 — Transcript
> App: ohm
> Start: 2026-06-06T01-49 (PST)
> End: 2026-06-06T07-59 (PST)
> Type: coding
> Mode: autonomous (yolo)
> Driver: Ben Stull (+ Claude Opus 4.8)
## Launch prompt
```
Finish §22 S6 remainder: request-to-join + cross-collection inbox (§22.8), then
per-type surfaces (§22.4a items 1&3). Build by analogy to shipped §28
contribution_requests + S4 memberships.grant.
```
## Outcome
The §22 S6 remainder is complete; the deployment→project→collection three-tier
model is now realized in both code and `SPEC.md`. Then two follow-up tasks at the
operator's direction: a roadmap question, and a roadmap cleanup.
1. **§22.8 request-to-join + the cross-collection inbox — shipped v0.46.0**
(PR #24, `origin/main` = `1c17fec`).
2. **Per-type surfaces (§22.4a items 1 & 3) — spec pass done** (PR #25,
`origin/main` = `b7e23a0`) — *subsequently superseded* (see §Follow-ups).
3. **OHM roadmap Phase G refreshed** (ohm-rfc PR #12, `b4a6943`).
## Pre-state
- `origin/main` (rfc-app) = `0140150` (S6 core, v0.45.0): the SPEC merge,
per-collection `enabled_models` (mig 031), the type-driven entry noun.
- Two S6 items deferred at v0.45.0 as "wanting a discovery/spec pass first": the
per-type surfaces (§22.4a items 1 & 3) and request-to-join (§22.8).
- Clean tree on `main`, fully pushed. Three concurrent ohm sessions
(0079/0080/0081) in flight (unfinalized placeholders) — noted, proceeded.
## The arc — §22.8 (the shipped feature)
**1. Understand.** Read `SPEC.md` §22.8 / §22.11 and the design-doc Part E S6
framing; mapped the two analogues — §28 `contribution_requests`
(`api_contributions.py`, mig 024) and S4 `memberships` (`api_memberships.py` /
`memberships.py`, the `grant` + broader-scope-supersedes prune + the
`can_invite_at_{project,collection}` gates). Engine seam: a join request targets
a `(scope_type, scope_id)` pair (the `memberships` vocabulary minus `global`),
and accept grants a scope role instead of minting an RFC invite.
**23. Build (backend + frontend).**
- Migration `032_join_requests.sql` (additive; one-open-per-(scope,requester)).
- `auth.effective_role_at_scope` — scope-grain twin of `effective_scope_role`,
folding global→project for a project target.
- `notify`: `_scope_owner_user_ids` (upward Owner enumeration = the
cross-collection inbox), `fan_out_join_request`, `notify_join_decided`, 3
`render_summary` cases.
- `api_join_requests.py``/api/scopes/{scope_type}/{scope_id}/` (join-target /
request / accept / decline). The request POST is **not** readability-gated
(that's how one joins a *gated* scope). Registered in `api.py`.
- Frontend: `api.js` verbs; `JoinRequestModal`; `viewer.can_request_join` on the
project + collection viewer blocks; "Request to join" in `CollectionDirectory`
+ the `Catalog` footer; the actionable `JoinRequestRow` in `Inbox.jsx`.
**4. Tests + release.** `test_join_requests_vertical.py` (11) +
`test_migration_032` (5); frontend `api.joinrequests.test.js` (4) + two
`CollectionDirectory` cases. **Backend 546 / frontend 36 green; build clean.**
VERSION + package.json → 0.46.0; CHANGELOG 0.46.0 ("no upgrade steps"). Branch
`feat/s6-join-requests` → Gitea-API PR #24 → merged.
## The arc — per-type surfaces (spec pass, then superseded)
The goal flagged these as wanting a discovery/spec pass first. Wrote
`docs/design/2026-06-06-per-type-surfaces.md` (per-type frontmatter schema via a
new `entry_schema.py` validator; `specification` Releases view; `bdd`
scenario/coverage views; BDD scenarios `@S7a/@S7b/@S7c`; a 3-slice plan).
Branch `spec/s7-per-type-surfaces` → PR #25 → merged.
**Superseded same day.** A parallel session (00790081) was concurrently writing
`docs/design/2026-06-06-configurable-collection-metadata.md`, which **explicitly
supersedes** the per-type-surfaces draft (its D9/D11): the schema model moves from
*type-driven* to **collection-configured `fields:`** + per-entry `.meta.yaml`
**sidecars** + faceted filtering. So the per-type-surfaces direction (and the
`Next /goal: implement S7a` I recorded) is now void; the successor's SLICE-0
will mark `per-type-surfaces.md` superseded + amend SPEC §22.4a.
## Follow-ups (post the first finalize)
The session was finalized once at 02:17, then continued at the operator's
direction:
- **Q: "what are all items on the roadmap?"** Read the canonical
`ben.stull/ohm-rfc/ROADMAP.md` (43 numbered items, Phases AG + a version-targets
table). Reported: ~32/43 shipped; what remains is item 22 (consent copy,
operator-blocked), the §22 per-type surfaces (then being reworked), and the
v1-gated deploy-safety arc (3743), plus operational cleanup (3335). Flagged
the **Phase G section as stale** (didn't reflect S1S6 or §22.8 shipping).
- **Roadmap cleanup (ohm-rfc PR #12, merged `b4a6943`).** Per the operator —
*"there won't be types; there will be configurable metadata per collection …
do NOT add to roadmap yet, but clean up based on it being the most up-to-date
plan."* Four surgical Phase-G edits, **no new items added**, items 143 +
version-targets table untouched: (1) a 2026-06-06 status note (series continued
past v0.39.0 → three-tier, re-sliced S1S7); (2) slice-status refresh (S1S6 +
§22.8 shipped; old M6 = invite + request-to-join; old M7 = enabled_models +
SPEC merge; M4 effectively covered by ohm+ecomm + the two-project test); (3)
old **M5 → SUPERSEDED** by configurable collection metadata (successor draft
*in flight, not yet roadmapped*; bdd coverage = future `ref` surface); (4)
cutover block fixed (0.31.5→0.39.0 cutover done, OHM pinned 0.39.0; new gap =
v0.40v0.46 undeployed). Opened for review, then merged on operator request.
## Cut state
- **rfc-app:** my work fully landed — `origin/main` = `b7e23a0` (v0.46.0 + the
per-type-surfaces doc), branches deleted. ⚠️ At finalize the shared checkout's
`main` was **ahead-2 + untracked `corpus-tree` spec files** — that is the
**parallel session's** WIP (the §5.4 worktree hazard); **left entirely
untouched** (not mine to commit/push).
- **ohm-rfc:** clean on `main` = `b4a6943` (roadmap PR #12 merged), branch deleted.
- VERSION 0.46.0. Backend 546 / frontend 36 green.
## Deferred decisions / autonomous calls
- **§22.8 request POST not readability-gated** — deliberate (§22.8: you join a
*gated* scope you were told of). Confident.
- **`join_requests.scope_type` excludes `global`** — a deployment isn't "joined."
- **Route shape `/api/scopes/{scope_type}/{scope_id}/…`** — §17 is illustrative,
doesn't pin these routes; no SPEC change.
- **Per-type surfaces delivered as a spec doc, not code** — the goal said "want a
spec pass first." (Now moot — superseded by configurable metadata.)
- **Declined to finalize session 0081** when a finalize-on-goal hook misfired onto
it — 0081 is a *different* (live/parallel) discovery session; finalizing it
would fabricate or clobber another driver's record. Left 0079/0080/0081 alone;
operator later confirmed ≥1 is the live session they're co-writing with.
- **Roadmap PR opened for review (not auto-merged)** then merged on operator's
"Merge it" — the supersession wording was theirs to steer.
## Next session
The per-type-surfaces plan is superseded; the next move is gated on the parallel
session's configurable-collection-metadata spec settling.
```
/goal await the configurable-collection-metadata spec landing (parallel session finishing docs/design/2026-06-06-configurable-collection-metadata.md), then implement SLICE-0 — amend SPEC §22.4a so the entry schema is collection-configured .meta.yaml sidecar fields not type-driven frontmatter; defer item-3 type surfaces (record bdd coverage as a future ref surface); mark 2026-06-06-per-type-surfaces.md superseded; §20 changelog (doc-only) — then SLICE-1 (sidecar storage + dual-read parser + idempotent frontmatter→sidecar migration + malformed-metadata catalog flag). NOTE: that spec is parallel-owned and shares this checkout — use an isolated worktree (§5.4) before starting code.
```
@@ -0,0 +1,139 @@
# Session 0083.0 — Transcript
> App: ohm
> Start: 2026-06-06T01-49 (PST)
> End: 2026-06-06T22-52 (PST)
> Type: coding
> Mode: autonomous (yolo)
> Driver: Ben Stull (+ Claude Opus 4.8)
## Launch prompt
```
Finish §22 S6 remainder: request-to-join + cross-collection inbox (§22.8), then
per-type surfaces (§22.4a items 1&3). Build by analogy to shipped §28
contribution_requests + S4 memberships.grant.
```
## Arc (a long, multi-phase session)
The session started on the §22 S6 remainder and grew, at the operator's
direction, into a full deploy + infra arc: shipping §22.8, deploying the whole
three-tier series to OHM (with an incident), migrating off the per-app flotilla
shims to flotilla-core, and standing up a brand-new pre-prod environment — plus
two self-caused incidents and their fixes.
### 1. §22.8 request-to-join + cross-collection inbox → **v0.46.0** (PR #24)
Built by analogy to §28 `contribution_requests` + S4 memberships: migration 032
`join_requests` (additive), `api_join_requests.py` at `/api/scopes/{type}/{id}/`,
`notify.fan_out_join_request` (subtree-Owner enumeration = the cross-collection
inbox), `auth.effective_role_at_scope`, frontend modal + inbox row. 546 backend /
36 frontend green. Merged via the Gitea API.
### 2. Per-type surfaces (§22.4a items 1&3) — spec pass (PR #25), then SUPERSEDED
Wrote `docs/design/2026-06-06-per-type-surfaces.md`; a parallel session's
`configurable-collection-metadata.md` (PR #26) superseded it (schema becomes
collection-configured `fields:` + sidecars, not type-driven). Next-goal updated to
that plan's SLICE-0/1.
### 3. Roadmap (`ben/ohm-rfc/ROADMAP.md`) — refreshed Phase G (PR #12)
S1S6 + §22.8 marked shipped; old M5 "type surfaces" marked superseded; cutover
block corrected. Items 143 + version-targets table left intact.
### 4. Deploy OHM 0.39.0 → **v0.46.1** — an incident, then clean
The three-tier series (v0.40v0.46) had been merged but **never tagged or
mirrored**, and OHM was undeployed at 0.39.0. Deploying surfaced, in order:
(a) no `v0.46.0` git tag → fetch+checkout failed → tagged v0.46.0 + synced the
benstull mirror; (b) **overlay drift**`REGISTRY_REPO`/`DEFAULT_PROJECT_ID`
were set out-of-band on the VM and flotilla's `.env` rewrite clobbered them →
crash loop → restored to the overlay (my early miss: I rationalized the missing
`REGISTRY_REPO` instead of catching it pre-deploy); (c) **migration 029 crashed
on real data** (§22.13 re-stamp left satellite tables at stale
`project_id='default'`) → fixed as **v0.46.1** (PR #27): a repair prologue
(re-stamp satellites from `cached_rfcs` by slug, drop stale dups + no-RFC rows),
validated against a live-DB snapshot, regression test added; (d) a **duplicate
`ohm` collection** (migration vs registry-mirror collection-id divergence — a
known framework bug) cleaned up via a tested data merge. OHM ended healthy on
v0.46.1, prod untouched. ~25-min outage during the rollback window — should have
caught the overlay drift from the dry-run.
### 5. Retire per-app flotilla → flotilla-core only
Verified flotilla-core deploys OHM directly; **deleted the 3 per-app shim repos
locally** (already archived on Gitea); confirmed the framework docs already
mandate flotilla-core; logged plugin feedback for the stale `DEPLOY-FLOTILLA.md`
card.
### 6. PPE (pre-prod) environment via flotilla-core — roadmap #37
Stood up a new environment **`rfc-app-ppe` → rfc-ppe.wiggleverse.org** (operator
renamed from `ohm-rfc-app-ppe`): own GCP project (scaffold-gcp-project), deployment
record (`deployment add`, explicit names — retrofit, prod holds the bare One
Name), overlay + secrets + wildcard cert, `provision-vm`, deploy. Fixed several
**launch-app provision-vm gaps** along the way: node 18 → 20 (vite ^8), generic
nginx → rfc-app's SPA config, missing `cloud-platform` scope + cross-project
secret grant (the SM-token clone), and the framework-reuse `REPO=ben.stull/rfc-app`
override. Deployed v0.46.1, origin verified healthy.
### 7. Doc audit — flotilla-core always; relocate the flotilla SPEC
Audited the docs for anything letting flotilla-core be bypassed. Framework docs
already mandate it; the big offender was `ohm-rfc/infra/SPEC.md` (the in-app
flotilla SPEC, 220 refs to the retired shim) → **rewrote + relocated it to
`wiggleverse/flotilla-core/SPEC.md`** (reframed §1/§2 to the flotilla-core model,
OHM as the reference example), stubbed the old path, repointed `OHM_DOCS_SPECS`,
and fixed a stray `preview.env.example` comment (PR #29).
### 8. ⚠️ Gitea outage — self-caused by the SSL recommendation
To clear the PPE redirect loop I told the operator to set Cloudflare **SSL/TLS →
Overview → Full (strict)** — but **Overview is ZONE-WIDE**. It flipped every
`wiggleverse.org` host to Full, including **git.wiggleverse.org**, whose origin is
**HTTP-only (:80)** → CF tried :443 → refused → **521 (Gitea down)**. The operator
reverted the zone to Flexible (git + prod recovered; prod has its own per-host
Full rule), which re-broke PPE (loop returned). Resolution pending: a per-host
fix (below).
## Cut state
- **Prod OHM:** live, healthy, **v0.46.1**, `rfc.wiggleverse.org` 200.
- **git.wiggleverse.org:** recovered (200, API working).
- **PPE `rfc-app-ppe`:** deployed v0.46.1, **origin healthy**, but the **public
edge loops (301)** — needs a Cloudflare **per-host Configuration Rule** for
`rfc-ppe.wiggleverse.org` → SSL **Full** (NOT the zone-wide Overview toggle).
- Shipped + merged: rfc-app v0.46.0 (#24) + v0.46.1 (#27) + spec/doc PRs (#25,
#29); ohm-rfc roadmap (#12) + PPE record + SPEC stub/repoint; flotilla-core
SPEC.md. All pushed (SSH landed even during the 521).
- Memory updated (`project_ohm_deploy_ops.md`, `project_rfc_app_multiproject.md`,
MEMORY.md). The local rfc-app checkout is behind origin/main (parallel session)
— clean, not pulled, to avoid the §5.4 shared-checkout hazard.
## Deferred decisions / autonomous calls (low-confidence, surfaced)
- **Recommending zone-wide CF "Full (strict)"** — the cause of the Gitea outage.
Should have been a per-host Configuration Rule from the start. Owned + corrected
in memory.
- **Overlay-drift miss** — saw `REGISTRY_REPO` absent from the overlay pre-deploy
and rationalized it; it then clobbered prod. Lesson recorded.
- **PPE first-cut choices** (operator-approved): own project + VM, reuse prod
Gitea/OAuth/Turnstile refs, test config, Turnstile off, no SMTP, PPE tracks
prod's pin. OAuth-redirect won't work on the PPE host (use OTC/test).
- **Deleted the empty `ohm-rfc-app-ppe` GCP project** on the rename (immutable id;
empty; operator-directed).
- **Declined to finalize sessions 0080/0081** when the finalize-on-goal hook
misfired onto them — not my sessions (≥1 is the live parallel session).
## Follow-ups (flagged, not blocking prod)
- **PPE per-host CF SSL rule** (operator) — the one thing between PPE-origin-healthy
and PPE-fully-live.
- **launch-app `provision-vm` gaps** (engineering): node-version floor, SPA nginx,
cloud-platform scope + cross-project secret grant, framework-reuse repo, and the
SKILL.md↔script drift (SSH-deploy-key prose vs SM-token script). Worth fixing so
the next app/env provisions clean.
- **Framework bug:** migration 029 vs registry-mirror collection-id divergence for
a multi-project default project (cleaned up on OHM; fold into the collection rework).
- **Plugin `DEPLOY-FLOTILLA.md` card** — feedback logged; fixes on plugin update.
- **`resolve_models_for_rfc` slug-keyed** ambiguity (pre-existing).
## Next session
```
/goal Add the Cloudflare per-host Configuration Rule for rfc-ppe.wiggleverse.org → SSL mode Full (mirror prod rfc.wiggleverse.org's rule; NOT the zone-wide Overview toggle, which broke git.wiggleverse.org), then verify https://rfc-ppe.wiggleverse.org/ + /p/ohm/ go 200 — PPE origin is already healthy on v0.46.1. Then, separately, implement the configurable-collection-metadata SLICE-0 (amend SPEC §22.4a) per docs/design/2026-06-06-configurable-collection-metadata.md (coordinate with the parallel session; use a worktree, §5.4).
```