1. 0.2.2 — planned
Maintenance and consumer-driven capability release on top of v0.2.1.
It consolidates the framework work since June 2026 and includes fixes and
generic pipeline capabilities exercised by external consumers.
-
validate_referencesgained two consumer-neutral frame-contract rules.required_columns(frame,columns, optionalexact: true) reports a missing frame, missing columns and, when exact, unexpected columns; column order is not part of the contract.non_empty(frame,columns, optionaltrimmed: true) reports every missing, null or empty-string cell, withtrimmedalso text that has leading or trailing whitespace, and honourswhen. Both follow the step’smodeand report through the existing finding shape, so a consumer no longer needs a local checker for table shape. Found by a consumer repository that had re-implemented them next to the pipeline. -
Bug fix (
BUG-JSON-INGRESS-MISSING-IDENTITY-P4A): JSON directory ingress now preserves Missing identity for explicitnullvalues and structurally absent fields on supported pandas 2.x configurations instead of turning them into the literal strings"None"/"nan". Missing values normalize to the existing empty-string representation, while legitimate domain strings"None"and"nan"remain unchanged. The corrected behaviour is also verified against pandas 3.x. -
Declarative
primary_key/foreign_keyvalidation and graph endpoint resolution now use category-aware relation-key identity. Strings compare exactly (including whitespace); Number/String and Boolean/Number pairs do not match; integral numeric carriers such as1,1.0, andnumpy.int64(1)match; and Missing values never participate in relation resolution or primary-key duplicate identity. Graphunique_edgesand referenceunique_referenceretain their existing generic tuple-uniqueness behavior. This is a bounded relation-key rule, not general scalar normalization. -
Lookup enrichment, duplicate-key detection, and helper-mismatch verification now use category-aware relation-key identity. Strings compare exactly (including whitespace); Number/String and Boolean/Number pairs do not match; and integral numeric carriers such as
1,1.0, andnumpy.int64(1)match. Missing values never resolve or count as duplicate lookup keys, and mixed pandas key dtypes now follow Lookup’s configured missing-key policy instead of raising a pandas dtype error. This is a bounded Lookup rule, not general scalar normalization. -
FK helper enrichment and validation now use category-aware relation-key identity: Strings compare exactly (including whitespace), Number/String and Boolean/Number pairs do not match, and integral numeric carriers such as
1,1.0, andnumpy.int64(1)match. Missing values never resolve or count as duplicate IDs; the literal String"nan"remains an ordinary duplicate-able key. This is a bounded FK rule, not general scalar normalization. -
Workflow Coordinator prompts now include one mandatory, reviewed Coordinator-owned agent operating contract admitted before Run creation and recorded with bounded provenance in operator-plan evidence.
-
Workflow Coordinator repository policies now use the strict version 3 surface: consumer-owned
evidence_commandsdefinitions replaceevidence_statesand the former in-code command registry. Version 1 and 2 repository policies are rejected with a migration-required diagnostic; no backward-compatibility reader or migration machinery is provided. -
Bug fix: FK validation no longer emits false
unresolvable_fkorvalue_mismatchfindings for Missing source FKs (None,"", NaN,pd.NA, orNaT). The literal string"nan"remains an ordinary FK value and is reported asunresolvable_fkwhen it does not resolve. -
Opt-in less-trusted pipeline-description authorization (
FTR-TRUSTED-INGRESS-P4A, Phase-E slice E7; implementation awaiting fresh independent review): trusted Python callers can supply aLessTrustedDescriptionAuthorizationtobuild_steps_from_config,build_steps_from_yaml, orrun_app. Its closed policy grammar grants exact registered step names, exact canonical plugin targets, and exact writer roots, with the resource-specific restrictions documented by the FTR. Omitting the keyword retains the existing trusted-description behavior, so current configurations require no migration.run_appapplies E7 only while constructingAppConfig.pipeline;AppConfig.ioremains trusted-operator- owned. Authorized plugins remain trusted same-process Python under their complete argument contract: this is not a Python sandbox. The initialsheets-runCLI does not advertise less-trusted YAML protection. -
Asymmetric lookup join keys (
FTR-XREF-LOOKUP-HELPER-SUBSTITUTION-P4A2Slice 1):add_lookup_helpers(enrich_lookup) gains an opt-insource_key/lookup_keyparameter pair that joins a source-side key against a differently named lookup-side key (e.g. sourcestory_idagainst lookupid). The pair is mutually exclusive with the symmetrickey/keys/"on"forms and both halves are required together. Only the source key appears in the output frame; the lookup key never leaks, andhelper_position: before_keyanchors on the source key. All existing symmetric behaviour — values, columns, ordering, diagnostics, provenance, and errors — is unchanged; the asymmetric provenance additively records the distinctsource_key/lookup_keyinstead of a synthetic common key. An explicitsource_key/lookup_keypair is authoritative for join-key selection: it ignores a configured helper-policykeywhile still consuming the policy’s non-key settings (helperfields,allowedfields,order,missingbehaviour, and helper value mode), and it keeps the asymmetric provenance shape even when the two key names are equal. A requested helper or temporary sort field that collides with the source key or the lookup key is rejected with a clear domain error before projection, so the source key is never overwritten and the lookup key never leaks in either values or formula mode. This collision safety follows the selected asymmetric mode even when the two key names are equal (an explicit asymmetric key cannot also be requested as a helper), while sorting the output by that key stays valid and legacy symmetric behaviour is unchanged. Requesting the same helper column twice is rejected with a clear domain error before projection (a generic guard for both modes) so output labels and helper provenance stay unambiguous.apply_derived_column_policymismatch policies (warn_on_mismatch/fail_on_mismatch) now value-check asymmetric helpers by keying the payload onsource_keyand the lookup frame onlookup_key; they fail closed on invalid mismatch provenance. The join-key form is selected from mapping-member presence rather than value truthiness, so a present record with no key form, an explicitlynullmember, a partial, mixed, blank, or wrong-typed key all raise a clear error naming the metadata path; a named key column absent from the payload or lookup frame yields a severity-appropriate inability-to-verify finding instead of a silent pass; andpolicy: dropstays value-blind. This is a backend-neutral domain-lookup capability; it was subsequently bound across the persistence boundary, migrated into the worldbuilding pipelines, and used to retireproject_by_rolein the later slices recorded below. -
Durable inbound helper binding (
FTR-XREF-LOOKUP-HELPER-SUBSTITUTION-P4A2Slice 2): settles the public inbound sequence that letsapply_derived_column_policy(policy: drop)remove a read-only display helper (such astitle) before the XRef inverse, using only existing steps (no new runtime capability). The durable carrier is_meta.sheets.<visible-sheet>.helper_columnswritten byconfigure_workbook_view; the transient_meta.derivedprovenance is pruned at the persistence boundary. Cleanup must run by the visible sheet name beforeapply_workbook_view_sheet_mappings, because that mapping re-keys frames but not_meta.sheets; logical-frame cleanup after mapping leaves the helper unclassified and the inverse would melt it. An edited read-only helper is discarded under value-blinddrop, never melted or written back. The optionalvalidate_references/no_helper_columnspostcondition is declaration-bound: it and the cleanup read the same_meta.sheets.<visible-sheet>.helper_columns, so it catches an omitted or ineffective cleanup that leaves a declared helper behind, but it cannot detect a missing declaration (with no declaration both cleanup and guard see no helper and pass while the helper survives). A column name is never inferred; verifying that each Workbook View sheet declares its display helper is a consumer-owned static check (Slice 3 for the Worldbuilding matrix sheets). See the "Removing a read-only display helper before the inverse" section of the supporting-steps user guide. -
Retired the
project_by_rolepipeline step (FTR-XREF-LOOKUP-HELPER-SUBSTITUTION-P4A2Slice 4). Breaking public-step removal. After the Worldbuilding consumers migrated (Slice 3), the role-based projection step, its registration, itspipeline_step_registry.jsonandimplementation_units.jsonrecords, and its four dedicated tests were removed. The read-only display-helper behaviour it provided is fully reproduced by the explicit lookup/helper composition: outboundadd_lookup_helperswithhelper_position: before_key, and inboundapply_derived_column_policy(policy: drop)bound to the durable_meta.sheets.<visible-sheet>.helper_columnscarrier before the XRef inverse. There is no deprecated wrapper, alias, or hidden fallback; a pipeline still configuringstep: project_by_rolenow fails with the normal unknown-step diagnostic. Migration: replace anyproject_by_roleusage with the composition above (see Slice 1/2 entries and the supporting-steps user guide). The shared column-role resolver (spreadsheet_handling.domain.column_roles) and the foundation role taxonomy (row_identity,display_helper,matrix_value) are retained — they remain the source of truth for role-targetedadd_validations. -
Flat one-level XRef axis-label projection (
FTR-XREF-AXIS-MAPPINGS-P4A2Slice 2): two new opt-in pipeline steps,project_axis_labels(outbound) andrestore_axis_keys(inbound), swap a relation’s axis-identity column (defaultcolumn_key) between stable canonical keys and readable flat one-level visible labels, composed around unchangedcontract_xref/expand_xref. The key/label bijection is resolved on every run from a live source frame (source_frame+key_column
label_column) via the reviewed Slice 1 resolver; nothing is persisted, and an absent source frame fails rather than trusting stale or visible text. A canonical key missing from the mapping (outbound) or an unresolvable visible label (inbound) fails before any output is published; input frames and_metaare never mutated. Flat-string XLSX and ODS matrices round-trip with no carrier or XRef change. Hierarchical (tuple) labels and grouped multi-row headers remain later slices. Opt-in: existing flat XRef pipelines are unaffected. -
Grouped XRef composites (
FTR-XREF-AXIS-MAPPINGS-P4A2GX-2): two new opt-in pipeline steps,contract_grouped_xrefandexpand_grouped_xref, project a canonical relation onto a grouped matrix whose dynamic column headers carry multi-level visible label tuples and restore it exactly, composing unchangedcontract_xref/expand_xrefwith the reviewed grouped-header projection. The forward step publishes aGroupedMatrix— an internal domain carrier bundling the flat canonical matrix with its grouped-header descriptor; the inverse reads that carrier back. Raw carrier construction is rejected; the publicgrouped_matrix_from_canonicalfactory and the inverse both prove that the current canonical flat column schema projects to the exact carried descriptor, so reordered/moved/stale/altered headers fail before values can be assigned to different canonical keys. The arity-N key/tuple bijection is resolved on every run from a live source frame (source_frame+key_column+label_columns) via the Slice 1 resolver; nothing is persisted.xref_config_idselects the unchanged XRef metadata identity, while YAMLnameremains the pipeline step name. One-shotrow_keysiterables are owned once and safely reused. Opt-in: existing flat and grouped-free XRef pipelines are unaffected. -
Grouped XRef workbook carriers (
FTR-XREF-AXIS-MAPPINGS-P4A2GX-3b/GX-4): grouped matrices are now workbook carriers for both XLSX and ODS. AGroupedMatrixcomposes into an exact, lossless multi-row header grid (repeated literal labels, no reliance on merge geometry); reading it back with the opt-in configured-depth exact-header gate (exact_header_depths, per sheet, on the XLSX and ODS readers) yields a backend-neutral exact table that the newreconstruct_grouped_matrixpipeline step turns back into a validatedGroupedMatrixunder one live axis mapping, ready for the unchangedexpand_grouped_xref. The exact read overrides merge-based header inference, captures every physical header cell verbatim (merged masters resolved, blanks preserved, no" / "join/split), and begins data directly below the configured depth. Opt-in: without the gate every read is byte-identical to before. -
Grouped XRef workbook adoption through the public render path (
FTR-XREF-AXIS-MAPPINGS-P4A2GX-5): the already-accepted grouped workbook carrier is now reachable through the public configuration surface. An explicitconfigure_workbook_viewsheet selection accepts aGroupedMatrix(preserved by identity) alongside ordinary DataFrames for inclusion, declaration order, and physical sheet rename; column-targeted sheet options (helper_columns,editable_columns, protection, generic options) are rejected for a grouped sheet because grouped identity is the full visible tuple. The router-facingsave_xlsx/save_odssavers preserve aGroupedMatrixthrough to the render path instead of coercing it, while every other value keeps its existing DataFrame coercion. On readback, Workbook View sheet mapping now counts acore.ExactTable(produced under theexact_header_depthsgate) as a projected visible sheet, soapply_workbook_view_sheet_mappingsre-keys it to its logical frame for the unchangedreconstruct_grouped_matrix→expand_grouped_xrefchain. A pre-render grouped Workbook View validation failure publishes no output file and mutates neither caller frames nor_meta. Opt-in: no new step, type, or parameter; existing DataFrame Workbook Views and direct backend writes are unchanged. -
Legend Blocks canonical shape and
resolvedcorrection (FTR-LEGEND-BLOCKS-RESOLVED-SHAPE-CORRECTION-P5):meta.legend_blocksmay still be authored as either a mapping or a list (list identity resolved fromname, thenid, then a positionallegend<n>fallback), but list form is now normalized once to the canonical insertion-ordered mapping at an internaldomain.ingressboundary invoked automatically after orchestrator load and after thebootstrap_meta/apply_overridesconfig merges. Every domain, validation, render, persistence, and carrier consumer now sees mapping form only. An explicitlegend_blocks: nullis treated as an absent declaration and canonicalized to an empty mapping, so structured persistence cannot emit a null Legend Blocks root. The render-derivedresolvedplacement facet is Resolution, never durable Intent: it is stripped at domain ingress, at the structured sidecar persistence boundary, and — newly — from canonical XLSX/ODS workbook readback after the parser has used it to classify the legend surface, so it can no longer transiently re-enter canonical_meta. A default-placement legend that lands on its own sheet no longer round-trips as an extra payload frame (XLSX and ODS parity). Compatibility: external list and mapping authoring remain accepted through the application/config path, but direct low-level calls (run_pipeline, a raw render, or a backend save) with list-formlegend_blocksare no longer supported — such callers must supply canonical mapping form or invoke ingress explicitly. Every configuration-derived callable string — the public plugin step, direct colon-stylestep:factories, and nested string targets accepted by generic frames-first or builder-style binders — passes through one pipeline-local ownership check before import and rejects the framework-internalspreadsheet_handling.domain.ingressnamespace. Direct Python callable targets and ordinary dotted-callable plugins/factories are unchanged. Thelegend_blocksmeta-registry entry now names its full producer/consumer surface. Entry-value semantics are unchanged and remain owned byFTR-LEGEND-BLOCKS-ENTRY-CONTRACT-P5. -
Compact Multiaxis persistence correction: composed expand/contract runs no longer persist XRef metadata that names their deleted internal temporary relation. A legitimate caller-supplied prior XRef entry is restored exactly.
_meta.compact_multiaxisremains persisted as a diagnostics-only trace; it is not inverse intent or configuration fallback, and it no longer blocks column schema maintenance. Sparse Defaults remains a separate explicit pipeline composition. -
Compact Multiaxis scoped recomposition (
FTR-COMPACT-MULTIAXIS-SCOPED-RECOMPOSITION-P4A):expand_compact_multiaxisgains an optionalbase_canonical_relationparameter so a partial spreadsheet projection (a matrix and/orvalue_columnsthat expose only a subset of a larger relation) can be reimported without losing rows outside the visible scope. The composite Cell-Codec-encodes the named canonical base relation to the compact relation shape XRef expects, passes it through the wrappedexpand_xrefas itsbase_relation(in-scope matrix addresses replace — or, when cleared, delete — exactly the visible scope; out-of-scope base rows are preserved), then decodes the merged result. No parallel merge logic is added; replacement, deletion, and ordering stay XRef-owned. The parameter is opt-in and names the pre-codec canonical shape, distinct from the compact-shapedexpand_xrefbase_relation; omitting it reproduces the previous full-replacement behavior, so existing full-matrix pipelines are unaffected. The intermediate encoded base is an internal temporary frame that never leaks into returned or persisted metadata. -
Carrier-neutral final domain cleanup (
FTR-META-ONTOLOGY-REMOVAL-WORKBOOK-PROJECTION-EPIC-P4A, first slice): pipelines can now remove redundant logical frames before persistence so that every output adapter — JSON/YAML/XML/CSV directories and XLSX/ODS workbooks — observes the same cleaned frame set. A newconfigure_pipeline_cleanupstep declares eitherdrop_frames(frames to remove) orkeep_frames(final frame set to retain; mutually exclusive modes, contradictions fail).expand_xref/contract_xrefgain an explicitdrop_sourceparameter that marks the superseded source frame for cleanup. The orchestrator executes and consumes these commands implicitly between the configured steps and the persistence boundary; commands never persist or roundtrip. A frame targeted by an explicit drop command while explicitly mapped byworkbook_viewfails before anything is written. Known limitation: artifacts written by mid-pipeline steps (write_structured_yaml,write_key_value_resources) are emitted before the cleanup boundary and reflect the earlier uncleaned state. -
Cleanup/Workbook-View conflict refinement: only explicitly drop-commanded frames conflict with an explicit
workbook_viewmapping. Keep-mode implied removals coexist with (possibly reimported, stale) view mappings, so reverse pipelines can retain a canonical frame subset from a workbook whose persisted view still maps the discarded view frames; the spreadsheet renderer still fails loudly if such a workbook were written again with a mapped frame missing. -
_meta.workbook_view.sheet_mappingsentries are now frame-only (sheet+frame). The derivedcanonical_framekey is no longer produced; legacy persisted mappings that carry it are ignored on read. Schema maintenance (sheets-schema-maintain) now routes sheet-scoped column references to the frame actually mapped to the sheet (frame-only resolution): renaming a column of a projection’s source frame no longer updates constraints or sheet options that target the projection’s sheet. The projection/source relationship remains feature-local transformation knowledge (for examplexref_crosstableintent), not generic mapping identity. -
Generic frame lifecycle/render ontology has been removed. Rendering now selects every remaining logical frame when no explicit
workbook_view.sheetslist exists; an explicit list is authoritative for selection, names, and order.configure_workbook_viewno longer accepts or writes lifecycle/render-policy knobs (mode,drop_redundant_data,unknown_frame_policy, debug/role inclusion controls, or sheet lifecycle fields). Generic lifecycle writes were removed from extraction, join, pivot, compact-multiaxis, lookup-enrichment, and Workbook View producers; legacyframe_lifecyclepayloads are ignored and stripped at persistence. Schema maintenance no longer treatscanonical_frameas a generic frame reference. Feature-local inverse contracts and FK relationproduced_byconflict identity remain unchanged. -
XRef projection family (
expand_xref/contract_xref): persisted_meta.xref_crosstableentries now carry only the minimal inverse intent (relation,matrix,row_keys,dense_axesintent); the descriptiveoperation,column_key,value, anddrop_emptyfields are no longer written (legacy payloads are tolerated). Intent lookup by frame name now fails explicitly when multiple entries match instead of silently using the first — in the transformations, in sparse-default targeting, and in column-role resolution (pass explicitkey_columnsto disambiguate).drop_sourcenow rejects checkable value loss: a contraction over a relation with fields beyondrow_keys+column_key+value, a contraction whose matrix columns do not cover every relation column key, or an expansion whose explicitvalue_columnsleave matrix columns unexpanded. XRef roundtrip matrix-axis identities are now contractually unique, non-empty strings (carrier-stable across XLSX/ODS headers): numeric, missing, mixed-type, duplicate, or unhashable axis identities fail with explicit diagnostics on every axis-identity source — relationcolumn_keyvalues, explicit/metadata-derived/dense-derivedcolumn_keys, scopedbase_relationidentities, and the full physical matrix header row — before any cleanup command is recorded; explicitvalue_columnsare validated as axis identities before therow_keysoverlap check, so a missing (pd.NA), numeric, or array-valued selector now yields the XRef diagnostic instead of a raw pandas/NumPy error. Physical relation/base_relationcolumn labels are a distinct, weaker boundary — non-missing, hashable, uniquely and deterministically comparable, and scalar-addressable, but not required to be strings: missing-like (None/NaN/pd.NA), ambiguous-equality, unhashable (for example a Pythonlist), or duplicate physical labels are rejected before any output or cleanup (closing a case where duplicateNaN/pd.NAlabels previously produced aSeriescell and an unwanted cleanup command, and a deterministic unhashable label previously raised a rawTypeErrorinside pandas membership). Duplicate configuredrow_keysandvalue_columnsoverlappingrow_keysfail the same way. Typed (non-string) matrix-axis identities were never carrier-stable and are explicitly unsupported; hierarchical/tuple physical labels remain future design work, neither promised across the operation surface nor prohibited by a global string-only rule.sheets-schema-maintainhandles_meta.xref_crosstablewith a dedicated checker that blocks renames/drops only for real XRef references (row_keyson the relation/matrix frames, matrixcolumn_keysincluding storeddense_axes.resolved.column_keyssnapshots, dense-axis keys); convention-style shapes inside the root no longer block, and real references no longer dangle silently. -
Cell Codec projection family (
encode_cell_values/decode_cell_values): codec intent lives entirely in explicit step configuration; the_meta.cell_codecsfamily is retired (it had no runtime reader — legacy payloads in old sidecars/workbooks are ignored pass-through sediment, andsheets-schema-maintainno longer blocks on them). The string-oriented contract is enforced on the position-based path: numeric/boolean/date participating values fail explicitly instead of silently changing type; empty and missing values encode as the configuredabsent_valueand decode to"". Declaration guards reject duplicate participating/group columns, duplicate physical labels, compact-column collisions,absent_valuecontaining the separator, and decode collisions with existing columns.split_tokensserialization now rejects tokens containing the delimiter (previously producing cells that could not be decoded back to the same tokens). The user-guide section was corrected (actual modes arewhole_cell_code/split_tokenswith delimiter default-; the position-basedcodec_intentcontract is now documented). -
sheets-schema-maintainnow maintains lookup-helper policy references in_meta.helper_policies.lookup: renaming a column of the lookup frame updates the policy’skey,allowed_helpers,default_helpers, andorder.sort_byreferences, and dropping a column referenced by a lookup policy is blocked (prune included). Previously these references silently dangled after a rename or drop. -
sheets-schema-maintainno longer silently ignores unmaintained_meta.helper_policiessubtrees (anything other thanfkandlookup): if such a subtree contains a structured frame+column reference to the affected column, rename/drop now blocks with a reported metadata reference instead of leaving the reference dangling. -
Bug fix (
BUG-ODS-XLOOKUP-FORMULA-INTEROP-P4A): ODS formula-mode FK-helper and lookup-helper formulas (helper_value_mode: formula) previously opened as#NAME?in LibreOffice Calc even though the lookup references were valid, until each formula was manually reparsed through the Function Wizard. The ODS writer now serializes the lookup as LibreOffice’s extension-qualifiedCOM.MICROSOFT.XLOOKUPrather than plainXLOOKUP(not part of the standard OpenFormula vocabulary), so generated formulas evaluate immediately — verified against LibreOffice 25.2.3.2, including live recalculation on a source FK edit and the configured missing-result behavior for an unknown key. XLSX formula rendering and both backends'helper_value_mode: valuesare unchanged.valuesremains the broader-compatibility fallback for LibreOffice versions withoutXLOOKUPsupport, but it does not update the displayed helper value live when the source FK is edited. -
Bug fix (
BUG-ODS-MISSING-CARRIER-LITERAL-NAN-RENDERING-P4A): the ODS writer’s per-cell emptiness check was NaN-blind, so a real pandas/NumPy missing value reaching the renderer — e.g. a successful FK-helper lookup whose resolved target field is itself missing, or an ordinary blank cell loaded from acsv_dirsource — was serialized as the literal text"nan"instead of an empty cell. Both cases now render (and reimport) as an empty cell on ODS, matching XLSX’s existing behavior. A legitimate domain value that is literally the string"nan"is unaffected and still round-trips as"nan". -
Bug fix (
FTR-MINIMAL-INTERNAL-VALUE-MODEL-P4ASlice 1, D2): thecsv_dirdirectory-read ingress path applied pandas' default dtype inference and NaN handling instead of the string-preserving contract already used by the single-file CSV path, JSON, and YAML. A blank cell now loads as""rather than a pandasNaN, and a numeric-looking textual value such as"007"is no longer dtype-promoted to a number — it retains its exact textual representation, matching the already- establishedcsv_dir/CSV/JSON/YAML ingress contract for every other format. This is the matching ingress-side fix for the same carrier-leak class theBUG-ODS-MISSING-CARRIER-LITERAL-NAN-RENDERING-P4Arenderer- side fix above closes. -
Bug fix / new capability (
FTR-DATE-TIME-INTERNAL-VALUE-MODEL-P4AD-T2):save_yaml_dir(yaml_diroutput) andwrite_json_dir/JSONBackend.write_multi(json_diroutput) previously raisedyaml.representer.RepresenterErrororTypeErrorfor anydatetime.date/datetime.datetime/pandas.Timestampcell value, including a column loaded unmodified from a YAML file’s own native timestamp tags. Both now accept these values: YAML writes a native, unquoteddate/timestampscalar at microsecond precision (a missing temporal cell writes asnull, matching the existingdatetime.dateconvention); JSON writes reserved, single-key{"$date": "<ISO date>"}/{"$datetime": "<ISO datetime, offset suffix iff aware>"}envelopes at microsecond precision (a missing temporal cell writes as"", matching every other column’s existing Missing convention). Timezone awareness and the exact numeric UTC offset are preserved; named/IANA timezone identity andpandas.Timestamp-vs-datetime.datetimecarrier identity are not.read_json_dir/JSONBackend.read_multiis deliberately unchanged for this slice: a$date/$datetimeenvelope written bywrite_json_dirreads back as a plain string, not a native temporal value. -
Breaking change (
FTR-XREF-PHYSICAL-LABEL-METADATA-AUTHORITY-P4A):contract_xref/expand_xref’s `row_keysand dense-axisrows_from/columns_fromkey/keysselectors — including the inherited Compact Multiaxis forwarding trace — must now be an exact, non-empty nativestr(type(value) is str and value != ""; no coercion or stringification). This retires the previously published or mechanically-accepted non-string selector (numeric, boolean, date/datetime, NumPy/pandas scalar variants,bytes,complex,frozenset, a stable custom hashable/comparable object, astrsubclass, ornumpy.str_) for this specific nominated-selector role only: only astrphysical column label reloads under the identical name on every currently maintained frame-plus-metadata carrier (JSON directory, XLSX, ODS). A numeric selector, for example, previously worked in-process but silently broke a later lookup after any of these carrier round trips, because the referenced physical column itself retypes on reload even though the persisted metadata copy does not. Non-string physical DataFrame columns remain fully legal everywhere they are not nominated as arow_keys/dense-axis selector (the general physical-label contract is unchanged); whitespace-only string selectors remain accepted. -
New capability / breaking change (
FTR-TRUSTED-INGRESS-P4A, Phase-E slice E3 — metadata substrate admission): every maintained external-to-Domain_metaboundary (initial framework ingress,bootstrap_meta,apply_overrides) now enforces a bounded metadata substrate grammar after Legend Blocks' own shape normalization:_metais either absent/None, or an exactdictwhose recursive ordinary containers are exactdict/list, whose dict keys are exactstrwith no exceptions, and whose leaves are an E1-admitted ordinary Scalar (string, boolean, number, date, datetime, or a recognized missing carrier). A shared acyclic alias (the same nested object reachable from two independent branches) is permitted; a self- or indirect cycle is rejected. Legend Blocks' complete normalized output is checked by this same walker, so an out-of-grammar node cannot escape by virtue of coming from a delegate. Rejection is atomic and non-mutating: a violation anywhere in the tree leaves the caller’s_metaobject graph completely unchanged and aborts before any pipeline step, cleanup, or saver runs.Two carrier-reachable but never-semantically-supported shapes are narrowed as part of this slice, both previously silently tolerated by the retained legacy-read paths with no prior compatibility disposition:
-
YAML directory metadata sidecar (Option A). In a
yaml_dirinput, the file stem_metais now reserved for framework metadata: at most one of_meta.yaml/_meta.ymlmay be present, it is safe-loaded and must be a mapping at its root, and it is placed directly atFrames["_meta"]— never materialized as an ordinary DataFrame sheet. Both spellings present, or a non-mapping (including empty-file) root, is rejected at the YAML backend/parse boundary with a clear error. Migration: ayaml_dirinput that used_meta.yaml/_meta.ymlas an ordinary data sheet (it was never a supported roundtrip contract — the existing YAML saver already skips writing a_metasheet) must rename that file; ayaml_dirinput that intends framework metadata must supply a plain mapping. The YAML saver continues to omit_metaon write; no new roundtrip promise is added. -
Legacy Python-literal and YAML-tag special metadata values/keys. The legacy XLSX/ODS
workbook_meta_blobast.literal_evalfallback, and YAML’s!!set/!!binarytags reachable from an authored or structured_meta.yamlsidecar, can produce atuple,set,bytes, orcomplexmetadata value, or a non-str(int/bool/float/None/tuple) dictionary key. The legacy/YAML carrier parse itself is unchanged and still recovers the surrounding dict; E3 now deterministically rejects the specific unsupported node at its exact metadata path, with a safe diagnostic that never renders the rejected value or key. None of these shapes is silently coerced (nostr()/list()conversion) or silently admitted. Migration: a workbook or metadata sidecar carrying one of these legacy/tagged shapes must be rewritten with an application-specific, meaning-aware replacement (e.g. asetas alist) before it can be re-ingested; ordinary metadata already limited todict/list/str-key/ Scalar shapes is unaffected.
No existing maintained producer/consumer needed a compatibility exception: current XRef dense-axis metadata (
row_keys,dense_axeskey/keys,resolved.row_identities, and the Compact Multiaxis-forwardedrow_keyscopy) was already narrowed to exact non-emptystrselectors by the independently acceptedFTR-XREF-PHYSICAL-LABEL-METADATA-AUTHORITY-P4A(noted above) and passes this new substrate check unchanged, with no XRef-specific E3 exception. Family-level metadata semantics (Legend Blocks entry validity, XRef business rules, workbook-view shapes, and so on) remain exactly as validated by their own owning features; E3 only enforces the structural substrate, not per-family meaning. -
-
Behavior change (
FTR-TRUSTED-INGRESS-P4A, Phase-E slice E4 — R1 finding scalarization):validate_referencesandvalidate_graph’s warn-mode finding reports now emit only a Scalar-compatible `row_indexcell, unconditionally. Apandas.MultiIndexrow index becomes a comma-joined diagnostic String (e.g."east, 1") instead of a raw Pythontupleobject. Any other row-index label that is neither an admitted Scalar carrier nor aMultiIndextuple (reachable today because no row-index grammar is yet selected for arbitrary hashable DataFrame indexes) is replaced by the stable placeholder String"<unsupported row index>"rather than reaching the report cell as a raw object. An ordinary (default integer-indexed)row_indexis unchanged and is not stringified. Migration: any consumer that inspectedrow_indexon a finding and relied on it being a Pythontuple, or on it being the original raw index object for a non-default index, must switch to parsing the String label instead; none of this was ever a documented contract, and the label is a diagnostic projection, not a reversible codec. -
New capability / breaking change (
FTR-TRUSTED-INGRESS-P4A, Phase-E slice E5 — framework-managed macro wiring): the single macro seam every router-backed entry point funnels through (orchestrate, and thereforesheets-run,run_app, the compatibility orchestrator shim,sheets-schema-maintain/run_schema_maintenance) now enforces the complete Trusted Ingress E1-E4 contract end to end, rather than only the metadata-substrate slice (E3) it already enforced. Two user-visible consequences:-
Initial ordinary structural/Scalar admission is now wired in. A router- loaded top-level carrier that is not an ordinary
DataFrame/ExactTable(e.g. a raw non-tabular value under a non-_metakey), a DataFrame whose physical columns fail the existing addressability contract, or any ordinary cell that is not one of the six admitted Scalar categories, is now rejected before the first configured step runs — previously this E1/E2 representation existed but was not reachable from the macro. Migration: none for conformant input; a payload that only worked because this check was unreachable must be corrected at the source. -
A configured step’s returned candidate is now conservatively re-established when it is not an exact reviewed transition. Every step is classified against the closed, exact E4 transition set (the
add_lookup_helpers(helper_value_mode="formula")FormulaSpec introduction,contract_grouped_xref/reconstruct_grouped_matrixGroupedMatrix introduction, their one admitted nested composition, bothexpand_grouped_xrefreverse endpoints, andwrite_artifact_manifest’s manifest role). A step outside that exact set — any built-in without an exact certificate, dotted-plugin step, or caller-supplied `BoundStep, regardless of what it wraps — has its returned candidate pass ordinary re-establishment before the next step, final cleanup, or save; a candidate that cannot become ordinary (a survivingFormulaSpec,GroupedMatrix, or non-Scalar manifest cell) now raises before any later Domain processing or save runs. At final save, aGroupedMatrix/LookupFormulaSpecrole may reach only anxlsx/odsoutput kind and the artifact-manifestsource_framesrole may reach a save only after whole-frame_meta.pipeline_cleanupremoval of its frame; any other combination now raisesapplication.managed_pipeline.UnauthorizedControlledRoleAtSinkErrorbefore the saver runs, instead of reaching an incapable adapter. Migration: a pipeline that relied on a non-formula-mode helper, a grouped/manifest role surviving to an unsupported output kind, or any other previously-unenforced uncertified-return shape must either drop the artifact manifest’s source frame viaconfigure_pipeline_cleanupbefore save, target a FormulaSpec-capable sink (xlsx/ods), or otherwise ensure every configured step’s return is ordinary before it reaches the saver; the maintained FormulaHelper → GroupedMatrix → XLSX/ODS path and every other currently maintained flow are unaffected.
run_pipelineitself remains unchanged and unwired: a caller invoking it directly (bypassingorchestrate) still receives no automatic ingress or re-establishment, exactly as before. -
-
Safety/correctness narrowing — FK helper / DCP deletion authority (Derived Artifact / FK Helper Deletion Authority workstream): durable FK relation policy (
_meta.helper_policies.fk) alone no longer authorizes physical deletion of an FK-attributed helper column, in eitherremove_fk_helpersorapply_derived_column_policy. Previously, a durable relation that merely named a column as a potential FK helper could cause that column to be dropped even without current evidence that this pipeline run actually produced it — risking deletion of a same-label foreign column a durable relation happened to also name. Deletion now requires current, truthful transient producer provenance (_meta.derived.sheets.*.helper_columns), unless another independently accepted deletion authority applies. Migration consequence: generic persistence prunes transient_meta.derivedprovenance at the persistence boundary, so after a reimport with no fresh helper-materialization pass in the same session, a durable FK relation that still names a helper column can no longer cause it to be dropped; the column survives with a non-raising diagnostic. The supported durable cleanup route for this case remains explicit Workbook-View_meta.sheets[*].helper_columnsdeclaration (viaconfigure_workbook_view), which a pipeline author declares deliberately and which is unaffected by this narrowing. -
Bug fixes —
apply_derived_column_policymismatch checking forenrich_lookuphelpers (FK / Reference-Helper Domain-family hardening, F-002 Slice 2): two intentional, user-observable corrections towarn_on_mismatch/fail_on_mismatch.-
Formula-mode helper mismatch checking is now correct. Previously, a
helper_value_mode="formula"helper cell (aLookupFormulaSpec, not a copied scalar) was compared viastr(LookupFormulaSpec)against the plain canonical lookup value — this essentially always mismatched, spuriously reportingderived_value_mismatchunderwarn_on_mismatchand always raising underfail_on_mismatch, for every correctly-enriched formula-mode row. Formula-mode cells are now compared structurally: the cell’s declared(lookup_sheet, source_key_column, lookup_key_column, lookup_value_column)identity against the relationship the provenance declares. A structural divergence is now reported under a newrule_type,derived_formula_mismatch, distinct fromderived_value_mismatch; a structurally-correct formula cell now produces no finding. This combination never worked correctly before, so there is no valid prior state to preserve; treated as an explicit, evidenced bug fix, not a claim of zero compatibility risk. Comparison is per-cell (by the cell’s own runtime type), so a formula-mode column with one row manually overwritten by a literal value is checked as a scalar edit on that row alone. A multi-key symmetricenrich_lookup(keys: […]with more than one key) combined with a formula-mode helper cannot be structurally verified by the current single-keyLookupFormulaSpecrepresentation (a pre-existing, unrelatedenrich_lookupwrite-path characteristic, unchanged by this fix) and is now reported asunverifiable_enrich_lookuprather than silently certified as structurally correct or incorrectly flagged. -
Duplicate lookup keys are no longer silently tolerated. Previously, if the current lookup frame had duplicate rows on the join key(s) at mismatch-check time,
apply_derived_column_policypicked the first matching row as canonical ("first occurrence wins") and certified mismatch results from it — an unowned tie-break with no counterpart inenrich_lookup’s own contract, which instead rejects duplicate lookup keys outright at enrichment time. Duplicate lookup keys at mismatch-check time are now reported as `unverifiable_enrich_lookup(a warning underwarn_on_mismatch, a failure underfail_on_mismatch) instead of silently certifying a value from an arbitrary row. Migration: a pipeline that relied on the previous silent pass for a lookup frame that had gained duplicate keys after enrichment time now receives a finding (or a raise underfail_on_mismatch) instead; deduplicate the lookup frame, or reconcile provenance, before the mismatch-check step.
-
2. 0.2.1 (released)
These notes describe the 0.2.1 release line on top of v0.2.0.
The release is intended as a stable foothold before the planned
contract-first domain/meta reset around a Functional-Model-derived bridge DSL.
It preserves the current working runtime surface, captures the Functional Model
catch-up work, and records the architectural decision that future domain/meta
changes may intentionally break historical internals when doing so reduces
sediment.
0.2.1 remains pre-1.0 software. It is not a long-term compatibility promise.
Its purpose is to provide an installable PyPI anchor before larger internal
domain/meta changes begin.
2.1. Functional Model, Project Memory, and reset direction
-
The Functional Model was extended from requirement-inquiry material rather than from implementation details alone. New or updated use-case concepts cover Cell Codec, Compact Multiaxis, Sparse Defaults, derived frame views, validation use cases, header shape projection, hierarchical config projection, aggregate/pivot reconciliation, workbook-view boundary behavior, and XRef/discriminator composition.
-
The repository-wide June-2026 transformation/capability family inventory was archived in cold storage and linked from Project Memory as the canonical reference for implemented capability families and Functional Model coverage status. The inventory remains evidence material, not a backlog or second source of truth.
-
Future requirement inquiries were preserved for later work, including nested structures, typed cell values, conditional follow-up table views, and multi-row header presentation. These are recorded as future concepts, not as implemented
0.2.1runtime capabilities. -
ADR-CONTRACT-FIRST-DOMAIN-META-REWRITEaccepts a contract-first domain/meta reset around a stabilized bridge DSL. The ADR explicitly frames the domain/IO seam as a sharedFrames + Metalanguage whose writer, reader, lifecycle, conflict, and deletion rules should be derived from Functional Model use cases. It preserves adapter/parser/renderer knowledge, allows targeted deletion of obvious duplicate paths, and rejects recreating the current registry-scale surface under new names. -
Project Memory now records the bridge-DSL reset as a high-weight Domain/Meta steering decision. This is intended to counterbalance overly conservative readings of the existing documentation: low external adoption makes bounded breaking changes acceptable when they reduce historical implementation sediment.
2.2. Spreadsheet backends and roundtrip behavior
-
User-authored text orientation (vertical / rotated cells) is preserved through XLSX roundtrips under the
text_orientationspresentation metadata key. ODS roundtrips also preserve text orientation:style:rotation-angleis written onstyle:table-cell-properties, the carrier ODF defines for cell text rotation, so the rotation is honoured by external consumers such as LibreOffice Calc rather than only by the project’s own parser. -
ODS column widths are preserved across render/parse via
style:table-column-propertieswith an approximate Excel-character / cm conversion. The conversion is documented as approximate; widths authored by external ODS producers may not round-trip with byte-exact XLSX parity. -
The ODS presentation-metadata extractors (column widths, text orientations) share the grid parser’s defense against sheet-wide LibreOffice formatting fillers: extraction is clipped to the parsed content extent so that a
number-rows-repeated/number-columns-repeatedfiller carrying a rotation or column-width style cannot materialize one metadata entry per implied address, and the sameParserLimitsare honoured on per-axis and per-cell bases as defense-in-depth. -
User-authored horizontal cell alignment is preserved through XLSX and ODS roundtrips under the
horizontal_alignmentspresentation metadata key. Canonical vocabulary is intentionally narrow in this slice — onlyleft,center, andrightare recognised; XLSXgeneral/fill/justify/distributed/centerContinuousare dropped on read and never emitted on write. The ODS write path emitsfo:text-alignonstyle:paragraph-properties(the ODF-defined carrier for cell text alignment); the read path accepts both absolute (left/right) and locale-neutral (start/end) forms and normalises to the canonical absolute encoding so re-imports under different locales remain stable. -
The XLSX renderer now merges alignment attributes when more than one render op touches
cell.alignment(currentlySetTextOrientationandSetHorizontalAlignment). Existing rotation behaviour is unchanged when no other alignment op is present; cells that combine rotation and horizontal alignment now retain both attributes regardless of op-dispatch order. -
The ODS horizontal-alignment extractor inherits the same content-extent clipping and
ParserLimitsenforcement as the existing text-orientation and column-width extractors, so a sheet-wide "select all + left-align" filler cannot materialise one metadata entry per implied address. -
The presentation-metadata families
column_widths,text_orientations, andhorizontal_alignmentsnow share a single replace-or-clear policy on parse: parsed carrier state is authoritative for the sheet-local entry, and clearing the visible carrier removes any persisted entry for that sheet so the next roundtrip cannot silently reapply formatting the user has removed. Previously this behaviour was implemented only forhorizontal_alignments;text_orientationsandcolumn_widthsretained merge-only semantics and could surface stale embedded metadata after a cleared visible carrier. Behavioural note forcolumn_widths: removing a custom column width from the visible carrier now removes the embedded entry as well, where previously the entry persisted. This is a deliberate alignment of behaviour across the three families and matches user intent ("I cleared this; do not reapply it"). -
User-authored vertical cell alignment is preserved through XLSX and ODS roundtrips under the
vertical_alignmentspresentation metadata key. Canonical vocabulary is intentionally narrow in this slice — onlytop,center, andbottomare recognised; XLSXjustify/distributedand ODSautomaticare dropped on read and never emitted on write. The ODS write path emitsstyle:vertical-alignonstyle:table-cell-properties(the ODF-defined carrier for cell vertical alignment) and applies the intrinsic ODF ↔ OOXML vocabulary remap — canonicalcenterserialises as ODFmiddleon write and ODFmiddlenormalises to canonicalcenteron read — so cross-backend roundtrips stay stable. The new family joinscolumn_widths/text_orientations/horizontal_alignmentsunder the same authoritative-carrier semantics. -
The hidden XLSX / ODS
_metacarrier now roundtrips the canonical workbook meta as one coherent mapping even when a sheet-level representation accidentally leaks into the writer or a malformed file carries a nestedworkbook_meta_blobwrapper. The carrier-local helper fieldworkbook_meta_blobis recognised as a hidden-sheet convention only, so it can no longer shadow or structurally replace_meta.workbook_viewduring readback. This restores XLSX workbook-view readback parity with ODS for declarativeproject_by_rolepipelines. SeeBUG-XLSX-WORKBOOK-VIEW-BLOB-READBACK-P4A. -
As a follow-up hardening,
canonicalize_workbook_metanow strips the sheet-level export marker keys (author,exported_at,version) from canonical workbook meta whenever they carry theMetaPass-default empty signature (None/ empty string). They describe the hidden_metasheet itself, not the canonical workbook meta contract. Without the strip, a corrupt or empty inner blob would leave the outer wrapper visible as if it were canonical content, hiding the absence ofworkbook_viewbehind wrapper noise (the post-e939623residual symptom). Marker keys with caller-assigned non-empty values still round-trip unchanged. SeeBUG-XLSX-WORKBOOK-VIEW-CANONICAL-META-LOSS-P4A. -
The persistence boundary now applies a narrow Intent-vs-Resolution rule for the cross-carrier
_metasidecar failure observed in the worldbuilding consumer. Persisted meta keeps declarative intent, but drops three reconstructible resolution facets from the captured ODS-produced sidecar:legend_blocks[].resolved,xref_crosstable[].dense_axes.resolved, andxref_crosstable[*].column_keys. This prevents backend-produced resolved layout / axis snapshots from poisoning later XLSX workbook-view readback while leaving broader lifecycle classification to the existing metadata follow-up FTRs. SeeBUG-CROSS-CARRIER-META-ROUNDTRIP-P4A.
2.3. Pipeline steps and role-based projection
-
New pipeline step
project_by_rolereorders / retains a projected frame’s columns by foundation column-role (row_identity,display_helper,matrix_value).direction:is required (outboundretains all three roles;inbounddropsdisplay_helper); there is no silent default. Optionalrole_order:permutes the per-direction default order; includingdisplay_helperin an inboundrole_orderis a validation error. Optionalhelper_columns:andkey_columns:are interim per-call-site overrides that win over scattered upstream sources. SeeFTR-DYNAMIC-FRAME-PROJECTION-IMPL-P5. -
Role classification is consumed from the foundation taxonomy defined in
FTR-PROJECTED-FRAME-COLUMN-SEMANTICS-P5; the step does not introduce a parallel role vocabulary. A new shared resolver module (spreadsheet_handling.domain.column_roles) is the single source of truth for role detection in the current code base; the future targeting implementation slice (FTR-DYNAMIC-VIEW-COLUMN-TARGETING-IMPL-P5) will reuse it. -
The worldbuilding consumer migrated its two projection plugins (
build_story_cast_matrix_view,build_story_cast_matrix_payload) toproject_by_roleat all 10 current call sites (5 outbound
5 inbound). The plugin functions remain importable and behavior-compatible for one release cycle; per-surface rollback is a one-line YAML edit (outbound: restore the*_matrix_enrichedjoin_frames output:name and re-introduce the plugin step; inbound: restore the*_matrix_payloadconsumermatrix:name and re-introduce the plugin step). -
add_validationsrule targets now support role-based column targeting for dynamic workbook views. A target can specifyroles: [matrix_value](orrow_identity/display_helper) and the step expands the target to the matching concrete columns using the shared column-role resolver. This is intended to replace consumer-side plugin fan-out such asadd_from_legend_constraints_for_matrixfor dynamic matrix columns. The first slice covers the validation / constraint metadata path; broader presentation-target surfaces remain deferred. -
FK Helper Slice 2 (v1 retirement):
configure_fk_helpersnow writes only the durable v2 relation model under_meta.helper_policies.fk.relations; the legacy v1 per-target dict (_meta.helper_policies.fk.<target_key>) is no longer written. Those v2 relations are now durable — the persistence boundary no longer prunes relations byproduced_by.step, so they survive into the sidecar / workbook and drive reverse-pipeline cleanup without a v1 dict.produced_byis retained on each relation as provenance and as the cross-producer conflict key. The Dino-shaped replay failure that motivated pruning configure relations is now contained at the materialisation point:enrich_helperspreserves the source frame’s column flatness and skips relations whose target frame is absent, so a durable relation can no longer turn a flat frame into a non-flat one or crash on a missing target. Public YAML / CLI surface is unchanged; the persisted_metashape shrinks (no v1 dict). Migration: an artifact produced by a pre-Slice-2 run (v1 dict kept, configure v2 pruned) that is reimported without a fresh forward run has no v2 cleanup anchor unless it also recordedsheets.<frame>.helper_columns; re-run the forward pipeline once to re-bootstrap the durable v2 relation. Seeaudit/fk_helper_slice2_v1_retirement_review.adoc.
2.4. Schema maintenance CLI
-
New CLI entry point
sheets-schema-maintainperforms explicit one-shot schema column maintenance over loaded Frames. The supported operations areadd_column,drop_column,rename_column, andreorder_columns. -
The command is dry-run by default. Dry-run output is routed to the new output-only saver kind
discard, which accepts the final Frames payload but writes no artifact. User-selected output writes require--write; write mode uses the caller-provided--out-kindand--out-path. -
Schema maintenance reports are emitted outside Frames and outside
_meta. The report is printed as JSON to stdout by default, or written to the path supplied with--report. -
Known limitations for this maintenance slice: there is no normal
sheets-runYAML step and no public pipeline registry step; this is not a generic migration framework; workbook-header inference and dynamic projection schema handling are out of scope; FK relation drops remain blocked. (The earlier limitation about residual v1_meta.helper_policies.fkper-target entries being blocked no longer applies: FK Helper Slice 2 retired the v1 producer write, so no such entry is produced; a v1 dict in a legacy sidecar is inert and passes through unchanged.)
2.5. CLI surface cleanup
-
Removed the placeholder example console scripts
sheets-example-json-to-xlsxandsheets-example-xlsx-to-json. The maintained public CLI surface is nowsheets-runplus the dedicatedsheets-schema-maintaincommand.
2.6. Known limitations
-
Still true from
0.2.0: visible spreadsheet payload is a string substrate. Numeric, boolean, and date/time values in workbook cells are read and written as text by both the XLSX and ODS backends; type information present in the carrier is not preserved by default. A JSON value such as{"sequence_no": 1}may therefore round-trip through a workbook as{"sequence_no": "1"}. Typed roundtrip is not configured through workbook metadata: there is nocell_codecsmetadata family (it is retired), and the string substrate is intentional. The decision and documented migration paths are recorded inADR-VISIBLE-CELL-TYPING-STRING-SUBSTRATE(docs/technical_model/ch03_architecture_decisions/); the closing ofFTR-VISIBLE-CELL-TYPING-STRATEGY-P5is the explicit project-level position behind this behaviour.
3. 0.2.0 (released)
These notes describe the intended 0.2.0 release line relative to
v0.1.0b6, the latest beta tag at the time this draft was written.
0.2.0 is still early-stage, pre-1.0 software. The release is not a promise
of long-term API or YAML stability. If cut from this line, however, it is no
longer positioned as a pure beta prototype: the core architecture, public
documentation entry points, and release process are now stable enough for
careful early adopters who are willing to follow the documented migration
notes.
3.1. Highlights
-
Repeated export/reimport/promote cycles are stable: the orchestrator now projects the runtime
_metaonto a persistable contract before any backend writes, so runtime-produced FK-helper v2 relations no longer leak into persisted sidecars and replay as stale policy on the next run. This closes theFrame 'groups' must have flat columnsfailure that the worldbuilding adoption surfaced. The boundary is intentionally narrow and post-pipeline: it prevents new contamination on every successful run, but a_meta.yamlalready promoted from a pre-fix run may still need a one-time cleanup of itshelper_policies.fk.relationsentries before the next export can succeed. A complete_metalifecycle inventory and load-time sanitizer are deferred to post-release follow-ups (FTR-FK-HELPER-POLICY-LIFECYCLE-P4A,FTR-META-LIFECYCLE-INVENTORY-P5). -
ODS reimport is robust against sheet-wide formatting fillers. Workbooks edited with whole-sheet selections (e.g. Ctrl+A + format change in LibreOffice Calc) no longer trigger uncontrolled allocation in the ODS parser, and a typed
SpreadsheetTooLargeErrorsurfaces before unbounded growth when an input declares implausible dimensions. -
FK-helper behavior has moved from convention-driven primitive inference to explicit relation policy. Pipelines should now configure or infer FK relation policy before running FK-helper primitives.
-
Public documentation entry points were clarified: the README, Pages root, release notes, user guide, and demo walkthrough paths now form an intent-based user journey rather than a collection of repository paths.
-
Release-readiness tooling was tightened with read-only checks for release branch state, README link versioning, Pages publication structure, and cross-repo release status.
-
The semantic model documentation now gives maintainers and agents a shared vocabulary for metadata meaning, lifecycle state, registry authority, and FK-helper contract review.
3.2. User-facing changes
-
Ctrl+Cduringsheets-runnow exits cleanly withInterrupted by user.on stderr and a non-zero exit code (130, the POSIX SIGINT convention), in place of a raw Python traceback.--debugor-vvstill shows the full traceback for debugging. The installed entry point is now routed through the existingrun_cliwrapper, so the previously silentError: …short-message path also reaches real users; reinstall withmake setuporpip install -e .to regenerate.venv/bin/sheets-run. -
The core README now directs readers to the maintained demo, the latest user guide, and the version archive with clearer intent labels.
-
The Pages root now acts as a version archive with links to core release notes, the user guide, and the maintained demo walkthrough.
-
Release-bound README links are guarded so PyPI and other frozen release contexts use
/versions/<tag>/…documentation links instead of drifting to/latest/…. -
The user-guide transformation catalog was updated for the current FK-helper model, including the
infer_fk_relationsconfiguration step and policy-driven FK-helper primitives. -
Canonical workbook reimport pipelines that declare helper cleanup now remove visible FK helper columns again after the persistence boundary strips transient
_meta.derivedprovenance.
3.3. Transformation and pipeline changes
-
Added
infer_fk_relationsas an explicit configuration step. It can inspect current frames using a bounded naming-convention mode and write resolved FK relation policy to_meta.helper_policies.fk. -
configure_fk_helpersremains the explicit/manual FK policy path.targets: "auto"was removed from this step; useinfer_fk_relationswhen heuristic relation discovery is wanted. -
FK-helper primitives now consume v2 relation policy under
_meta.helper_policies.fk(schema_version: 2) instead of inferring relation identity from frame, table, or column names. -
add_fk_helperswrites derived helper provenance that includestarget_key, so later validation and cleanup can use the declared target primary-key column. -
remove_fk_helpers,reorder_fk_helpers, and FK-helper validation now use policy and/or derived provenance. Missing required policy or provenance is a clear error rather than a silent prefix-based fallback. -
apply_derived_column_policy … policy: dropnow falls back to durable workbook-view helper metadata (_meta.sheets.<frame>.helper_columns) when transient_meta.derived.sheets.<frame>.helper_columnsis absent after a fresh workbook reimport. -
validate_referencesgained ano_helper_columnsassertion rule. Use it after cleanup in reimport pipelines to report helper columns that would otherwise reach canonical output.
3.4. Spreadsheet backends and roundtrip behavior
-
The FK column wire format, such as
id_(<target>), remains valid for spreadsheet roundtrips. The change is where relation meaning is resolved: configuration steps may use the convention, but primitive FK-helper steps do not infer relation identity from it. -
No broad new spreadsheet backend capability is introduced in this release draft. XLSX remains the primary spreadsheet backend, and ODS/Calc remains the second backend used to prove the spreadsheet contract.
-
Roundtrip-sensitive helper behavior is now more explicit because helper cleanup and validation rely on declared policy/provenance rather than hidden name-pattern recovery.
-
The orchestrator now owns a narrow persistence boundary that projects runtime
metaonto a carrier-neutral persistable contract before save. Top-levelderivedand_*-prefixed keys are dropped, and FK-helper v2 relation entries underhelper_policies.fk.relationsare removed when theirproduced_by.stepisconfigure_fk_helpers. The boundary applies to every output kind (JSON/YAML/XML/CSV directories and XLSX/ODS); the projection is the same for all carriers, with spreadsheet backends layering rendering on top. Thepipeline.runner.run_appentry point is a thin adapter overorchestrateand inherits the same boundary, so there is exactly one load/step/save path in the project. Seedocs/semantic_model/08_lifecycle_and_update_semantics.adocfor the boundary contract, the post-pipeline / write-side scope, and the explicitly deferred follow-ups (FTR-FK-HELPER-POLICY-LIFECYCLE-P4A,FTR-META-LIFECYCLE-INVENTORY-P5). -
The ODS parser no longer materializes empty cells declared via
number-columns-repeated/number-rows-repeated. This neutralizes the common LibreOffice "select all + apply style" carrier pattern, which previously expanded a single empty styled cell into millions of dict entries and could exhaust process memory on real-world inputs. -
parse_workbookaccepts a new keyword argumentlimits=ParserLimits(…)for defense-in-depth caps on parsed rows, columns, and materialized cells. Exceeding a limit raises the typedSpreadsheetTooLargeError(re-exported fromspreadsheet_handling.io_backends.parser_limits) instead of a rawMemoryError. Defaults align with the spreadsheet maxima (1,048,576 rows × 16,384 columns) with a 10,000,000 cell ceiling per sheet.
3.5. Documentation and demo
-
Public documentation entry points were realigned around the README, Pages root, user guide, release notes, and demo walkthroughs.
-
The maintained demo/tutorial path was realigned with explicit FK-helper policy semantics.
-
The semantic model documentation was added under
docs/semantic_model/, including the problem statement, semantic sets and lifecycle model, registry role, adoption strategy, and FK-helper contract matrix. -
The project evolution narrative was updated so future maintainers and agents can understand the release, FK-helper, registry, and semantic-model phases without reading every historical FTR.
3.6. Migration notes
-
Pipelines that relied on
configure_fk_helperswithtargets: "auto"must switch to an explicitinfer_fk_relationsstep before FK-helper primitives, or provide explicit/manual relation policy throughconfigure_fk_helpers. -
Pipelines that previously expected
add_fk_helpersto discover FK relations implicitly from column names must run a configuration step first. -
Pipelines that relied on prefix fallback during
remove_fk_helpersshould preserve the derived helper provenance written byadd_fk_helpersor provide explicit policy. Recovery from externally edited workbooks without provenance is not part of the normal primitive behavior. -
FK relation policy now uses the v2 relation-oriented shape under the existing
_meta.helper_policies.fkroot. The relation shape includesschema_version: 2,relations,source_frame,source_column,target_frame, mandatorytarget_key, helper fields/columns, andproduced_bymetadata. -
The old
id_(<target>)FK column convention is not removed. It is still the cell-level wire format and may be used byinfer_fk_relations; it is no longer the hidden authority inside primitive FK-helper execution.
3.7. Internal architecture and maintainability
-
Registry contract lifecycle guidance now distinguishes current state, target state, and transition bridges so registry entries can describe migrations without overstating runtime truth.
-
Registry artifacts were relocated to root-level
registries/paths while documentation keeps the reviewed registry contract context. -
Release tooling now includes read-only helpers for release branch validation, Pages publication checks, cross-repo release status, and README link versioning.
-
GitHub Actions workflow permissions were tightened to minimal defaults with job-level overrides where required.
-
The FK-helper semantic contract matrix and guards reduce the chance that future refactors reintroduce primitive inference or stale registry wording.
3.8. Known limitations
-
0.2.0remains pre-1.0. Public behavior is more coherent than the beta prototype line, but compatibility promises are intentionally limited. -
Historical beta-by-beta release notes are not reconstructed here. This page focuses on changes since
v0.1.0b6. -
Some semantic-model adoption work is intentionally documentation-first. Future transformation families still need their own adoption slices.
-
REVIEW-002 residual maintainability items remain tracked outside these release notes. They are not treated as release blockers unless later review promotes them to 0.2.0 scope.
-
The FK-helper policy model does not yet claim to cover composite keys, generic relation modeling, or every possible recovery flow for externally edited workbooks.