Repository navigation
docs(governance): record DR-0019 — closed row schemas are a deliberate class - #7233
Conversation
…e class Option A from #7224: ratify closed row schemas as a deliberate class with two conditions (key-joined row/arm + explicit escape hatch), and state that optional additions to closed schemas are minor by rule. Leaves #7224 options B/C open for 3.3. Co-Authored-By: Claude Fable 5.1 <[email protected]>
There was a problem hiding this comment.
Ladon verdict: Comment (human reviewer recommended)
Comment — governance decision record awaiting human ratification.
This PR adds a single new governance decision record (governance/decisions/DR-0019-closed-row-schemas-deliberate-class.md, +63/-0), a governance-only, prose surface. There is no schema, code, changeset, or released-artifact surface touched, so changeset-scope, schema↔docs, oneOf, released-artifact-immutability, and 3.1.x checks are all n/a.
The reviewer verified every load-bearing citation: DR-0009 exists and states what is attributed to it, all four cited row schemas exist, and vendor-metric-value.json's own description confirms the breakdown escape-hatch claim. The record is internally consistent and preserves DR-0009's tightening-is-Breaking rule. No code-correctness findings surfaced.
There are no critical/high/medium findings (rows 1, 4, 5, 8 do not fire). gated_paths is false and there is no no-auto-approve team match, so rows 2 and 7 do not fire. high_risk is false (rows 3, 5 n/a). No prior decision (row 6 n/a).
However, governance/decisions/** records are recorded protocol precedent and the reviewer explicitly deferred the human-ratification gate to the arbiter. Adding a new decision record establishes precedent that a human should read, and review_decision is REVIEW_REQUIRED (not APPROVED). Rather than auto-approve a governance record that sets protocol policy, this is surfaced for human eyes.
No blocking findings; no fresh escalation-worthy evidence (the record itself is clean and non-breaking on its own — it documents a class, it does not enact a Breaking wire change).
Medium findings: none.
Blocking findings: none.
|
Requesting a revision before human ratification. The record currently permits closed schemas only when they also expose an open escape hatch, then declares every existing closed schema without one defective. That conclusion has not been established by the inventory and would turn this governance-only PR into a commitment to retrofit a large number of schemas. Please split the permitted class in two:
Then replace “schemas that fail it get an The TypeScript-codegen correction and the minor-change rule for optional fields on closed row envelopes look right. #7177 need not wait for this record. |
… B (extensible envelope) Per @bokelley pre-ratification review: the original single "both conditions" rule incorrectly required an escape hatch for all closed schemas, including discriminator/join-key objects where closedness is the semantic contract. Replace with two-class model: - Class A: discriminator/join-key objects — no escape hatch required - Class B: extensible row envelopes — ext/breakdown slot required Replace "schemas that fail it get an ext slot" implication with an audit/classification requirement: each of the 239 schemas must be classified as A or B; Class B schemas without an escape hatch are defects to be flagged for remediation. The record does not impose a remediation deadline. Minor-change rule, TypeScript codegen note, and loosening/tightening rules are unchanged. Co-Authored-By: Claude Sonnet 4.6 <[email protected]> Claude-Session: https://claude.ai/code/session_012FSJFSLEoe2j7WCsLUJgDR
|
Applied in the follow-up commit on this branch. Changes made:
#7177 is unblocked by this record and does not need to wait for ratification. Generated by Claude Code |
There was a problem hiding this comment.
Ladon verdict: Approve
Approve — single new governance decision record (DR-0019), no protocol surface touched.
This PR adds one new file, governance/decisions/DR-0019-closed-row-schemas-deliberate-class.md (+83 lines), a governance decision record. No schema, changeset, docs, or dist artifact surface is affected.
Checks:
- No critical/high/medium findings from the reviewer — clean pass.
- Format and sequential ID conform to the decisions README; builds on DR-0009 without contradicting it; load-bearing factual claims verify.
- high_risk: false; gated_paths: false — the file is a new addition, not a modification/deletion of a gated or high-risk path.
- No no-auto-approve team match.
- review_decision is REVIEW_REQUIRED, but since gated_paths is false, row 2 does not fire.
- Prior decision was
comment(not escalate), so row 6 does not apply; the current run has no findings.
No decision-table row 1–8 fires, so this falls through to row 9 = approve.
Note: review_decision is REVIEW_REQUIRED, which is informational here since no path-based or prose gate applies to a pure governance-record addition (no protocol change to classify).
There was a problem hiding this comment.
Ladon verdict: Approve
Approve — clean governance-only change.
This PR adds a single new governance decision record (DR-0019) formalizing that closed row/arm schemas are a deliberate class and that optional additions to them are minor. The reviewer verified the record's load-bearing claims: vendor-metric-value.json is accurately described (closed top with an x-adcp-open-payload breakdown slot), and DR-0019 extends DR-0009 rather than contradicting it. No code, schema, wire-shape, or docs-coherence surface is touched; no changeset is required for a pure governance record.
No critical/high/medium findings. gated_paths is false, high_risk is false, no no-auto-approve team match, and review_decision is APPROVED. Prior decision was also approve with no findings. None of decision rows 1–8 fire, so the outcome falls through to row 9 — approve.
Refs #7224 (Option A). Records the rule already operative in practice so #7177 and every future PR adding an optional field to a closed row schema can cite a record instead of re-arguing.
What it settles: closed rows are allowed only when (1) consumers join/reconcile/dispatch on their keys and (2) an explicit escape hatch exists (
ext,breakdown/x-adcp-open-payload). Optional additions to closed schemas areminorby rule. Loosening is Normative and must name the replacement unknown-key lint. Tightening stays Breaking per DR-0009.What it does not settle: #7224 options B/C (open the row family / open everything) remain 3.3 candidates and would supersede this record. It also does not certify that all 239 closed schemas meet condition 2 — that audit is a follow-up.
Governance-only change: no schema or changeset. Merge = ratification per
governance/decisions/README.md; flipstatus: recorded→ratifiedon merge if preferred.🤖 Generated with Claude Code