Skip to content

ADR 0079 (proposed): a statements source may say a new version replaces the old - #1550

Open
gedaiu wants to merge 1 commit into
deeplethe:devfrom
re-cinq:docs/adr-restates-replace-1478
Open

gedaiu wants to merge 1 commit into
deeplethe:devfrom
re-cinq:docs/adr-restates-replace-1478

Conversation

@gedaiu

@gedaiu gedaiu commented Nov 29, 2026

Copy link
Copy Markdown
Contributor

Thank you for the clear direction on #1478. This is the record you asked for, written before any code.

It proposes config.restates: "replace" on a statements source, off by default and in the style of 0071's names: identity. A source that sets it reads a new version of an item as replacing the old one. Once that version has been extracted, the open statements that only its superseded chunks attested are closed with the same close the Review page uses, so history is kept and a successor row is written. Names Utopia wrote itself are left alone, typed facts are left to the temporal engine, and nothing closes before the new version has been read (#1489). Decision 7 of 0054 stays as it is for every other source, the #875 case included, and 0054 gets a dated note pointing here.

The key name, what happens when the flag is switched on or off, and a few open questions are in the record. Happy to change any of it, and the code will follow once you like the shape. Records 0077 (#1549) and 0078 are open at the same time, so the number may shift with the order they land.

Part of #1478

@gedaiu

gedaiu commented Nov 29, 2026

Copy link
Copy Markdown
Contributor Author

@WaylandYang this is the ADR for the opt-in you suggested on #1478, whenever you have time. I'll hold the code until you're happy with the shape. Thank you!

@WaylandYang

Copy link
Copy Markdown
Contributor

Thanks, this matches #1478. Every condition is written in, and the two additions (closing facts earlier versions dropped, and the on/off semantics) are reasonable. The dated note on 0054 is the right way to touch an existing record.

One thing: #1454 (opened 2026-10-28) already proposes 0076, and #1549 and #1551 take 0077 and 0078, so please renumber this to 0079. That covers the file, the README row and the link in the 0054 note. Then it can go in as Proposed. You may need a trivial rebase on the README row, since #1551 inserts at the same spot.

@gedaiu
gedaiu force-pushed the docs/adr-restates-replace-1478 branch from afb930c to a6e731b Compare December 2, 2026 11:22
@gedaiu gedaiu changed the title ADR 0076 (proposed): a statements source may say a new version replaces the old ADR 0079 (proposed): a statements source may say a new version replaces the old Dec 2, 2026
@gedaiu

gedaiu commented Dec 2, 2026

Copy link
Copy Markdown
Contributor Author

@WaylandYang thank you, and sorry for the clash with #1454. It's renumbered to 0079 now: the file, the README row and the link in the 0054 note. It's rebased onto the latest dev too.

@WaylandYang WaylandYang left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks, the renumbering is done. Good to go in as Proposed.

…sion of an item as replacing the old one (deeplethe#1478).

Signed-off-by: Bogdan Szabo <bogdan@re-cinq.com>
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.

2 participants