Skip to content

Notes five readings of the child linkage Amendment - #310

Merged
johnnyt merged 1 commit into
mainfrom
sp-108q-linkage-amendment-readings
Nov 23, 2026
Merged

johnnyt merged 1 commit into
mainfrom
sp-108q-linkage-amendment-readings

Conversation

@johnnyt

@johnnyt johnnyt commented Nov 23, 2026

Copy link
Copy Markdown
Member

What this changes

Adds one dated Note at the foot of ADR-0008, after the 2026-11-23 acceptance Note. It checks the readings two reviews left on the 2026-11-19 Amendment (a durable child's linkage outside metadata, for a host that opts in) against main at a2304eb, and states what the code does for each:

  1. V09 creates its two indexes with no adapter guard (up/1 in v09.ex), so a Postgres repo that runs it gets them over columns that stay NULL; V03 guards its index with postgres?/0.
  2. ADR-0005's Consequences name "a second database the adapter must support" as a reopening trigger; the Amendment's point 8 does not name it. The Note leaves that question to ADR-0005.
  3. A linkage stored in one home is not listed by the adapter arm that reads the other (to_execution_record/2 and the jsonb listings on Postgres; split_linkage/1 and linkage_query/2 off Postgres with the option on). Whether a host can move between backends is not decided.
  4. On a linkage-only store, a host-key match is refused by the facade before the adapter (listing_open?/3) with :child_listing_unsupported or :execution_states_unsupported, the reasons v0.25.1 gave; the raw adapter answers :metadata_unsupported (linkage_match/2).
  5. With the option turned on, a child whose linkage sits in metadata is found by a fetch (with_linkage/2) and re-pinned in place (column_linkage_update/3), and is not found by the shipped adapter's listings or pin count (linkage_query/2, column_child_pins/2). What a host should do at that switch is not decided.

No answer the Amendment gives changes, so this is a Note, not an Amendment, and it decides nothing.

Direction check

Every claim in the Note was read against main at a2304eb (an ancestor of origin/main) and is cited by function anchor: up/1 in V09 and V03, postgres?/0, linkage_columns?/1, to_execution_record/2, list_executions_by_metadata/2, insert_execution/2, split_linkage/1, linkage_query/2, listing_open?/3, linkage_match/2, with_linkage/2, column_linkage_update/3 and column_child_pins/2; the two facade refusal reasons were also read at the v0.25.1 tag, and the ecto_sqlite3 test dependency in mix.exs. The two quotations (ADR-0005's trigger and the Amendment's "also adds two indexes") match the records' text. git diff origin/main -- docs/adr/ shows zero removed lines.

Gate

The diff touches only docs/adr/, outside the gate's build paths, so it touches no Elixir code and has no gate to run under this repository's authority table; CI runs the full gate on the pull request. No changelog fragment: ADRs are on the changelog.d/README.md "do not" side.

Refs: sp-108q

Two reviews of ADR-0008's 2026-11-19 Amendment (a durable child's
linkage outside metadata, for a host that opts in) left five readings.
A dated foot Note checks each against main at a2304eb and states what
the code does: V09 builds its two indexes on every backend, Postgres
included, where V03 guards its index; ADR-0005's reopening trigger is
not named by the Amendment's point 8; each linkage home is listed only
by the adapter arm that reads it; the facade's refusal reasons for a
host-key match on a linkage-only store, and the raw adapter's answer;
and what the shipped adapter finds when the option is turned on with
children whose linkage sits in metadata. No answer the Amendment gives
changes, so this is a Note, not an Amendment, and it decides nothing.
No line is removed.

Review: the diff touches only docs/adr/, outside gate.build_paths (lib/
test/ config/ mix.exs mix.lock), so it touches no Elixir code and has no
gate to run; committed on review of the diff. No changelog fragment:
ADRs are on the changelog.d/README.md "do not" side.

Refs: sp-108q
@johnnyt
johnnyt merged commit ff54aea into main Nov 23, 2026
1 check passed
@johnnyt
johnnyt deleted the sp-108q-linkage-amendment-readings branch November 23, 2026 23:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant