tools, instructions: Begleitdatei - raw clarify legt Präzisierungen des Operators als <stem>.clarifications.md beim Original ab, pending/accept bündeln sie (#241); 10.2.0-beta.1
Files changed: - CHANGES.md - VERSION - docs/how-to/ingest-a-source.md - docs/reference/commands/README.md - docs/reference/commands/raw-material-and-uploads.md - instructions/wiki-ingest/SKILL.md - raw/CONTRACT.md - tools/CONTRACT.md - tools/chemenu/cli_contract.py - tools/chemenu/commands/raw/__init__.py - tools/chemenu/commands/raw/_common.py - tools/chemenu/commands/raw/clarify.py - tools/chemenu/commands/raw/pending.py - tools/chemenu/tests/test_raw_clarify.py - types/source.guidance.md Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_015uxGFdBAmyA23g1isCtGEY
This commit is contained in:
1 parent
55ddf652cb
commit
832056a0b0
15 files changed
+650
-11
No files matched your search
@@ -126,6 +126,7 @@ sources rebuild-index write idempotent budget:counted exit:0,1
|
||||
raw fetch write non-idempotent budget:counted exit:0,1,42 Capture a web page the user names into `incoming/`: the HTML as received plus a derived text, for `raw accept` to promote. Pages of a known website are fetched in the website's standard form and cleaned of its page furniture; a host the instance routes so is fetched with the user's own session or through an external fetcher.
|
||||
raw login write idempotent budget:counted exit:0,1,42 Let the user sign in to a website once, in a visible browser window, and store the session it leaves as a secret outside the working tree, for `raw fetch` to fetch that website's pages with. Only the user runs it.
|
||||
raw derive write non-idempotent budget:counted exit:0,1 Derive reading text from a PDF, e-mail, Office file or web page in `incoming/`, or unpack a ZIP, and leave the original beside it, for `raw accept` to promote.
|
||||
raw clarify write non-idempotent budget:counted exit:0,1 Write the operator's answers to an ingest's questions about a source as a companion file in `incoming/`, to be promoted with the source instead of as a source of its own.
|
||||
raw capture write non-idempotent budget:counted exit:0,1 Capture documentation from a git repository into `incoming/<bundle>/`, with a manifest naming the repository, ref rule and commit, for `raw accept` to promote.
|
||||
raw status read idempotent budget:counted exit:0 Report which captured bundles under `raw/` have fallen behind their repository, with each changed file as `A`/`M`/`D`.
|
||||
raw pending read idempotent budget:counted exit:0 List what waits in `incoming/`, oldest first, and name the entry an ingest without an argument takes next.
|
||||
@@ -1624,6 +1625,59 @@ Derive reading text from a PDF, e-mail, Office file or web page in `incoming/`,
|
||||
- `wikitool raw accept` - promotes the folder into `raw/`
|
||||
- `instructions/wiki-ingest/SKILL.md` - where a PDF, mail or Office file to ingest starts
|
||||
|
||||
#### `raw clarify`
|
||||
|
||||
Write the operator's answers to an ingest's questions about a source as a companion file in `incoming/`, to be promoted with the source instead of as a source of its own.
|
||||
|
||||
**SYNOPSIS**
|
||||
|
||||
- `wikitool raw clarify incoming/<entry> --item "<answer>" [--item "<answer>" ...]` - A file, a file of a stem bundle, or a folder in `incoming/`: write `<stem>.clarifications.md` beside it, or `clarifications.md` inside the folder
|
||||
- `wikitool raw clarify --page "<Title>" --item "<answer>" [--item "<answer>" ...]` - A source already in `raw/`: write the companion file to `incoming/` and print the `raw accept --page` line that adds it to the source's bundle
|
||||
|
||||
**PROPERTIES**
|
||||
|
||||
- effect: write
|
||||
- idempotent: no
|
||||
- atomic: Yes - everything is checked before the one write, and the file is created exclusively, so an existing file is never overwritten
|
||||
- budget: counted
|
||||
- network: no
|
||||
|
||||
**EXAMPLES**
|
||||
|
||||
- `tools/wikitool raw clarify incoming/meeting.vtt --item "Termindatum: 2026-11-12"`
|
||||
- `tools/wikitool raw clarify incoming/workshop --item "Teilnehmer: A, B" --item "KI = künstliche Intelligenz"`
|
||||
- `tools/wikitool raw clarify --page "Source - Meeting" --item "Projekt: Alpha"`
|
||||
|
||||
**EXIT STATUS**
|
||||
|
||||
- 0 success
|
||||
- 1 No `--item`, an empty or multi-line one, an entry that is not directly in `incoming/`, a captured bundle, or neither (or both of) an entry and `--page`
|
||||
- 1 `--page` names no page, or one without `raw_files:`
|
||||
|
||||
**ON FAILURE**
|
||||
|
||||
- No `--item`, an empty or multi-line one, an entry that is not directly in `incoming/`, a captured bundle, or neither (or both of) an entry and `--page` -> Nothing was written. Fix the call and retry once
|
||||
- `--page` names no page, or one without `raw_files:` -> Nothing was written. Check the title with `wikitool search`, then retry once
|
||||
|
||||
**NEVER**
|
||||
|
||||
- Never put the operator's unprompted new content in a clarification - it is a source of its own.
|
||||
- Never write a clarification by hand into `raw/`; `raw accept` promotes it.
|
||||
|
||||
**NOTES**
|
||||
|
||||
- Writes into `incoming/` only, never into `raw/`, and reads no network. The name and the place are computed, never chosen: `incoming/<stem>.clarifications.md` for a file or a stem bundle, `incoming/<folder>/clarifications.md` for a folder; a taken name gets `-2`, `-3` before the extension, and no existing file is overwritten.
|
||||
- The file starts with a fixed header (`kind`, `written_by`, `clarifies` - the file(s) it belongs to, `answered` - today's date, `by`), then one bullet per `--item`, word for word as passed. An item is one line; its language is the one the operator answered in.
|
||||
- What belongs in it is what this ingest session asked about this source and the operator answered in a few points - the date of the recording, who took part, an abbreviation, a transcription error. What the operator adds unprompted, or says about a subject of its own, stays a source of its own (`instructions/wiki-ingest/SKILL.md`).
|
||||
- `raw pending` lists the companion file with its original as one candidate, and `raw accept` promotes both as one bundle named after the original, whatever order the files are passed in. A companion file with no original in the call (or, with `--page`, in the page's raw_files:) is refused.
|
||||
- `--page` names the file after the stem of the source's first file and prints the `raw accept --page` line with the page's own `fidelity` and `authority` - a bundle has one pair, and the companion file inherits it.
|
||||
|
||||
**SEE ALSO**
|
||||
|
||||
- `raw/CONTRACT.md` "Getting a file in: incoming/" - the companion file and its bundle
|
||||
- `wikitool raw accept` - promotes the companion file with its original
|
||||
- `instructions/wiki-ingest/SKILL.md` - when to ask, and where the answer goes
|
||||
|
||||
#### `raw capture`
|
||||
|
||||
Capture documentation from a git repository into `incoming/<bundle>/`, with a manifest naming the repository, ref rule and commit, for `raw accept` to promote.
|
||||
|
||||
Reference in new issue
Block a user