@erclx/aitk 3.34.1 → 3.35.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.
- package/claude/.claude-plugin/plugin.json +1 -1
- package/claude/skills/claude-orchestrate/references/orchestrator-dispatch.md +3 -1
- package/docs/agents/markdown-audit.md +2 -2
- package/docs/agents/tasks.md +20 -0
- package/package.json +1 -1
- package/src/commands/markdown.ts +1 -1
- package/src/commands/tasks.ts +16 -0
- package/src/markdown/structure.ts +68 -14
- package/src/tasks/validate.ts +112 -6
- package/standards/markdown.md +2 -1
|
@@ -37,7 +37,9 @@ No count binds this. List the files the candidate's plan touches, from its `**Fi
|
|
|
37
37
|
|
|
38
38
|
The board is not the whole set. A track a person launched by hand carries no row, so that column cannot see it, which is the ordinary shape whenever the operator is launching rather than dispatching. Read `aitk sessions list --json` for the branches in flight, and take the file set of any branch no row names from the plan that branch is building. A candidate cleared against the board alone is cleared against a partial reading.
|
|
39
39
|
|
|
40
|
-
Take the comparison at the file path rather than at a folder above it. `aitk tasks validate` compares
|
|
40
|
+
Take the comparison at the file path rather than at a folder above it. `aitk tasks validate` compares the paths each row wrote, so a collision it reports on a folder means a row's Touches cell claimed that folder rather than the verb widening anything. On 2026-08-28 it called two rows colliding on `src` because one cell named the bare folder while the other wrote `src/markdown/structure.ts`, which this paragraph once misread as the verb comparing path segments too coarsely.
|
|
41
|
+
|
|
42
|
+
The finding names which row contributed the containing path, and a bare-folder cell reports as a claim of its own beside the findings. Read that output as a candidate list, settle each pair by file, and narrow the cell that over-claimed rather than discounting the collision it caused.
|
|
41
43
|
|
|
42
44
|
Disjointness is necessary and not sufficient, so hold a candidate whose sets do not touch when a stated reason serializes it, and write the reason on the hold. One row creating a skill and another auditing that catalog and counting it write nothing in common, measured 2026-08-27, and dispatching both still leaves the audit counting a denominator that moves underneath it. Nothing verifies that a reason was written, so the rule holds only while the dispatcher applies it.
|
|
43
45
|
|
|
@@ -61,7 +61,7 @@ Two ban shapes stay unmeasured and the report says so on every run. A multi-word
|
|
|
61
61
|
|
|
62
62
|
### Bullets, paragraphs, and depth
|
|
63
63
|
|
|
64
|
-
Bullet weight and depth are the checks that moved off `aitk context audit`, carrying what they measured at the time. A top-level bullet reports past roughly 400 characters with continuation lines folded in and nested items left out. A run reports past roughly 40 rendered lines, measured at 80 columns, where a heading breaks one and so does a bold section marker taking the whole line at column zero
|
|
64
|
+
Bullet weight and depth are the checks that moved off `aitk context audit`, carrying what they measured at the time. A top-level bullet reports past roughly 400 characters with continuation lines folded in and nested items left out. A run reports past roughly 40 rendered lines, measured at 80 columns, where a heading breaks one and so does a bold section marker taking the whole line at column zero, either ending in a colon, or holding one whole code span at any width, or running to 20 characters or fewer, skipping fenced blocks and exempting a flat peer list averaging under 130 characters a bullet and a run that is entirely table rows. Each file reports its longest run alone, so a second run past the checkpoint in the same file is never named.
|
|
65
65
|
|
|
66
66
|
Every weight and depth measure counts the text a reader is shown. A link reduces to its anchor text and an autolink drops whole, since no reader is shown either destination. A backticked path stays counted, which is where these measures part from the ban scan above: that one blanks a code span so a standard quoting its own banned character does not report itself, and discounting the same span here would under-report a paragraph carrying several. One file holds both span sets and each answers its own question.
|
|
67
67
|
|
|
@@ -136,7 +136,7 @@ Measured at `4b7b13a2` across 444 files with the paragraph checkpoint at 600: 8
|
|
|
136
136
|
|
|
137
137
|
The ban half reached zero, which was the precondition the gate waited on, and it was re-measured against the same corpus at the moment the gate landed. Three sweep slices then took the structural half, and the corpus reports 1 heavy bullet and 22 heavy paragraphs across 6 files on 2026-08-06, every one on a ground the triage record holds as exempt.
|
|
138
138
|
|
|
139
|
-
Depth is the one measure no slice triaged, so its figure moved with the sweep rather than with the corpus. The break rule widened to bold section markers on 2026-08-28
|
|
139
|
+
Depth is the one measure no slice triaged, so its figure moved with the sweep rather than with the corpus. The break rule widened to bold section markers on 2026-08-28 and again to the colon-less ones the same day, and each drop came with no edit to any file, so the 41 above reads against a rule the command no longer runs. Read all four structural counts from a run rather than from this paragraph.
|
|
140
140
|
|
|
141
141
|
### What a hit asks of an author
|
|
142
142
|
|
package/docs/agents/tasks.md
CHANGED
|
@@ -129,6 +129,8 @@ A backlog line is a bullet carrying a link to a sibling task, since the backlog
|
|
|
129
129
|
|
|
130
130
|
The collision check is the one a person cannot run by eye. Paths come from the backticked spans in the Touches column, a span naming no file is dropped, and a directory collides with any file beneath it. A `## Run now` row whose column parses to nothing is reported rather than skipped, since a row stating no file set makes a claim nothing can check.
|
|
131
131
|
|
|
132
|
+
Where a directory holds the other row's file, the finding names the row that claimed it, reading `both touch src/tasks, which v2.0-second claims as a folder.` The shared strings alone leave an over-broad cell and a genuine overlap identical, which is how a correct report was once read as the verb comparing folders rather than files.
|
|
133
|
+
|
|
132
134
|
The blocker check re-takes a measurement the board records once and never repeats. Two of the five blocker kinds put a fact on disk: a dependency is settled by the cited task being archived or by its work reaching the trunk, and a collision is settled by nothing under `## Run now` still holding the file the cell cites.
|
|
133
135
|
|
|
134
136
|
A closed outcome is not the fact the dependency half needs. The ship chain marks outcomes as its first step and opens the pull request several steps later, so a check reading the checkbox reports the row settled while the branch is still in review. A live task therefore settles the row only once it closed every outcome and carries a `Pull request:` line the trunk holds. One that names no pull request, and one whose number no trunk ref could answer for, land in the untested array below rather than being settled or left silent.
|
|
@@ -155,6 +157,24 @@ The other three kinds rest on a person's judgment, so a row neither half reached
|
|
|
155
157
|
|
|
156
158
|
An untested row is not a finding and moves no exit code. Reading a clean findings list as a clean board is the failure the array exists to prevent, and `orchestrator-parked.md` is the pass that takes those rows by hand.
|
|
157
159
|
|
|
160
|
+
A `## Run now` row whose Touches column names a bare folder lands in a third array on the same reasoning:
|
|
161
|
+
|
|
162
|
+
```json
|
|
163
|
+
{
|
|
164
|
+
"claims": [
|
|
165
|
+
{
|
|
166
|
+
"group": "Run now",
|
|
167
|
+
"subject": "v1.0-first",
|
|
168
|
+
"message": "claims the whole src/tasks folder, so it collides with every row written under it."
|
|
169
|
+
}
|
|
170
|
+
]
|
|
171
|
+
}
|
|
172
|
+
```
|
|
173
|
+
|
|
174
|
+
That claim collides with every row a later session writes under the folder, and it is legitimate whenever the row does rewrite the directory, so the array states the reach and moves no exit code. A measure failing on a cell that is right teaches a reader to skip it. Folder against file is decided by asking the tree for a path that resolves, and by the extension only for a path the row has yet to create, since the name alone reads a file carrying no extension as a folder.
|
|
175
|
+
|
|
176
|
+
The scan reaches `## Run now` and stops, where the collision check stops. A cell in another group describes work nobody has planned, written as a sentence and rewritten once a plan exists, so a claim read off one reports on prose rather than on a file set. A parked folder claim surfaces when its row is promoted, which is when the cell becomes something a dispatcher can act on.
|
|
177
|
+
|
|
158
178
|
Exit codes: `0` every check passed, `1` refused, `2` at least one finding. The `reason` field carries which gate refused: `no-board`, `no-ordering`, or `no-groups`. A board grouping under headings of its own trips `no-groups` rather than being read against columns it never declared.
|
|
159
179
|
|
|
160
180
|
Columns are read from each table's own header rather than by position, so a project whose board differs from this one is reported for what it lacks. The `index`, `priority`, and `backlog` siblings are skipped, along with every pre-compaction handoff, which takes one file per session under a `session-` prefix. None of them is a task, and a handoff counted as one would be reported as a task carrying no row on every session that wrote one.
|
package/package.json
CHANGED
package/src/commands/markdown.ts
CHANGED
|
@@ -520,7 +520,7 @@ function reportDepth(
|
|
|
520
520
|
'A run that is entirely table rows is excluded too, since a heading inside a table splits the table rather than the run.',
|
|
521
521
|
)
|
|
522
522
|
logInfo(
|
|
523
|
-
'A heading breaks a run and so does a bold section marker at column zero
|
|
523
|
+
'A heading breaks a run and so does a bold section marker at column zero, such as a line reading only Risks in bold. A colon-less one breaks when it holds one whole code span, or when it runs to 20 characters or fewer, and an indented one stays prose.',
|
|
524
524
|
)
|
|
525
525
|
|
|
526
526
|
const over = reports
|
package/src/commands/tasks.ts
CHANGED
|
@@ -17,6 +17,7 @@ import {
|
|
|
17
17
|
} from '@/tasks/record'
|
|
18
18
|
import {
|
|
19
19
|
type Finding,
|
|
20
|
+
type FolderClaim,
|
|
20
21
|
type Untested,
|
|
21
22
|
type ValidateOutcome,
|
|
22
23
|
validateBoard,
|
|
@@ -581,6 +582,16 @@ function reportValidation(
|
|
|
581
582
|
)
|
|
582
583
|
for (const row of outcome.untested) logWarn(describeUntested(row))
|
|
583
584
|
}
|
|
585
|
+
|
|
586
|
+
// A folder claim is often the correct way to say a row rewrites a whole
|
|
587
|
+
// directory, so it reports beside the findings and moves no exit code. A
|
|
588
|
+
// measure that fails on a legitimate cell trains a reader to skip it.
|
|
589
|
+
logStep('Folder claims')
|
|
590
|
+
if (outcome.claims.length === 0) {
|
|
591
|
+
logInfo('every run now row names files rather than folders')
|
|
592
|
+
} else {
|
|
593
|
+
for (const claim of outcome.claims) logWarn(describeClaim(claim))
|
|
594
|
+
}
|
|
584
595
|
outro()
|
|
585
596
|
}
|
|
586
597
|
|
|
@@ -594,6 +605,7 @@ function reportValidation(
|
|
|
594
605
|
tasks: outcome.tasks,
|
|
595
606
|
findings: outcome.findings,
|
|
596
607
|
untested: outcome.untested,
|
|
608
|
+
claims: outcome.claims,
|
|
597
609
|
})}\n`,
|
|
598
610
|
)
|
|
599
611
|
}
|
|
@@ -610,6 +622,10 @@ function describeUntested(row: Untested): string {
|
|
|
610
622
|
return `${row.group}: ${row.subject} ${row.message}`
|
|
611
623
|
}
|
|
612
624
|
|
|
625
|
+
function describeClaim(claim: FolderClaim): string {
|
|
626
|
+
return `${claim.group}: ${claim.subject} ${claim.message}`
|
|
627
|
+
}
|
|
628
|
+
|
|
613
629
|
async function runArchive(
|
|
614
630
|
task: string | undefined,
|
|
615
631
|
opts: ArchiveCommandOptions,
|
|
@@ -19,19 +19,51 @@ const HEADING = /^#{1,6}\s/
|
|
|
19
19
|
* headings was the alternative and it clears no plan already written, leaving
|
|
20
20
|
* each flagged until someone rewrites it.
|
|
21
21
|
*
|
|
22
|
-
* The marker starts at column zero and
|
|
23
|
-
*
|
|
24
|
-
*
|
|
25
|
-
*
|
|
26
|
-
*
|
|
27
|
-
*
|
|
28
|
-
*
|
|
29
|
-
*
|
|
30
|
-
*
|
|
31
|
-
*
|
|
32
|
-
*
|
|
22
|
+
* The marker starts at column zero and the whole line is the marker or none of
|
|
23
|
+
* it is. A bold phrase opening a sentence is emphasis rather than a seam, and
|
|
24
|
+
* an indented one is a label inside a list item, so both stay prose. This ships
|
|
25
|
+
* as package data every project reads, where a missed break costs one unbroken
|
|
26
|
+
* run and a false one shortens every run around it until the measure stops
|
|
27
|
+
* reporting, which is the dearer of the two.
|
|
28
|
+
*
|
|
29
|
+
* A colon ends most markers and not all of them. `claude-pr-review` writes
|
|
30
|
+
* three colon-less ones into every body it posts and a bold path heading for
|
|
31
|
+
* each file it reviews, so requiring the colon held a real seam out. Two
|
|
32
|
+
* signals stand in where the colon is absent, because the shape a marker has to
|
|
33
|
+
* be told from is a sentence set in bold and no one test separates both kinds
|
|
34
|
+
* of marker from it.
|
|
35
|
+
*
|
|
36
|
+
* A label that is one whole code span breaks at any width. A path runs long and
|
|
37
|
+
* a sentence set in bold is never a single span, so shape settles this half
|
|
38
|
+
* where width cannot. Across 81 colon-less markers in the review bodies posted
|
|
39
|
+
* on this repository, the 30 path headings run from 20 to 70 characters, and no
|
|
40
|
+
* colon-less line in the records tree is a whole span at all, so the rule adds
|
|
41
|
+
* reach without adding a false break.
|
|
42
|
+
*
|
|
43
|
+
* `MARKER_WIDTH` covers the rest and is read off the corpus rather than picked.
|
|
44
|
+
* Of the remaining 51 markers in those review bodies, 50 sit at or under 20
|
|
45
|
+
* visible characters, and so do 48 of the 94 colon-less lines in the records
|
|
46
|
+
* tree at `9960a4d7`, every one of them a label. The 21 to 30 band above it
|
|
47
|
+
* holds 8 lines nobody can classify on sight, where `One change across four
|
|
48
|
+
* files.` reads as a sentence and `Rule plus a mechanical half` reads as a
|
|
49
|
+
* seam, so the ceiling sits under that band rather than over it. That is where
|
|
50
|
+
* the asymmetry above points, a false break being the dearer error. Terminal
|
|
51
|
+
* punctuation separates nothing, since 45 of the 48 shortest colon-less lines
|
|
52
|
+
* end in one.
|
|
53
|
+
*
|
|
54
|
+
* Both signals govern the colon-less shape alone. A colon is its own evidence
|
|
55
|
+
* of a label, and capping the colon form as well takes the break back from four
|
|
56
|
+
* markers between 31 and 50 characters that already have it, every one of them
|
|
57
|
+
* a genuine section marker.
|
|
58
|
+
*
|
|
59
|
+
* One marker in that review corpus is reached by neither signal, a 48-character
|
|
60
|
+
* heading a session wrote by hand rather than from the template. Widening to
|
|
61
|
+
* catch it means raising the ceiling back through the band, so it is left as
|
|
62
|
+
* the cheap error the asymmetry above already names.
|
|
33
63
|
*/
|
|
34
|
-
const
|
|
64
|
+
const BOLD_LINE = /^\*\*([^*]+)\*\*\s*$/
|
|
65
|
+
const SPAN_LABEL = /^`[^`]+`$/
|
|
66
|
+
const MARKER_WIDTH = 20
|
|
35
67
|
|
|
36
68
|
const LIST_ITEM = /^(\s*)([-*+]|\d+\.)\s+/
|
|
37
69
|
const TABLE_ROW = /^\s*\|/
|
|
@@ -272,11 +304,33 @@ function isTableRun(run: readonly BodyLine[]): boolean {
|
|
|
272
304
|
return separators > 0
|
|
273
305
|
}
|
|
274
306
|
|
|
307
|
+
/**
|
|
308
|
+
* Reports whether a line is a section marker rather than emphasis.
|
|
309
|
+
*
|
|
310
|
+
* `BOLD_LINE` fixes the shape, and a colon-less label then answers to
|
|
311
|
+
* `SPAN_LABEL` or to `MARKER_WIDTH`, per the record above. Both read visible
|
|
312
|
+
* text, which reduces a link to its anchor text and leaves a backticked path
|
|
313
|
+
* counted whole, the same reading `isScannablePeerList` takes. The reduction is
|
|
314
|
+
* what lets a linked path reach the span test at all, since the markup around
|
|
315
|
+
* it would fail the pattern the destination is still attached.
|
|
316
|
+
*/
|
|
317
|
+
function isSectionMarker(text: string): boolean {
|
|
318
|
+
const marker = text.match(BOLD_LINE)
|
|
319
|
+
if (!marker) return false
|
|
320
|
+
|
|
321
|
+
const label = marker[1]
|
|
322
|
+
if (label.endsWith(':')) return true
|
|
323
|
+
|
|
324
|
+
const visible = visibleText(label)
|
|
325
|
+
|
|
326
|
+
return SPAN_LABEL.test(visible) || visible.length <= MARKER_WIDTH
|
|
327
|
+
}
|
|
328
|
+
|
|
275
329
|
/**
|
|
276
330
|
* Measures the longest run of lines no signpost breaks, in rendered lines.
|
|
277
331
|
*
|
|
278
332
|
* A heading breaks a run and so does a section marker, which is the same
|
|
279
|
-
* signpost written the way a template asked for it. `
|
|
333
|
+
* signpost written the way a template asked for it. `isSectionMarker` above
|
|
280
334
|
* fixes which lines qualify.
|
|
281
335
|
*
|
|
282
336
|
* Fenced lines are skipped rather than treated as breaks, per the standard:
|
|
@@ -325,7 +379,7 @@ export function longestRun(
|
|
|
325
379
|
for (const line of lines) {
|
|
326
380
|
if (line.fenced) continue
|
|
327
381
|
|
|
328
|
-
if (HEADING.test(line.text) ||
|
|
382
|
+
if (HEADING.test(line.text) || isSectionMarker(line.text)) {
|
|
329
383
|
close()
|
|
330
384
|
continue
|
|
331
385
|
}
|
package/src/tasks/validate.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { existsSync } from 'node:fs'
|
|
1
|
+
import { existsSync, statSync } from 'node:fs'
|
|
2
2
|
import { readdir, readFile } from 'node:fs/promises'
|
|
3
3
|
import { join, resolve } from 'node:path'
|
|
4
4
|
import {
|
|
@@ -63,6 +63,19 @@ export interface Untested {
|
|
|
63
63
|
readonly message: string
|
|
64
64
|
}
|
|
65
65
|
|
|
66
|
+
/**
|
|
67
|
+
* A `Touches` cell naming a bare folder, which claims every file under it and
|
|
68
|
+
* so collides with every row a later session writes there. The claim is often
|
|
69
|
+
* correct, since a row rewriting a whole directory has no other way to say so,
|
|
70
|
+
* which is why it reports beside the findings rather than inside them and moves
|
|
71
|
+
* no exit code.
|
|
72
|
+
*/
|
|
73
|
+
export interface FolderClaim {
|
|
74
|
+
readonly group: BoardGroup
|
|
75
|
+
readonly subject: string
|
|
76
|
+
readonly message: string
|
|
77
|
+
}
|
|
78
|
+
|
|
66
79
|
/**
|
|
67
80
|
* A backlog line, which carries a pointer and nothing else. The backlog is
|
|
68
81
|
* explicitly unordered, so a line has no position to read and no columns to
|
|
@@ -91,6 +104,7 @@ export interface ValidateReport {
|
|
|
91
104
|
readonly tasks: number
|
|
92
105
|
readonly findings: readonly Finding[]
|
|
93
106
|
readonly untested: readonly Untested[]
|
|
107
|
+
readonly claims: readonly FolderClaim[]
|
|
94
108
|
}
|
|
95
109
|
|
|
96
110
|
export interface ValidateRefused {
|
|
@@ -164,6 +178,23 @@ function sharesPath(left: string, right: string): boolean {
|
|
|
164
178
|
)
|
|
165
179
|
}
|
|
166
180
|
|
|
181
|
+
/**
|
|
182
|
+
* Whether a `Touches` path names a directory. The tree answers for a path that
|
|
183
|
+
* resolves, which is the only reading that separates a folder from a file
|
|
184
|
+
* carrying no extension, such as a hook script.
|
|
185
|
+
*
|
|
186
|
+
* A path the row has yet to create resolves to nothing, so the name decides
|
|
187
|
+
* there. `readPaths` admits a span for one of two reasons, a slash or an
|
|
188
|
+
* extension, so a span surviving without an extension is one a slash let
|
|
189
|
+
* through and reads as a folder.
|
|
190
|
+
*/
|
|
191
|
+
function isFolder(path: string, root: string): boolean {
|
|
192
|
+
const target = resolve(root, path)
|
|
193
|
+
if (existsSync(target)) return statSync(target).isDirectory()
|
|
194
|
+
|
|
195
|
+
return !/\.[A-Za-z][A-Za-z0-9]*$/.test(path)
|
|
196
|
+
}
|
|
197
|
+
|
|
167
198
|
function splitCells(line: string): string[] {
|
|
168
199
|
return line
|
|
169
200
|
.trim()
|
|
@@ -457,17 +488,22 @@ function checkCollisions(rows: readonly BoardRow[]): Finding[] {
|
|
|
457
488
|
for (let j = i + 1; j < ready.length; j += 1) {
|
|
458
489
|
const left = ready[i]
|
|
459
490
|
const right = ready[j]
|
|
460
|
-
const shared = (left.touches ?? []).
|
|
461
|
-
(right.touches ?? []).
|
|
462
|
-
|
|
491
|
+
const shared = (left.touches ?? []).flatMap((path) => {
|
|
492
|
+
const other = (right.touches ?? []).find((candidate) =>
|
|
493
|
+
sharesPath(path, candidate),
|
|
494
|
+
)
|
|
495
|
+
return other === undefined
|
|
496
|
+
? []
|
|
497
|
+
: [describeShared(path, other, left, right)]
|
|
498
|
+
})
|
|
463
499
|
|
|
464
500
|
if (shared.length === 0) continue
|
|
465
501
|
|
|
466
502
|
findings.push({
|
|
467
503
|
kind: 'touches-collided',
|
|
468
504
|
group: 'Run now',
|
|
469
|
-
subject: `${left
|
|
470
|
-
message: `both touch ${shared
|
|
505
|
+
subject: `${subjectOf(left)} and ${subjectOf(right)}`,
|
|
506
|
+
message: `both touch ${joinShared(shared)}.`,
|
|
471
507
|
})
|
|
472
508
|
}
|
|
473
509
|
}
|
|
@@ -475,6 +511,75 @@ function checkCollisions(rows: readonly BoardRow[]): Finding[] {
|
|
|
475
511
|
return findings
|
|
476
512
|
}
|
|
477
513
|
|
|
514
|
+
function subjectOf(row: BoardRow): string {
|
|
515
|
+
return row.stem ?? row.label
|
|
516
|
+
}
|
|
517
|
+
|
|
518
|
+
/**
|
|
519
|
+
* Names one path two rows share, and the row that claimed it as a folder when
|
|
520
|
+
* one side named a directory holding the other's file. Which side contributed
|
|
521
|
+
* the containing path is the fact a reader acts on, and printing the shared
|
|
522
|
+
* strings alone leaves an over-broad cell and a genuine overlap identical.
|
|
523
|
+
*
|
|
524
|
+
* The shorter path is the container, because `sharesPath` holds for an unequal
|
|
525
|
+
* pair only when one is a prefix of the other up to a separator.
|
|
526
|
+
*/
|
|
527
|
+
function describeShared(
|
|
528
|
+
path: string,
|
|
529
|
+
other: string,
|
|
530
|
+
left: BoardRow,
|
|
531
|
+
right: BoardRow,
|
|
532
|
+
): string {
|
|
533
|
+
if (path === other) return path
|
|
534
|
+
|
|
535
|
+
const container = path.length < other.length ? path : other
|
|
536
|
+
const owner = container === path ? left : right
|
|
537
|
+
return `${container}, which ${subjectOf(owner)} claims as a folder`
|
|
538
|
+
}
|
|
539
|
+
|
|
540
|
+
/**
|
|
541
|
+
* A folder clause carries a comma of its own, so a comma between clauses would
|
|
542
|
+
* read as another path. The plain list keeps the comma it has always had.
|
|
543
|
+
*/
|
|
544
|
+
function joinShared(clauses: readonly string[]): string {
|
|
545
|
+
const separator = clauses.some((clause) => clause.includes(',')) ? '; ' : ', '
|
|
546
|
+
return clauses.join(separator)
|
|
547
|
+
}
|
|
548
|
+
|
|
549
|
+
/**
|
|
550
|
+
* Reports a `Touches` cell naming a bare folder. The claim collides with every
|
|
551
|
+
* row a later session writes under that folder, and it is legitimate whenever
|
|
552
|
+
* the row does rewrite the directory, so this states the reach rather than
|
|
553
|
+
* calling it a defect.
|
|
554
|
+
*
|
|
555
|
+
* The scan takes `## Run now` alone, where `checkCollisions` takes it. A cell in
|
|
556
|
+
* another group describes work nobody has planned, so it is written as a
|
|
557
|
+
* sentence and rewritten at planning time, and a claim read off one reports on
|
|
558
|
+
* prose rather than on a file set. That is the shape that teaches a reader to
|
|
559
|
+
* skip the report. A parked folder claim surfaces when the row is promoted,
|
|
560
|
+
* which is also when its cell becomes a set anything can act on.
|
|
561
|
+
*/
|
|
562
|
+
function checkFolderClaims(
|
|
563
|
+
rows: readonly BoardRow[],
|
|
564
|
+
root: string,
|
|
565
|
+
): FolderClaim[] {
|
|
566
|
+
const claims: FolderClaim[] = []
|
|
567
|
+
|
|
568
|
+
for (const row of rows.filter((candidate) => candidate.group === 'Run now')) {
|
|
569
|
+
for (const path of row.touches ?? []) {
|
|
570
|
+
if (!isFolder(path, root)) continue
|
|
571
|
+
|
|
572
|
+
claims.push({
|
|
573
|
+
group: row.group,
|
|
574
|
+
subject: subjectOf(row),
|
|
575
|
+
message: `claims the whole ${path} folder, so it collides with every row written under it.`,
|
|
576
|
+
})
|
|
577
|
+
}
|
|
578
|
+
}
|
|
579
|
+
|
|
580
|
+
return claims
|
|
581
|
+
}
|
|
582
|
+
|
|
478
583
|
/**
|
|
479
584
|
* Reads the task a blocker cell cites. A task pointer is a bare sibling
|
|
480
585
|
* filename, the way every `Task` column spells one, so a target carrying a
|
|
@@ -734,5 +839,6 @@ export async function validateBoard(
|
|
|
734
839
|
tasks: stems.length,
|
|
735
840
|
findings,
|
|
736
841
|
untested: parked.untested,
|
|
842
|
+
claims: checkFolderClaims(rows, root),
|
|
737
843
|
}
|
|
738
844
|
}
|
package/standards/markdown.md
CHANGED
|
@@ -37,7 +37,8 @@ Does not govern:
|
|
|
37
37
|
- Exempt a block whose lines are all table rows, at any length. The peer list above is exempt because it is already navigable, and a table because the remedy does not exist: a subheading dropped inside one splits the table rather than the run, so no edit short of rewriting it as a list clears the checkpoint.
|
|
38
38
|
- Prose either side of the table ends that exemption, since the block has a seam and a heading breaks it there.
|
|
39
39
|
- Break a run on a bold section marker holding its line alone, the way a heading breaks one. A document whose template separates sections with `**Risks:**` rather than `## Risks` has written the seam a reader lands on, and reading only the heading reported every such file at its full length whatever it carried.
|
|
40
|
-
- Require the marker to start at column zero and to
|
|
40
|
+
- Require the marker to start at column zero and to be the whole line. `**Risks:**` breaks a run, a bold phrase opening a sentence stays emphasis, and an indented one stays a label inside its list item.
|
|
41
|
+
- Break a colon-less marker on either of two signals, since no one test separates every marker from a sentence set in bold. A label that is one whole code span breaks at any width, which is how a bold line holding only a backticked path reads as the file heading it is. Anything else breaks at 20 characters or fewer, which reaches `**Testing**` and leaves a bold sentence as prose.
|
|
41
42
|
|
|
42
43
|
## Paragraphs and lists
|
|
43
44
|
|