@dialecte/cli 0.2.3 → 0.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (4) hide show
  1. package/README.md +186 -29
  2. package/dist/cli.js +28479 -27055
  3. package/dist/lookups.js +138 -44
  4. package/package.json +5 -1
package/README.md CHANGED
@@ -24,6 +24,7 @@ dialecte audit # render the public type surface and flag readability
24
24
  dialecte skills sync # install the agent skills your dependencies ship, for your agents
25
25
  dialecte skills generate # refresh the generated blocks of this package's skills
26
26
  dialecte skills check # fail on a skill citing what the code no longer has, or an undocumented public function
27
+ dialecte skills changed # per skill touched: hand-written (its evals are due) or generated blocks only (no evals)
27
28
  dialecte api find "<need>" # find a method by what you need
28
29
  dialecte api show <path> # read one method's contract
29
30
  dialecte members <expr> # what an expression of the live types holds
@@ -35,11 +36,12 @@ dialecte gate [--full] # the package's Definition of Done, with the real cou
35
36
  dialecte gate --hook # in a commit hook: the suite, unless a green gate --full of the committed tree answers it
36
37
  dialecte tdd red|green|status # receipts: each new test failed on an assertion before the code, then passed untouched
37
38
  dialecte new verb <namespace> <query|transaction> <name>
38
- dialecte handover <lots.json> # the guarded commit-by-lots hand-over a human runs (run, list)
39
+ dialecte handover <lots.json> # the guarded commit-by-lots hand-over a human runs (show, run, abandon, list)
39
40
  dialecte handover --legend # every term of the hand-over card: what it means, whether to look
40
41
  dialecte worktree add|prune # a worktree ready to work in (sibling links, node_modules checked); what a merge left behind
41
42
  dialecte record review|decision|snapshot # a lot's findings ledger and round snapshots, in its hand-over folder
42
43
  dialecte record choice <folder> --by <who> <decision> # a decision made outside the ledger, in decisions.md
44
+ dialecte record standard <folder> consulted <note> # the standard check, read by the card's standard line
43
45
  dialecte recap <folder> # the pull request's expandable part, built from the hand-over's records only
44
46
  dialecte mutants run|status|schedule|abandon|migrate|judge|record|drop # mutation testing of the declared scope; survivors tracked until handled
45
47
  dialecte text check <file> # the human part of a GitHub text: its fixed headings and its word cap
@@ -176,25 +178,89 @@ Run outside a package (no `package.json`), each answers a usage error.
176
178
 
177
179
  The MCP server of the read-only lookups is its own package: [`@dialecte/mcp`](https://github.com/dialecte/mcp) (`npx @dialecte/mcp`). It builds on the pure answer functions this package exports at `@dialecte/cli/lookups`.
178
180
 
181
+ ## Profiles
182
+
183
+ One field of package.json says what the package is to the cli:
184
+
185
+ ```json
186
+ "dialecte": { "profile": "contributor" }
187
+ ```
188
+
189
+ - `consumer` (the default, a package without the field): an app built on a dialecte. It runs the canon: the
190
+ gate steps, the tdd receipts, the review ledger, the hand-over. `rules` and `handover` refuse a citation
191
+ of a standard and the package's own `referencePatterns`; tags (`plan tag`, `acceptance criterion`,
192
+ `ticket number`) are allowed. Mutation testing is off unless `dialecte.mutation.scope` is declared
193
+ (`mutants run` without one says how to opt in). `dialecte contrib` refuses with exit 2.
194
+ - `contributor`: a package of the Dialecte family. The same canon, and the contributor checks: tags are
195
+ refused too (minus those `allowReferences` lifts), `dialecte contrib` runs the code rules, the docs build,
196
+ the type bench and the release guard, and `skills sync` installs the contributor skills (`--no-contributing`
197
+ is refused). A contributor never names the tools that consume it: list them once on the machine with
198
+ `git config --global dialecte.consumerNames "<name>, <name>"` (never committed, so the names stay out of the
199
+ repository) and `rules` and `handover` refuse them as whole words (`consumer tool name`).
200
+ - Any other value is refused by every command that reads it:
201
+ `dialecte.profile: "<value>" is not a profile; profiles: contributor, consumer`.
202
+
203
+ The profile is read from the package.json at the command's root, never from a flag or the environment: it
204
+ describes the package, not the session. `dialecte doctor` prints it (`profile consumer (default)`), warns on
205
+ an `allowReferences` a consumer does not need, on a contributor whose `dialecte.gate.full` still holds `docs`
206
+ or `type-bench` (they belong in `dialecte.contrib.steps`, or drop them for the defaults) and on a contributor
207
+ whose skills were synced without the contributor ones; an invalid value is an error line (`❌`).
208
+
209
+ `dialecte contrib` (in a contributor, after `gate --full` and before `dialecte handover`):
210
+
211
+ ```json
212
+ "dialecte": {
213
+ "profile": "contributor",
214
+ "contrib": { "steps": [{ "name": "docs", "run": "npm run doc:build", "restoresGeneratedDocs": true }] }
215
+ }
216
+ ```
217
+
218
+ `contrib.steps` replaces the default package steps (`docs`, `type-bench`); `[]` keeps the built-in rows only
219
+ (`rules`, `release`). See the command under [Contributing to a Dialecte package](#contributing-to-a-dialecte-package).
220
+
221
+ The hand-over follows the profile:
222
+
223
+ - A consumer's card holds, in `gates`, the gate steps, the review and the standard line, and a `mutation`
224
+ line only when a scope is declared: no `rules`, `docs`, `type-bench` or `release` line, no contrib
225
+ section. `handover run` has no `contrib` guard; its `references` guard refuses `a standard citation`.
226
+ - A contributor's card has the same `gates` and a `contrib` section after them: the rows of the
227
+ `dialecte contrib` record of the tree the lots leave (`rules`, the package's steps, `release`), then the
228
+ live `mutation` row. Every row green: one line, `✓ contrib rules · docs · type-bench · release`, with the
229
+ record's source (`· rehearsal`, `· from <commit>`); any `!` or `✗`: one line per row. No record of the
230
+ tree: `✗ contrib never run: dialecte contrib`. `handover run` checks a `contrib` guard between
231
+ `references` and `mutation`: a green contrib record of the tree the lots leave, at the lots file's HEAD,
232
+ against what is installed now; else `no green dialecte contrib of this tree: run dialecte contrib`, or the
233
+ failed rows' names. Its `references` guard refuses `a plan tag or a standard citation`. A rehearsal never
234
+ stops at the guard (a refusal prints `! contrib ... (the real run refuses; the rehearsal goes on)`): when
235
+ the tree the lots leave has no green contrib record (a merge lot's merged tree too), it runs
236
+ `dialecte contrib` in its scratch clone first, at the lots file's HEAD, and the card reads that record
237
+ `· rehearsal`. When the lots change what the record is keyed by (a merge bringing other contrib steps, the
238
+ install, the linked dependencies), no record can answer the real run: the rehearsal says which part, and
239
+ does not run contrib.
240
+ - Both profiles get the card's `standard` line (see the hand-over card below) and
241
+ `dialecte record standard <folder> consulted <note> | not-consulted <reason>`.
242
+
179
243
  ## Contributing to a Dialecte package
180
244
 
181
- Eleven commands for whoever changes a Dialecte package, a person or an agent. Each answers the same way
245
+ Twelve commands for whoever changes a Dialecte package, a person or an agent. Each answers the same way
182
246
  every time: exit 0 when green, 1 when a check fails, 2 on a usage error; `--json` where a program reads
183
247
  the answer.
184
248
 
185
249
  - `dialecte rules [<files...>] [--json]` checks the code rules on the syntax tree of the changed files
186
250
  (or the files given): exported types outside a `*.types.ts` file, module constants outside a
187
- `*.constants.ts` file, functions declared as `const`, an `await` inside an argument, plan tags and
188
- standard citations are errors, and so is a test that takes the system's temporary folder itself as
251
+ `*.constants.ts` file, functions declared as `const`, an `await` inside an argument, standard
252
+ citations and the package's `referencePatterns` (and, in a contributor, plan tags, acceptance criteria
253
+ and ticket numbers: see [Profiles](#profiles)) are errors, and so is a test that takes the system's temporary folder itself as
189
254
  its root (`tmpdir()` handed to a call that lists or scans a folder, or given as `root` / `cwd` /
190
255
  `scratchRoot`...: other tests and processes share it; `mkdtempSync(join(tmpdir(), '<prefix>-'))`
191
256
  gives the test a folder of its own); positional parameters (beyond a leading `query` / `tx`, a
192
257
  symmetric pair aside) and abbreviated names are warnings. Without file arguments it records its result
193
258
  in the worktree's git folder (`dialecte-rules.json`: when, HEAD, the state hash, the files, the errors
194
- and warnings), which the hand-over card reads; a run on named files records nothing.
259
+ and warnings), which `dialecte recap` reads; a run on named files records nothing.
195
260
  - `dialecte gate [--fast | --full] [--base <ref>] [--no-reuse] [--declare <path>]... [--json]` runs the Definition of Done: `--fast` (default) `check`,
196
- `skills:check` and the tests of the changed files; `--full` adds `build`, the whole suite (the runner's
197
- defaults: every file in parallel), `doc:build` and `type-bench:check`. Each step runs unfiltered, with
261
+ `skills:check` and the tests of the changed files; `--full` adds `build` and the whole suite (the
262
+ runner's defaults: every file in parallel). The docs build and the type bench are contributor checks:
263
+ `dialecte contrib` runs them (see [Profiles](#profiles)). Each step runs unfiltered, with
198
264
  `GIT_OPTIONAL_LOCKS=0` (a `git status` inside it never takes the index lock), and is judged on its exit
199
265
  code and on the counts it printed: a step exiting non-zero fails whatever it says, a test step that
200
266
  counts no test fails - except `--fast` on a change that touches no test (a doc edit): the changed-tests
@@ -292,6 +358,21 @@ the answer.
292
358
  stall of its own. Ctrl-C, SIGTERM or SIGHUP received by the cli is passed on to every running child's group.
293
359
  A child that asks the terminal (a gpg or ssh passphrase prompt) runs in a background group: it
294
360
  stops (state `T`) and is reported as stalled.
361
+ - `dialecte contrib [--no-reuse] [--json]` runs the contributor checks of a package whose profile is
362
+ `contributor`, after `gate --full` and before `dialecte handover`, one line per row: `rules` on the files
363
+ changed against HEAD (recorded as `dialecte rules` records it), the package's `dialecte.contrib.steps`
364
+ (default: `docs`, `npm run doc:build` with the `generatedDocs` restored, and `type-bench`,
365
+ `npm run type-bench:check`; `[]` keeps the built-in rows only) run as the gate runs its steps (a missing
366
+ npm script skips the step), `release` (no dependency named by a local folder), then `mutation` when the
367
+ package declares a mutation scope (read from the mutation store now, never recorded). A package step a
368
+ green `gate --full` record of this tree and install passed with the same name and command is not run
369
+ again: its row says `reused from gate --full at <time>`. The run is recorded as `dialecte-gate-contrib.json`
370
+ in the worktree's git folder and stored by tree like a gate record, its key holding HEAD too (the rules
371
+ row reads the changed files against it); a green record of the same key answers the rows
372
+ (`reused: contrib green on this tree at <time> (HEAD <sha>)`), `--no-reuse` runs them and every step a
373
+ `gate --full` passed. Exit 0 green, 1 a row failed, 2 refused (a consumer, where nothing is written, or
374
+ a value of package.json no command accepts). `--json`: `{ profile, rows: [{ name, status, detail }],
375
+ reused?: { at, head } }`.
295
376
  - `dialecte tdd red|green|status [<test file> | <test file>::<case name>]... [--base <ref>] [--json]` makes
296
377
  the order of the work visible: tests written from the spec before any code, red for a real reason, then
297
378
  made green by an implementation that did not touch them. The ledger lives in the worktree's git folder,
@@ -430,15 +511,27 @@ the answer.
430
511
  none. The card reads the gates from their records.
431
512
  It refuses (and writes nothing) when the branch or HEAD differ, `core.hooksPath` names a folder that
432
513
  does not exist (git would skip every hook; it says how to restore it), something is staged, a changed
433
- file is in no lot or in two, or a lot file (evals included) or message holds a plan tag or a standard
434
- citation. Otherwise it writes the hand-over folder - the lots file, the snapshot (`files.txt`,
514
+ file is in no lot or in two, or a lot file (evals included) or message holds a standard citation, one
515
+ of the package's `referencePatterns`, or, in a contributor, a tag (see [Profiles](#profiles)). Otherwise it writes the hand-over folder - the lots file, the snapshot (`files.txt`,
435
516
  `files.sha256`, `files.deleted`, and `lots.sha256`: the lots file as reviewed) and a one-line
436
517
  `commit.sh` that runs
437
518
  `npx --no-install @dialecte/cli handover run <folder>` (bash, also run with `sh`; when the repository
438
519
  installs no cli that can, it says so in one line with the fix) - and prints the hand-over card, the
439
- command with its absolute `cd` under it. `--json` answers the card as data: the verdict, `failedGates`,
440
- `otherTreeGates`, `declarations` (the entries to read), `gates` (the gate lines: name, status, detail),
441
- `tdd` (the tdd lines as the text a person reads, no layout and no padding), `notes`, and each lot with
520
+ command with its absolute `cd` under it. The folder is the lots file's, or `--out <dir>`. Every hand-over
521
+ written is registered in the repository's store, `<git common dir>/dialecte-handover/`: shared by every
522
+ worktree of the repository, kept when a worktree is removed, never in the working tree. The store holds
523
+ one entry per hand-over, `<name>.json` = `{ folder, branch, worktree, written, state }` (the folder's
524
+ absolute path, the lots file's branch and repository, when it was written, and its state as last
525
+ recorded: `pending` when written, `committed` by a real run that commits every lot, `abandoned` by
526
+ `handover abandon`); the folder stays where it was written. The name is `<yyyy-mm-dd>-<branch slug>[-<n>]` -
527
+ the local date, the branch with every run of characters outside `[A-Za-z0-9._-]` (the `/` included)
528
+ turned into one `-`, then `-2`, `-3`... when that name has an entry already. A folder registered already
529
+ (the same real path) keeps its name: `--rehash` updates its entry, never a second one. A rehearsal and
530
+ `show` write no entry. `--json` answers the card as data: the verdict, `profile`,
531
+ `failedGates`, `otherTreeGates`, `declarations` (the entries to read), `gates` (the gate lines: name,
532
+ status, detail), `contrib` (a contributor's contrib rows, one per row: name, status, detail, and `stale`
533
+ or `source` - `rehearsal`, `from <commit>` - when they apply), `tdd` (the tdd lines as the text a person reads, no layout and no padding), `notes`, `name` (the
534
+ hand-over's registered name; absent for a folder with no entry), and each lot with
442
535
  `pending` until it is committed. Edited a file after the review? `--rehash` (also after
443
536
  editing `lots.json`). The repository stays held until every lot is committed: `dialecte gate` runs
444
537
  only under this hand-over (see `gate`), and a hand-over of another folder is refused, naming the script
@@ -458,13 +551,12 @@ the answer.
458
551
  - `gates`: one line per gate step from the gate records (the latest record of each step over `--fast`,
459
552
  `--full` and the commit hook's record, a line of the hook's ending with `commit hook`:
460
553
  `✓ test:run 1214/1214 · commit hook`; a gate record newer than the hook's replaces its lines whole,
461
- since the hook names its own scripts, not the gate's steps), then `rules` from its record, then
462
- `mutation` when the package declares a mutation scope (below), then
463
- `review` from the hand-over folder's findings ledger and `round-<n>/` snapshots. `✓` passed; `!` to
464
- look at (a step not run here, with its reason, or not run after a failure; `rules` never run; no
554
+ since the hook names its own scripts, not the gate's steps), then, in a consumer, `mutation` when the
555
+ package declares a mutation scope (below), then
556
+ `review` from the hand-over folder's findings ledger and `round-<n>/` snapshots, then `standard`. `✓`
557
+ passed; `!` to look at (a step not run here, with its reason, or not run after a failure; no
465
558
  findings ledger, or one holding no row yet: `no findings recorded`; only nits open); `✗` failed (a
466
- failed step,
467
- a rules error, a blocking or should-fix finding open, `gate never run on this tree` when there is no
559
+ failed step, a blocking or should-fix finding open, `gate never run on this tree` when there is no
468
560
  record). The records read are the worktree's last runs and the store's records of the tree the
469
561
  hand-over commits - the worktree's tree, or for a hand-over holding a merge lot the tree its last lot
470
562
  leaves (the trial merge with its resolutions) - the newest record of each step winning; a tdd step
@@ -489,6 +581,22 @@ the answer.
489
581
  `dialecte mutants schedule <follow-up> <key>`; rerun a died run or `dialecte mutants abandon <run id>`;
490
582
  wait for a running run; run `dialecte mutants run` on the tree for a gate lot. The switch is the
491
583
  hand-over folder's `lot.json` when it holds one, else `.dialecte/lot.json`.
584
+ The `standard` line says whether the standard was consulted. A standard is configured when
585
+ `DIALECTE_STANDARD` names a file or folder that exists (the environment only: no committed file names
586
+ it). `✓ standard consulted · <note>` when one is configured and the station recorded a consultation;
587
+ `✗ standard configured, not consulted: dialecte record standard <folder> consulted <note>` (blocks) when
588
+ one is configured and none is recorded; `! standard not consulted: none configured (DIALECTE_STANDARD)`
589
+ otherwise, with the recorded not-consulted reason when there is one: a warning that never blocks. The station records it
590
+ with `dialecte record standard <folder> consulted <note>` or `not-consulted <reason>`.
591
+ - `contrib` (a contributor's): the rows of the `dialecte contrib` record of the tree the hand-over commits,
592
+ read as gate lines (`rules` with its errors and warnings, the package's steps, `release`), then the live
593
+ `mutation` row. A stored record counts when its key is the one the `contrib` guard asks for: a run at
594
+ the lots file's HEAD on that tree, against what is installed now, with the package's contrib rows. Else
595
+ the worktree's last contrib record, each row stale and saying what changed: `(the tree changed since)`,
596
+ `(HEAD moved since: run dialecte contrib again)`, or `(the install or the contrib rows changed since)`;
597
+ else `✗ contrib never run: dialecte contrib`. Every row green prints one line naming the rows, with the
598
+ record's source; any other row expands the section to one line per row. A failed or stale row counts
599
+ with the failed gates and the gates of another tree.
492
600
  - `tdd`: the lot's exemption; only the cases of the change count, those the gate's tdd step listed on
493
601
  this tree (a retitled or removed case's receipts are not counted under the old title); without a gate
494
602
  record of this tree that lists them, one line `counts from the last gate: run the gate on this tree`
@@ -511,15 +619,20 @@ the answer.
511
619
  - `notes`: the lots file's `gates` text, as written; only on the cards printed before a run (the
512
620
  written card, a rehearsal's), never on the card after a real run.
513
621
 
514
- Its closing rule reads `dialecte handover --legend · details: dialecte tdd status` (in a box too narrow
515
- for it, that text is printed inside, above a plain closing rule). The command stays
516
- under the box until every lot is committed. `dialecte handover --legend` prints every term the card can
622
+ Its closing rule names the hand-over, so a part of the card copied alone still says which one it is:
623
+ `dialecte handover show <id> · run <id> · --legend · details: dialecte tdd status`, `<id>` the
624
+ hand-over's registered name, or its folder's absolute path when it has no entry (a folder written by an
625
+ earlier cli; in a box too narrow for it, that
626
+ text is printed inside, above a plain closing rule) - on the written card, `show`'s, a run's and a
627
+ rehearsal's. The command stays under the box until every lot is committed. `dialecte handover --legend` prints every term the card can
517
628
  print, each in two lines: what it means, and whether to look.
518
629
 
519
630
  - `dialecte handover run <folder>` is what `commit.sh` runs. Each guard prints one line with its result
520
631
  and its time (`✓ snapshot 110 file(s) 0.4 s`): repository, the lots file as reviewed, hooks
521
632
  folder, branch, HEAD, empty index, the files against the snapshot, deleted files, files outside the
522
- lots, plan tags and citations, and last `mutation`: the card's `mutation` verdict computed again when the
633
+ lots, references (citations, declared patterns, and the tags of a contributor), `contrib` in a contributor
634
+ (a green `dialecte contrib` record of the tree the lots leave, at the lots file's HEAD, against what is
635
+ installed now; a rehearsal never stops there), and last `mutation`: the card's `mutation` verdict computed again when the
523
636
  guard runs (never taken from the card), so a run that reported a survivor, or died, after the card was
524
637
  written refuses the run with exit 1 and nothing committed (`✗ mutation <detail>`, each survivor and died
525
638
  run indented under it, then what to do with each); a run still running on a plain hand-over passes with
@@ -583,8 +696,12 @@ the answer.
583
696
  commits on: `main moved: ...`), `no green record of the tip's tree <tree>`; `--rehearse --full`
584
697
  rehearses every lot (`--full`). The decisions go to `rehearsal.json` in the hand-over folder
585
698
  (when, and per lot its tree, `reused` or `rehearsed`, the reason and the record reused: mode, time,
586
- HEAD). When every lot is reused no clone is made: the guards, a reused merge's `tree <sha>`, then
587
- `rehearsal skipped: every lot's tree has a green record` and the card. Otherwise the clone is made and
699
+ HEAD, and `contrib: "run"` on a contributor's last lot whose tree has no green contrib record). When every
700
+ lot is reused and no contrib run is needed, no clone is made: the guards, a reused merge's `tree <sha>`,
701
+ then `rehearsal skipped: every lot's tree has a green record` and the card. Otherwise the clone is made
702
+ (`▶ rehearsal contrib` then runs `dialecte contrib` in it at the lots file's HEAD on the tree the lots
703
+ leave, before any commit, its record going to the repository's store as a rehearsal's; the clone is put
704
+ back after it, the files the run left removed) and
588
705
  the reused lots are committed in it with `--no-verify` (their hook skipped, in the clone only), the
589
706
  others with their hook. A real run (no `--rehearse`) runs every commit's hook, whatever the store holds.
590
707
  The rehearsal clone (`▶ rehearsal clone`) warns naming the untracked files outside
@@ -647,9 +764,43 @@ the answer.
647
764
  (`{}`) in its place, saying so in one line (`lot file archived: <folder>/lot.json`): the next lot on
648
765
  the branch does not inherit its entries. No lot file, an empty one, a rehearsal, a stopped run, or a
649
766
  folder that holds a `lot.json` already (a second run) leave the lot file as it is.
767
+ - `dialecte handover show [<name|folder>] [--json]` prints a hand-over's card again, recomputed from its
768
+ folder (the lots file, the snapshot) and the records - the lots found committed from the lots file's HEAD
769
+ to the tip of its branch, `DONE` when every lot is - and writes nothing: not in the folder, the store,
770
+ the worktree or its index, nor a lock or a run marker. A word without a path separator that names an
771
+ entry of the store is that entry's folder; anything else is a path (relative to the current folder), and
772
+ a registered folder given by its path still gets its name on the card. Without an argument: the newest
773
+ registered hand-over of the current branch (the latest date, then the highest counter, from the name),
774
+ whatever its state; none for the branch: the store's entries, one `name branch state` line each, exit
775
+ 1 (an empty or missing store says so, exit 1). While the folder exists its state is the folder's own
776
+ (abandoned, pending, partly committed, committed, stale); a folder removed is `gone`: listed, never run,
777
+ never shown as a card (exit 1, naming the missing folder). After the box, when a file of a lot not yet committed
778
+ (or `lots.json`) differs from what was reviewed, a deleted one included:
779
+ `<n> file(s) differ from the reviewed snapshot: re-gate, then dialecte handover <folder>/lots.json --rehash`;
780
+ then the run command on its own line, none once done or abandoned. Colour and width as the written
781
+ card. An unknown name, or a folder that is no hand-over: exit 2, naming it. `--json` answers the card
782
+ as data with its `folder` and `name`, as `dialecte handover --json` does, and `changedSinceReview` (the
783
+ count of that line).
784
+ - `dialecte handover run` without a folder runs the one registered hand-over still to run (its folder
785
+ pending or partly committed; `--rehearse` too): an abandoned, committed, stale or gone one is skipped.
786
+ Two or more: refused, nothing run and no run marker, one `name branch verdict` line each (`READY` or
787
+ `BLOCKED`, computed as `show` does), exit 2; none: says so, exit 1. `handover run <name>` runs that
788
+ registered hand-over (a gone one: exit 2, naming its folder).
789
+ - `dialecte handover abandon [<name|folder>]` gives up a hand-over that will not run: it writes
790
+ `abandoned.json` (when) in its folder, records its entry `abandoned`, then removes the lock of its worktree when the lock names this
791
+ folder's `commit.sh` (a lock naming another hand-over is left, said in one line). Without an argument:
792
+ the hand-over the current worktree's lock names; no lock: says nothing is held, exit 1. Refused (exit 2,
793
+ nothing written) while a real run of it is in progress, and once every lot is committed; a partly
794
+ committed one may be abandoned, its commits stay. It never touches the index, a ref or a commit. An
795
+ abandoned hand-over is `abandoned` in `list` and `show`'s listing, `ABANDONED` on its card (no run
796
+ command); `run` without a folder skips it, `run <it>` refuses (exit 2, naming the marker); abandoning it
797
+ again says it already is (exit 0), and `dialecte handover <lots.json> --rehash` of its folder is refused
798
+ (exit 2, nothing written, naming `abandoned.json`): write a new hand-over into a new folder instead. A run
799
+ and an abandon started at the same moment never both go on: each reads the other's marker again after
800
+ writing its own, and one that finds it refuses (exit 2), nothing committed or abandoned.
650
801
  - `dialecte handover list [--root <dir>] [--json]` lists every hand-over folder under the workspace's
651
802
  `_commit-plan/` (or the folder given, or the current one): repository, worktree, branch, lots, age, and
652
- its state - pending, partly committed, committed, or stale when something else moved the branch. A
803
+ its state - pending, partly committed, committed, abandoned, or stale when something else moved the branch. A
653
804
  folder holding a hand-written `commit*.sh` and no lots file shows as "legacy script, state unknown".
654
805
  - `dialecte worktree add <repository> <branch> [--from <ref>] [--json]` makes a worktree under the
655
806
  workspace's `.worktrees/<repository>-<branch tail>` (the last segment of the branch: `core-depth` for
@@ -795,6 +946,10 @@ the answer.
795
946
  `worktree add` makes (`.worktrees/core -> ../core`) are in no item. It reads each worktree with
796
947
  `git --no-optional-locks`, so it never rewrites an index. `handover list` follows a link to a hand-over
797
948
  folder and lists a folder reached by its path and through a link once.
949
+ - `dialecte record standard <folder> consulted <note> | not-consulted <reason>` writes `<folder>/standard.json`
950
+ (`{ state, note, at }`, the note's words joined by single spaces) for the card's `standard` line; the line
951
+ references of what was read stay in the findings ledger. Another state, or no note, is a usage error
952
+ (exit 2); a folder inside a repository is refused as below.
798
953
  - `dialecte record review|decision|snapshot` and `dialecte review delta` keep a lot's review rounds in its
799
954
  hand-over folder (`_commit-plan/<topic>-<date>/`), which stays outside every repository: each refuses a
800
955
  folder inside a git work tree or a git folder (`.git/`, a bare repository). `--` ends the options: the
@@ -881,6 +1036,7 @@ A package tunes them in its package.json:
881
1036
  }
882
1037
  ]
883
1038
  },
1039
+ "profile": "contributor",
884
1040
  "generatedDocs": [".vitepress/data/elements-catalog.json"],
885
1041
  "referencePatterns": ["SPEC-[0-9]+"],
886
1042
  "allowReferences": ["ticket number"],
@@ -892,10 +1048,11 @@ A package tunes them in its package.json:
892
1048
  when it counts no test; `changedOnly: true` marks a step that runs only the tests the change affects,
893
1049
  so "No test files found" passes with a note instead of failing; `restoresGeneratedDocs: true` restores the `generatedDocs` byte for byte after
894
1050
  it); `baseBranch` is the branch
895
- `worktree add` starts from and `worktree prune` compares with (default `main`); `referencePatterns` adds the package's own patterns (extended regular expressions) to the plan
896
- tags and citations `rules` and `handover` refuse; `allowReferences` lifts the generic tags the package commits on
897
- purpose - `ticket number`, `acceptance criterion`, `plan tag` (an app that cites its issue numbers) - and
898
- refuses any other label: a citation of a standard is never allowed. A lot may hold a symbolic link, a link to a
1051
+ `worktree add` starts from and `worktree prune` compares with (default `main`); `referencePatterns` adds the package's own patterns (extended regular expressions) to the
1052
+ citations (and, in a contributor, the tags) `rules` and `handover` refuse; `allowReferences` is the contributor's
1053
+ opt-out: it lifts generic tags a contributor commits on purpose - `ticket number`, `acceptance criterion`,
1054
+ `plan tag` - and refuses any other label in either profile: a citation of a standard is never allowed. A consumer
1055
+ allows every tag already, so `allowReferences` changes nothing there (`dialecte doctor` says to remove it). A lot may hold a symbolic link, a link to a
899
1056
  folder included: it is hashed and scanned as its target text and committed as a link, the way git stores it (a
900
1057
  rehearsal copies it as the same relative link).
901
1058