Skip to content

A statements item that stops stating a fact leaves it standing until a person closes it #1478

Open

Description

@gedaiu

A statements item that stops stating a fact leaves it standing until a person closes it

Thank you for 0054: pushing the open contract directly, with the item as its own evidence, is what made our spec-to-test mirror possible at all. This is a question about what a re-push of such an item should mean, and we would value your view before we build anything beyond our fork.

What we see

Our items are re-pushed on every merge, and an item's content changes often. When a new version stops stating a fact, the old fact keeps only evidence on superseded chunks, reads as unconfirmed, and stays until someone closes it in Review. Over three weeks one Statement entity in base 01a14133-f48c-7183-a3e2-48296b6752d6 (re-cinq/lore:specs/utopia-graph-mirror/spec.md#s0128, entity 01a14c0f-eab2-7e91-b630-d0a4452bff87) accumulated 55 validated_by facts and 18 text values from nine different sentences that passed through that item; a source file that moved is still importsed from its old path beside the new one. A reader of the graph gets the current links and the old ones mixed, with only the stale flag to tell them apart.

Why

Facts are closed on document delete (documents.rs, around line 1162) and nowhere on a new version: replace_chunks_for_snapshot touches chunks only. The comments say why, and for prose the reasoning holds: a report that no longer mentions a merger does not say the merger never happened. We are not asking to change that for documents people write.

Proposed change

For a statements source the item is the contract (0054), so we would like to ask whether a new version of it may be read as the pusher saying "this is what I state now". Concretely: once the new version has been extracted (never before, see the sibling issue on the extraction gap), the facts whose only evidence is that document's superseded chunks are closed at the latest supersede time, the same close the Review page performs, history kept, a successor row written. A fact another document also attests is left alone, as are the known_as names Utopia writes itself.

On our fork this would sit on top of RC-004 (a write token closes a source's unconfirmed facts in batches), narrowed from "a source, when asked" to "this document, when its own new version has spoken". We will build it there first behind a test: push v1 with facts p and q, extract, push v2 with p only, extract, and q is closed while p stays.

If you see a reason the statements contract should keep the prose reading, we would rather know now than after we have leaned on it. And if the shape is agreeable, we will send it here once it has run on our instance.

Activity

  1. gedaiu commented on Nov 5, 2026

    @gedaiu
    ContributorAuthor

    We built this on our fork as re-cinq#50 (fork decision record RC-006), closing only after the item's own new version is extracted, with a test that pushes v1, drops one statement in v2, and checks the dropped fact ends while a fact another item still states stays. Nothing here changes how prose documents are read. I will wait for your view on whether the statements contract should read this way before proposing it here.

  2. gedaiu commented on Nov 20, 2026

    @gedaiu
    ContributorAuthor

    Hi @WaylandYang, a friendly ping whenever you find a quiet moment. Now that #1489 is in, this one is ready on our side, and I would love your view on the contract before I open anything. Thank you for your patience with all my issues!

  3. WaylandYang commented on Nov 25, 2026

    @WaylandYang
    Contributor

    0054 decision 7 ("An update marks, it does not close") deliberately reads a re-push as a new observation: for the #875 case the old statement stays true of its own moment. Your mirror reads an item as current state, which is also legitimate, just for a different kind of source.

    So I'd take it as a per-source opt-in in the style of 0071's names: identity (config.restates: "replace" or similar), off by default, written up as a new ADR that amends 0054 decision 7. Your conditions are the right ones: close only after the new version has been extracted (#1489), only facts whose only evidence is that document's superseded chunks, history kept and a successor written, names Utopia wrote itself left alone, and typed facts left to the temporal engine. Please open the ADR PR first; the code can follow once it's accepted.

  4. gedaiu commented on Nov 29, 2026

    @gedaiu
    ContributorAuthor

    Thank you for taking the time to lay this out, and for seeing both readings as legitimate. I've sent the record as #1550: config.restates: "replace", off by default, amending 0054 decision 7 only for sources that opt in, with each of your conditions written in. I'll hold the code until you're happy with it. I'm glad to rename the key or reshape anything you'd like.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions