Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
71 changes: 71 additions & 0 deletions decisions.md
Original file line number Diff line number Diff line change
Expand Up @@ -5742,6 +5742,10 @@ absence-based closures indefinitely.

## D118. Immutable claims, mutable facts, one world-time window

> Processing amendments D120–D123 clarify assertion identity, project concise
> model inputs and add source-backed context nomination. D118's one world window,
> ordered application and validation/forget authority remain in force.

**Status:** accepted when merged; replacement runtime is not implemented by this
amendment. **Date:** 2026-09-07.

Expand Down Expand Up @@ -5787,3 +5791,70 @@ withdraws PR #384's incompatible unshipped framework and gates replacement code
on concrete storage, consumer and deletion contracts. Already merged canonical
SQL, extraction vocabulary and all evaluator variants remain intact. No schema
upgrade, benchmark gain, runtime acceptance, merge or release is claimed here.

## D120. Clear processing prompts preserve the assertion being made

**Status:** accepted 2026-09-14, binding when merged. A shared person/event is
not a shared proposition. Processing prompts explain claims, assertions, facts,
source times and world dates plainly, with contrasting repetition, correction,
attribution and distinct-assertion examples. Preserve winning information when
the candidate says only participation or enjoyment. Keep existing writer
operations; no semantic checker call, new temporal class or human prompt-exam
ceremony. Roll affected inference generations and validate both false merges
and unnecessary duplication. Confidence thresholds alone were rejected because
the audited wrong assignment was already highly confident.

**Authority:** [design](plan/designs/processing_prompt_clarity_design.md),
[analysis](plan/analysis/lean_processing_contracts.md),
[delivery](plan/plans/lean_processing_delivery.md).

## D121. Present concise evidence while retaining full database validation

**Status:** accepted 2026-09-14, binding when merged. Deterministically project
the prepared adjudication snapshot into complete semantic evidence with short
attempt-local handles and factored repeated text. Translate a closed model-facing
response through that exact attempt's typed mapping into the existing writer.
Retain hashes, ownership and generation bookkeeping internally. Preserve witness
membership, source distinctions, snapshot checks, source deletion and inference
outside locks. A smaller evidence set and a model-generated summary were rejected
as unnecessary correctness/cost risks. Measure input/schema/output tokens without
promising a fixed saving.

**Authority:** [design](plan/designs/concise_adjudication_inputs_design.md),
[analysis](plan/analysis/lean_processing_contracts.md),
[delivery](plan/plans/lean_processing_delivery.md).

## D122. Share frozen source reference context between extraction chunks

**Status:** accepted 2026-09-14, binding when merged. Extend the existing
Selection response with exact-source-backed reference cards, freeze/reuse it,
then run Claimify after an idempotent representation Selection barrier. Supply
bounded preceding source context with explicit positive and negative reuse
dependencies. This amends D119 local context, D56 reuse inputs and D84 scheduling;
it preserves D119 occurrence spans, same-claim-ID reuse and existing entity
resolution authority. No new extraction model call or mutable alias registry.
A durable Selection intermediate and barrier are accepted costs. Timing-dependent
live hints, ungrounded summary inventories and whole-document prompt lists were
rejected; E3-only reuse would not help extraction understand distant introductions.

**Authority:** [design](plan/designs/document_reference_context_design.md),
[analysis](plan/analysis/lean_processing_contracts.md),
[delivery](plan/plans/lean_processing_delivery.md).

## D123. Use source-backed entity context to nominate fact candidates

**Status:** accepted 2026-09-14, binding when merged. Existing normalization
emits bounded generic context references; existing resolution produces immutable
source-owned application bindings. Derive fact context from current supporting
applications. Preserve the baseline same-subject/same-plane nomination and union
bounded additional shared-context candidates. Context improves reach but never
proves fact identity or absence of matches. Keep attributed subjects, dates on
ordinary facts, profiles as derived descriptions, and D118 order/locking/forget.
No event table/type, fact event column, profile neighborhood retrieval or extra
model call. An event-only filter or smaller fallback was rejected without recall
evidence. Expanded candidates can add cost; D121 supplies independent compaction.

**Authority:** [design](plan/designs/contextual_fact_nomination_design.md),
[analysis](plan/analysis/lean_processing_contracts.md),
[delivery](plan/plans/lean_processing_delivery.md). Grouped application is only
an [unchosen proposal](design/proposals/grouped_fact_adjudication.md).
3 changes: 3 additions & 0 deletions design/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ lost in chat.

Analysis and research notes: [`../plan/analysis/`](../plan/analysis/).

Processing: [D120–D123 design and delivery map](../plan/plans/lean_processing_delivery.md).
Unchosen efficiency alternative: [grouped fact adjudication](proposals/grouped_fact_adjudication.md).

## PostgreSQL 19 live-graph review evidence

- [Design review round 1](reviews/postgres19_live_graph_design_review_round1.md)
Expand Down
42 changes: 42 additions & 0 deletions design/proposals/grouped_fact_adjudication.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# Group small ordered sets of fact assertions

**Status:** proposal, explicitly not accepted for implementation. 2026-09-14.
**User direction:** record point 6 for a separate decision after the individual
processing improvements. No implementing agent may treat this file as a task.

## Problem and proposed alternative

Several pending assertions can share the same event/source evidence. After D121
compacts each individual prompt, repetition between calls may remain. The
alternative is one call for a small contiguous prefix of already admitted work
on the same canonical subject, with shared evidence shown once and an ordered
outcome for every incoming assertion.

Initial experimental group limits of four and eight are comparison points, not
accepted defaults. Do not wait to fill a group or skip queue heads to cherry-pick
all facts about one event. No event scheduler. If contexts do not overlap, a group
may cost more; measure its whole prompt, schema and output.

## Contract changes requiring a future decision

Each assertion retains its own meaning, provenance and receipt. A later item can
refer to an earlier item's new fact through a local handle. One coherent snapshot
is inferred outside locks, revalidated and applied sequentially in one transaction.
A stale or invalid plan retries/rolls back the bounded group, with no silent
partial completion. Source deletion, support moves and per-assertion repair jobs
must remain correct. These are application-boundary changes, not just prompt
formatting; they require binding design before code.

## Adoption trigger and comparison

Consider acceptance only after clear individual prompts, concise inputs, source
references and candidate nomination have measured validation results. First
measure context overlap without inference. Then compare total input/output cost,
call count, latency, retried work, candidate coverage, lost assertions and duplicate
facts. Reject a saving that depends on merging distinct propositions or ignoring
retry amplification. Provider-free tests are not model-semantic evidence.

The retained alternative is ordinary one-assertion application with compact
inputs. It has simpler retries and already preserves ordered receipts. Grouping
must earn its additional coordination through measured end-to-end processing
benefit; it is not needed to deliver D119–D123.
9 changes: 9 additions & 0 deletions plan/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,15 @@ and the [implementation sequence](plans/temporal_clocks.md). The
and rejected alternatives. PR #384 withdraws the old incomplete implementation;
this design does not claim that the replacement runtime ships.

For the processing improvements, see [D120 clear prompts](designs/processing_prompt_clarity_design.md),
[D121 concise evidence](designs/concise_adjudication_inputs_design.md),
[D122 document references](designs/document_reference_context_design.md) and
[D123 contextual nomination](designs/contextual_fact_nomination_design.md).
The [analysis](analysis/lean_processing_contracts.md) explains the costs and
alternatives; the [delivery plan](plans/lean_processing_delivery.md) coordinates
these with D119 multi-span extraction in PR #400. Grouped adjudication remains
an [unchosen proposal](../design/proposals/grouped_fact_adjudication.md).

D107's [canonical arithmetic and extraction](designs/temporal_clocks_design.md)
remain applicable. Its other fact-time rules and the D110–D113 framework are
superseded by D118's explicit authority map. Their documents and SQL remain
Expand Down
97 changes: 97 additions & 0 deletions plan/analysis/lean_processing_contracts.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,97 @@
# Lean processing: evidence behind D120–D123

**Status:** analysis, not authority. 2026-09-14. Scope is ingestion/processing;
retrieval and answering are excluded. The user authorized accepted designs and
Grok implementation for clear assertion-preserving prompts, concise adjudication
inputs, document references and event-based nomination. Grouped application is
an unchosen proposal. Multi-span extraction is the separate accepted D119 lane.

## Observations, hypotheses and constraints

The v28 conversation-42 run cost about $12.40 in processing, including $9.16 in
fact adjudication and about $0.04 in entity resolution. Adjudication inputs
averaged 26,561 tokens. These runs mistakenly used Luna high for processing;
future paid processing trials must verify Vertex/Gemma at each generation stage.
Changing provider rates alone does not meet the requested cost reduction.
No new paid trial is authorized by this implementation handoff.

The audit found a winning assertion assigned to enjoyment, and another retained
only as participation. Same tournament does not mean same assertion. Some
specific tournament entities already exist; the entity mechanism itself is not
absent. Most stored facts are observations without structured event references.
Event nomination therefore needs a path from source referents through normalized
assertions, not merely a better entity-name prompt.

Detailed source inventories and measured evidence, inspected 2026-09-14:

- [Processing audit](https://github.com/writeitai/ultimate-memory-cloud/blob/a56f95bf/design/analysis/locomo-v28-processed-data-audit-20260914.md).
- [Cost evidence](https://github.com/writeitai/ultimate-memory-cloud/blob/a56f95bf/design/analysis/locomo-ingestion-cost-quality-20260914.md).
- [Independent exploration](https://github.com/writeitai/ultimate-memory-cloud/blob/a56f95bf/design/analysis/event-context-and-fact-adjudication.md).

At engine baseline b2d32a5a, `spine/fact_adjudication.py` directly serializes the
prepared snapshot. Its phrase “same-event corrections normally attach to that
identity” is ambiguous about event versus fact identity. `fact_application_inputs.py`
nominates exact matches then full-text candidates, same subject and fact plane,
including zero-ranked fill. The source and support snapshots contain duplicate
text and administrative metadata. These observations justify semantic task
clarity and deterministic projection independently of event improvements.

## Alternatives and economics

Raising confidence thresholds would not address the observed 0.98-confidence
incorrect assignment. Another semantic checker/model call adds cost without
fixing an unclear primary task. A clear prompt with contrasting fixtures is the
selected correction; reference and operation validation remain deterministic,
but do not prove semantic equivalence.

Deleting evidence to shorten prompts risks hiding corrections and contradictions.
Lossless presentation of semantic content is selected before changing nomination.
Keep full validation inputs internally; remove bookkeeping only from the model
view. Short handles need a response adapter tied to the exact attempt. This is
more precise than telling a UUID response schema to return F1 informally.

Event-only nomination would make older unlinked observations and split event
identities unreachable. Event context is an additional priority signal with
broader nomination retained. No extra fact category, date authority or event
table is needed. Generic source-backed context references can also describe
companies, people and creative works without a classifier or regex taxonomy.

Grouping pending assertions promises repeated-context savings but changes retry
and receipt contracts. It remains in `design/proposals/`; individual prompt
projection does not depend on accepting grouping. Holding locks during provider
inference, permanent prompt caches and a separate event scheduler are rejected.

## Validation interpretation

Provider-free fixtures prove grounding, reference mapping, retries, snapshot
invalidation, source deletion and invariants. They do not prove that a real model
chooses the right fact. Model-semantic claims must identify the actual model,
input corpus and results; no invented measured saving. Benchmark candidate
coverage separately from end-to-end fact assignments. Count input/output/schema
tokens, retries, total calls and repair work, not just the shortest prompt.

The user does not require a separate human prompt-exam ceremony. Human-readable
instructions, documented contrasting examples and ordinary code/design review
are the accepted clarity standard.

## Independent analyses and resolution

Two independent read-only analyses inspected actual E2/E3 scheduling and candidate
contracts. The document-reference analysis found no existing pre-extraction
source-backed entity inventory: E0 summaries are not a safe substitute. The
selected D122 contract freezes existing Selection output, adds one barrier and
bounds preceding producer units. Its review required an explicit no-Claimify-call
path for zero kept propositions and empty-representation completion; incorporated.
E3-only reuse was rejected because it cannot inform chunk-7 extraction.

The event-nomination analysis recommended generic source-owned application bindings
rather than fact event columns, and preserving the baseline 20 plus up to eight
additional context candidates. This is deliberately coverage-first, not evidence
of lower token cost. Its draft review clarified positive membership/current
testimony, canonical-subject exclusion, auxiliary overflow without assertion loss,
excluding baseline IDs before the extra limit, atomic staging and full binding/
currency fingerprints. These were incorporated in D123. D121's review avoided a
new registry by putting the renderer version in the existing generation/fingerprint.

These are design reviews, not implementation or real-model acceptance. All
semantic/cost hypotheses still require the evidence distinguished above.
Loading
Loading