First public release, published as one snapshot. What changed between versions is in CHANGELOG.md. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2087 lines
45 KiB
JSON
2087 lines
45 KiB
JSON
{
|
|
"schema": "okf-wiki/repair-gate/1",
|
|
"description": "The repair gate of order 34 (contracts K18 and K19). Fixtures in gates/repair/: a synthetic K1 root about beekeeping (three docs pages, one release note), the compiler's fragments for two packs and the links of the base, all written for the gate (CLAUDE.md rule 3). Every page, sentence, link and finding a case expects is written by hand from those sources; see gates/REPAIR.md.",
|
|
"base": {
|
|
"sources": "kilder",
|
|
"fragments": [
|
|
"fragments/pack-1.json",
|
|
"fragments/pack-2.json"
|
|
],
|
|
"size": 3,
|
|
"links": "links.json",
|
|
"at": "2026-01-01T00:00:00Z"
|
|
},
|
|
"build_at": "2026-01-02T00:00:00Z",
|
|
"refusal_codes": {
|
|
"quote-not-in-span": "kpack.validate: the quote is not verbatim on one line of the anchor span",
|
|
"anchor-outside-pack": "kpack.validate against the fragment's own source alone: the anchor is in another source",
|
|
"unknown-key": "fix: (concept_id, footnote) is no record of accepted.json",
|
|
"stale-bundle": "fix: the key is a record of accepted.json but not a footnote on its page in --bundle",
|
|
"duplicate-answer": "fix: two answers in one file have the same key",
|
|
"stale-list": "task and linkset: claims_sha256 of the list is not the sha256 of the claim list",
|
|
"shared-words": "task: the agent file or the instructions share a run of eight words with a claim, a quote or the block text in the task",
|
|
"target-missing": "relink: the new target is no concept page of --bundle",
|
|
"link-not-found": "unlink and relink: no record of the links file has this page, sentence, anchor and at"
|
|
},
|
|
"files": {
|
|
"agent-shared.md": "14af5a1775846b2cc984db3a8ea01072c0c01f4c2410b1dd36f7ba984a41095a",
|
|
"agent.md": "cfc2ee60dfab11f48086664313cfbdb9f8776b196aa5b467077f59459b4a9915",
|
|
"fragments/pack-1.json": "c48f640c2f196d0d35daca473c94ae9a0ad9ffa5196910f5933c9467b6d6b640",
|
|
"fragments/pack-2.json": "b230bc429617f1603844e79140653db83297085e5e697126ac6bc152e6d0216c",
|
|
"kilder/kilde/docs-en-hive.md": "5ba8883c65cb0828c87dc80fe75b4dd3497603d9a0409ad709b7262bdb919025",
|
|
"kilder/kilde/docs-en-honey.md": "6c5e68d0748c2f7974a55400aca4937abc29988a6ce7623143683cb9053197b1",
|
|
"kilder/kilde/docs-en-swarm.md": "646fdf8dd7b2ea4c33fc521d9a8ea9883ec6c0b2e89ababa85e10ffd9aee2c1a",
|
|
"kilder/kilde/release-v2.1.0.md": "388caad1b376e3e37c27772296ac411b55c2503c69a3935bfb168e6255c57a26",
|
|
"kilder/source-manifest.json": "17fcc819fa65a4e98ad45dce67dcae4bc959a1ee9078dd0d34bd6323f37e7b33",
|
|
"links.json": "185220ab55a771f7d109920524916671de043200ee47c1c1c03c7feabc5fa1cf",
|
|
"stubs/noop.py": "d4f62b552b253801a78241bc4cecb2985d148a27ca6ae1f95e2850e4e506af5a",
|
|
"stubs/refuse_all.py": "c5c91a696df63938e6dc76a4e241f6717cb8060068e747e9ff77e0a4656ac142",
|
|
"stubs/touch_generated.py": "a02ac216c96c8bd634a09013d86ac2c25f2fb0bcfb6450884ddcffd0cf5057dc"
|
|
},
|
|
"cases": [
|
|
{
|
|
"name": "replace-one-with-one",
|
|
"what": "one fragment replaced by one: its page changes, its claim is replaced, nothing else moves",
|
|
"steps": [
|
|
{
|
|
"argv": [
|
|
"fix",
|
|
"--answers",
|
|
"{answers}",
|
|
"--bundle",
|
|
"{wiki}",
|
|
"--work",
|
|
"{work}",
|
|
"--blocks",
|
|
"{blocks}",
|
|
"--sources",
|
|
"{sources}",
|
|
"--links",
|
|
"{links}"
|
|
],
|
|
"answers": [
|
|
{
|
|
"key": {
|
|
"concept_id": "honey-harvest",
|
|
"file": "docs-en-honey.md",
|
|
"start": 3,
|
|
"end": 3,
|
|
"quote": "when most cells in the frame are capped with wax",
|
|
"provenance": "documented"
|
|
},
|
|
"action": "replace",
|
|
"fragments": [
|
|
{
|
|
"text": "Harvest honey once most cells in a frame are capped with wax.",
|
|
"quote": "most cells in the frame are capped",
|
|
"anchor": {
|
|
"file": "docs-en-honey.md",
|
|
"start": 3,
|
|
"end": 3
|
|
},
|
|
"provenance": "documented"
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"exit": 0
|
|
}
|
|
],
|
|
"pages_changed": [
|
|
"honey-harvest.md"
|
|
],
|
|
"claims_before": [
|
|
{
|
|
"page": "honey-harvest.md",
|
|
"text": "Harvest honey when most cells are capped with wax.",
|
|
"n": 0
|
|
}
|
|
],
|
|
"claims_after": [
|
|
{
|
|
"page": "honey-harvest.md",
|
|
"text": "Harvest honey once most cells in a frame are capped with wax.",
|
|
"n": 0
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "replace-one-with-two",
|
|
"what": "one fragment replaced by two, the second adds the condition its source sets",
|
|
"steps": [
|
|
{
|
|
"argv": [
|
|
"fix",
|
|
"--answers",
|
|
"{answers}",
|
|
"--bundle",
|
|
"{wiki}",
|
|
"--work",
|
|
"{work}",
|
|
"--blocks",
|
|
"{blocks}",
|
|
"--sources",
|
|
"{sources}",
|
|
"--links",
|
|
"{links}"
|
|
],
|
|
"answers": [
|
|
{
|
|
"key": {
|
|
"concept_id": "queen-cells",
|
|
"file": "docs-en-swarm.md",
|
|
"start": 7,
|
|
"end": 9,
|
|
"quote": "Remove queen cells early",
|
|
"provenance": "documented"
|
|
},
|
|
"action": "replace",
|
|
"fragments": [
|
|
{
|
|
"text": "Remove queen cells early.",
|
|
"quote": "Remove queen cells early",
|
|
"anchor": {
|
|
"file": "docs-en-swarm.md",
|
|
"start": 7,
|
|
"end": 9
|
|
},
|
|
"provenance": "documented"
|
|
},
|
|
{
|
|
"text": "Do this when you want to keep the colony together.",
|
|
"quote": "if you want to keep the colony together",
|
|
"anchor": {
|
|
"file": "docs-en-swarm.md",
|
|
"start": 7,
|
|
"end": 9
|
|
},
|
|
"provenance": "documented"
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"exit": 0
|
|
}
|
|
],
|
|
"pages_changed": [
|
|
"queen-cells.md"
|
|
],
|
|
"claims_before": [
|
|
{
|
|
"page": "queen-cells.md",
|
|
"text": "Remove queen cells early to keep the colony together.",
|
|
"n": 0
|
|
}
|
|
],
|
|
"claims_after": [
|
|
{
|
|
"page": "queen-cells.md",
|
|
"text": "Remove queen cells early.",
|
|
"n": 0
|
|
},
|
|
{
|
|
"page": "queen-cells.md",
|
|
"text": "Do this when you want to keep the colony together.",
|
|
"n": 0
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "two-sentence-fragment",
|
|
"what": "a fragment of two sentences of which a list names one: both are replaced, the second keeps its text but cites another line, so both claims change",
|
|
"steps": [
|
|
{
|
|
"argv": [
|
|
"fix",
|
|
"--answers",
|
|
"{answers}",
|
|
"--bundle",
|
|
"{wiki}",
|
|
"--work",
|
|
"{work}",
|
|
"--blocks",
|
|
"{blocks}",
|
|
"--sources",
|
|
"{sources}",
|
|
"--links",
|
|
"{links}"
|
|
],
|
|
"answers": [
|
|
{
|
|
"key": {
|
|
"concept_id": "queen-cells",
|
|
"file": "docs-en-swarm.md",
|
|
"start": 7,
|
|
"end": 9,
|
|
"quote": "build queen cells along the lower edge of the comb",
|
|
"provenance": "documented"
|
|
},
|
|
"action": "replace",
|
|
"fragments": [
|
|
{
|
|
"text": "Workers build queen cells on the lower edge of the comb. A queen cell looks like a peanut shell.",
|
|
"quote": "A queen cell looks like a peanut shell",
|
|
"anchor": {
|
|
"file": "docs-en-swarm.md",
|
|
"start": 7,
|
|
"end": 9
|
|
},
|
|
"provenance": "documented",
|
|
"context": [
|
|
"build queen cells along the lower edge"
|
|
]
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"exit": 0
|
|
}
|
|
],
|
|
"pages_changed": [
|
|
"queen-cells.md"
|
|
],
|
|
"claims_before": [
|
|
{
|
|
"page": "queen-cells.md",
|
|
"text": "Workers build queen cells along the lower edge of the comb.",
|
|
"n": 0
|
|
},
|
|
{
|
|
"page": "queen-cells.md",
|
|
"text": "A queen cell looks like a peanut shell.",
|
|
"n": 0
|
|
}
|
|
],
|
|
"claims_after": [
|
|
{
|
|
"page": "queen-cells.md",
|
|
"text": "Workers build queen cells on the lower edge of the comb.",
|
|
"n": 0,
|
|
"excerpts": [
|
|
[
|
|
"docs-en-swarm.md",
|
|
8
|
|
],
|
|
[
|
|
"docs-en-swarm.md",
|
|
7
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"page": "queen-cells.md",
|
|
"text": "A queen cell looks like a peanut shell.",
|
|
"n": 0,
|
|
"excerpts": [
|
|
[
|
|
"docs-en-swarm.md",
|
|
8
|
|
],
|
|
[
|
|
"docs-en-swarm.md",
|
|
7
|
|
]
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "merged-fragment",
|
|
"what": "a merged fragment, cited by the other lines of its anchor, replaced by a documented one without context: it keeps the old context lines, which still stand in its section",
|
|
"steps": [
|
|
{
|
|
"argv": [
|
|
"fix",
|
|
"--answers",
|
|
"{answers}",
|
|
"--bundle",
|
|
"{wiki}",
|
|
"--work",
|
|
"{work}",
|
|
"--blocks",
|
|
"{blocks}",
|
|
"--sources",
|
|
"{sources}",
|
|
"--links",
|
|
"{links}"
|
|
],
|
|
"answers": [
|
|
{
|
|
"key": {
|
|
"concept_id": "brood",
|
|
"file": "docs-en-hive.md",
|
|
"start": 21,
|
|
"end": 23,
|
|
"quote": "feed the young larvae for about six days",
|
|
"provenance": "merged"
|
|
},
|
|
"action": "replace",
|
|
"fragments": [
|
|
{
|
|
"text": "Worker bees feed the young larvae for about six days.",
|
|
"quote": "feed the young larvae for about six days",
|
|
"anchor": {
|
|
"file": "docs-en-hive.md",
|
|
"start": 21,
|
|
"end": 23
|
|
},
|
|
"provenance": "documented"
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"exit": 0
|
|
}
|
|
],
|
|
"pages_changed": [
|
|
"brood.md"
|
|
],
|
|
"claims_before": [
|
|
{
|
|
"page": "brood.md",
|
|
"text": "Young larvae are fed for about six days and then sealed for about twelve days.",
|
|
"n": 0
|
|
}
|
|
],
|
|
"claims_after": [
|
|
{
|
|
"page": "brood.md",
|
|
"text": "Worker bees feed the young larvae for about six days.",
|
|
"n": 0,
|
|
"excerpts": [
|
|
[
|
|
"docs-en-hive.md",
|
|
22
|
|
],
|
|
[
|
|
"docs-en-hive.md",
|
|
21
|
|
],
|
|
[
|
|
"docs-en-hive.md",
|
|
23
|
|
]
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "release-note-fragment",
|
|
"what": "a fragment of the release note, under History, replaced; it keeps its version entry",
|
|
"steps": [
|
|
{
|
|
"argv": [
|
|
"fix",
|
|
"--answers",
|
|
"{answers}",
|
|
"--bundle",
|
|
"{wiki}",
|
|
"--work",
|
|
"{work}",
|
|
"--blocks",
|
|
"{blocks}",
|
|
"--sources",
|
|
"{sources}",
|
|
"--links",
|
|
"{links}"
|
|
],
|
|
"answers": [
|
|
{
|
|
"key": {
|
|
"concept_id": "hive",
|
|
"file": "release-v2.1.0.md",
|
|
"start": 3,
|
|
"end": 3,
|
|
"quote": "how to light the smoker",
|
|
"provenance": "documented"
|
|
},
|
|
"action": "replace",
|
|
"fragments": [
|
|
{
|
|
"text": "The hive guide now explains how to light the smoker.",
|
|
"quote": "explains how to light the smoker",
|
|
"anchor": {
|
|
"file": "release-v2.1.0.md",
|
|
"start": 3,
|
|
"end": 3
|
|
},
|
|
"provenance": "documented"
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"exit": 0
|
|
}
|
|
],
|
|
"pages_changed": [
|
|
"hive.md"
|
|
],
|
|
"claims_before": [
|
|
{
|
|
"page": "hive.md",
|
|
"text": "The hive guide gained a part on lighting the smoker.",
|
|
"n": 0
|
|
}
|
|
],
|
|
"claims_after": [
|
|
{
|
|
"page": "hive.md",
|
|
"text": "The hive guide now explains how to light the smoker.",
|
|
"n": 0,
|
|
"excerpts": [
|
|
[
|
|
"release-v2.1.0.md",
|
|
3
|
|
],
|
|
[
|
|
"release-v2.1.0.md",
|
|
1
|
|
]
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "context-kept",
|
|
"what": "a fragment with a context quote replaced by an answer without context: the old context stays, as it still stands on a heading of the new anchor's path",
|
|
"steps": [
|
|
{
|
|
"argv": [
|
|
"fix",
|
|
"--answers",
|
|
"{answers}",
|
|
"--bundle",
|
|
"{wiki}",
|
|
"--work",
|
|
"{work}",
|
|
"--blocks",
|
|
"{blocks}",
|
|
"--sources",
|
|
"{sources}",
|
|
"--links",
|
|
"{links}"
|
|
],
|
|
"answers": [
|
|
{
|
|
"key": {
|
|
"concept_id": "hive",
|
|
"file": "docs-en-hive.md",
|
|
"start": 14,
|
|
"end": 17,
|
|
"quote": "only on a warm and calm day",
|
|
"provenance": "documented"
|
|
},
|
|
"action": "replace",
|
|
"fragments": [
|
|
{
|
|
"text": "Open the hive during an inspection only when the day is warm and calm.",
|
|
"quote": "Open the hive only on a warm and calm day",
|
|
"anchor": {
|
|
"file": "docs-en-hive.md",
|
|
"start": 14,
|
|
"end": 17
|
|
},
|
|
"provenance": "documented"
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"exit": 0
|
|
}
|
|
],
|
|
"pages_changed": [
|
|
"hive.md"
|
|
],
|
|
"claims_before": [
|
|
{
|
|
"page": "hive.md",
|
|
"text": "Open the hive only on a warm and calm day during an inspection.",
|
|
"n": 0
|
|
}
|
|
],
|
|
"claims_after": [
|
|
{
|
|
"page": "hive.md",
|
|
"text": "Open the hive during an inspection only when the day is warm and calm.",
|
|
"n": 0,
|
|
"excerpts": [
|
|
[
|
|
"docs-en-hive.md",
|
|
14
|
|
],
|
|
[
|
|
"docs-en-hive.md",
|
|
12
|
|
]
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "context-other",
|
|
"what": "a fragment with a context quote replaced by an answer with another context: the new one is cited, the old one is not",
|
|
"steps": [
|
|
{
|
|
"argv": [
|
|
"fix",
|
|
"--answers",
|
|
"{answers}",
|
|
"--bundle",
|
|
"{wiki}",
|
|
"--work",
|
|
"{work}",
|
|
"--blocks",
|
|
"{blocks}",
|
|
"--sources",
|
|
"{sources}",
|
|
"--links",
|
|
"{links}"
|
|
],
|
|
"answers": [
|
|
{
|
|
"key": {
|
|
"concept_id": "hive",
|
|
"file": "docs-en-hive.md",
|
|
"start": 14,
|
|
"end": 17,
|
|
"quote": "only on a warm and calm day",
|
|
"provenance": "documented"
|
|
},
|
|
"action": "replace",
|
|
"fragments": [
|
|
{
|
|
"text": "Open the hive only on a warm and calm day and move slowly.",
|
|
"quote": "only on a warm and calm day",
|
|
"anchor": {
|
|
"file": "docs-en-hive.md",
|
|
"start": 14,
|
|
"end": 17
|
|
},
|
|
"provenance": "documented",
|
|
"context": [
|
|
"Move slowly so the bees stay calm"
|
|
]
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"exit": 0
|
|
}
|
|
],
|
|
"pages_changed": [
|
|
"hive.md"
|
|
],
|
|
"claims_before": [
|
|
{
|
|
"page": "hive.md",
|
|
"text": "Open the hive only on a warm and calm day during an inspection.",
|
|
"n": 0
|
|
}
|
|
],
|
|
"claims_after": [
|
|
{
|
|
"page": "hive.md",
|
|
"text": "Open the hive only on a warm and calm day and move slowly.",
|
|
"n": 0,
|
|
"excerpts": [
|
|
[
|
|
"docs-en-hive.md",
|
|
14
|
|
],
|
|
[
|
|
"docs-en-hive.md",
|
|
15
|
|
]
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "remove-one",
|
|
"what": "one fragment removed from a page that keeps others",
|
|
"steps": [
|
|
{
|
|
"argv": [
|
|
"fix",
|
|
"--answers",
|
|
"{answers}",
|
|
"--bundle",
|
|
"{wiki}",
|
|
"--work",
|
|
"{work}",
|
|
"--blocks",
|
|
"{blocks}",
|
|
"--sources",
|
|
"{sources}",
|
|
"--links",
|
|
"{links}"
|
|
],
|
|
"answers": [
|
|
{
|
|
"key": {
|
|
"concept_id": "brood",
|
|
"file": "docs-en-hive.md",
|
|
"start": 21,
|
|
"end": 23,
|
|
"quote": "feed the young larvae for about six days",
|
|
"provenance": "merged"
|
|
},
|
|
"action": "remove"
|
|
}
|
|
],
|
|
"exit": 0
|
|
}
|
|
],
|
|
"pages_changed": [
|
|
"brood.md"
|
|
],
|
|
"claims_before": [
|
|
{
|
|
"page": "brood.md",
|
|
"text": "Young larvae are fed for about six days and then sealed for about twelve days.",
|
|
"n": 0
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "remove-last-on-page",
|
|
"what": "the only fragment of a page that is not a main page removed: the page goes, the link to it on the main page goes, and so does its item under Related concepts",
|
|
"steps": [
|
|
{
|
|
"argv": [
|
|
"fix",
|
|
"--answers",
|
|
"{answers}",
|
|
"--bundle",
|
|
"{wiki}",
|
|
"--work",
|
|
"{work}",
|
|
"--blocks",
|
|
"{blocks}",
|
|
"--sources",
|
|
"{sources}",
|
|
"--links",
|
|
"{links}"
|
|
],
|
|
"answers": [
|
|
{
|
|
"key": {
|
|
"concept_id": "smoker",
|
|
"file": "docs-en-hive.md",
|
|
"start": 27,
|
|
"end": 27,
|
|
"quote": "makes cool smoke that calms the bees",
|
|
"provenance": "documented"
|
|
},
|
|
"action": "remove"
|
|
}
|
|
],
|
|
"exit": 0
|
|
}
|
|
],
|
|
"pages_changed": [
|
|
"hive.md",
|
|
"smoker.md"
|
|
],
|
|
"pages_gone": [
|
|
"smoker.md"
|
|
],
|
|
"claims_before": [
|
|
{
|
|
"page": "smoker.md",
|
|
"text": "The smoker makes cool smoke that calms the bees.",
|
|
"n": 0
|
|
}
|
|
],
|
|
"links_removed": [
|
|
{
|
|
"page": "hive.md",
|
|
"sentence": "Light the smoker before you lift the lid.",
|
|
"n": 0,
|
|
"anchor": "smoker",
|
|
"target": "smoker.md"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "remove-last-on-main-page",
|
|
"what": "the only fragment of a main page removed: the page goes, its source has no main page, the page whose home it was has none, and the link to it goes",
|
|
"steps": [
|
|
{
|
|
"argv": [
|
|
"fix",
|
|
"--answers",
|
|
"{answers}",
|
|
"--bundle",
|
|
"{wiki}",
|
|
"--work",
|
|
"{work}",
|
|
"--blocks",
|
|
"{blocks}",
|
|
"--sources",
|
|
"{sources}",
|
|
"--links",
|
|
"{links}"
|
|
],
|
|
"answers": [
|
|
{
|
|
"key": {
|
|
"concept_id": "swarming",
|
|
"file": "docs-en-swarm.md",
|
|
"start": 3,
|
|
"end": 3,
|
|
"quote": "leaves the hive with the old queen",
|
|
"provenance": "documented"
|
|
},
|
|
"action": "remove"
|
|
}
|
|
],
|
|
"exit": 0
|
|
}
|
|
],
|
|
"pages_changed": [
|
|
"hive.md",
|
|
"swarming.md"
|
|
],
|
|
"pages_gone": [
|
|
"swarming.md"
|
|
],
|
|
"claims_before": [
|
|
{
|
|
"page": "swarming.md",
|
|
"text": "A swarm is a large group of bees that leaves with the old queen.",
|
|
"n": 0
|
|
}
|
|
],
|
|
"links_removed": [
|
|
{
|
|
"page": "hive.md",
|
|
"sentence": "Watch for signs that the colony will swarm.",
|
|
"n": 0,
|
|
"anchor": "swarm",
|
|
"target": "swarming.md"
|
|
}
|
|
],
|
|
"findings": [
|
|
{
|
|
"check": "main-page-missing",
|
|
"file": "kilde/docs-en-swarm.md"
|
|
},
|
|
{
|
|
"check": "no-main-page-link",
|
|
"file": "queen-cells.md"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "remove-last-from-source-on-main-page",
|
|
"what": "the last fragment of a main page from the source it is the main page of removed while the page stands on its history: the source has no main page, and the page is no main page and has no home",
|
|
"steps": [
|
|
{
|
|
"argv": [
|
|
"fix",
|
|
"--answers",
|
|
"{answers}",
|
|
"--bundle",
|
|
"{wiki}",
|
|
"--work",
|
|
"{work}",
|
|
"--blocks",
|
|
"{blocks}",
|
|
"--sources",
|
|
"{sources}",
|
|
"--links",
|
|
"{links}"
|
|
],
|
|
"answers": [
|
|
{
|
|
"key": {
|
|
"concept_id": "honey-harvest",
|
|
"file": "docs-en-honey.md",
|
|
"start": 3,
|
|
"end": 3,
|
|
"quote": "when most cells in the frame are capped with wax",
|
|
"provenance": "documented"
|
|
},
|
|
"action": "remove"
|
|
}
|
|
],
|
|
"exit": 0
|
|
}
|
|
],
|
|
"pages_changed": [
|
|
"honey-harvest.md"
|
|
],
|
|
"claims_before": [
|
|
{
|
|
"page": "honey-harvest.md",
|
|
"text": "Harvest honey when most cells are capped with wax.",
|
|
"n": 0
|
|
}
|
|
],
|
|
"findings": [
|
|
{
|
|
"check": "main-page-missing",
|
|
"file": "kilde/docs-en-honey.md"
|
|
},
|
|
{
|
|
"check": "no-main-page-link",
|
|
"file": "honey-harvest.md"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "shared-footnote",
|
|
"what": "two fragments in two concepts share one footnote (same anchor, quote and mark); only the one keyed by its concept is replaced",
|
|
"steps": [
|
|
{
|
|
"argv": [
|
|
"fix",
|
|
"--answers",
|
|
"{answers}",
|
|
"--bundle",
|
|
"{wiki}",
|
|
"--work",
|
|
"{work}",
|
|
"--blocks",
|
|
"{blocks}",
|
|
"--sources",
|
|
"{sources}",
|
|
"--links",
|
|
"{links}"
|
|
],
|
|
"answers": [
|
|
{
|
|
"key": {
|
|
"concept_id": "frames",
|
|
"file": "docs-en-hive.md",
|
|
"start": 8,
|
|
"end": 10,
|
|
"quote": "holds wax comb where bees store honey and raise brood",
|
|
"provenance": "documented"
|
|
},
|
|
"action": "replace",
|
|
"fragments": [
|
|
{
|
|
"text": "Bees raise brood in the wax comb of a frame.",
|
|
"quote": "where bees store honey and raise brood",
|
|
"anchor": {
|
|
"file": "docs-en-hive.md",
|
|
"start": 8,
|
|
"end": 10
|
|
},
|
|
"provenance": "documented"
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"exit": 0
|
|
}
|
|
],
|
|
"pages_changed": [
|
|
"frames.md"
|
|
],
|
|
"claims_before": [
|
|
{
|
|
"page": "frames.md",
|
|
"text": "Bees store honey and raise brood in the comb of a frame.",
|
|
"n": 0
|
|
}
|
|
],
|
|
"claims_after": [
|
|
{
|
|
"page": "frames.md",
|
|
"text": "Bees raise brood in the wax comb of a frame.",
|
|
"n": 0
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "equal-sentences-first-removed",
|
|
"what": "two equal sentences on a page, the first removed: the second takes key -0 and its link follows",
|
|
"steps": [
|
|
{
|
|
"argv": [
|
|
"fix",
|
|
"--answers",
|
|
"{answers}",
|
|
"--bundle",
|
|
"{wiki}",
|
|
"--work",
|
|
"{work}",
|
|
"--blocks",
|
|
"{blocks}",
|
|
"--sources",
|
|
"{sources}",
|
|
"--links",
|
|
"{links}"
|
|
],
|
|
"answers": [
|
|
{
|
|
"key": {
|
|
"concept_id": "water",
|
|
"file": "docs-en-hive.md",
|
|
"start": 31,
|
|
"end": 31,
|
|
"quote": "need a water source near the hive",
|
|
"provenance": "documented"
|
|
},
|
|
"action": "remove"
|
|
}
|
|
],
|
|
"exit": 0
|
|
}
|
|
],
|
|
"pages_changed": [
|
|
"water.md"
|
|
],
|
|
"claims_before": [
|
|
{
|
|
"page": "water.md",
|
|
"text": "Bees need a water source near the hive.",
|
|
"n": 0
|
|
},
|
|
{
|
|
"page": "water.md",
|
|
"text": "Bees need a water source near the hive.",
|
|
"n": 1
|
|
}
|
|
],
|
|
"claims_after": [
|
|
{
|
|
"page": "water.md",
|
|
"text": "Bees need a water source near the hive.",
|
|
"n": 0
|
|
}
|
|
],
|
|
"links_removed": [
|
|
{
|
|
"page": "water.md",
|
|
"sentence": "Bees need a water source near the hive.",
|
|
"n": 1,
|
|
"anchor": "hive",
|
|
"target": "hive.md"
|
|
}
|
|
],
|
|
"links_added": [
|
|
{
|
|
"page": "water.md",
|
|
"sentence": "Bees need a water source near the hive.",
|
|
"n": 0,
|
|
"anchor": "hive",
|
|
"target": "hive.md"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "repair-makes-equal",
|
|
"what": "a repair makes a sentence equal to a later one: the later one takes key -1 and its link follows (the repaired one cites a context line, so its excerpts differ from the later one's)",
|
|
"steps": [
|
|
{
|
|
"argv": [
|
|
"fix",
|
|
"--answers",
|
|
"{answers}",
|
|
"--bundle",
|
|
"{wiki}",
|
|
"--work",
|
|
"{work}",
|
|
"--blocks",
|
|
"{blocks}",
|
|
"--sources",
|
|
"{sources}",
|
|
"--links",
|
|
"{links}"
|
|
],
|
|
"answers": [
|
|
{
|
|
"key": {
|
|
"concept_id": "frames",
|
|
"file": "docs-en-hive.md",
|
|
"start": 8,
|
|
"end": 10,
|
|
"quote": "lifted out one by one",
|
|
"provenance": "documented"
|
|
},
|
|
"action": "replace",
|
|
"fragments": [
|
|
{
|
|
"text": "Each frame holds comb for honey and brood.",
|
|
"quote": "holds wax comb where bees store honey",
|
|
"anchor": {
|
|
"file": "docs-en-hive.md",
|
|
"start": 8,
|
|
"end": 10
|
|
},
|
|
"provenance": "documented",
|
|
"context": [
|
|
"Frames can be lifted out"
|
|
]
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"exit": 0
|
|
}
|
|
],
|
|
"pages_changed": [
|
|
"frames.md"
|
|
],
|
|
"claims_before": [
|
|
{
|
|
"page": "frames.md",
|
|
"text": "Frames can be lifted out one by one.",
|
|
"n": 0
|
|
},
|
|
{
|
|
"page": "frames.md",
|
|
"text": "Each frame holds comb for honey and brood.",
|
|
"n": 0
|
|
}
|
|
],
|
|
"claims_after": [
|
|
{
|
|
"page": "frames.md",
|
|
"text": "Each frame holds comb for honey and brood.",
|
|
"n": 0
|
|
},
|
|
{
|
|
"page": "frames.md",
|
|
"text": "Each frame holds comb for honey and brood.",
|
|
"n": 1
|
|
}
|
|
],
|
|
"links_removed": [
|
|
{
|
|
"page": "frames.md",
|
|
"sentence": "Each frame holds comb for honey and brood.",
|
|
"n": 0,
|
|
"anchor": "brood",
|
|
"target": "brood.md"
|
|
}
|
|
],
|
|
"links_added": [
|
|
{
|
|
"page": "frames.md",
|
|
"sentence": "Each frame holds comb for honey and brood.",
|
|
"n": 1,
|
|
"anchor": "brood",
|
|
"target": "brood.md"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "link-anchor-stays",
|
|
"what": "a repaired sentence with a link whose anchor stands in the new sentence: the link moves with it",
|
|
"steps": [
|
|
{
|
|
"argv": [
|
|
"fix",
|
|
"--answers",
|
|
"{answers}",
|
|
"--bundle",
|
|
"{wiki}",
|
|
"--work",
|
|
"{work}",
|
|
"--blocks",
|
|
"{blocks}",
|
|
"--sources",
|
|
"{sources}",
|
|
"--links",
|
|
"{links}"
|
|
],
|
|
"answers": [
|
|
{
|
|
"key": {
|
|
"concept_id": "brood",
|
|
"file": "docs-en-hive.md",
|
|
"start": 21,
|
|
"end": 23,
|
|
"quote": "The queen lays one egg in each empty cell",
|
|
"provenance": "documented"
|
|
},
|
|
"action": "replace",
|
|
"fragments": [
|
|
{
|
|
"text": "The queen lays a single egg in each empty cell.",
|
|
"quote": "lays one egg in each empty cell",
|
|
"anchor": {
|
|
"file": "docs-en-hive.md",
|
|
"start": 21,
|
|
"end": 23
|
|
},
|
|
"provenance": "documented"
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"exit": 0
|
|
}
|
|
],
|
|
"pages_changed": [
|
|
"brood.md"
|
|
],
|
|
"claims_before": [
|
|
{
|
|
"page": "brood.md",
|
|
"text": "The queen lays one egg in each empty cell.",
|
|
"n": 0
|
|
}
|
|
],
|
|
"claims_after": [
|
|
{
|
|
"page": "brood.md",
|
|
"text": "The queen lays a single egg in each empty cell.",
|
|
"n": 0
|
|
}
|
|
],
|
|
"links_removed": [
|
|
{
|
|
"page": "brood.md",
|
|
"sentence": "The queen lays one egg in each empty cell.",
|
|
"n": 0,
|
|
"anchor": "queen",
|
|
"target": "queen-cells.md"
|
|
}
|
|
],
|
|
"links_added": [
|
|
{
|
|
"page": "brood.md",
|
|
"sentence": "The queen lays a single egg in each empty cell.",
|
|
"n": 0,
|
|
"anchor": "queen",
|
|
"target": "queen-cells.md"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "link-anchor-gone",
|
|
"what": "a repaired sentence with a link whose anchor is not in the new sentence: the link is taken out",
|
|
"steps": [
|
|
{
|
|
"argv": [
|
|
"fix",
|
|
"--answers",
|
|
"{answers}",
|
|
"--bundle",
|
|
"{wiki}",
|
|
"--work",
|
|
"{work}",
|
|
"--blocks",
|
|
"{blocks}",
|
|
"--sources",
|
|
"{sources}",
|
|
"--links",
|
|
"{links}"
|
|
],
|
|
"answers": [
|
|
{
|
|
"key": {
|
|
"concept_id": "brood",
|
|
"file": "docs-en-hive.md",
|
|
"start": 21,
|
|
"end": 23,
|
|
"quote": "The queen lays one egg in each empty cell",
|
|
"provenance": "documented"
|
|
},
|
|
"action": "replace",
|
|
"fragments": [
|
|
{
|
|
"text": "One egg is laid in each empty cell.",
|
|
"quote": "lays one egg in each empty cell",
|
|
"anchor": {
|
|
"file": "docs-en-hive.md",
|
|
"start": 21,
|
|
"end": 23
|
|
},
|
|
"provenance": "documented"
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"exit": 0
|
|
}
|
|
],
|
|
"pages_changed": [
|
|
"brood.md"
|
|
],
|
|
"claims_before": [
|
|
{
|
|
"page": "brood.md",
|
|
"text": "The queen lays one egg in each empty cell.",
|
|
"n": 0
|
|
}
|
|
],
|
|
"claims_after": [
|
|
{
|
|
"page": "brood.md",
|
|
"text": "One egg is laid in each empty cell.",
|
|
"n": 0
|
|
}
|
|
],
|
|
"links_removed": [
|
|
{
|
|
"page": "brood.md",
|
|
"sentence": "The queen lays one egg in each empty cell.",
|
|
"n": 0,
|
|
"anchor": "queen",
|
|
"target": "queen-cells.md"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "unlink",
|
|
"what": "one link record taken out: only its page changes, and no claim (a link is no part of a claim's key)",
|
|
"steps": [
|
|
{
|
|
"argv": [
|
|
"unlink",
|
|
"--links",
|
|
"{links}",
|
|
"--page",
|
|
"hive.md",
|
|
"--sentence",
|
|
{
|
|
"sentence": "Light the smoker before you lift the lid.",
|
|
"n": 0
|
|
},
|
|
"--anchor",
|
|
"smoker",
|
|
"--at",
|
|
"10"
|
|
],
|
|
"exit": 0
|
|
}
|
|
],
|
|
"pages_changed": [
|
|
"hive.md"
|
|
],
|
|
"links_removed": [
|
|
{
|
|
"page": "hive.md",
|
|
"sentence": "Light the smoker before you lift the lid.",
|
|
"n": 0,
|
|
"anchor": "smoker",
|
|
"target": "smoker.md"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "relink",
|
|
"what": "one link record given another target page that exists: only its page changes",
|
|
"steps": [
|
|
{
|
|
"argv": [
|
|
"relink",
|
|
"--links",
|
|
"{links}",
|
|
"--page",
|
|
"hive.md",
|
|
"--sentence",
|
|
{
|
|
"sentence": "Watch for signs that the colony will swarm.",
|
|
"n": 0
|
|
},
|
|
"--anchor",
|
|
"swarm",
|
|
"--at",
|
|
"37",
|
|
"--to",
|
|
"queen-cells.md",
|
|
"--bundle",
|
|
"{wiki}"
|
|
],
|
|
"exit": 0
|
|
}
|
|
],
|
|
"pages_changed": [
|
|
"hive.md"
|
|
],
|
|
"links_removed": [
|
|
{
|
|
"page": "hive.md",
|
|
"sentence": "Watch for signs that the colony will swarm.",
|
|
"n": 0,
|
|
"anchor": "swarm",
|
|
"target": "swarming.md"
|
|
}
|
|
],
|
|
"links_added": [
|
|
{
|
|
"page": "hive.md",
|
|
"sentence": "Watch for signs that the colony will swarm.",
|
|
"n": 0,
|
|
"anchor": "swarm",
|
|
"target": "queen-cells.md"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "linkset-two-candidates",
|
|
"what": "linkset for two link candidates: a sentence file and a catalogue per group that klink task reads, each catalogue with the candidate's current target",
|
|
"steps": [
|
|
{
|
|
"argv": [
|
|
"linkset",
|
|
"--list",
|
|
"{list}",
|
|
"--bundle",
|
|
"{wiki}",
|
|
"--out-dir",
|
|
"{out}"
|
|
],
|
|
"list": {
|
|
"links": [
|
|
{
|
|
"page": "hive.md",
|
|
"sentence": "Light the smoker before you lift the lid.",
|
|
"n": 0,
|
|
"anchor": "smoker",
|
|
"target": "smoker.md"
|
|
},
|
|
{
|
|
"page": "water.md",
|
|
"sentence": "Bees need a water source near the hive.",
|
|
"n": 1,
|
|
"anchor": "hive",
|
|
"target": "hive.md"
|
|
}
|
|
]
|
|
},
|
|
"exit": 0
|
|
}
|
|
],
|
|
"linkset": [
|
|
{
|
|
"page": "hive.md",
|
|
"sentence": "Light the smoker before you lift the lid.",
|
|
"n": 0,
|
|
"anchor": "smoker",
|
|
"target": "smoker.md"
|
|
},
|
|
{
|
|
"page": "water.md",
|
|
"sentence": "Bees need a water source near the hive.",
|
|
"n": 1,
|
|
"anchor": "hive",
|
|
"target": "hive.md"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "two-repairs-two-pages",
|
|
"what": "two answers in one file on two pages: one replaced, one removed",
|
|
"steps": [
|
|
{
|
|
"argv": [
|
|
"fix",
|
|
"--answers",
|
|
"{answers}",
|
|
"--bundle",
|
|
"{wiki}",
|
|
"--work",
|
|
"{work}",
|
|
"--blocks",
|
|
"{blocks}",
|
|
"--sources",
|
|
"{sources}",
|
|
"--links",
|
|
"{links}"
|
|
],
|
|
"answers": [
|
|
{
|
|
"key": {
|
|
"concept_id": "honey-harvest",
|
|
"file": "docs-en-honey.md",
|
|
"start": 3,
|
|
"end": 3,
|
|
"quote": "when most cells in the frame are capped with wax",
|
|
"provenance": "documented"
|
|
},
|
|
"action": "replace",
|
|
"fragments": [
|
|
{
|
|
"text": "Harvest honey once most cells in a frame are capped with wax.",
|
|
"quote": "most cells in the frame are capped",
|
|
"anchor": {
|
|
"file": "docs-en-honey.md",
|
|
"start": 3,
|
|
"end": 3
|
|
},
|
|
"provenance": "documented"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"key": {
|
|
"concept_id": "brood",
|
|
"file": "docs-en-hive.md",
|
|
"start": 21,
|
|
"end": 23,
|
|
"quote": "feed the young larvae for about six days",
|
|
"provenance": "merged"
|
|
},
|
|
"action": "remove"
|
|
}
|
|
],
|
|
"exit": 0
|
|
}
|
|
],
|
|
"pages_changed": [
|
|
"brood.md",
|
|
"honey-harvest.md"
|
|
],
|
|
"claims_before": [
|
|
{
|
|
"page": "honey-harvest.md",
|
|
"text": "Harvest honey when most cells are capped with wax.",
|
|
"n": 0
|
|
},
|
|
{
|
|
"page": "brood.md",
|
|
"text": "Young larvae are fed for about six days and then sealed for about twelve days.",
|
|
"n": 0
|
|
}
|
|
],
|
|
"claims_after": [
|
|
{
|
|
"page": "honey-harvest.md",
|
|
"text": "Harvest honey once most cells in a frame are capped with wax.",
|
|
"n": 0
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "identity",
|
|
"what": "a fragment replaced by itself, context and all: no page changes and no claim",
|
|
"steps": [
|
|
{
|
|
"argv": [
|
|
"fix",
|
|
"--answers",
|
|
"{answers}",
|
|
"--bundle",
|
|
"{wiki}",
|
|
"--work",
|
|
"{work}",
|
|
"--blocks",
|
|
"{blocks}",
|
|
"--sources",
|
|
"{sources}",
|
|
"--links",
|
|
"{links}"
|
|
],
|
|
"answers": [
|
|
{
|
|
"key": {
|
|
"concept_id": "hive",
|
|
"file": "docs-en-hive.md",
|
|
"start": 14,
|
|
"end": 17,
|
|
"quote": "only on a warm and calm day",
|
|
"provenance": "documented"
|
|
},
|
|
"action": "replace",
|
|
"fragments": [
|
|
{
|
|
"text": "Open the hive only on a warm and calm day during an inspection.",
|
|
"quote": "only on a warm and calm day",
|
|
"anchor": {
|
|
"file": "docs-en-hive.md",
|
|
"start": 14,
|
|
"end": 17
|
|
},
|
|
"provenance": "documented",
|
|
"context": [
|
|
"Inspections"
|
|
]
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"exit": 0
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "task",
|
|
"what": "task for three listed claims on three pages, one of them the first sentence of a two-sentence fragment: each fragment stands in one task with its page title, all its sentences, its quotes and its block",
|
|
"steps": [
|
|
{
|
|
"argv": [
|
|
"task",
|
|
"--list",
|
|
"{list}",
|
|
"--claims",
|
|
"{claims}",
|
|
"--pairs",
|
|
"{pairs}",
|
|
"--work",
|
|
"{work}",
|
|
"--blocks",
|
|
"{blocks}",
|
|
"--sources",
|
|
"{sources}",
|
|
"--agent",
|
|
"{agent}",
|
|
"--out-dir",
|
|
"{out}"
|
|
],
|
|
"agent": "agent.md",
|
|
"exit": 0,
|
|
"list": {
|
|
"claims": [
|
|
{
|
|
"page": "frames.md",
|
|
"text": "Frames can be lifted out one by one.",
|
|
"n": 0
|
|
},
|
|
{
|
|
"page": "queen-cells.md",
|
|
"text": "Workers build queen cells along the lower edge of the comb.",
|
|
"n": 0
|
|
},
|
|
{
|
|
"page": "brood.md",
|
|
"text": "Young larvae are fed for about six days and then sealed for about twelve days.",
|
|
"n": 0
|
|
}
|
|
]
|
|
}
|
|
}
|
|
],
|
|
"task": [
|
|
{
|
|
"key": {
|
|
"concept_id": "frames",
|
|
"file": "docs-en-hive.md",
|
|
"start": 8,
|
|
"end": 10,
|
|
"quote": "lifted out one by one",
|
|
"provenance": "documented"
|
|
},
|
|
"must_contain": [
|
|
"Frames",
|
|
"Frames can be lifted out one by one.",
|
|
"lifted out one by one",
|
|
"A frame that is full of capped honey is heavy."
|
|
]
|
|
},
|
|
{
|
|
"key": {
|
|
"concept_id": "queen-cells",
|
|
"file": "docs-en-swarm.md",
|
|
"start": 7,
|
|
"end": 9,
|
|
"quote": "build queen cells along the lower edge of the comb",
|
|
"provenance": "documented"
|
|
},
|
|
"must_contain": [
|
|
"Queen cells",
|
|
"Workers build queen cells along the lower edge of the comb.",
|
|
"A queen cell looks like a peanut shell.",
|
|
"build queen cells along the lower edge of the comb",
|
|
"looks like a peanut shell",
|
|
"Remove queen cells early if you want to keep the colony together."
|
|
]
|
|
},
|
|
{
|
|
"key": {
|
|
"concept_id": "brood",
|
|
"file": "docs-en-hive.md",
|
|
"start": 21,
|
|
"end": 23,
|
|
"quote": "feed the young larvae for about six days",
|
|
"provenance": "merged"
|
|
},
|
|
"must_contain": [
|
|
"Brood",
|
|
"Young larvae are fed for about six days and then sealed for about twelve days.",
|
|
"feed the young larvae for about six days",
|
|
"Capped brood stays sealed for about twelve days."
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "refuse-task-shared-words",
|
|
"what": "task refuses an agent file that shares a run of eight words with a block in the task",
|
|
"steps": [
|
|
{
|
|
"argv": [
|
|
"task",
|
|
"--list",
|
|
"{list}",
|
|
"--claims",
|
|
"{claims}",
|
|
"--pairs",
|
|
"{pairs}",
|
|
"--work",
|
|
"{work}",
|
|
"--blocks",
|
|
"{blocks}",
|
|
"--sources",
|
|
"{sources}",
|
|
"--agent",
|
|
"{agent}",
|
|
"--out-dir",
|
|
"{out}"
|
|
],
|
|
"agent": "agent-shared.md",
|
|
"exit": 1,
|
|
"refused": [
|
|
"shared-words"
|
|
],
|
|
"list": {
|
|
"claims": [
|
|
{
|
|
"page": "frames.md",
|
|
"text": "Frames can be lifted out one by one.",
|
|
"n": 0
|
|
}
|
|
]
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "refuse-stale-list",
|
|
"what": "task refuses a list whose claims_sha256 is not that of --claims",
|
|
"steps": [
|
|
{
|
|
"argv": [
|
|
"task",
|
|
"--list",
|
|
"{list}",
|
|
"--claims",
|
|
"{claims}",
|
|
"--pairs",
|
|
"{pairs}",
|
|
"--work",
|
|
"{work}",
|
|
"--blocks",
|
|
"{blocks}",
|
|
"--sources",
|
|
"{sources}",
|
|
"--agent",
|
|
"{agent}",
|
|
"--out-dir",
|
|
"{out}"
|
|
],
|
|
"agent": "agent.md",
|
|
"exit": 1,
|
|
"refused": [
|
|
"stale-list"
|
|
],
|
|
"list": {
|
|
"claims": [
|
|
{
|
|
"page": "frames.md",
|
|
"text": "Frames can be lifted out one by one.",
|
|
"n": 0
|
|
}
|
|
],
|
|
"stale": true
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "refuse-quote-not-verbatim",
|
|
"what": "a file with one good answer and one whose quote is not verbatim on a line of its block: all refused, nothing written",
|
|
"steps": [
|
|
{
|
|
"argv": [
|
|
"fix",
|
|
"--answers",
|
|
"{answers}",
|
|
"--bundle",
|
|
"{wiki}",
|
|
"--work",
|
|
"{work}",
|
|
"--blocks",
|
|
"{blocks}",
|
|
"--sources",
|
|
"{sources}",
|
|
"--links",
|
|
"{links}"
|
|
],
|
|
"answers": [
|
|
{
|
|
"key": {
|
|
"concept_id": "honey-harvest",
|
|
"file": "docs-en-honey.md",
|
|
"start": 3,
|
|
"end": 3,
|
|
"quote": "when most cells in the frame are capped with wax",
|
|
"provenance": "documented"
|
|
},
|
|
"action": "replace",
|
|
"fragments": [
|
|
{
|
|
"text": "Harvest honey once most cells in a frame are capped with wax.",
|
|
"quote": "most cells in the frame are capped",
|
|
"anchor": {
|
|
"file": "docs-en-honey.md",
|
|
"start": 3,
|
|
"end": 3
|
|
},
|
|
"provenance": "documented"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"key": {
|
|
"concept_id": "swarming",
|
|
"file": "docs-en-swarm.md",
|
|
"start": 3,
|
|
"end": 3,
|
|
"quote": "leaves the hive with the old queen",
|
|
"provenance": "documented"
|
|
},
|
|
"action": "replace",
|
|
"fragments": [
|
|
{
|
|
"text": "A swarm leaves with the young queen.",
|
|
"quote": "leaves the hive with the young queen",
|
|
"anchor": {
|
|
"file": "docs-en-swarm.md",
|
|
"start": 3,
|
|
"end": 3
|
|
},
|
|
"provenance": "documented"
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"exit": 1,
|
|
"refused": [
|
|
"quote-not-in-span"
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "refuse-quote-other-source",
|
|
"what": "an answer whose quote stands verbatim, but in another source than the fragment's",
|
|
"steps": [
|
|
{
|
|
"argv": [
|
|
"fix",
|
|
"--answers",
|
|
"{answers}",
|
|
"--bundle",
|
|
"{wiki}",
|
|
"--work",
|
|
"{work}",
|
|
"--blocks",
|
|
"{blocks}",
|
|
"--sources",
|
|
"{sources}",
|
|
"--links",
|
|
"{links}"
|
|
],
|
|
"answers": [
|
|
{
|
|
"key": {
|
|
"concept_id": "water",
|
|
"file": "docs-en-hive.md",
|
|
"start": 31,
|
|
"end": 31,
|
|
"quote": "need a water source near the hive",
|
|
"provenance": "documented"
|
|
},
|
|
"action": "replace",
|
|
"fragments": [
|
|
{
|
|
"text": "Bees need a water source near the hive.",
|
|
"quote": "need a water source near the hive",
|
|
"anchor": {
|
|
"file": "docs-en-honey.md",
|
|
"start": 12,
|
|
"end": 12
|
|
},
|
|
"provenance": "documented"
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"exit": 1,
|
|
"refused": [
|
|
"anchor-outside-pack"
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "refuse-unknown-key",
|
|
"what": "an answer keyed by a footnote that no record of the concept has",
|
|
"steps": [
|
|
{
|
|
"argv": [
|
|
"fix",
|
|
"--answers",
|
|
"{answers}",
|
|
"--bundle",
|
|
"{wiki}",
|
|
"--work",
|
|
"{work}",
|
|
"--blocks",
|
|
"{blocks}",
|
|
"--sources",
|
|
"{sources}",
|
|
"--links",
|
|
"{links}"
|
|
],
|
|
"answers": [
|
|
{
|
|
"key": {
|
|
"concept_id": "hive",
|
|
"footnote": "s0000000000"
|
|
},
|
|
"action": "remove"
|
|
}
|
|
],
|
|
"exit": 1,
|
|
"refused": [
|
|
"unknown-key"
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "refuse-stale-bundle",
|
|
"what": "a second fix against the collection built before the first: its key is a record now, but no footnote on that page of the collection given",
|
|
"steps": [
|
|
{
|
|
"argv": [
|
|
"fix",
|
|
"--answers",
|
|
"{answers}",
|
|
"--bundle",
|
|
"{wiki}",
|
|
"--work",
|
|
"{work}",
|
|
"--blocks",
|
|
"{blocks}",
|
|
"--sources",
|
|
"{sources}",
|
|
"--links",
|
|
"{links}"
|
|
],
|
|
"answers": [
|
|
{
|
|
"key": {
|
|
"concept_id": "honey-harvest",
|
|
"file": "docs-en-honey.md",
|
|
"start": 3,
|
|
"end": 3,
|
|
"quote": "when most cells in the frame are capped with wax",
|
|
"provenance": "documented"
|
|
},
|
|
"action": "replace",
|
|
"fragments": [
|
|
{
|
|
"text": "Harvest honey once most cells in a frame are capped with wax.",
|
|
"quote": "most cells in the frame are capped",
|
|
"anchor": {
|
|
"file": "docs-en-honey.md",
|
|
"start": 3,
|
|
"end": 3
|
|
},
|
|
"provenance": "documented"
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"exit": 0
|
|
},
|
|
{
|
|
"argv": [
|
|
"fix",
|
|
"--answers",
|
|
"{answers}",
|
|
"--bundle",
|
|
"{wiki}",
|
|
"--work",
|
|
"{work}",
|
|
"--blocks",
|
|
"{blocks}",
|
|
"--sources",
|
|
"{sources}",
|
|
"--links",
|
|
"{links}"
|
|
],
|
|
"answers": [
|
|
{
|
|
"key": {
|
|
"concept_id": "honey-harvest",
|
|
"file": "docs-en-honey.md",
|
|
"start": 3,
|
|
"end": 3,
|
|
"quote": "most cells in the frame are capped",
|
|
"provenance": "documented"
|
|
},
|
|
"action": "remove"
|
|
}
|
|
],
|
|
"exit": 1,
|
|
"refused": [
|
|
"stale-bundle"
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "refuse-duplicate-answer",
|
|
"what": "two answers for the same fragment in one file",
|
|
"steps": [
|
|
{
|
|
"argv": [
|
|
"fix",
|
|
"--answers",
|
|
"{answers}",
|
|
"--bundle",
|
|
"{wiki}",
|
|
"--work",
|
|
"{work}",
|
|
"--blocks",
|
|
"{blocks}",
|
|
"--sources",
|
|
"{sources}",
|
|
"--links",
|
|
"{links}"
|
|
],
|
|
"answers": [
|
|
{
|
|
"key": {
|
|
"concept_id": "swarming",
|
|
"file": "docs-en-swarm.md",
|
|
"start": 3,
|
|
"end": 3,
|
|
"quote": "leaves the hive with the old queen",
|
|
"provenance": "documented"
|
|
},
|
|
"action": "remove"
|
|
},
|
|
{
|
|
"key": {
|
|
"concept_id": "swarming",
|
|
"file": "docs-en-swarm.md",
|
|
"start": 3,
|
|
"end": 3,
|
|
"quote": "leaves the hive with the old queen",
|
|
"provenance": "documented"
|
|
},
|
|
"action": "replace",
|
|
"fragments": [
|
|
{
|
|
"text": "A swarm is a large group of bees that leaves with the old queen.",
|
|
"quote": "leaves the hive with the old queen",
|
|
"anchor": {
|
|
"file": "docs-en-swarm.md",
|
|
"start": 3,
|
|
"end": 3
|
|
},
|
|
"provenance": "documented"
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"exit": 1,
|
|
"refused": [
|
|
"duplicate-answer"
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "refuse-relink-missing-target",
|
|
"what": "relink to a page that does not exist",
|
|
"steps": [
|
|
{
|
|
"argv": [
|
|
"relink",
|
|
"--links",
|
|
"{links}",
|
|
"--page",
|
|
"hive.md",
|
|
"--sentence",
|
|
{
|
|
"sentence": "Watch for signs that the colony will swarm.",
|
|
"n": 0
|
|
},
|
|
"--anchor",
|
|
"swarm",
|
|
"--at",
|
|
"37",
|
|
"--to",
|
|
"nectar.md",
|
|
"--bundle",
|
|
"{wiki}"
|
|
],
|
|
"exit": 1,
|
|
"refused": [
|
|
"target-missing"
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "refuse-unlink-wrong-at",
|
|
"what": "unlink with an at that is not the record's",
|
|
"steps": [
|
|
{
|
|
"argv": [
|
|
"unlink",
|
|
"--links",
|
|
"{links}",
|
|
"--page",
|
|
"hive.md",
|
|
"--sentence",
|
|
{
|
|
"sentence": "Light the smoker before you lift the lid.",
|
|
"n": 0
|
|
},
|
|
"--anchor",
|
|
"smoker",
|
|
"--at",
|
|
"11"
|
|
],
|
|
"exit": 1,
|
|
"refused": [
|
|
"link-not-found"
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "refuse-unlink-wrong-anchor",
|
|
"what": "unlink with an anchor that is not the record's",
|
|
"steps": [
|
|
{
|
|
"argv": [
|
|
"unlink",
|
|
"--links",
|
|
"{links}",
|
|
"--page",
|
|
"hive.md",
|
|
"--sentence",
|
|
{
|
|
"sentence": "Light the smoker before you lift the lid.",
|
|
"n": 0
|
|
},
|
|
"--anchor",
|
|
"lid",
|
|
"--at",
|
|
"10"
|
|
],
|
|
"exit": 1,
|
|
"refused": [
|
|
"link-not-found"
|
|
]
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|