Skip to content

feat(extraction): coherent multi-span claims with version reuse - #400

Merged
fazpu merged 8 commits into
mainfrom
feat/multi-span-claim-extraction
Sep 14, 2026
Merged

fazpu merged 8 commits into
mainfrom
feat/multi-span-claim-extraction

Conversation

@fazpu

@fazpu fazpu commented Sep 14, 2026 •

Copy link
Copy Markdown
Member

Problem and change

A coherent claim can depend on several source passages. Claimify now cites engine-provided passage labels; the engine stores every required evidence range on each source occurrence and remaps the entire list when document versions reuse unchanged extraction inputs. Claim IDs and distinct-source evidence counts stay stable.

The immutable claim retains its origin anchor. API evidence ranges identify the same original representation as the source locator; memory_v1.claim_occurrences_live exposes current-version coordinates. Summaries are orientation only. Migration 0052 refuses populated claim stores without conversion or deletion. Full-v29 identifies the changed extraction contract; model bindings are unchanged.

Sources and important decisions

Binding D119: plan/designs/multi_span_claim_extraction_design.md; rationale: plan/analysis/multi_span_claim_extraction.md. Reviewed existing extraction, D56 reuse, provenance hydration, query-role privileges, lifecycle counts, forget and migration paths. The bounded list uses the existing occurrence row; there is no new fragment graph, checker model or temporal category.

Validation and review

  • Final runtime PostgreSQL suite: 8 passed, including actual E0–E3 processing of 500 versions. Two separately cited passages are both needed to identify Alice from “She”; all500 occurrences remap both spans, one claim survives, and a real lifecycle recount gives one source lineage/fact evidence count. Changed context invalidates reuse.
  • Real Alembic populated-store refusal, origin-coordinate envelope, SQL validator/privileges and live manifest checks passed.
  • Antigravity and Cursor approved exact runtime 3cdf8746; parent independently reviewed and fixed earlier findings. Full reports and minor observations are committed under plan/implementation_evals/d119_*.
  • All CI lanes passed on that runtime, including workers/surfaces/Compose/client compatibility. The final documentation and Full-v29 naming checkpoint passed151 protocol/runner/backup tests; its CI is running.

No paid model or remote benchmark-store calls. Deterministic tests prove provenance/reuse behavior, not real-model quality or billed-token savings. Separate PRs #402 and #403 implement clearer prompts/compact inputs and document/entity context.

Contributor agreement

Signing on behalf of a legal entity (leave blank if accepting individually):

fazpu added a commit that referenced this pull request Sep 14, 2026
…+schema

Participation is not positive evidence of a win. Date correction revises a
date-neutral window, not the stored statement. Stale F1 replies fail CAS,
not the translator. Size evidence compares old prompt+schema to new
prompt+schema on reconstructed small, varied, and best-case fixtures and
is labeled as bytes, not billed tokens. D123 adds no context-only producer.

Draft: D119 PR #400 is still required before final E2 prompt/schema and
protocol pins.
@fazpu
fazpu force-pushed the feat/multi-span-claim-extraction branch from 8ae2e2e to ceaccc9 Compare September 14, 2026 10:52
Keep claim_occurrences_live column order stable by adding evidence_spans
after attached_at, and refresh the checked-in surface hash to match.
fazpu added a commit that referenced this pull request Sep 14, 2026
…+schema

Participation is not positive evidence of a win. Date correction revises a
date-neutral window, not the stored statement. Stale F1 replies fail CAS,
not the translator. Size evidence compares old prompt+schema to new
prompt+schema on reconstructed small, varied, and best-case fixtures and
is labeled as bytes, not billed tokens. D123 adds no context-only producer.

Draft: D119 PR #400 is still required before final E2 prompt/schema and
protocol pins.
fazpu added a commit that referenced this pull request Sep 14, 2026
…+schema

Participation is not positive evidence of a win. Date correction revises a
date-neutral window, not the stored statement. Stale F1 replies fail CAS,
not the translator. Size evidence compares old prompt+schema to new
prompt+schema on reconstructed small, varied, and best-case fixtures and
is labeled as bytes, not billed tokens. D123 adds no context-only producer.

Draft: D119 PR #400 is still required before final E2 prompt/schema and
protocol pins.
@fazpu
fazpu marked this pull request as ready for review September 14, 2026 12:09
@fazpu
fazpu merged commit 4411774 into main Sep 14, 2026
16 checks passed
fazpu added a commit that referenced this pull request Sep 14, 2026
…+schema

Participation is not positive evidence of a win. Date correction revises a
date-neutral window, not the stored statement. Stale F1 replies fail CAS,
not the translator. Size evidence compares old prompt+schema to new
prompt+schema on reconstructed small, varied, and best-case fixtures and
is labeled as bytes, not billed tokens. D123 adds no context-only producer.

Draft: D119 PR #400 is still required before final E2 prompt/schema and
protocol pins.
fazpu added a commit that referenced this pull request Sep 14, 2026
…#402)

* feat(adjudication): project concise evidence and clarify processing prompts

D120 restates extractor, normalizer, and fact-adjudicator instructions so a
shared person or event is not treated as a shared proposition. D121 projects
the prepared snapshot into attempt-local handles, factors repeated wording,
and translates a closed handle schema through that attempt into the existing
writer. Canonical aliases and unhydrated window witnesses stay visible; they
are not extra citation rights.

* fix(adjudication): preserve propositions both ways and measure prompt+schema

Participation is not positive evidence of a win. Date correction revises a
date-neutral window, not the stored statement. Stale F1 replies fail CAS,
not the translator. Size evidence compares old prompt+schema to new
prompt+schema on reconstructed small, varied, and best-case fixtures and
is labeled as bytes, not billed tokens. D123 adds no context-only producer.

Draft: D119 PR #400 is still required before final E2 prompt/schema and
protocol pins.

* docs: record D120/D121 implementation head for review

* docs: record Antigravity D120/D121 review of 5273eee

Approve with nits. Narrow the optional tiktoken import in the size helper
to ImportError/ModuleNotFoundError; no runtime change and no second review.

* fix(adjudication): shorten fact prompt without dropping semantic rules

Combine repeated adjudicator definitions and examples. Keep bidirectional
identity, date-neutral correction, exclusive stored ends, one-microsecond
instants, and quarter-aligned calendar bounds. Measure a reconstructed
bounded 20-fact snapshot against old prompt+schema. Draft pins only;
D119 integration remains pending.

* docs: record lean-prompt checkpoint SHA ef17559

* docs: record Antigravity review of lean fact prompt

Approve with nits on d84af5a. Nits are not material; no runtime change.

* fix(prompts): explain fact decisions in concrete language

* fix(processing): combine clear prompts with multi-span extraction

* docs: record combined processing protocol and validation

* fix(prompts): resolve review ambiguities and update generation docs

* test(benchmark): refresh Full-v30 fingerprint after final evidence schema

* fix(integration): align combined processing protocol after final multi-span changes

* docs(prompts): resolve final multi-span wording nit and record approval
@fazpu fazpu mentioned this pull request Nov 6, 2026
11 tasks done
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