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
@@ -8,6 +8,7 @@ Bringing new material into `raw/`: fetching and capturing it, seeing what is wai
|
||||
- [`raw fetch`](#raw-fetch)
|
||||
- [`raw login`](#raw-login)
|
||||
- [`raw derive`](#raw-derive)
|
||||
- [`raw clarify`](#raw-clarify)
|
||||
- [`raw capture`](#raw-capture)
|
||||
- [`raw status`](#raw-status)
|
||||
- [`raw pending`](#raw-pending)
|
||||
@@ -223,6 +224,64 @@ tools/wikitool raw derive incoming/scans.zip
|
||||
- `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
|
||||
|
||||
**Options**
|
||||
|
||||
```text
|
||||
Arguments:
|
||||
entry A file or folder directly in incoming/ (omit with --page)
|
||||
|
||||
Options:
|
||||
--item <str> One answer, one line; repeat for more
|
||||
--page <str> Clarify the source of this existing page instead of an entry of
|
||||
incoming/
|
||||
-h, --help Show this message and exit.
|
||||
```
|
||||
|
||||
**Examples**
|
||||
|
||||
```bash
|
||||
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"
|
||||
```
|
||||
|
||||
**Behaviour**
|
||||
|
||||
- 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.
|
||||
|
||||
**Properties**
|
||||
|
||||
- Changes files: yes
|
||||
- Idempotent: no
|
||||
- Atomic: Yes - everything is checked before the one write, and the file is created exclusively, so an existing file is never overwritten
|
||||
- Counts toward the session call budget: yes
|
||||
- Can reach the network: no
|
||||
|
||||
**Exit codes**
|
||||
|
||||
- `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:`
|
||||
|
||||
**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