Repository navigation
Commit 9b01484
plugin-dev: walk anchored mapping headers; count a block indentation indicator from its key
Fifth review of the validator (two findings, each shown against the
previous commit with a fresh runtime observation):
- `metadata: &meta` — a mapping header carrying only a node property —
was taken for a scalar, so the first pass skipped the keys under it
and an anchor defined there was never seen; `description: *trigger`
then read as the literal `*trigger`. A header whose value is empty
after its properties is walked into.
- An explicit indentation indicator on a block scalar (`>2-`, `|2-`)
was counted from column 0. YAML counts it from the indentation of the
node's parent, so for an anchored block under a key indented two
spaces the content starts at four; the text kept two spaces and a
stray newline. The indicator is now added to the owning key's indent
(zero for the description key itself, so nothing changes there).
validate-agent.test.sh adds the three shapes (r36-r38): 92 shapes with
the verdict equal to the product's plus policy on 92/92, text equal to
the runtime's on 69/69. Against the previous commit's script r36-r38
fail. The suite passes under gawk, mawk, busybox awk and BWK awk.
Co-Authored-By: Claude Fable 5.1 <[email protected]>1 parent 3627abc commit 9b01484
2 files changed
Lines changed: 31 additions & 1 deletion
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
229 | 229 | | |
230 | 230 | | |
231 | 231 | | |
232 | | - | |
| 232 | + | |
233 | 233 | | |
234 | 234 | | |
235 | 235 | | |
| |||
285 | 285 | | |
286 | 286 | | |
287 | 287 | | |
| 288 | + | |
288 | 289 | | |
289 | 290 | | |
290 | 291 | | |
| |||
Lines changed: 29 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
71 | 71 | | |
72 | 72 | | |
73 | 73 | | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
74 | 79 | | |
75 | 80 | | |
76 | 81 | | |
| |||
472 | 477 | | |
473 | 478 | | |
474 | 479 | | |
| 480 | + | |
| 481 | + | |
| 482 | + | |
| 483 | + | |
| 484 | + | |
| 485 | + | |
| 486 | + | |
| 487 | + | |
| 488 | + | |
| 489 | + | |
| 490 | + | |
| 491 | + | |
| 492 | + | |
| 493 | + | |
| 494 | + | |
| 495 | + | |
| 496 | + | |
| 497 | + | |
| 498 | + | |
| 499 | + | |
| 500 | + | |
475 | 501 | | |
476 | 502 | | |
477 | 503 | | |
| |||
615 | 641 | | |
616 | 642 | | |
617 | 643 | | |
| 644 | + | |
| 645 | + | |
| 646 | + | |
618 | 647 | | |
619 | 648 | | |
620 | 649 | | |
| |||
0 commit comments