A criterion stated in the corpus has nowhere to land
A well report says: "当全烃大于 8 且解释结论为气测异常时,可判定为优秀井。" — when total hydrocarbon is above 8 and the interpretation reads as a gas anomaly, the well counts as a good well.
That sentence is a criterion, and it is exactly the kind of thing 0021 built a table for. Today it falls on the floor, and it falls necessarily rather than by oversight.
Why it cannot land
facts.subject_idisNOT NULL. Every fact hangs on an entity. This sentence has no subject — it is about a class of wells, not about any well. There is no entity to hang it on.- Extraction emits triples. A universally quantified conditional does not fit in three slots.
So the likely outcome is that it is dropped. The worse outcome is that it is attached to whichever well happens to be nearby in the context, turning "here is how to judge a well" into the asserted fact "W-1 is a good well" — a claim the document never made.
Where it should land
attribute_rules is already the right shape. It holds "an entity of this class, whose own attributes satisfy these conditions, concludes this" — which is what the sentence says, slot for slot. The class, the conditions, the conclusion are all there.
What is missing is not the shape. It is the provenance. attribute_rules has no chunk_id, no document_id, no evidence of any kind: it assumes a rule is something a person typed into the ontology page. The one in the corpus has a source — page N of a particular report.
The line 0002 drew, and the half of it that does not apply
0002 decision 5 says the reasoner's criteria are written by people and rules the model out. That ban is really two claims, and only one of them is at stake here:
- The model invents a criterion — refused, and it stays refused. One authored criterion re-decides the whole base, and nobody can say where it came from.
- The model reports that a document states a criterion — this is a fact about a document. It has a sentence, a page, a filename, exactly like every other thing extraction produces.
The line between them is whether it has a source, and a source is the thing this system has the most of.
That is also precisely the distinction 0015 drew for facts: recording a sentence is not asserting a fact, and pending_facts is where the difference lives. A criterion found in the corpus should be to a rule what a pending fact is to a fact.
0021's open question already sketched this shape before there was a reason to build it:
If this opens later, it wants a pending queue of the shape
pending_factshas, so a person nods before a rule takes effect.
What it would be
A proposed rule: structured conditions, the class it concludes, and the chunk it was read from. It goes to Review, where a person sees the original sentence beside the rule it would become, and nods or declines. Before the nod it concludes nothing. After it, it is an ordinary rule that additionally names the passage it came from.
A side effect worth having: the rules page becomes the answer to "where do this domain's criteria come from" — which were somebody's judgement, which were read out of a standard, a design document or a regulation, and you can click through to the text.
Two parts that are genuinely hard
The vocabulary has to line up. "全烃大于 8" needs to resolve to the attribute predicate this base actually has, and the 8 to its unit. That is what the mapping layer (0011) and the ontology contract (0012) do for facts; nothing does it for criteria. What happens when it does not resolve — hold the proposal until someone creates the attribute, or refuse it — is an open question, not a detail.
Not every "when … then …" is a criterion. "当时钻到 3000 米的时候,发现了油气显示" is a narrative about one event, not a rule. Telling the two apart is extraction's job and it will get it wrong. Which is the strongest argument for the queue: a wrong proposal costs a glance, a wrong rule re-decides the base.
Cuts
- A decision record: what a sourced criterion is, why it is a proposal and not a rule, and what happens when its vocabulary does not resolve.
- Extraction recognises a criterion and emits a proposal with its chunk;
attribute_rules(or apending_rulesbeside it) gains provenance. - Review: the sentence beside the rule it would become, nod or decline.
Related: 0021, 0029 (or), 0030 (chaining), 0032 (computed values) — this is a fourth axis on the same object, and independent of all three.
Source: deeplethe/utopia