DMC-RELKEY-C0-S1-REVIEW-002 -- Relation-Key Identity Slice 1: fresh independent review continuation
=====================================================================================================

AUTHORITY
---------
The architecture authority remains the `relation_key_cycle0_assessment` component
(the corrected, independently accepted assessment) together with
`relation_key_cycle0_delta_rereview` (the closing delta re-review; read its
F1/F2 dispositions and W2 in particular). The `dmc_contract` component is the
governing procedure. Do not treat this task.txt as a substitute for reading
those components in full before reviewing.

BACKGROUND -- WHY THIS WORKITEM EXISTS
---------------------------------------
The first standalone-WFC Core consumer Run, `RUN-a9f9d68c73fc4b83b4662327cf6bf1f2`
(WorkItem `DMC-RELKEY-C0-S1`, state root
`/home/stefan/wfc-runs/dmc-relkey-c0-s1-20260925-01`), implemented Slice 1 in
H001 (commit `efe3187b1095e97d3840670d258535ff67948ab1`) and reviewed it in
H002 (commit `a39846610f4b6c01f75ce685c20483dac4f0fccb`). H002 found no
semantic or scope defect and opened exactly one blocking Finding, `F001`,
solely because that Run's task.txt overconstrained Core's general DMC
commit-identity guidance
(`docs/ai_info/git_and_workflow.adoc`, "DMC-family commit identity
(recommended, not yet enforced)") into a mandatory-trailer rule. H003
correctly made no source/test mutation (none was justified) and correctly
declined to perform an agent-owned Git amend, so the Run stopped
`awaiting_human`. The maintainer's disposition of that Run is recorded in
`docs/warm_storage/global_reviews/relation_key_identity_slice1_wfc_run_01_disposition_2026-09-25.adoc`.

That historical Run, its state root, and its commits are immutable evidence.
Do not resume, retry, reuse, or reopen it. `F001` belongs to that Run's own
Finding state; this fresh WorkItem does not own, resolve, or reference it as
if it were locally open. Any Finding opened by this WorkItem's `review` phase
is a new Finding in a new Run, evaluated independently.

CONCERN
-------
Independently review the still-committed Slice 1 implementation -- the
PRIVATE shared Domain owner for relation-key eligibility, equality, and
hashable identity, with NO consumer migration -- against the accepted Cycle-0
contract.

Review object:: commit `efe3187b1095e97d3840670d258535ff67948ab1`
("feat(DMC-RELKEY-C0-S1): add relation-key identity owner H001"), compared
with pre-implementation baseline `061f7e64dd211c33cf2181a338fa551e982ddec9`.
Current HEAD also contains the historical H002 review artifact
`a39846610f4b6c01f75ce685c20483dac4f0fccb`.

You may read the historical H002 review artifact
(`docs/warm_storage/global_reviews/relation_key_identity_slice1_semantic_owner_implementation_review_2026-09-25.adoc`)
and the Run 01 disposition note named above as provenance and orientation.
Neither is authoritative evidence of correctness: inspect
`src/spreadsheet_handling/domain/relation_keys.py` and
`tests/unit/domain/test_relation_keys.py` directly and form an independent
verdict. Do not carry forward H002's verdict as your own without re-deriving
it from the code and tests.

Nothing outside the owner module, its tests, and the new review artifact may
change under this WorkItem.

REQUIRED SEMANTICS (see the assessment component for the full contract)
-------------------------------------------------------------------------
* Eligibility: an already-admitted scalar is a key exactly when it is not in
  the Missing category. Composite keys are eligible only if every component
  is eligible. No Missing carrier (`None`, `""`, NaN, `pandas.NA`, `NaT`, ...)
  is ever a key.
* Equality is a NEW bounded relation, not reuse of native `==`. It must be
  reflexive, symmetric, transitive, and agree with the owner's own hashable
  identity -- dicts/sets/counters/merge-style consumers must never disagree
  with pairwise comparison.
* Category is part of identity: String `"1"` != Number `1`; Boolean `true` !=
  Number `1`, despite Python's `True == 1`.
* Strings compare exactly. No `.strip()`, no trimming, anywhere in relation-key
  identity. `" 1 "` != `"1"`.
* Numbers compare by exact represented mathematical value, never by NumPy
  weak-scalar promotion and never via a common-dtype cast. `1 == 1.0 ==
  numpy.int64(1)`; `numpy.float32(0.1) != 0.1`; `numpy.int64(2**53+1) !=
  numpy.float64(2**53)`.
* Date and DateTime remain distinct categories. DateTime uses the explicit
  relation-key-only basis in the assessment (naive: exact wall-clock
  coordinate; aware: exact UTC instant; aware never equals naive; full
  precision retained, no rounding). Slice 1 implements DateTime only to the
  extent this contract requires -- do not build a general timezone or
  precision framework.
* No fallback to `str`/`repr`/parsing/pandas dtype coercion anywhere in
  eligibility, equality, or hashing.
* Composite keys: componentwise identity: equal arity, each component
  eligible and equal (order matters).
* `Decimal` is covered only by existing scalar-admission rejection; no
  relation-key coercion test for it.
* W2 from the delta re-review: exact Number identity is derived from the
  carrier's exact value (no lossy `float()` round-trip for
  `numpy.longdouble`; infinities handled separately); DateTime coordinates
  use exact integer/rational arithmetic rather than NumPy unit promotion.

Independently verify the committed test matrix covers the assessment's
"Semantic owner unit tests" table in full, including the equality/hash-
agreement case and the non-transitive-native-triple DateTime case.

EXPLICIT NON-SCOPE
------------------
Do not, under this WorkItem:

* migrate or modify FK materialization or FK validation
  (`core/fk.py`, `domain/validations/fk_helpers.py`,
  `domain/transformations/fk_helpers/**`);
* migrate or modify Lookup enrichment (`domain/transformations/enrich_lookup/**`);
* migrate or modify reference or graph validation
  (`domain/validations/reference_validations.py`,
  `domain/validations/graph_validations.py`);
* implement C3-S2 (the `check_duplicate_ids` `"nan"` guard) -- it is absorbed
  by the future Slice 2, not this Slice 1;
* touch `docs/release_notes/release_notes.adoc` -- Slice 1 changes no runtime
  behavior and owns no release note;
* touch canonical Semantic Model, Technical Model, or any other canonical
  documentation surface;
* widen or rename any public/helper surface, or register a pipeline step;
* implement a general scalar normalizer, general tuple-uniqueness identity,
  or any Number/DateTime normalization API beyond this owner's private
  relation-key identity material;
* touch Slices 2, 3a, 3b, or 4 in any form;
* rewrite, amend, or otherwise mutate the historical commits
  `efe3187b1095e97d3840670d258535ff67948ab1` or
  `a39846610f4b6c01f75ce685c20483dac4f0fccb`, or the historical H002 review
  artifact;
* treat historical Finding `F001` (mandatory commit trailers) as open,
  resolved, or otherwise owned by this WorkItem -- it is not a real semantic
  or scope defect and is not this WorkItem's concern; and
* touch the Workflow Coordinator, the Runtime, Project Memory, the roadmap, or
  any other WorkItem's artifacts.

If correct review or correction mechanics genuinely require touching a file
not named above, do not silently add it: stop and escalate (report the need
and rationale) rather than expanding scope.

REVIEW / FINDING CHOREOGRAPHY
-----------------------------
This WorkItem starts at `review`, not `rereview`: it independently evaluates
the currently committed Slice 1 implementation from a fresh context. An
implementation that meets the accepted contract may be accepted without a
Finding:

    review -> accept

The fresh gate reviewer writes the required new review artifact
(`docs/warm_storage/global_reviews/relation_key_identity_slice1_semantic_owner_implementation_review_2026-09-25_review_002.adoc`,
distinct from the historical H002 artifact, which must not be overwritten)
and may open a new blocking Finding only for a real remaining semantic or
scope defect against the accepted Cycle-0 contract; do not manufacture one,
and do not reconstruct historical `F001` under a new name. If a real defect
is found:

    review -> correct -> rereview -> accept

The corrector may cite or add evidence to a Finding opened by this WorkItem's
own `review` phase but must not resolve, residualize, supersede, reopen, or
otherwise dispose of it. After a completed correction, request `rereview`.

The fresh gate rereviewer (fresh context, observation-only: no authorized
edit/commit scope) may resolve an open blocking Finding only when the
correction establishes closure, then request `accept`. If a blocker remains,
return `changes_required` and request `correct`; the three-Hop budget, not an
invented retry, controls whether another correction can run.

CORRECTION AUTHORITY
---------------------
If and only if the fresh review finds a REAL remaining Slice-1 semantic or
scope defect, `correct` may mutate only:

    src/spreadsheet_handling/domain/relation_keys.py
    tests/unit/domain/test_relation_keys.py

No other production path. No commit-message/trailer correction is part of
this WorkItem. No amend/rewrite of any existing commit. No later Relation-Key
slices.

VALIDATION
----------
Before claiming review or correction outcomes, run at least:

    python -m pytest -q tests/unit/domain/test_relation_keys.py
    git diff --check

Report results truthfully. The only trusted evidence providers selected by
this profile are `diff_hygiene`, `git_version`, and `pytest_relation_keys`.

AGENT GIT RULE
--------------
Core's general commit-identity guidance
(`docs/ai_info/git_and_workflow.adoc`, "DMC-family commit identity") is a
traceability *recommendation*, not a binding rule: family/cycle/WorkItem
identity may be projected into a commit either as a subject-line tag or as
trailers. Do not repeat the historical mistake of treating trailers as
mandatory.

For any commit the Coordinator creates under this WorkItem, the only
requirement is a valid, single-line, Conventional-Commit-compatible subject
that contains both this WorkItem's ID and the current Hop ID as identity
tokens, e.g.:

    docs(DMC-RELKEY-C0-S1-REVIEW-002): record Slice 1 review H001

This is exactly what Runtime `ec397b6`'s `commit_subject_error` mechanically
enforces (Conventional-Commit subject shape plus WorkItem/Hop token
presence); it requires no body and no trailers. Do not invent a new
commit-identity mechanism or validator, and do not require a multiline commit
body -- the generic `CommitIntent` body gap is tracked separately as
standalone WFC `FTR-WFC-COMMIT-INTENT-BODY` and is out of scope here.
