Entity extraction quality evaluation
Current contracts: guide omk-entity-annotation/v11, corpus omk-entity-quality/v13, checker omk-entity-critical-checks/v5. Production prompt-json knowledge-extraction-v29 and strict knowledge-extraction-v30, response Schema v4, run v5 and quality projection v4 have separate identities; none inherits historical v14/v18 model-quality or Gold conclusions. The separately identified bounded retry/budget policy also requires its own fixed measurement. Quality v4 retains v3 grouping by complete policy and initial invocation caps, whose v2→v3 change was BREAKING-COMPARABILITY; one final selected birth admission contributes once per run. Independently versioned human sealing keeps current records in the denominator as execution unknown, with unsupported-schema and legacy dispositions separately visible; it does not supply admission or semantic acceptance.
The separately registered historical v14 real-window baseline owns its original evidence and limits. It is not a current strict paired experiment or independent quality acceptance. Human-confirmed cross-window organization is implemented through the entity-link journal and library without merging source identities; its proposals follow the separate association evaluation protocol. Neither organization decisions nor historical extraction evidence establish automatic cross-Agent identity or reuse benefits.
1. Versions and scope
This guide follows the identity rules and extraction contract, covering object granularity, complete names, configuration knowledge, critical sources and build identities. Exact positions do not establish semantics or artifact identity. Recorded-output replay and authored responses verify representation, admission and review candidates, not new model effectiveness.
Current test/fixtures/entity-extraction-review-v13.json retains v12's 60 public synthetic windows and 199 critical mentions unchanged and adds four development windows for the work-record/concept boundary; the total is 64 windows and 212 critical mentions, with 62 development and two reserved validation windows. The frozen corpus owns complete-name alternatives, identities, knowledge roles and itemwise rationales. It is neither a hidden blind set nor representative real logs, and contains no real message text. Viewed output windows serve only as development regressions, without blind-gain claims. New validation windows must be grouped separately by project/conversation and determined before output, without informing prompt tuning. Real logs need separate minimization, authorization, grouping and review.
Raw byte digests of the prompt, corpus, both language guides, checker and runtime artifacts bind the measurement identity. Updating current documentation also changes guide digests in new review packages; regenerate and freeze those packages. Old outputs, annotations, strict failures and scores remain unchanged and are not rescored under current rules. Different measurement identities cannot be compared directly; their frozen originals remain traceable through the corresponding Git revision and issues/PRs.
Guide v11 and corpus v13 make the Issue/PR work-record boundary explicit under identity rules section 2.4. This is BREAKING-COMPARABILITY with guide v10/corpus v12, alongside prompt-json v19/strict v20; previous annotations, frozen assets, original outputs and reported scores retain their identities. Checker v5 is unchanged: it presents unannotated extra entities for itemwise review rather than adding an automatic semantic verdict or a post-generation blacklist. New cases are development regressions, not fresh blind-quality evidence.
This referential-context correction retains guide v11's annotation/scoring rule identity, the original bytes of the 64-case corpus v13, and checker v5 source. Version notes and diagnostic content in the current bilingual guide pages do change, so their raw bytes and guideDigest change. New prompt-json v23/strict v24 requests require a new measurement identity and a newly frozen review package; old permissions, runIds and receipts cannot be reused. Historical frozen packages retain their original bilingual guide bytes, outputs and scores. An unchanged guide rule version does not mean an unchanged current page digest.
The subsequent v25/v26 correction preserves independently evaluated content objects when their containing files are also mentioned. It retains guide v11 rules, corpus v13 and checker v5; the new content/container synthetic diagnostic has its own identity and denominator. A file-only authored response can pass structural admission while existing required-mention checks still expose the missing content object; the file description does not substitute for that identity. Reverse cases cover file-only topics, background containment and explicit aliases. Real seen-source replication exposed the omission and remains development evidence; neither these regressions nor prompt demonstrations establish stable improvement or independent acceptance. The current guide page bytes and new guideDigest change, requiring a newly frozen measurement package; historical scores and outputs do not change.
The v27/v28 rules and output self-check within the same invocation clarify whole/part identity with BREAKING-COMPARABILITY. When a reference requires a whole independently reviewed in the source, returning its guidance or mentioning the whole in a part's description does not cover that identity. A source discussing only the part or file does not force an additional owner. Record uncertain part eligibility separately from a known whole omission, without widening references after output. The eight demonstrations, guide v11 rules, checker v5 and main-corpus denominators remain unchanged; current guide-page bytes and guideDigest change and require a newly frozen package. Seen diagnostics and authored responses do not establish that the new rule eliminates omissions, improves stability or completes human acceptance.
The v29/v30 source-claim clarification is BREAKING-COMPARABILITY for prompt rules and the output self-check within the same invocation. Evaluate descriptions, qualifiers and mention rationales independently: an exact locator or basis: explicit cannot validate an added role, containment or ownership assertion. Same-review/PR association does not supply those relations. A confirmed unsupported assertion remains an error even when its external truth is unknown; genuine phrase ambiguity remains uncertain and cannot count as passing evidence. Interpret complete spans and whole-object designations in context rather than treating a word as proof of an invented canonical identifier.
The eight demonstrations, registered v19–v28 raw-byte constraints, guide v11 rules, checker v5, 64-case/212-critical-mention denominators, public Schemas, wire, storage and single policy stay unchanged. Current guide-page bytes and guideDigest change and require a new frozen package; historical packages, runs, scores and review evidence retain their original identities. Source-claim diagnostics are development evidence, not proof that v29/v30 output passes, generalizes or completes independent human acceptance. No invocation stage is added.
Checker v5 enforces the two-record gate: goldReady requires completed author review and attested independent human review; either missing record keeps it false, and either request for changes blocks both readiness flags. Preserve historical packages and their reported readiness under their original measurement identities. Historical production strict v16 changed prompt bytes, version and complete system digest with BREAKING-COMPARABILITY, without changing wire/domain Schemas, run storage or pipeline policies. Updating this guide changes new preparation digests, so changed pending plans require a newly prepared frozen bundle and matching receipts before capture; old runIds and experiment permissions cannot authorize changed requests. Old frozen assets, results and receipts stay unchanged, without migration or rescoring. Currently registered raw UTF-8 prompt hashes are frozen through test/measurement-governance/prompt-registry.ts and prompt-registry-freeze.test.ts. This registry is not a complete archive of every historical prompt; strict v16 needs its original complete asset and corresponding revision to recompute its recorded digest.
The four complete revision-2 input/output demonstrations have undergone AI author review and are present in the production prompt. They are not an evaluation split, unseen validation or Gold; replaying their authored answers cannot establish model effectiveness. The separately labeled partial-admission diagnostic reuses the fourth example, showing rejection of a nonmatching-quote sibling while retaining the valid candidate. Its intentionally bad sibling describes host behavior, not desired model output. These offline engineering checks do not complete a real-model comparison or independent quality threshold.
2. Annotation units and allowed expressions
Freeze source messages, roles, omitted records and window limitations before annotating each item:
| Annotation | Rule |
|---|---|
| Critical mention | Names and references needed for retrieval, identity or understanding knowledge, rather than every noun. Keep message index, verbatim quote and zero-based occurrence; count overlapping matches and use UTF-16 half-open spans. |
| Allowed boundary | alternatives lists equivalent boundaries agreed before outputs, such as a complete code identifier with or without backticks, or a short name and qualified description denoting the same object. An arbitrary broad quotation containing the name is not a hit; broader boundaries are review candidates. |
| Identity group | Mentions with the same entityKey must merge; different groups must remain separate. Model IDs and labels are not gold. Align source spans before comparing mention pairs. |
| Granularity and links | Annotate allowed referentKinds, identity status, explicit candidates, component and collection membership/completeness. Alternatives need prior agreement; uncertain sources retain uncertainty. |
| Knowledge roles | Annotate source anchor, subject, object and interpretation first. Relations may use synonymous wording. A human checks semantics, direction, negation, conditions, time and corrections against the full window; missing keywords are not errors. Declare coverage: required or if_selected before outputs. |
A collective reference is one collection mention, not duplicate member mentions at the same span. Instances/versions differ from their component; environmental conditions alone do not force new identities. Distinguish tools from logs, plans from executions, replacement from rename. Matching names or paths are insufficient to merge. Truncated sources do not automatically require empty knowledge: an unresolved subject may retain a source assertion and pending investigation, without filling missing identity or generalizing conclusions. If two identity schemes are reasonable, adjudicate first or explicitly allow alternatives before outputs; this contract does not encode conflicting identity partitions, so unresolved disputes cannot be frozen.
Mention boundaries follow object meaning under identity rules section 2.3, rather than minimizing string length. “当前 main 的被测代码” and “enabled 字段” still denote the same objects and can be listed before new measurement outputs; “main 上的改造” discusses a change property, so the code-state mention should select main inside it. Do not mechanically strip “字段”, “的” or “上的”, or accept any sentence containing a short name. The program still matches predeclared alternatives exactly, without automatic trimming or regex-based semantic judgment. Recompute occurrence when narrowing to a repeated short name: the second main has occurrence 1, regardless of the unique longer phrase.
Judge type evidence separately from identity resolution: names, calls, failures or “node” labels alone do not prove components/deployed instances. A known identity with unknown type stays proposed object with type uncertainty; explicit module roles or deployment instances must not be downgraded. Qualified descriptions and short names may be prefrozen alternatives, never widened after new outputs. Distinguish shared references from their properties: their/它们 refers to a collection; a property phrase cannot identify just one member. Read relation and polarity together without double negation; “not failed” does not mean “passed”, and “not prohibited” does not mean “required”. Per-case semantic criteria preserve these judgments without keyword classifiers.
Review ordinary objects, abstract concepts and named objects case by case, including whether descriptions faithfully explain contextual meanings. Semantic category is not referentKind: a concept and a particular object may both be object without sharing identity. A product named “Plan” is not necessarily a plan. Record omissions, false extractions and unsupported categories/meanings beyond critical mentions; incomplete annotation does not support overall precision/F1. Inspect entity coverage even with no knowledge proposals; empty knowledge alone does not establish reliable associations.
Retained itemwise semantic review checks that central concepts are not replaced by statistics/adaptation objects. Short concept spans may overlap complete compound-object spans, without duplicating the same span; words inside product names do not automatically become concepts. An assistant-selected answer is not user clarification: retain the original ambiguous mention as unresolved with same-level candidates (or empty candidates plus a reason when levels differ), and only reconsider earlier mentions upon explicit clarification. Each statement has one proposition with uniform modality/polarity. Separate positive/negative requirements and their citations; context cannot restrict a single negative polarity to the latter clause, and a collective predicate cannot be mechanically split into member facts. Itemwise review applies these standards; structural admission uses no keyword inference or result completion.
Referential-context review applies existing identity and qualifier rules. Identify objects in teaching examples, hypotheticals or counterexamples within their own context rather than merging them into the actual current object by name or transferring their version, environment or result into its description/qualifiers. Each mention and rationale must support the object to which it is bound. Merge references when the source explicitly confirms one object across a quotation; quotation marks or an example label must not automatically split it. Without confirmed correspondence, retain an unresolved identity and source-supported candidates; an assistant's continuation cannot supply clarification. Exact mention and identity-group checks do not establish qualifier support, which still needs itemwise review against the full window.
Granularity review checks both omissions and excessive splitting: determine whether the source describes properties/behavior of a thing or independently defines, compares, refers to or associates an object before choosing identity. Ordinary properties can be statements about their owner; independent metrics/operation concepts must not be collapsed merely because they involve statistics/processes. Missing proper names or knowledge candidates is not an exclusion rule. Values, units, conditions and unconfirmed outcomes remain in statements. Critical mention matches do not prove this boundary correct. Record extra entities, actual knowledge wording and absent optional knowledge case by case; self-review is not independent evidence. Never alter identity schemes after output.
Review modal negation against the source meaning. These are examples of equivalent expressions, not a keyword classifier:
| Source assertion | Allowed expression | Unsupported inference |
|---|---|---|
| No need to modify SDK | descriptive/negative, “needs modification”; negates necessity in this scenario. | Modification is prohibited or did not happen. |
| Should not modify SDK | normative/negative, “modify”. | Modification is unnecessary or the rule was followed. |
| SDK modification was not prohibited | descriptive/negative, “modification is prohibited”; negates prohibition status. | Explicit authorization, a requirement to modify or actual modification. |
| Explicitly allowed/prohibited SDK modification | permission/positive or negative, “modify”; retain authority and scope. | Permission in other scenarios or execution results. |
Reported requirements retain normative/permission modality with source_assertion evidence; context preserves speaker, conditions, time and scope. Descriptive statements can also retain source assertions, without becoming direct observations. Negated necessity/prohibition status requires that predicate in relation rather than reducing every relation to the action. Read “cannot modify” in context to distinguish incapability from prohibition. A context mentioning “no need” cannot repair a statement already expressing prohibition. Retain unknowns or omit statements when the meaning cannot be expressed unambiguously. Cite modalities and conditions separately; missing optional knowledge is not_observed, never a modality pass.
Branch/tested-state review follows identity rules section 3.1: distinguish branch objects from separately referable version states; missing SHAs do not imply unresolved identity. Freeze allowed levels first. Branch subjects still qualify this tested state/source time. Distinct commits stay separate; dates alone do not split branches. Unknown reproduction identifiers and unreleased status remain explicit.
Configuration review follows identity rules section 2.2: selected knowledge retains exact values, types, owners, scope, conditions, source reasoning, and unknowns affecting judgment/reuse. An existing owner may be the subject with field and value stated; field endpoint differences are only review cues. Description, qualifiers, or accessible quotations do not establish complete statements. Each role declares coverage: required for mandatory facts or if_selected for retention when selected. Missing critical values in related knowledge are information loss; absent optional knowledge is not_observed; absent mandatory facts are coverage gaps. These differ from entity omission. A none policy cannot contain required roles.
Work-record review follows identity rules section 2.4: retain independently discussed Issue/PR concepts, but do not create standalone entities for individual numbered records or invent concepts by stripping identifiers. Useful record numbers, links, statuses and speaker attribution remain in sources or case context. Source-supported extra objects still need to satisfy this scope; a record entity is an output-scope error, not automatically an invented source fact. Do not generalize this boundary to files, deployment instances, versions or all specific objects. Freeze these decisions before new outputs; explicit post-output catalog/knowledge corrections preserve original revisions and do not raise the original run's score.
2.1 Itemwise complete-name audit
- Read the source, identity group and every boundary for each existing critical mention. Audit the same occurrence rather than substituting another same-named mention elsewhere.
- Consider type words, articles/demonstratives, owners, location and time qualifications; add only contiguous noun descriptions centered on the same referent. “已发布 r2”, “Its test instance
sieve/dev01” and “昨天的更新活动 U1” can be qualified names. Stop before pass/failure/assignment predicates. - Check the phrase's actual head: “项目 Pavo 的 a.md” denotes the file and “客户端 L 的 errorStatus” the field, permitting overlap with shorter owner mentions. Neither entire phrase denotes its owner. Plural member lists are not individual names; Session counts are not aliases for Session.
- Recompute occurrence and UTF-16 bounds independently for each added quote; preserve old alternatives, itemwise reasons and rejected examples. Matching stays exact, without accepting arbitrary containing spans or replacing review with suffix regexes.
The audit covers every existing critical mention, without claiming all possible synonymous/nested descriptions or annotating every noun. A newly discovered post-output gap retains that run's strict miss and stop, with repairs in an explicitly versioned revision. Recorded outputs only check coverage and excluded boundaries offline, never new model-quality evidence.
2.2 Critical-source targeted diagnostic v1
test/fixtures/entity-source-coverage-v1.json is a separate synthetic development case, omk-entity-source-coverage/v1: three messages, two objects, two identity mentions and five critical knowledge sources (purpose, current limit, applicability condition/exception, late-event constraint, and subsequent correction/unverified limit). It is not added to the main corpus and does not change the critical-mention denominator.
Before a model diagnostic, freeze this window, exact critical source positions, required knowledge and allowed expressions, current prompt/Schema, runtime and dependency digests. Authorize the specific model, budget and transfer separately. Authored responses are not model outputs. Empty knowledge remains structurally valid but leaves the five predeclared obligations uncovered. Ordinary repeated names need not all be saved.
Review each item: whether its statement retains the judgment and conditions, constraints, exceptions and corrections; whether its directly located citation supports that statement; whether mention identities/rationales match actual locations; and whether plans, source assertions and unverified limits remain intact. A mention helps users locate text but does not replace a statement's critical citation. Access to the complete message, a broad quote containing keywords, identical endpoints or a citation attached to another statement do not automatically establish semantic coverage. Reusing critical checker v5 anchor/statement lists only provides review candidates; semanticReview remains pending.
The predeclared targeted threshold requires recorded planned calls without call/parse/structural failures, correct identities for both objects and itemwise author agreement on all five knowledge/source obligations. Stop on missing coverage, definite errors or annotation disputes. Missing independent evidence remains explicit. This threshold does not replace section 3's original critical regression threshold or establish overall quality/stability. Only authored-response regressions have completed: zero new model calls and unverified automatic extraction effectiveness.
2.3 Version-artifact targeted diagnostic v1
test/fixtures/entity-version-artifact-v1.json is a separate synthetic development case, omk-entity-version-artifact/v1: two messages, two objects (a frozen archived corpus and a continuing prompt) and one required no-mixing obligation. It is not added to the main corpus and does not change the critical-mention denominator.
The predeclared check: a frozen, archived artifact with a version identifier and digest takes version referent identity, while the continuing prompt stays object with its current version only as a qualifier. Typing the archived corpus as object must surface a referent_kind mismatch in the offline checker. Historical knowledge-extraction-v18 introduced one synthetic demonstration of this distinction (synthetic-version-artifact-v2, asset bundle entity-extraction-five-positive-strict-v4); the demonstration is prompt material, not an evaluation split or evidence of semantic improvement. Model-produced type judgments remain subject to itemwise review; semanticReview stays pending.
The v18 correction retains the source-supported qualifier “当前版本 v14”; v17's demonstration had supplied the unsupported full identifier knowledge-extraction-v14. This changes prompt bytes and measurement identity (BREAKING-COMPARABILITY), with no new model calls or quality conclusion. The original input, first four demonstrations, no-fewshot control and wire identity stay unchanged. The v4 bundle binds the original v3 digests and a fresh AI author review; it registers no new live collector arm. The v3 assets and v17 runs retain their original bytes and facts. The v3/v4 verifiers check their corresponding historical v17/v18 builds and must run after rebuilding those revisions. Strict v20 reused the five demonstration texts unchanged with a new rule prefix. Strict v22 keeps those serialized bytes and adds a sixth temporal demonstration; its full system is not the v4 bundle's frozen v18 candidate and needs its own measurement identity. The v21/v22 temporal correction is BREAKING-COMPARABILITY without changing collection scope or public Schemas; it affects only new requests, leaves old outputs and scores unchanged, and does not guarantee semantic correctness.
2.4 Referential-context targeted diagnostic v1
test/fixtures/entity-context-boundaries-v1.json is a separate synthetic development asset, omk-entity-context-boundaries/v1: three cases, seven messages and eleven predeclared critical mentions. They check separation of isolated example objects, merging an explicitly identical object across a quotation, and retaining ambiguity when correspondence is unconfirmed. It contains no private conversation text and does not enter corpus v13's 64-case or 212-critical-mention denominator.
Authored-response regressions reuse exact localization, mention identity pairs and itemwise semantic review. Wrong merges, wrong splits and unsupported candidate selection must yield locatable check differences. Context transferred through descriptions/qualifiers still needs itemwise identity/unsupported_qualifier decisions, without a new NLP host filter. Correct locations, matching identity pairs or valid structure cannot automatically establish qualifier correctness. Test-authored judgments verify pending/blocked handling, not model output or independent human review.
prompt-json v23/strict v24 add referential-context guidance and a seventh complete wire demonstration. The first six demonstrations retain their serialized bytes; wire, public Schemas, storage, policies and invocation counts remain unchanged. This is BREAKING-COMPARABILITY; old runs and original scores are not recalculated. The motivation was a cross-context identity/version-qualifier defect in seen real development output, used only as a regression cue rather than unseen validation. Before model diagnostics, freeze these cases, allowed identities and qualifiers, current byte digests, model and budget, then retain itemwise review. These engineering regressions establish neither real v24 effectiveness nor overall quality improvement or formal Gold.
3. Layered results and acceptance threshold
| Layer | Recorded checks | Limits |
|---|---|---|
| Calls and capture | Separate call failures, JSON parse failures, cancellation and unattempted items. | Internal checker exceptions stop the run instead of becoming model failures; no retries hide failures. |
| Structural admission | Envelope Schema rejection, rejected mentions/entities/proposals and itemized reasons. | Structural rejection of valid JSON is a captured output, never capture_failures. Rejected item counts include cascading consequences, not independent mistakes. |
| Critical mentions | Exact matches/missing/ambiguous mentions, broad-boundary candidates and critical mention recall. | Annotation is not exhaustive: precision/F1 are null; extra mentions need human review and are not automatically false positives. |
| Identity | Required same/different mention pairs, wrong merges/splits and granularity/candidate/component/member differences. | Unaligned mentions or missing references are not_evaluable, never passes. Correlated pair counts are not independent-sample accuracy. |
| Knowledge links | Statements linked to the source anchor, endpoints, relation, modality and polarity; reversed endpoints raise review prompts; no statement is not_observed. | Matching endpoints do not establish correct relations or truth. Other statements sharing an anchor, broad citations and synonyms require human review. |
| Knowledge coverage obligations | Each role preserves coverage, interpretation, and references to all accepted statements. Without structural rejection or knowledge candidates, required becomes required_not_observed, and if_selected becomes not_observed. Any candidates require needs_review; structural rejection yields not_evaluable. | Citation/endpoint matches do not establish values, types, owners, or reasoning; review alternate evidence/subjects against the full text, without keyword-based passing judgments. |
| Independent semantics | Per-case semanticChecks cover conditions, time, negation, assertions/observations, plans/completion, case organization and late corrections. | optional permits no knowledge; omission differs from error. Knowledge under none requires an issue. Empty results do not establish reliable knowledge links. |
Frozen synthetic critical regression threshold: every planned call has a record; no call/parse failure, cancellation, unattempted item or structural rejection; 100% critical mention matches; all same/different mention pairs and identity links match without not_evaluable; independent human review approves generated knowledge roles, conditions and status with no unresolved disputes. Omitted optional knowledge supports entity-only conclusions and leaves knowledge-link coverage insufficient. This tool never automatically declares the entire threshold passed: semanticReview stays pending, with unverified scope reported. Predeclared required facts need itemwise coverage confirmation; structural rejection does not establish semantic absence from lack of accepted knowledge.
This threshold covers specific boundaries, not overall quality. Two repeats supply at most two samples; passing both does not establish population stability or cross-Agent benefits. Real-log sampling and thresholds are separately predefined, never adjusted after seeing outcomes.
4. Independent review, disputes and freezing
- The implementer/author checks semantics, source closure, positions, grouping and contracts case by case, recording rationales in
omk-entity-author-review/v1.authorReview: completedandexploratoryReady: truesupport continued engineering and exploratory evaluation without requiring the user to review every case. Self-review supplies no independent human evidence;goldReadystays false. Missing independent review is a reported coverage limit, not a blocker for this work; the independent quality completion threshold is unchanged. - A person independent of the authors checks each case's guide, allowed boundaries, identity groups, roles and semantic criteria. Complete
review-template.jsonwithapprovedorchanges_requestedper case, rationale, reviewer, timestamp and independence declaration. An independent model judge does not equal independent human review. - Adjudicate disputes before seeing outputs, recording the question, resolution and independent adjudicator. Unresolved disputes use
changes_requested. Corpus/guide/checker changes require a version change and new bundle; editing a receipt cannot approve a different digest. - Both author and independent records cover every case, bind the measurement identity and predate output capture. Either supplied record requesting changes makes both readiness flags false; self-review cannot override independent disagreement. The checker rejects author self-attestation, omissions, wrong digests and post-hoc approval. It checks record closure and declarations, not actual reviewer identity or judgment correctness;
attested_independent_humanis a declaration, not an effectiveness conclusion. - The measurement identity combines corpus, bilingual guide, compiled checker and production runtime digests, dependency manifest/lockfile digest, Node version, raw UTF-8 prompt digest and versions. The runtime digest uses
omk-entity-measurement-runtime/v2: normalized relative paths and raw bytes of all regulardistassets, excluding only the unrelated Next.js subtreestudio/web. Relevant runtime or asset changes still invalidate identity; a web-only rebuild does not. This scope change is BREAKING-COMPARABILITY with earlier bench digests: prepare a new bundle and matching receipts or live plan, while retaining old evidence with its original frozen host; no migration or rescoring occurs. The shared helper is included in checker/collector digests, including entity-link review. The bundle preserves both original guide files and a combined reading copy. The manifest also records observedsourceRevision.commitandsourceRevision.dirtyoutside measurement identity; both arenullwhen Git provenance cannot be established. A dirty checkout's commit does not reproduce its uncommitted source or prove which source produced an existing build. Runtime promptHash uses canonical JSON hashing rather than the raw UTF-8 digest here; do not interchange them.
5. Offline review tool and evidence
Update compiled artifacts, then prepare an external bundle:
yarn build:runtime
node dist-scripts/bench/entity-extraction-review.js \
--corpus test/fixtures/entity-extraction-review-v13.json \
--output /private/tmp/omk-entity-review-uniqueThe output must be absolute, outside the repository, with an existing parent and nonexistent destination; symlinks into the repository are rejected. It preserves raw corpus, bilingual guide, review.html with positions and annotations, review template, model inputs/digests and measurement manifest. Without an independent receipt, goldReady: false even after completed author review. The default template requests changes and has no signature; it cannot approve anything without completion.
Optional --self-review /absolute/self-review.json validates an author record (measurement identity, author, timestamp, per-case decisions and rationales) and saves self-review.json. It has no independence attestation and cannot pass as human evidence via --review. Optional --review /absolute/review.json validates an independent receipt; optional --captures /absolute/captures.json checks existing captures only. No executor entry exists: this command makes zero model calls. Preparing a bundle or signing annotations does not authorize data transmission or model execution.
Capture format omk-entity-captures/v1 contains the same measurementId, one split, one or two planned repeats, start time, executor/model and records with caseId, repeat index, frozen input digest and result. Results are output (verbatim text and optional original usage), call_failure or cancelled, with optional executor-reported durationMs and costUSD; omit unknown values instead of inserting zero. Unknown, duplicate, excess and input-mismatched records are rejected. Raw captures and admission results remain intact. Unattempted records are itemized; unchecked critical mentions stay outside the matching denominator and have their own count. Aggregate only reported usage, duration and cost. Total cost is unknown if any recorded attempt lacks reported cost, while the reported subtotal remains visible; partial cost coverage is not the whole-run cost.
Structural rejections do not fail capture status; call/parse failures, cancellation or incomplete plans cause a nonzero exit. Successful exit only means offline inspection completed. Raw outputs, itemized admission, original usage and every failure remain available; semantic review stays pending. Captures approved only by the author are exploratory_semantic_review_pending, never an independent acceptance pass. Subsequent model evaluation runs only within concrete authorization and obtains itemized independent output review.
5.1 Explicit coverage-review research task
The internal application option coverageReview.previousRunId uses the knowledge-extraction-coverage-review-input/v1 input task to supply the complete first native response from the same source as untrusted candidate data. The model compares it with the source and returns complete entities, mentions and knowledge. The predecessor must be a settled source-only single extraction with the same model, strict30 system bytes, wire, timeout and output configuration. The application rereads its archive and verifies the source, input and original response; callers cannot substitute raw text. Original output and rejected items remain intact, and previous output never becomes citation evidence. Capacity failure prevents dispatch without truncating the candidate.
Review is one new invocation in a separate run, reusing native archiving, admission and revisions. It does not union results or activate through default extraction, retries or automatic extraction. Existing study/v1 cannot assign different task inputs to its arms; its prompt/policy/replication axes cannot represent this workflow comparison. A separate diagnostic must seal actual input bytes, predecessor run/attempt/outcome digests, host, order, final endpoint selection and stops before dispatch, then verify actual requests. An old output used only as input does not count as a fresh end-to-end result.
The control is ordinary source-only re-extraction with matching invocation opportunities and execution configuration; each arm selects its final complete response prospectively. Review adds a candidate catalog to its input, so actual tokens and costs must be reported separately, without claiming equal cost or a pure prompt effect. All entities, mentions, knowledge, rejections and preservation of source-supported information still require review. A local repair does not replace independent human semantic acceptance.
5.2 Source-semantic-plan research workflow
An internal alternative first requests a source-only semantic plan, then produces complete entities, mentions and knowledge from the source plus the complete unmodified plan. The current plan uses independent knowledge-source-plan-system/v6, knowledge-source-plan-input/v2 and knowledge-source-plan-wire/v2 identities, with output name knowledge_source_plan_v2 and schemaVersion: 2; there is no v1 reader or alias. It records discussed objects and bounded groups, separate identity/type grounds, exact evidence anchors, member uncertainty and material with its conditions and limits. Its checker validates structure, source binding, exact positions and local reference closure only: semanticStatus: not_reviewed remains explicit. A valid plan is untrusted candidate data, never additional source evidence or admitted knowledge.
Source-plan system v6 receives the complete ENTITY_REFERENT_KIND_POLICY verbatim, sharing the existing seven referent-level meanings and evidence requirements with A system v9 and the independent v36 entity task. Schema enums alone do not supply those meanings. The private planning vocabulary additionally permits referentKind: unknown when planning-level evidence is insufficient; typeBasis and uncertainties retain that insufficiency independently of identity unresolved, so a known identity may remain proposed. The shared policy's general object and supported fallback remain valid; they do not require replacing explicit planning-level uncertainty with object.
The current private system revision and its BREAKING-COMPARABILITY boundary are defined in §5.9. Source-plan input, wire, response Schema and checks remain v2; the original shared referent policy, v36/v37 and production defaults retain their bytes and identities. New source-plan requests require new task/request freezes. Tasks that consume the plan bind its complete receipt, so their actual input bindings also change and must be materialized and sealed from the new authenticated predecessor chain before dispatch; old execution permissions or scores cannot be reused. Source-only A and initial B under §5.6 do not consume or authenticate the plan; their first joint boundary with it is A′ under §5.7. Historical originals, receipts, frozen runtimes and scores remain unchanged and use their matching frozen code, without reinterpretation or rescoring. This rule transmission does not establish improved model quality or add a B→A correction loop.
Objects distinguish entity_candidate, context_only and qualification_unknown through planningRole and qualificationBasis, independently of identity, type and member uncertainty. Independently discussed concepts, processes or gates can be participants even when they occur in a condition; concrete source records cannot substitute for them, and vocabulary alone does not determine eligibility. Materials distinguish reusable_candidate, context_only and undetermined through retentionIntent and reuseBasis, with separate participantObjectIds and contextObjectIds. Different reuse roles in a completion report must be separated into material units without mechanically making every condition a new node. A one-off diagnostic case or numerical context can still be reusable. Unknown roles require explicit reasons; roles remain model claims, not host permission to filter, fill or merge objects and knowledge. The final stage independently checks them against the source, so a context label cannot exempt supported reusable information from preservation.
The final application option sourceSemanticPlan accepts only a receipt ID and byte reference. A trusted research composition root supplies a readonly archive port; ordinary hosts do not install it. The application authenticates complete receipt/native bytes, same-source task/request/producer identity, model/timeout/output configuration and complete native return, then validates the plan before reserving a final invocation. Producer inspection reconstructs the first stage's own Schema, rather than comparing it with the different final extraction Schema. Missing/corrupt archives, failed cleanup, tools, refusal and incomplete native termination cannot advance. Plan structure/anchor rejection is a distinct quality failure with the raw return preserved. Receipts are local provenance, not provider signatures or human review.
The final request uses knowledge-extraction-source-plan-input/v2, unchanged strict30 and the current v4 output wire, with actual input bound by the normal request digest. It keeps the ordinary native archive, admission and revision pipeline: correct planning anchors do not repair an incorrect final quote, and material present only in the plan cannot count as preserved final knowledge. This option is mutually exclusive with coverage review, requires one single-invocation run and never enables itself through retries, CLI or defaults. There is no public storage migration or generic task platform; private planning receipts are not failed extraction runs.
Compare this two-stage workflow against source-only complete extraction followed by existing coverage review, using fresh first stages and prospectively fixed endpoints. Freeze builders, tasks, source/configuration, stage dependencies, order, invocation opportunities and stopping rules before the first output. Materialize and seal each actual second-stage input from its archived first stage before its dispatch; do not pretend unknown future output bytes were frozen in advance. Declare any difference in intermediate quality gates: a rejected plan blocks its dependent final call, while existing coverage may review a complete but malformed first extraction. Do not fill skipped opportunities with replacements. Report both stages' actual usage, failed/unknown/skipped effects and final raw/admitted/rejected output. This changes multiple workflow tasks, not a single prompt variable; equal opportunities do not imply equal tokens, cost, latency, stable benefit or independent semantic acceptance.
5.3 Entity-first, revision-bound knowledge research workflow
This internal candidate first extracts entities and mentions, persists the initial EntityAnalysis revision, and then requests knowledge against that immutable revision. The entity-stage research profile knowledge-extraction-v35 composes the original strict30 bytes, the existing v34 entity-evidence-semantics-v1/rules.txt, and the existing v33 entity-task-only-ablation-v1/task-suffix.txt, in that order without additional examples or source answers. It keeps prompt-profile v1 and the ordinary v4 extraction wire, requiring a native proposals: [] response. Its frozen profile is an engineering identity, not an extraction-quality result; the host must not erase unexpected proposals.
boundKnowledgeContext(entityRunId, model, profile) authenticates the E stage through the actual source-only single-invocation run and its complete native archive. It checks the frozen profile, source/input/request/producer identity and execution configuration, requires admitted E/M without knowledge or rejected items, and matches native admission to the actual persisted initial revision. It selects that exact revision from the E run, even if the entity analysis later has a newer head. An arbitrary catalog projection or a matching label is not persistence evidence. This context read does not invoke a model or alter the E revision. This single-E contract remains separate from the source-only A/B entry in §5.6 and the five-original handoff in §5.8. In the selected six-invocation path, only the final B′ composition supplies the persisted initial E revision to direct K; an intermediate A/B catalog or context cannot substitute for it.
The K-only task retains the knowledge-bound-knowledge-system/v2, knowledge-bound-knowledge-input/v2, static knowledge-bound-knowledge-wire/v2 template and knowledge-bound-knowledge-check/v2 identities; its response remains bound-knowledge/schemaVersion: 2. Actual execution uses knowledge-bound-knowledge-execution-wire/v1, output name bound_knowledge_execution_v1, and private receipt kind knowledge-bound-knowledge-receipt with schemaVersion: 3; the outer native archive kind knowledge-bound-knowledge-native remains schemaVersion: 1. The actual input contains the complete selected excerpts and limitations plus the readonly entity/mention catalog, bound by source and immutable revision digests.
For each request, the execution factory creates a separate, deeply frozen output Schema with singleton enum constraints for the six fixed binding values: snapshotId, sourceVersion, analysisId, revisionId, sourceProjectionDigest and entityAnalysisDigest. These identity values are constrained rather than freely copied or computed by the model; returned digests are never repaired. The request wire identity binds the static template identity, specialization policy version and actual Schema digest. The evidence reader reconstructs the same Schema and authenticates the same-request producer's actual input. Wrong bindings, refusals, incomplete returns and native evidence failures still reject or stop under existing rules; original output is preserved without retries, field replacement or proposal salvage. Output constraints and host authentication do not establish semantic completeness or source-claim truth.
This is BREAKING-COMPARABILITY: private K v2 execution receipts are replaced without an old reader, alias or migration. Historical originals require their frozen code; failed receipts cannot be rewritten or old measurement conclusions reused. The static K v2 proposal template, system/input/check and separate reviewed-knowledge protocol remain unchanged, as do public entity/knowledge storage, stable ID algorithms and formal human acceptance contracts. New execution identities require a newly frozen comparison. Local synthetic tests verify constraints and transport, not actual provider execution or extraction quality acceptance.
The K v2 system shares the general knowledge-semantic policy: concrete work records remain context, while supported reusable conclusions use the actual topic objects; independently truth-valued affirmative/negative claims or claims with different modality need separate statements. Conditions and exceptions stay attached to the claims they qualify rather than mechanically becoming statements. Preserve supported material with its critical conditions, limits, attribution, evidence level and fact-time uncertainty, including reusable diagnostic or quantitative cases embedded in completion reports. Source-message time is not fact time, and an assistant report is not independent execution evidence. These policy requirements do not change the frozen runtime bytes of strict30 or E35, and are not keyword filters or host semantic repair.
The response contains proposals, catalogGaps, materialAccounting and excerptAccounting. Each catalog gap has gapId, gapKind, a reason and exact anchors; gapKind is catalog_blocker, identity_unknown, granularity_unknown, scope_excluded or context_only. These remain unreviewed model declarations, not proof of entity eligibility or authority to expand the catalog or schedule calls. The response cannot rewrite E/M, fabricate a v4 extraction response or raw extraction run, union catalogs, or repair quotations. Neither the catalog nor an absence of gaps establishes semantic truth or completeness.
Each materialAccounting row has materialId, meaning, exact anchors, dispositionKind, statementRefs pairs of proposalId/statementId, nullable reason and catalogGapIds. A disposition of expressed requires nonempty statement references and a null reason; not_expressed, context_only, scope_excluded and undetermined require empty statement references and a nonempty reason. Gap references must close over actual gap IDs. Each excerptAccounting row has evidenceRef, materialIds and nullable noMaterialReason: exactly one row is required for every selected excerpt, with material IDs and a null reason, or no IDs and a nonempty reason. Every material must be listed for each source named by its anchors, without assigning it to unrelated sources. These rows expose model decisions for review; names and a context_only or scope_excluded label cannot prove that supported material may be discarded.
Anchors preserve the exact evidenceRef, quote and nullable occurrence, resolved against the original source in UTF-16 without trimming or repair. For expressed material, each anchor must be fully contained in a citation reached through an actually accepted statement's evidence links; each statement reference must cover at least one anchor, and every accepted statement must be referenced by expressed material accounting. The host checks source/accounting closure in both directions, exact positions and accepted S-to-evidence-to-citation containment. This does not prove that the model identified every material, that a cited statement expresses its material, or that any meaning or disposition is correct. semanticStatus remains not_reviewed.
importBoundKnowledge uses the optional trusted readonly boundKnowledgeArchive port to reread complete receipt/native bytes and reconstruct the current K task for same-request producer inspection. It authenticates source/revision binding, request/configuration and the complete native return before existing proposal admission and KnowledgeStore writes, with grounding bound to entityAnalysisRef. Bad gap/accounting rows, anchors or references receive separate diagnostics and do not discard independently valid proposals. Invalid UTF-8/JSON, version/binding or basic envelope structure rejects the response; archive, provenance or authentication exceptions remain STOP conditions. Raw returned content is retained, with no host catalog expansion, quotation repair or semantic union.
The importer reports proposalAdmissionStatus for the proposal axis separately from coverageStatus: declared_only | unresolved | unavailable. not_expressed/undetermined material, the first three gap kinds, or gap/accounting structure, position or reference problems leave coverage unresolved and the combined result partial, even when all proposals are admitted. Valid context_only/scope_excluded declarations alone are not blockers; a rejected response cannot provide usable coverage accounting and reports unavailable. declared_only means the declarations and positional accounting have no unresolved diagnostics, never that coverage has passed. Returned committed entries retain the native proposalId alongside the actual knowledge/revision identities. Neither proposal admission nor these coverage states establish complete business success or semantic acceptance; no public extraction run or quality framework is created, and K is not a second entity run.
An E success survives a K failure. After an interrupted import, replaying the original receipt uses the same private knowledge-bound-import-ids/v1 identities derived from receipt ID, proposal ID and role for the knowledge, revision and store request. Existing store idempotency allows replay of identical content; changed content under those same IDs cannot overwrite the earlier write. Replay reads the same initial E revision and archived K return, without a new model invocation, following a newer entity head, or editing the original native evidence. Execution wire specialization does not migrate existing KnowledgeStore content or E revisions.
The ordinary strict30 default, v4 wire, knowledge-generation-single/v1 generation policy and existing public formats/data remain unchanged. Ordinary hosts do not install this research archive port or select v35 by default. Reusing the v33 suffix does not make this workflow a v33 predecessor or authorize bypassing the existing coverage-review predecessor contract. K uses its own task and receipt rather than disguising its response as a failed or empty v4 extraction.
A new prospective diagnostic must freeze the complete E+K workflow: actual source/profile/configuration, initial revision and native references, dependent K input, order, opportunities, stops, and final endpoint. Review all E/M and knowledge, source-supported information preservation, every gap/accounting declaration, partial/failed effects and both stages' actual token/cache/cost/duration records, with unknown usage kept explicit. Do not reuse old scores or claim that unchanged sources imply fresh independent evidence. This task and binding change is not a single prompt-variable comparison; empty E-stage knowledge, authored regressions or green CI cannot establish business quality, production adoption, generalization, or the independent human acceptance required by #1322. This contract description does not establish that a real-model diagnostic using the new execution wire has run or passed.
5.4 Independent entity-only task and admission boundary
The opt-in knowledge-extraction-v36 profile rewrites the E-only system independently, without composing strict30/E35, knowledge-generation instructions or an embedded full Schema. The executor still supplies the unchanged v4 structured wire; prompt-profile v1, persisted policy/Schema contracts and the production strict30 default retain their identities and bytes. The complete system has raw UTF-8 SHA-256 8e8d93d11cf2bf6b4cfc2e419d95bfe61043c5ecf92282446482e9bb39436e4c; registered v36 cannot identify different bytes. Runtime run.promptHash uses canonical JSON hashing and is checked separately from that raw digest. The task also binds the exact source-only input, current structured wire and knowledge-generation-single/v1, without coverage-review or source-plan input.
After archiving the original native return and retaining its raw output, the host checks task identity and the explicit proposals: [] requirement before preparing admission or writing the first entity/knowledge revision. A nonempty proposals array violates the task even when individual proposals would be invalid or rejected. A task violation fails the run with entity_only_task_violation; the host does not delete proposals, repair entities or invoke the model again. The original run and native evidence remain available. Ordinary decoding/native failures keep their existing failure paths.
Resuming a prepared v36 run rereads the same archived native outcome, checks its raw output against the saved run, and reapplies the task/identity checks before further entity or knowledge writes. A prepared state cannot bypass the guard merely by carrying an apparently empty or edited proposal projection. This recovery check preserves the archived return; it does not migrate or reinterpret historical tasks, or undo earlier persisted evidence.
The rewritten system and task-admission boundary are BREAKING-COMPARABILITY for this candidate. Before a real diagnostic, independently freeze the source/model/input/runtime, invocation opportunities, stopping rules and cost-reporting method; then record actual token/cache/cost/latency, retaining unknown costs as unknown. The v36 profile inherits no scores from v35 or the earlier E/R/K diagnostic. The guard establishes task confinement, not improved omissions, type judgments, mention rationales, semantic error rates or independent human acceptance. Historical outputs, frozen packages and scores remain unchanged.
5.5 Source-derived occurrence guide candidate
The explicit internal knowledge-extraction-v37 profile retains the E36 entity semantics and adds instructions for knowledge-body-occurrence-guide/v1. Its complete system has raw UTF-8 SHA-256 06568758fa41d4763c7c5f819c93cc5859f8a70aa661f3b4bd38499d52feba79. Its fixed input preserves all original excerpts, metadata and limitations, and adds occurrenceGuide; dispatch, admission, prepared recovery and the E-to-K predecessor check reconstruct that same input. The v36 empty-proposals guard also applies to v37. Neither profile is selected by ordinary hosts; the strict30 default, original v36 bytes, v4 wire and public storage/CLI contracts remain unchanged.
The guide covers only github_issue_body and github_issue_comment_body. It nominates whole maximal [A-Za-z0-9_$-]+ runs whose first character is [A-Za-z_$] and whose length is 2–64 UTF-16 code units, then retains only quotes with multiple exact matches in that excerpt. Matching includes overlaps and substrings inside other identifiers, without asserting that those positions are semantic mentions. Each position is [occurrence, start, end], with zero-based ordinals across the complete excerpt. Literal context extends up to 24 code units on each side; overlapping or touching intervals share a source panel. A panel may contain more context than an individual position. Original evidence remains authoritative, unlisted quotes remain selectable, and model selections still contain only evidenceRef, quote and occurrence.
Construction is all-or-nothing. Fixed window limits are 1,024 excerpts, 1,048,576 source text code units, 512 candidate/excerpt pairs, 256 repeated-quote rows, 4,096 positions, 65,536 serialized guide UTF-8 bytes and 4,194,304 logical work units. Input validation, scanning, comparisons, matching, panel construction and serialization are metered; a refusal returns no partial guide. The application throws ExtractionOccurrenceGuideError before producer inspection, run creation or model dispatch, without truncation or fallback. Logical work and allocation counters are diagnostic bounds, not CPU, heap, latency or model-context guarantees; native helper internals and enclosing input construction are outside that work count. The existing system-plus-input byte capacity still applies.
The official extraction study/v1 has one shared input per case and explicitly rejects v37, including restored plans. A private diagnostic must use the actual application task and prospectively freeze each arm's distinct input. This is BREAKING-COMPARABILITY: instructions and input both change, so a comparison cannot isolate a guide-only causal effect or inherit earlier scores. Smaller input than the earlier offline guide, exact positional checks and green engineering gates do not establish fewer omissions, correct rationales, model usability, generalization or independent human semantic acceptance.
5.6 Source plan, entity discovery and mention binding
The private tasks keep source-plan (SP) and A (entity-discovery) as separate first passes over the same complete selected source projection: snapshotId, sourceVersion, excerpts and limitations. SP retains system v6, input/wire/check/response v2 and output name knowledge_source_plan_v2, with receipt schema v1. A and B (mention-binding) use system v9; their input, wire, check, response and receipt identities are v4, with output names entity_discovery_v4 and mention_binding_v4. Native archive envelopes remain schema v1. A receives only that source projection: no plan, plan receipt, plan-object disposition ledger or other predecessor output. It returns the complete entity catalog, referent scopes, identity hypotheses and exact quote/occurrence anchors. These anchors provide source grounds, not final mentions; component and collection declarations refer to them until B creates actual mentions.
A receives the complete seven-level referent policy shared verbatim with the independent v36 entity task, including the evidence requirements for general operations versus particular executions, configuration objects versus components, and proposed object with explicit finer-type uncertainty. The six private tasks additionally share ENTITY_CODE_REFERENT_POLICY and ENTITY_COLLECTIVE_REFERENCE_POLICY: their current systems are SP v6, A/B v9, A′/B′ v7 and R v4. The code-referent policy distinguishes independently discussed general functions or methods, separately referable implementation states and independently identified executions, and requires each mention to denote its actual source-supported referent. A displayed definition or code example does not itself establish a fixed version, and an anchor containing an identifier does not prove that identifier denotes the whole implementation. Source grounds must distinguish an operation from its output, a configuration from its mechanism, and a product from its process, without creating an entity for every noun or verb. Schema enums and correct policy transmission do not establish model compliance. Production strict30 and the frozen E36/E37 task bytes remain unchanged.
Source-only A has no source-plan dispositions or dispositionIssues; it is not responsible for reconciling an independently produced plan. Host checks cover source binding, catalog references and exact anchors, not semantic eligibility, identity, type or omission coverage. A known bounded collection may retain unknown membership without making its group identity unresolved. The plan's planningRole, qualification/type grounds and uncertainties remain untrusted model judgments; they are first reconciled with A and B at A′ under §5.7, rather than used to filter, fill or union A's catalog.
Every A and A′ entity must provide private qualificationEvidence, separating eligibility grounds from its description and identity hypothesis:
| Field | Declaration and structural requirements |
|---|---|
basisKind | independent_referent, operation_rule, bounded_activity or collective_scope. |
anchorIds | 1–4 distinct, existing anchors owned by this entity. |
rationale | Explain how the source independently refers to the object or scope. |
operationRole | Only an operation_rule object uses definition_or_behavior or action_prerequisite; otherwise null. |
activityStatus | An activity requires bounded_activity and planned, source_reported_actual or undetermined; otherwise null. |
memberRole | A collection requires collective_scope and operation_concepts, execution_occurrences, work_targets, mixed or undetermined; otherwise null. |
A general operation used as a repeatable action prerequisite has purpose or rule grounds; do not exclude it merely because it occurs in a conditional clause or another item's description. A case-result predicate does not automatically create a general operation or an execution. A collection needs common-reference or whole-scope grounds for the group itself; multiple work targets do not establish multiple executions, and a plan does not automatically identify later reported executions. For listed members, an operation-concept group permits only objects and an execution group only activities. Unknown members are not invented, and type compatibility does not establish group meaning. An undetermined role or status requires nonempty uncertainties; it does not confirm identity or justify an invented unresolved object to absorb an eligibility question. Other ordinary objects and plan objects use independent_referent. All fields remain unreviewed declarations; structural admission does not establish their source support.
No exhaustive exclusion ledger is added. Candidates absent from A, SP and B still cannot be guaranteed a complete account. For prior items whose eligibility remains undecided, A′ uses its existing blocking undetermined disposition. Complete fields, closed accounts and no declared gaps do not prove the absence of omissions.
B receives the same complete source and A's complete authenticated receipt and raw response. It authenticates the exact source-only A system v9 and v4 task identities; a historical plan-bound A receipt is not an acceptable predecessor. B emits only mentions and identity-support mappings and cannot edit A entities. Independently qualifying references to objects A omitted or left uncertain remain explicit gaps; symbols, participants, results or generic references do not automatically qualify because no catalog entry exists. Ambiguous and unbound mentions remain explicit. The host resolves exact quote/occurrence in UTF-16 and does not manufacture mentions from A anchors.
B also receives the mention-boundary policy shared verbatim with production. A source-supported complete name or qualified description may identify an object; unrelated predicates, results and property-attribution phrases do not thereby become aliases. This does not require the shortest string or mechanical suffix trimming. The host checks positions and closure rather than deciding natural-language qualification or repairing spans.
Before B, context preparation uses the readonly discovery archive to authenticate A without requiring sourcePlanArchive or a plan reference. Import additionally authenticates B and the A→B pair: source, exact task/request/producer identity, matching executor/model/timeout/output-token configuration, distinct receipt/attempt identities and complete single-turn tool-free native returns without inner retries or subagents. B must start at or after A finishes. SP and A may run in parallel, and SP need not precede A or B; the joint same-source/configuration and identity checks occur at A′. Complete native outcomes are archived before authentication or interpretation. Failure, refusal, cleanup failure, missing evidence or structural rejection cannot reserve a replacement call. Originals stay separate, without a composite ExtractionRun.
A separately selected source-only A→B diagnostic may use importDiscoveredEntityAnalysis to persist one real initial EntityAnalysis schema v2. Admission remains all-or-nothing: every A entity needs an actual bound mention within its owned anchors; every component/collection declaration needs exactly one support mapping with source-contained bound mentions and at least one owned mention. Ambiguity, unbound mentions, missing support, invalid references or existing entity-admission rejection block the whole analysis. A valid subset does not replace A. Ready import strictly validates and explicitly projects out private qualification evidence, then copies public entity metadata unchanged, maps support to B mention IDs and binds the write provenance to A/B receipt byte references and importer actor, without a plan. Logical ID derivation from the B receipt remains unchanged. Re-import reauthenticates both originals without a model call and reuses the same write intent and original revision time. This standalone A/B endpoint is not the final E endpoint of the six-invocation path in §5.7–§5.8.
After the actual A/B initial analysis is saved, an explicit short path may use discoveredBoundKnowledgeContext and importDiscoveredBoundKnowledge to hand it to the same K factory. Context preparation is readonly: reauthenticate the A/B originals and reconstruct the complete initial write intent through the same preparation logic as import. The first persisted revision, source identity and write receipt must match that intent. Missing persistence or changed originals are rejected, without assembling a catalog from a draft or automatically rewriting entities. K import reauthenticates both predecessors and the stored catalog, checks distinct identities across every A/B/K receipt and attempt and requires K to start no earlier than B finishes, then reuses existing per-proposal writing, cancellation and idempotent recovery. This path creates no ExtractionRun, SP or five-original proof.
The explicitly selected path is source-only A→B→persisted E→K, with at most three native tasks. If B is not admitted, K is not attempted rather than represented by an empty response. A comparison with the six-invocation path in §5.7–§5.8 uses the same A/B/K factory versions, model and runtime configuration, source and quality criteria, while separately fixing each arm's dependencies, invocation opportunities, stop rules and final endpoint. K's actual execution schema and wireId remain bound to each arm's persisted catalog; different analyses/revisions must not be forced to share the six fixed binding values or actual wireId. A prospectively selected shared fresh A/B prefix measures the revision increment over that same prefix: final E and K are separately authenticated and do not constitute two independent samples. At most seven distinct native tasks are needed; actual total usage deduplicates shared calls, while each full path's attributed cost overlaps and cannot be summed as an invoice. Short-path B admission rejection does not automatically block the full arm's preselected A′ refinement; failed or unknown predecessor originals still block every dependent successor. The added path is BREAKING-COMPARABILITY and requires a fresh study freeze, without reusing old invocation prefixes or rescoring historical results. The handoff changes no task prompts, wire/receipt versions or storage contracts and establishes no semantic advantage for either the short or multistage path.
The source-only topology stays independent. Added qualification evidence and changed downstream predecessor identities constitute BREAKING-SCHEMA for private task evidence and BREAKING-COMPARABILITY for the workflow. Current v4 readers replace the prior v3 private contracts without an old receipt reader, alias or migration. Historical originals, receipts, frozen runtimes, scores and existing histories retain their identities and use matching frozen code, without reinterpretation or rescoring. Changed provenance is explicit even though public persistence schemas and stable-ID algorithms do not change.
Ordinary hosts do not install these research archive ports. Production strict30, the v4 extraction wire, existing run/storage formats, public exports and CLI/Studio paths remain unchanged. The single-E→R/K contract does not admit the A/B composition; short-path K and the selected refined path each use an explicit authenticated handoff. Prospective diagnostics freeze task constructors, actual source/configuration, dependencies, invocation opportunities, stopping rules and final endpoint before interpreting results; actual dependent input bytes are sealed after their predecessors exist and before dispatch. Report actual usage, cache, cost, duration, failures and unknowns per stage. Source-only discovery changes task input and whole-chain provenance; it neither guarantees independent errors between SP and A nor proves recall, semantic benefit, stable improvement, generalization or independent human acceptance. All structural assessments retain semanticStatus: not_reviewed.
5.7 Bounded catalog refinement and mention rebinding
This explicitly selected private workflow joins independent SP system v6 with the source-only A system v9→B system v9 branch at A′ (entity-refinement), then uses B′ (mention-rebinding). A′ is the first joint authentication and reconciliation boundary for all three originals. An initial B response that is structurally checked may enter refinement whether its admission is ready or blocked: ready does not establish semantic correctness. Native or structural failure is not a refinement opportunity.
| Task | System | Input / wire / check | Response / output name | Receipt / native envelope |
|---|---|---|---|---|
| A′ | v7 | v4 | schema v4 / entity_refinement_v4 | receipt v4 / native v1 |
| B′ | v7 | v4 | schema v4 / mention_rebinding_v4 | receipt v4 / native v1 |
The v4 contracts continue binding independent SP, source-only A and initial B while adding qualification grounds to A′ catalogs and predecessor evidence. SP-object, old A-entity and B-gap accounts remain separate. A retained comparison includes qualification fields: anchor IDs resolve to actual source positions before comparison under explicit entity-ID mappings, so changed grounds cannot count as unchanged retention. System, request, response, receipt and predecessor-wire identities are explicitly versioned, constituting BREAKING-SCHEMA for private evidence and BREAKING-COMPARABILITY. Native envelopes remain v1. Only current private identities are accepted, without a compatibility reader or migration. Historical originals use matching frozen runtimes; earlier workflow scores do not establish this workflow's effect.
The model input is a flat projection of the complete selected source and required original responses. A′ receives each unmodified source-plan, A and B rawOutput exactly once; B′ additionally receives the complete A′ rawOutput, also exactly once. Inputs do not recursively embed receiptRaw. All complete receipts, native outcomes and requests remain archived separately. Before constructing a dependent task, the host authenticates every available predecessor; final import and replay reauthenticate all five originals, including exact requests, source, configuration, producer evidence, chronology and distinct receipt/attempt identities. A smaller model projection does not relax this authentication. Capacity must be checked before a claim, without truncation, partial input or silent fallback. The joint boundary requires one source projection and matching executor, model, timeout and output-token configuration, with distinct receipt/attempt identities throughout. It enforces B-after-A, A′-after-SP/A/B and B′-after-A′; it imposes no SP-before-A or SP-before-B ordering. These independent inputs are model claims, not new evidence or an automatic catalog union.
A′ independently rereads the source and returns a complete replacement catalog and anchors, dispositions for every source-plan object, and entityDispositions for every old A entity. SP planningRole, qualification/type grounds and uncertainties are untrusted: an entity-candidate label does not force retention and a context-only label does not authorize deletion. For the SP account, sourcePlanObjectId covers every plan object exactly once; retained has exactly one target, corrected one or more, and excluded/undetermined no targets. Splits and merges require explicit corrected accounts and source grounds. Host checks reject missing, duplicate or unknown old IDs, invalid targets and invalid selections; a legal undetermined disposition remains inspectable but blocks B′ and final import. Each prior item has an explicit retained, corrected, excluded or undetermined disposition and target mapping where applicable; omission is not exclusion. Corrections and exclusions require rationales and exact source grounds. Additional objects require independent source support. A genuinely unresolved source referent remains expressible under the entity identity contract; creating a placeholder solely to make binding succeed does not establish an object or resolve uncertainty.
A′ additionally requires bindingGapDispositions, exactly one row for each initial checked B mention whose bindingStatus is not bound, with no other IDs. Each row contains previousMentionId, resolutionKind (mapped, excluded or undetermined), targets ({entityId, selection}), rationale and exact source selections covering the old and target positions. mapped requires at least one actual A′ catalog entity and source selection in the same excerpt overlapping the old mention; different actual positions may split a previous mention across targets, but the same position cannot be assigned repeatedly to different members. excluded and undetermined require empty targets. An unresolved disposition blocks before B′ producer inspection; neither an exclusion label nor a source-supported unresolved entity authorizes invented identity, placeholders or forced binding.
B′ independently judges actual mention qualification and identity against the complete source and fixed A′ catalog. A′ targets express intentions, not final bindings. Existing mentionDispositions must close each earlier gap resolution: mapped requires corrected, with actual bound mentions and targets corresponding uniquely in both directions by the same entity ID and overlapping positions in the same excerpt; the final mention need not reuse A′'s exact target span. excluded requires excluded and cannot return a position overlapping the old span as a new mention; boundary changes require corrected, while independent non-overlapping positions may still be added. B′ still accounts for every old B mention and support. Retained mentions preserve their actual original source span and explicit mapping to the new result; corrected or excluded items require exact source grounds rather than silent removal. Support mappings must refer to actual returned mentions. Undetermined dispositions, unbound or ambiguous mentions, incomplete accounts, conflicting resolutions, invalid mappings or any admission rejection continue to reject or block the entire final analysis. The host does not shorten spans, invent mentions from anchors, force a binding or admit a valid subset.
The driver fixes opportunities and stopping rules before execution: at most one A′ and one B′, with no implicit model invocation, retry, replacement or open-ended repair loop. Dependent inputs are materialized from authenticated archived predecessors before their own claims. Every complete native outcome is archived before interpretation, including failed or blocked outcomes. In this selected refined path, the initial A/B branch and intermediate A′ result do not write an analysis; the standalone A/B import under §5.6 remains a separate diagnostic endpoint. Only a ready final B′ composition writes one initial EntityAnalysis schema v2, using the existing namespace and stable-ID algorithm derived from the B′ receipt. The command/actor identity binds the newly authenticated complete five-original chain and its changed provenance digest. Re-import reauthenticates that chain and reuses the same write intent; changed evidence cannot overwrite it.
Historical originals, frozen runtimes, results and existing entity/knowledge history remain unchanged. Production defaults, public exports, public storage contracts and CLI/Studio paths do not change. The existing single-E→R/K entry does not accept either a source-only A/B or five-original analysis; the five-original workflow has a separate, explicitly selected authenticated handoff under §5.8. With K absent, it provides no knowledge-preservation acceptance evidence.
Complete accounts, exact positions and source selections make decisions inspectable and structurally executable; they do not prove that retention, correction, exclusion, qualification, identity or type is semantically correct, that the source has no omissions, or that knowledge is preserved. A new prospective diagnostic must freeze the five-task construction, actual dependent inputs, source/runtime/configuration, opportunities, stopping rules and final endpoint, and separately report actual stage usage, costs, failures and unknowns. Finite refinement changes the workflow and total cost, without guaranteeing that SP and A make independent errors, establishing semantic benefit or stable improvement, or isolating a single-factor prompt effect. All structural results retain semanticStatus: not_reviewed; independent human acceptance under #1322 remains separate, with goldReady=false and formalReceipt=false until its requirements are met.
5.8 Optional authenticated knowledge handoff after refinement
The private refinedBoundKnowledgeContext and importRefinedBoundKnowledge entry points support five-original→K; refinedReviewedKnowledgeContext and importRefinedReviewedKnowledge support five-original→R→K. The selected direct path is exactly six native invocations: SP, source-only A, B, A′, B′ and direct K (v2 response with a request-specialized execution wire). SP may run in parallel with A→B; A′ joins all three originals before B′ fixes the final E/M revision for K. There is no added stage, automatic union or extra repair opportunity. The optional R path requires its own prospectively selected topology and budget. These are explicit alternatives to the single-E predecessor contract, not an extension of its accepted inputs. Context preparation and import authenticate archived evidence without invoking a model or fabricating an ExtractionRun; independently executed R and K tasks retain their own archived native outcomes and receipts.
Every context read and import reauthenticates source-plan, A, B, A′ and B′ and requires a ready final composition already stored as its initial entity revision. The complete canonical bytes of that revision and its write receipt must match the reconstructed write intent, including the original source, complete chain, importer actor and stable analysis/revision/entity/mention identities. A later entity head cannot replace the initial revision. Missing, blocked, changed or mismatched evidence stops the handoff rather than admitting a subset or reusing a previously returned context.
R uses the current system v4 and shared code-referent and collective-reference policies described in §5.6 and §5.9; K prompt bytes and both tasks' Schemas and admission rules remain unchanged. Their input uses the complete original source and the final persisted entity/mention catalog through the existing projection, without promoting the earlier plan, catalog responses or AI review claims into source evidence. R must start at or after B′ finishes; reviewed K must start at or after R finishes, while direct K must start at or after B′ finishes. All receipt and attempt identities across the five originals and selected R/K stages must be distinct. Each import rereads and authenticates its complete predecessor chain and the selected R/K evidence before knowledge writes.
Knowledge import retains the existing per-proposal writer and knowledge-bound-import-ids/v1 identities derived from the K receipt, proposal and role. Accepted proposals may be written even when sibling proposals are rejected or coverage remains unresolved; a rejected response writes none. This is not an atomic batch: interruption can leave earlier proposal writes committed. Replaying the same archived evidence reauthenticates the chain and reuses the same store request IDs, without a new native call; conflicting content cannot overwrite an earlier write. A K failure does not undo the initial entity revision or already committed knowledge.
Adding R/K changes the workflow topology, dependent inputs, opportunities and total cost with BREAKING-COMPARABILITY. A prospective diagnostic must freeze the selected complete path and its endpoint and report every stage's actual usage, costs, failures and unknowns; it inherits no scores and does not rescore historical research. Authentication, admission, replay and successful persistence establish no real-model quality or knowledge-preservation acceptance. Results remain semanticStatus: not_reviewed; independent human acceptance under #1322 remains separate, with goldReady=false and formalReceipt=false until its requirements are met. Production defaults, public exports and existing storage contracts/data remain unchanged.
5.9 Private collective-reference materialization policy
The six private tasks share ENTITY_COLLECTIVE_REFERENCE_POLICY. This is an explicit OMK product policy for deciding which source referents receive entity identities, not a claim that the literature uniquely determines a natural-language interpretation. Shared distributive properties or results alone do not add a checking scope, execution group or other collection. A group needs independent collective reference or source-supported review, comparison or measurement of the whole; no particular trigger word is required. Conversely, an independently established group is not removed merely because a later predicate can apply separately to its members. Known group identity and unknown membership remain separate. When the source clearly establishes a referent scope, an unknown counting unit, representational level or expansion method does not automatically make that scope's identity unresolved; record the scope identity separately from these unknowns. This does not establish identical members across levels. Where the source does not establish the same scope, retain genuine referential ambiguity rather than inventing a broader object to absorb the disagreement.
Independently discussed general operations, acceptance gates and particular actual or planned executions remain distinct referent questions. A result report alone does not require a new activity entity or make a general operation identical to an execution. Missing timestamps or execution logs do not negate an activity already independently identified by the source. Diagnostic examples and case context still retain supported reusable material, conditions and limitations; declining an extra entity does not authorize losing that information. A genuinely unresolved source identity differs from uncertainty about extraction eligibility, granularity or a reviewer’s policy judgment. The latter must remain explicit as qualification or review uncertainty, rather than being converted into a fabricated unresolved object or forced binding.
These original synthetic examples explain the policy; they are neither gold annotations nor a new blind test. The indicated boundary assumes the complete example has no further identity evidence.
| Synthetic source | Policy boundary |
|---|---|
| “Maple and Birch use JSON.” | Retain the independently qualifying objects; the shared property alone does not add a format group. |
| “Maple passed the check; Birch passed too.” / “Maple and Birch both passed the check.” | Separate or parallel results alone add neither a checking group nor a particular execution. |
| “Round-trip validation detects encoding drift. Acceptance requires an unchanged digest. In this sample, the digest matched.” | Judge the operation’s and gate’s eligibility separately and preserve the case result; the result alone adds no activity or group. |
| “After switching parsers, we reran the round-trip check on Maple; that rerun found a mismatch.” | The independently identified rerun can denote a particular activity; absence of a timestamp or log does not erase it. |
| “Treat Maple and Birch as the joint review cohort. Compare this cohort’s combined failure rate.” | The explicit cohort and whole-cohort measurement support a group referent. |
| “The rollout cohort is fixed; its member list is unavailable here.” | Preserve the identified cohort with unknown membership. |
| “The earlier report’s ‘that cohort’ cannot be linked to either the preview cohort or the migration cohort.” | Preserve the source’s actual identity uncertainty; do not pick a candidate to complete a binding. |
| “Maple and Birch form the review pair. The pair uses UTF-8.” | Preserve the independently established pair despite the distributive property. |
Public sources support representational boundaries, separately from OMK’s policy choice. W3C PROV-DM §5.6.1, Example 46 and §5.6.2 distinguish a collection’s identity from its member assertions and explicitly permit a collection of unknown content. Universal Anaphora §3.3 and §7.2, pp. 17089–17090 and 17093–17094 describe split-antecedent plurals, allow without requiring their annotation in UA 1.0, and explain accommodated-set scoring. These are evidence for possible model constructions and annotation choices, not a unique ruling on whether a shared natural-language predicate introduces an OMK collection.
Introducing the collective-reference policy advanced source-plan v4→v5, A/B v5→v6, A′/B′ v3→v4 and R v2→v3 with BREAKING-COMPARABILITY. Input, wire, check, response and receipt Schema identities, native envelopes, persistence, production v29/v30 and frozen v36/v37 bytes remain unchanged. Actual dependent request bytes still change through authenticated predecessor bindings and require a newly frozen chain. Current-only readers accept the new system identities; historical evidence requires its matching frozen runtime and is not reopened, reinterpreted or rescored. This does not alter the 64-case corpus, 212-critical-mention denominator, guide v11 formal annotation/scoring rules or checker v5. Current bilingual page bytes and guideDigest change, so future review packages must be newly frozen. Policy transmission, synthetic examples and engineering checks do not establish model compliance, measured improvement or independent human acceptance.
The scope-identity clarification is a system-only BREAKING-COMPARABILITY revision: source-plan v5→v6, A/B v6→v7, A′/B′ v4→v5 and R v3→v4. Input, wire, check, response and receipt Schema identities, native envelopes, persistence, production v29/v30 and frozen v36/v37 bytes remain unchanged. The new system bytes and actual predecessor-bound requests require a newly frozen chain and review package, including the updated bilingual page bytes and guideDigest. Historical originals, closed studies and scores retain their identities and are not reinterpreted or rescored. The clarification itself establishes no model compliance, measured improvement or acceptance.
The earlier source-only A revision in §5.6–§5.8 retained SP system v6 and R system v4, advancing A/B to system v8 and A′/B′ to system v6 with v3 private evidence contracts. The current qualification-evidence revision preserves that topology and advances A/B to system v9 and A′/B′ to system v7 with v4 private evidence contracts. Both require explicit BREAKING-COMPARABILITY freezes. Production strict30/defaults, E36/E37, stable-ID algorithms, public persistence and existing formal human-review gates remain unchanged. Independent first-pass inputs and qualification fields are executable and inspectable boundaries, not measured evidence of independent errors or improved model quality.