GeezerVison is showing github.com — design(atlas+pm): Metadata schema v1 + evolution doctrine — additive-only, extras, strict enums, breaking-change parking lot · Issue #9095 · developing-today/code
design(atlas+pm): Metadata schema v1 + evolution doctrine — additive-only, extras, strict enums, breaking-change parking lot #9095DescriptionWorkstream C — Metadata schema v1 + evolution doctrine (Atlas corpus AND issue/PR Metadata)
Parent program: #8983 · Proto design §C (the doctrine's canonical text lives there) · Shared with the PM program: #9060 design §12, slices #9073 (fleet Metadata superset) and #9074 (metadata DB + query) — amendments recording this doctrine are filed against both.
Why
Every Atlas item and every issue/PR carries Metadata. Classifications layered on later — by agents who will NOT hold permission to rewrite the schema — only work if the schema evolves without breaking old data. Drew's doctrine (2026-11-12): old metadata is as valid as new metadata; older embeds must run under a newer system; no dual-schema support burden.
The doctrine (to be specified in full; proto design §C is the draft)
- Version always carried. Every Metadata object — corpus item, embed, issue, PR — includes its schema version (
pm_meta for issue/PR Metadata per pm stack: multi-board hierarchy + full task genealogy #9060 §12; the Atlas metadata schema carries its own version field). Writers write the current version; readers accept every prior version indefinitely.
- Additive-only by default. A version bump may add fields and add enum values (where the enum allows). It may never remove a field and never make an optional field required.
- Breaking changes are parked, then batched. Required-ification and deprecations go to a single breaking-changes parking lot (a named doc/issue location). When the parked set justifies it, the set is applied as one version event, followed by a reclassify-everything pass over the corpus/items. Prudent, rare, no churn.
- Extras policy. The schema accepts unlisted data: unlisted keys live in an
extras dictionary attribute on the object (the design evaluates root-level extras as an alternative and records why the chosen shape wins). Type-directed handling: a value whose type mismatches the declared field type is treated as an extra (relocated to extras), never an error. Coercion rules: values that losslessly convert may coerce (int-array into a string-array field is allowed; the reverse only when each value actually converts). Non-converting values relocate to extras unchanged.
- Strict core enums.
kind, area, group, sensitivity (at minimum) are documented strict value sets in the schema. Each enum declares whether it is closed (no extra values) or open (extra values accepted and preserved). Invalid value in a safety enum defaults to the most locked-down value — e.g. a typo'd sensitivity becomes the schema's most restrictive value, never the most permissive.
- Optional means optional forever. Optional attributes are knowingly hard to filter/sort on; that is accepted (workstream A/G index what's extracted, the rest rides along). Optionality + versioning is the backwards-compatibility mechanism; classifying agents may add extras and classifications within the current version without schema changes.
Scope
- The Atlas corpus metadata schema v1 (per-item + per-embed: identity, content hash, source, chunking, embedder identity + model revision, classifications per workstream D, provenance, extras) — aligned with the staging schema
atlas_stage_v1 and manifest practice where they exist.
- The issue/PR Metadata alignment: pm stack: multi-board hierarchy + full task genealogy #9060 §12's block gains the version doctrine (its
pm_meta: 1 becomes a governed version, with the same additive/parking-lot rules); impl(fleet): fleet gh Metadata superset — create-path stamping + DB insert (extends #9016) #9073's required-field injection and impl(fleet): metadata database + fleet Metadata query surface #9074's extraction must implement "readers accept all versions".
- The parking lot itself: location, entry format, and the version-event + reclassify procedure.
Acceptance
Activitydeveloping-today commented on Nov 12, 2026 dezren39 commented on Nov 12, 2026 Seeded: breaking-changes parking lot
Per workstream C's doctrine, candidate breaking changes to the Metadata schemas (Atlas corpus metadata and issue/PR Metadata) are parked here as comment entries until the set justifies a single version event + reclassify-everything pass.
Entry format: field(s) affected · proposed change (required-ify / deprecate / rename) · reason · what breaks for old-version readers · reclassification cost estimate.
Current parked set: EMPTY (recorded explicitly at doctrine creation, 2026-11-12 — no candidate breaking changes are known today; the schemas start additive-only from v1). dezren39 commented on Nov 13, 2026 Amendment — Drew's directive, 2026-11-13 11:43 CST (Reports chat; verbatim staged at workspace/reporting-architecture-intake-20261113/sources/directive-2026-11-13-pages-comments-templates-graph.md). Amendment to the schema doctrine; no new issue filed. The sweep workflow side is on #9096.
Classification operations the doctrine must accommodate:
- Reclassification on schema bumps is a section-by-section review, not a blind re-run. When a new schema version loads, a fast, inexpensive model reviews any schema changes since the last loaded version section by section and reclassifies with the latest schema version, including all data from the previous version plus any new data. Doctrine consequence: a version bump triggers a bounded reclassification pass over affected sections — record in the doctrine how "affected" is determined and what happens to items whose sections didn't change (they stay valid, per additive-only; the pass must not silently re-stamp them).
- Every metadata artifact gets a main-store ID even if unsigned — at minimum the content-address hash of the metadata file itself. Unsigned is a valid state; absence of an ID is not.
- Signature companions are part of the artifact format family:
.json (data), .json.signature / .cert (signature), .json.signed (a JSON or specific format containing data + asserted primary/original signature). Open convention to decide under this doctrine: sign the data vs sign the signature vs both by default — Drew notes users may conventionally link from the original signed version rather than the data, and different methods may settle into different colloquial conventions per purpose. The doctrine should name the decision and its reversal path rather than let it emerge accidentally.
- Linking convention: because it must be easy to sign an item and easy to add links to items, metadata artifacts are first-class link sources/targets (multi-predicate / multi-subject link expressions are specified on research(id): triple encoding bake-off — compressed binary vs JSONB vs normalized byte-key maps #9125/research(id): graph query language selection + visualization #9126) — the schema's link fields should not assume single-subject/single-predicate records.
dezren39 commented on Nov 17, 2026
🤖 Agent note · triaged (inline triage — doctrine inputs live; full specification routed to task 20294)
- Agent: queue worker (repo-worker-code), lane any-c
- Session / ID: task 18843
- Found via: queue claim (bulk-intake triage packet, 2026-11-16)
Triage verdict (fresh, 2026-11-17, via gh):
- Issue design(atlas+pm): Metadata schema v1 + evolution doctrine — additive-only, extras, strict enums, breaking-change parking lot #9095 is OPEN with only
kind/design + epic/atlas-program — no triage of record. No hard-stop labels (held, user/owned, do-not-merge, do-not-auto-edit). Labels applied this pass: task/small-fix, priority/normal, effort/l.
- Work kind: small-fix (design specification, docs-only). Priority: normal. Effort: l.
- Inputs verified live on the issue: the doctrine draft (proto design §C), the breaking-changes parking lot already seeded as comment entries (2026-11-12), and Drew's 2026-11-13 amendment from the reporting-architecture directive. The work is specification, not invention: version-always-carried, additive-only, readers accept every prior version indefinitely, breaks parked then batched.
- First concrete step: write the schema v1 + doctrine as a doc PR, then file the doctrine amendments against pm stack: multi-board hierarchy + full task genealogy #9060 §12, impl(fleet): fleet gh Metadata superset — create-path stamping + DB insert (extends #9016) #9073, and impl(fleet): metadata database + fleet Metadata query surface #9074.
- Acceptance check: the doc PR specifies the doctrine completely (including the batched-break threshold/process and reader/writer obligations), the three amendments are filed, and this issue carries the PR link + the implied implementation split.
- Coordination note: this is the §C elaboration the design(atlas): Atlas v1 build-out — design-mill starter (proto design → full design set) #9091 design mill references — the design is filed under this workstream issue so the mill consumes it rather than re-deriving it (no competing program structure).
Routing: design packet queued as task 20294 (small_fix, 45 min, docs-only). Task 18843 completes as triaged naming it. Issue #9095 stays open for the design. dezren39 commented on Nov 17, 2026 dezren39 commented on Nov 21, 2026
Agent note — task 20294 · PR opened
- PR: docs(atlas+pm): specify metadata schema v1 and evolution doctrine #12259 — docs(atlas+pm): specify metadata schema v1 and evolution doctrine #12259 (docs-only; no schema implementation).
- Design:
Metadata schema v1 and evolution doctrine.
- Implementation split implied by the contract:
- Freeze Atlas/PM field registries, enum inventories, JSON/hash/signature vectors, and compatibility fixtures.
- Build shared readers/writers for versions, unknowns, lossless coercions, mismatch reporting, current-version writes, and exact-byte identity.
- Update
fleet gh (impl(fleet): fleet gh Metadata superset — create-path stamping + DB insert (extends #9016) #9073) to merge existing Metadata, stamp only owned fields, preserve caller data, and keep body/DB records aligned.
- Update metadata DB/query (impl(fleet): metadata database + fleet Metadata query surface #9074) to retain complete JSON and artifact identity, index registered fields, preserve missing-vs-false, and surface divergence.
- Implement adapters and affected-section reclassification with auditable manifests and retry/failure states.
- Add conformance/property/model coverage for IDs, preservation, enums, coercion, compatibility, links, signatures, and migration completeness.
- Ownership: these are design slices, not new queue issues; design(atlas+pm): Metadata schema v1 + evolution doctrine — additive-only, extras, strict enums, breaking-change parking lot #9095 owns the design, while pm stack: multi-board hierarchy + full task genealogy #9060 §12, impl(fleet): fleet gh Metadata superset — create-path stamping + DB insert (extends #9016) #9073, and impl(fleet): metadata database + fleet Metadata query surface #9074 consume the contract.
- Verification:
git diff --check origin/main...HEAD passed; python3 -I scripts/research_workflow.py check returned "ok": true.
dezren39 commented on Nov 23, 2026 Lane felix — picked up #9095 for its one remaining acceptance item; landed as PR #13527 (unmerged; Felix reviews/merges).
Done check (fresh, against origin/main):
- ✅ Schema v1 + evolution doctrine doc merged — PR docs(atlas+pm): specify metadata schema v1 and evolution doctrine #12259,
doc/2026-11-21T17-56-24Z_design_atlas_metadata_schema_v1/note.md.
- ✅ Doctrine amendments landed on impl(fleet): fleet gh Metadata superset — create-path stamping + DB insert (extends #9016) #9073 (2026-11-21) and impl(fleet): metadata database + fleet Metadata query surface #9074 (2026-11-12); pm stack: multi-board hierarchy + full task genealogy #9060 design cross-linked (2026-11-21).
- ✅ Breaking-changes parking lot seeded on this issue (2026-11-12), explicitly empty, entry format + version-event procedure in the design §5.2.
- ✅ Conformance fixture set — PR test(atlas+pm): metadata version conformance fixture set (#9095) #13527. Fixtures under the design folder's
fixtures/ (PM pm_meta v1 historical shapes + Atlas schema_version 1 / atlas_stage v1 shapes + exact-byte digest vectors), with executable tests against the current readers: fleet run 45227118068 (PM parse + stamp round-trip, 1 passed / 0 failed) and atlas run 45227125981 (staging byte-exact round-trip, 1 passed / 0 failed). Doctrine-projection cases (extras relocation, lossless coercion, sensitivity fallback, unknown closed enums) are recorded as oracle data for design §7 slices 2/6 — no current reader projects, so they are not asserted against one. No new persisted fields (CEN-04 §3.10 already owns the PM block/mirror facts); no new dependencies; no schedules touched.
With #13527 merged, every acceptance item on this issue is met. The issue also remains the parking lot's home (design §5.2 names #9095 as the lot's address), so the PR carries no Closes keyword — the close call is Felix's. dezren39 commented on Nov 23, 2026 Merged by Felix — PR #13527.
With this merge all four acceptance items are met: the schema v1 + doctrine doc (PR #12259), the doctrine amendments on #9073/#9074 with the #9060 cross-link, the seeded parking lot, and now the conformance fixture set — PM historical shapes with fail-closed cases, Atlas v1 envelopes, and exact-byte digest vectors for the §2 identity rule, each exercised by an executable conformance test (fleet run 45227118068, atlas run 45227125981, both green). The change is purely additive (fixtures + tests; no persisted field, no store written — CEN-04 §5 untouched).
#9095 stays open deliberately: design §5.2 names this issue as the breaking-changes parking lot's address, so it remains the lot's home even with the acceptance complete. dezren39 commented on Nov 24, 2026
Agent note — second-pass verdict (task 21953, pass 2 of coverage reconciliation, fresh 2026-11-24): #9095 is resolved in substance; no follow-on packet routed.
Disposition: all four acceptance items met. Issue stays OPEN deliberately as the parking lot's home per design §5.2 (Felix decision 2026-11-23, no Closes on #13527) — open state is by design, not pending work. developing-today commented on Nov 27, 2026 🤖 Agent note (lane code-j, 2026-11-26, triage task 25225): concur with the 2026-11-24 code-i verdict — resolved in substance, no packet.
developing-today-fleet commented on Nov 27, 2026 Triage refresh — queue task 25628 (2026-11-27)
Resolved in substance; no follow-on task. Live readback confirms #9095 is intentionally OPEN as the breaking-changes parking lot home. PR #12259 (schema v1/evolution doctrine) and PR #13527 (conformance fixtures/tests) are both merged. The prior triage record (task 25225, 2026-11-26) verified the amendments, seeded parking-lot entry format, and all four acceptance items; this pass found no new changes or uncovered work. No duplicate packet created and no code changed. Keeping the issue open is deliberate per doctrine §5.2, not an outstanding acceptance gap.
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|