Skip to content

docs(governance): record DR-0019 — closed row schemas are a deliberate class - #7233

Merged
bokelley merged 3 commits into
mainfrom
docs/dr-0019-closed-row-schemas
Sep 4, 2026
Merged

bokelley merged 3 commits into
mainfrom
docs/dr-0019-closed-row-schemas

Conversation

@bokelley

@bokelley bokelley commented Sep 4, 2026

Copy link
Copy Markdown
Contributor

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 are minor by 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; flip status: recorded → ratified on merge if preferred.

🤖 Generated with Claude Code

…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]>

@aao-secretariat aao-secretariat Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

bokelley commented Sep 4, 2026

Copy link
Copy Markdown
Contributor Author

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:

  1. discriminator/join-key objects where closedness is the semantic contract and no extension slot is necessarily required; and
  2. extensible row envelopes where ext/breakdown is required.

Then replace “schemas that fail it get an ext slot” with an audit/classification requirement. The issue's latest triage draft already describes this two-category model.

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
@bokelley

bokelley commented Sep 4, 2026

Copy link
Copy Markdown
Contributor Author

Applied in the follow-up commit on this branch. Changes made:

  • Decision section restructured into two explicit classes: Class A (discriminator/join-key objects — closed shape is the semantic contract, no escape hatch required) and Class B (extensible row envelopes — ext/breakdown/x-adcp-open-payload required).
  • Implications bullet replaced: "schemas that fail it get an ext slot" is now an audit/classification requirement — each of the 239 schemas must be classified as A or B; Class B schemas without an escape hatch are flagged as defects for remediation, with no deadline imposed by this record.
  • Rationale extended with one paragraph explaining why collapsing the two classes into a single "must have escape hatch" rule was wrong in both directions.
  • Minor-change rule, TypeScript codegen note, and loosening/tightening consequences are unchanged.

#7177 is unblocked by this record and does not need to wait for ratification.


Generated by Claude Code

@aao-secretariat aao-secretariat Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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).

@aao-secretariat aao-secretariat Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@bokelley
bokelley merged commit 6ec67c5 into main Sep 4, 2026
29 checks passed
@bokelley
bokelley deleted the docs/dr-0019-closed-row-schemas branch September 4, 2026 16:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant