feat(kbn): land KBN-101 Envelope A v6 (rc.20) — declarative sink-RBAC + RLS write-source (Form A) #902
Reference in New Issue
Block a user
Delete Branch "feat/kbn-101-envelope-a-formA"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Lands KBN-101 Envelope A v6 (rc.20) as a contract-doc-only amendment of the frozen native-kanban SSOT, applied FORM A (apply-in-place) per Mos's ruling. It ratifies the converged declarative sink-RBAC layer: fixed User / Orchestrator / others runtime rung-roles (per-ROLE, deny-by-default), per-role connection-selection, RLS
WITH CHECK/USINGwrite-source policies,FORCE ROW LEVEL SECURITY, and a sink-residenttask_status_write_overridetable ontasks— a §10 schema-v1 mechanism addition beyond the prior grant/revoke-only model.No per-federated-user DB topology is introduced (cardinality stays fixed at 3; override keyed
(workspace_id, task_id, tier), never per-writer; attribution →task_events.actor_idmetadata). HALT boundary respected.Scope: contract docs only — no code, no CI fixture, no KBN-100 file/row invention. All actual DDL/code lands later in the implementation cards (KBN-101-00/01/02/03/05/06/10, KBN-100, -08/-09).
Per-file changes (
docs/native-kanban-sot/)KBN-101-DB-ROLE-SPLIT.md— §4 role table (+4 rung rows: 2 capability + 2 LOGIN), role-table F2 note; §4 L176 CONNECT allowlist (+mosaic_runtime_user/mosaic_runtime_orchestrator;either→any of the threeTEMPORARY fix; inline [NB-5] baseline grants); §4 closing rc.20 amendment block + frozen-invariant note; §5 secret matrix (+2 rung DSN rows); §7 manifest (+KBN-101-10row,,10dep-edges on -02/-03/-05/-06/-08, closing-sentence including KBN-101-10 clause).SHARED-CONTRACT.md— rc.6 + rc.5 "Non-effect" pointer clauses (except as amended by rc.20 — see below); new### 1.0.0-rc.20changelog entry.MISSION-MANIFEST.md— §10 change-control audit-trail note recording this as the authorized schema-v1 change instance.INDEX.md— index row for the ratified envelope doc.KBN-101-ENVELOPE-A.md(new) — converged v6 envelope text carried verbatim, header marked RATIFIED / part of the frozen SSOT as of this PR.Ratification lineage (authoritative)
Jason B1 ruling (2026-07-20T23:08Z) + Mos OPTION A (home the layer) + Mos Q1 ruling (TIER-LEVEL) + Mos Q2 ruling (RLS
WITH CHECKAUTHORIZED, two mandatory conditions —ENABLE/FORCE ROW LEVEL SECURITYas the terminal migration step, and non-owner rung roles) + Gate A (a11a1e2c) + Gate B (a6aac2cd).Discrepancy flags resolved in-text: rc.5 and rc.6 non-effect lines both carry the amendment pointer; the CONNECT-allowlist "either" wording corrected for three application logins.
Notes
Closes #771
Links #769
Record of Review — PR #902 (KBN-101 Envelope A v6 / rc.20, Form A apply-in-place; Closes #771, links #769)
VERDICT: APPROVE (GO on CI terminal-green). Reviewer: independent subagent
a45ed7d4(ms-lead-reviewer), opus, per LANDING-SPEC §3/§4 — ≠ builder (a272a5f2, commit-authormosaic-coder).REVIEWED-HEAD (full-40):
86e00e175776bfac62e2609e034dc3e16694a857. Reviewer detected the mid-review head-move (frome4de82a5…), characterized the +1 commit as the Mos-directed PROVISIONAL-CONVENTION annotation (2 lines, KBN-101-DB-ROLE-SPLIT.md §5;e4de82a5is a clean-FF ancestor), and re-verified the new head — APPROVE applies to86e00e17.Per-criterion (all PASS, per LANDING-SPEC §3/§4)
docs/native-kanban-sot/files (INDEX, KBN-101-DB-ROLE-SPLIT, KBN-101-ENVELOPE-A new, MISSION-MANIFEST §10 only, SHARED-CONTRACT); ZERO code; no §1-9 / TASKS / contracts touched.a11a1e2c) + Gate B (a6aac2cd) in the new doc + PR body.86e00e17); anchor-drift moot.Closes #771+ links #769; commit-author mosaic-coder ≠ reviewer.Mos rulings applied (this cycle)
INDEX-row hybrid KEEP (discoverability) · Vault subpaths PROVISIONAL-CONVENTION annotated (not silently frozen; TO-CONFIRM at KBN-101-03/-05) · Jason-lineage CONFIRMED-OK.
Gate
CI at
86e00e17PENDING (docs-only → expected green). GO for id-11 + merge at FULL-4086e00e175776bfac62e2609e034dc3e16694a857on terminal-green (6-check #2/#4: reviewed==CI==merge-head all 86e00e17; reviewer read this exact head). I relay on green; Mos stamps id-11 + merges. Non-executor.Record of Review — PR #902 KBN Form A AFTER prettier-fix — full-40, supersedes RoR 18862
VERDICT: APPROVE (GO on CI terminal-green). Substance reviewer:
a45ed7d4(opus, per LANDING-SPEC §3/§4, all 8 PASS). ≠ builder (mosaic-coder).REVIEWED-HEAD (full-40):
354b69536281f35f546ddd8bfb95a6fefd2d1bac.Delta re-review (prettier) — PASS: delta from the substance-reviewed head (
86e00e17) is FORMATTING-ONLY — prettier normalized whitespace / table pipe-alignment / emphasis markers (*x*→_x_) on 3 of 5 files. Independently verified: all key contract tokens PRESENT at354b695(PROVISIONAL-CONVENTION,### 1.0.0-rc.20, KBN-101-10, "Jason B1 ruling", "any of the three"). One content-NEUTRAL fix: a single*future*→futureitalic drop (word preserved) required for prettier idempotency (SCM_RIGHTS underscore clash — known prettier emphasis bug). Builder proved exhaustively: zero normative value/word/glob/path/number/table-cell-value changed; all anchored contract edits intact. format:check clean (prettier 3.8.1, CI config), idempotent.Mos rulings all applied: INDEX KEEP · Vault PROVISIONAL-CONVENTION annotated · Jason-lineage OK.
GO for id-11 at FULL-40
354b69536281f35f546ddd8bfb95a6fefd2d1bacon CI terminal-green (6-check: reviewed==CI==merge-head). Closes #771, links #769. Non-executor.GO — Gate-16 id-11 stamp, pinned to exact FULL head
354b695362. Basis: verbatim RoRs — substance APPROVE a45ed7d4 (LANDING-SPEC §3/§4, all 8 criteria, anchors verified no-drift, envelope byte-identical v6, full 4-part lineage) + delta re-review 18880 (prettier formatting-only, contract tokens independently re-verified). Mos flag-rulings applied: INDEX row kept, Vault subpaths PROVISIONAL-CONVENTION annotated (exact paths confirm at KBN-101-03/-05 impl), Jason-by-name lineage confirmed proper. Form A per Mos ruling with ratification lineage quoted. Closes #771. Named executor: Mos (id-11), squash pinned.