Repository navigation
fix(registry): hire catalog lists verified rows only for non-admins (ADR-022 Phase 0) - #1072
Merged
Merged
Conversation
ADR-022 Phase 0 (persona plan, docs/plans/2026-08-20-persona-v2-phased-
rollout.md). Measured on production: 31 of 45 active registry rows are smoke
seats (fc-verify, target, alice, bob, one row with an EMPTY name), fleet
internals (fable-lead, ux-lead, sprint-review), and personal wrappers
(xu-claude-code-local, laptop-codex). The verified flag is already the
curation boundary in the data — all 14 verified rows are the deliberate
catalog — so the route now forces verified-only for non-admins REGARDLESS of
query params; ?verified=false cannot reopen the leak. Admins keep the full
view for registry ops. Role loads from the DB, not req.user — JWT sessions
carry { id } only (the #1065 lesson, second application today).
Default verified-only; verified=false from a non-admin stays sealed; admin passthrough works; explicit verified=true skips the role read; parked moltbot rows stay excluded even when verified.
…limiting) Same limiter shape as agentProfile: 120 req/min/IP keyed through cf-connecting-ip, skipped in tests. The gate added a per-request role lookup, which is what surfaced the route's pre-existing unlimited state.
…gs do The gate hid the unverified fixture from the member — working as designed against a fixture that predates the rule. The test's actual subject (ephemeral exclusion) is untouched: that row stays unverified AND ephemeral.
lilyshen0722
added a commit
that referenced
this pull request
Aug 21, 2026
…step Sam spotted it live: for unentitled users primaryHirePath resolved to /v2/agents/byo, so the header's Hire and Connect buttons landed on the SAME page. This was ADR-022 D2's route-level entitlement fork doing exactly what the ADR said it does. Everyone sees the catalog now (freshly curated by the verified gate, #1072); entitlement gates at install time, and moves fully into the where-step when Phase 1 lands.
lilyshen0722
added a commit
that referenced
this pull request
Aug 21, 2026
… 5 (org layer) (#1073) * fix(team): Hire points at the shared catalog for everyone — first D2 step Sam spotted it live: for unentitled users primaryHirePath resolved to /v2/agents/byo, so the header's Hire and Connect buttons landed on the SAME page. This was ADR-022 D2's route-level entitlement fork doing exactly what the ADR said it does. Everyone sees the catalog now (freshly curated by the verified gate, #1072); entitlement gates at install time, and moves fully into the where-step when Phase 1 lands. * docs(plans): north star + Phase 5 org layer + design workstream Sam, 2026-08-21: a startup must be able to run on this out of the box, and Commonly must run ITSELF on it — teams, org, roles, full operation. Written in as the north star with the two-customers-one-shape rule, plus Phase 5 (team templates, role-derived policy, the Commonly-on-Commonly ladder whose exit criterion is which parts of our operation need no human, and the tenant boundary the 08-16 assessment flagged as nonexistent). Design workstream made explicit: every persona surface goes through ux-lead with the commonly-design skill, not styled ad hoc.
lilyshen0722
added a commit
that referenced
this pull request
Aug 22, 2026
Measured 2026-08-21: 7 of 14 recent signups created a BYO seat and 0 ever made one authenticated call. touchLastActive proves the loss is upstream of the first API call — but the server cannot see whether the user copied a command or watched the listening screen time out. Fixed-enum steps, auth'd for attribution, rate-limited (the CodeQL lesson from #1072 applied preemptively), fire-and-forget semantics.
lilyshen0722
added a commit
that referenced
this pull request
Aug 22, 2026
…ocally (#1087) * feat(stats): POST /api/stats/byo-step — the missing BYO funnel signal Measured 2026-08-21: 7 of 14 recent signups created a BYO seat and 0 ever made one authenticated call. touchLastActive proves the loss is upstream of the first API call — but the server cannot see whether the user copied a command or watched the listening screen time out. Fixed-enum steps, auth'd for attribution, rate-limited (the CodeQL lesson from #1072 applied preemptively), fire-and-forget semantics. * feat(byo): emit funnel steps at the three moments the server cannot see mcp-command-copied (claude/cursor snippets), cli-command-copied (listen snippet), token-copied, listen-confirmed, listen-timeout. Never blocks the flow. Next cohort splits NEVER-TRIED from TRIED-AND-DIED-LOCALLY with data instead of inference.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Second Phase 0 item from the merged persona plan (#1063). The raw endpoint leaked 31 internal/smoke/wrapper rows to any authenticated user (and ?verified=false bypassed the UI's own filter). The verified flag already partitions the data correctly — 14 deliberate rows vs 31 leak rows, verified live against production Mongo — so the gate enforces it server-side, with an admin escape for registry ops (role from DB per the #1065 req.user lesson). 5 tests pin both directions plus the existing moltbot exclusion.
🤖 Generated with Claude Code
https://claude.ai/code/session_01XeUH4HVDsDHYPsHJthXjB8