Sync schemas to pack-spec 4.20.0: the hand-rolled validator passes two new invalid fixtures #47

Open
opened 2026-11-22 10:32:18 +00:00 by svc-agent-writer · 0 comments
Collaborator

Filed under: follow-ups round 2026-11-22 (operator word ~/src/_architect/afk-batch-2026-11-22/operator-word-followups.md, sha256 7056b2c277c5). Found while landing #40 (PR #44, 3ee6e76).

What happens

schemas/version.json says 4.12.0 at main 4918e60. Stallari/pack-spec main (59313bc) is at 4.20.0. CI does not compare schemas/ with pack-spec, so the lag stays green.

make sync-pack-spec PACK_SPEC_DIR=<pack-spec at 59313bc> on main 3ee6e76 (measured 2026-11-22 on voyager, scratch worktree, nothing pushed) changes:

File Change
schemas/version.json 4.12.0 to 4.20.0
schemas/stallari-add-on.schema.json 296 lines changed
schemas/stallari-pack.schema.json 47 lines changed
schemas/schema-enums.json +11
schemas/error-codes.json +8
schemas/tool-groups.json +4 (the lens group, #39)
schemas/fixtures/invalid/ new unknown-attention-ceiling.yaml, unknown-receipt-disposition.yaml
schemas/fixtures/valid/ new spec-version-3.0.0-attention-ceiling.yaml, spec-version-3.0.0-sealed-credentials-deprecated.yaml, spec-version-3.0.0-track-lifecycle-receipts.yaml

The CI steps on the synced tree:

  • build-forge-context.js, validate-packs.js, security-scan.js and build-catalog.js exit 0.
  • node --test scripts/*.test.js gives 230 tests, 213 pass, 2 fail, 15 skipped.

Both failures are in scripts/validate-packs.fixtures.test.js:145 (pack-spec fixture corpus — invalid), with expected invalid, got valid:

  • unknown-attention-ceiling.yaml (attention_ceiling: shouty)
  • unknown-receipt-disposition.yaml

The hand-rolled validatePack() in scripts/validate-packs.js checks neither attention_ceiling nor the receipts disposition map (pack-spec 4.16.0, ADR-0039 slice 1). So the sync is not a copy: the validator needs two new checks, or a ruling to list the two codes in SKIPPED_CODES.

Expected

  • schemas/ matches pack-spec dist/json/ and fixtures/ at the 4.20.0 release, and schemas/version.json says 4.20.0.
  • validatePack() rejects an unknown attention_ceiling value and an unknown receipts disposition, and CODE_PATTERNS has a pattern for each code.
  • This covers #39 (tool-groups.json and the lens group).

Acceptance criteria

  • make sync-pack-spec against pack-spec 4.20.0 leaves no diff.
  • node --test scripts/*.test.js passes with 0 fail, and both new invalid fixtures fail validation with their expected code.
  • The three new valid fixtures pass.
  • validate-packs.js and build-catalog.js still exit 0 on the pinned stallari-packs.
  • CI validation is green.

Not decided here

  • Whether to check the two codes in the hand-rolled validator or skip them in SKIPPED_CODES.
  • Whether CI should fail when schemas/ lags pack-spec.

Blocked by

None - can start immediately

Filed under: follow-ups round 2026-11-22 (operator word `~/src/_architect/afk-batch-2026-11-22/operator-word-followups.md`, sha256 7056b2c277c5). Found while landing #40 (PR #44, `3ee6e76`). ## What happens `schemas/version.json` says `4.12.0` at main `4918e60`. Stallari/pack-spec main (`59313bc`) is at `4.20.0`. CI does not compare `schemas/` with pack-spec, so the lag stays green. `make sync-pack-spec PACK_SPEC_DIR=<pack-spec at 59313bc>` on main `3ee6e76` (measured 2026-11-22 on voyager, scratch worktree, nothing pushed) changes: | File | Change | |---|---| | `schemas/version.json` | 4.12.0 to 4.20.0 | | `schemas/stallari-add-on.schema.json` | 296 lines changed | | `schemas/stallari-pack.schema.json` | 47 lines changed | | `schemas/schema-enums.json` | +11 | | `schemas/error-codes.json` | +8 | | `schemas/tool-groups.json` | +4 (the `lens` group, #39) | | `schemas/fixtures/invalid/` | new `unknown-attention-ceiling.yaml`, `unknown-receipt-disposition.yaml` | | `schemas/fixtures/valid/` | new `spec-version-3.0.0-attention-ceiling.yaml`, `spec-version-3.0.0-sealed-credentials-deprecated.yaml`, `spec-version-3.0.0-track-lifecycle-receipts.yaml` | The CI steps on the synced tree: - `build-forge-context.js`, `validate-packs.js`, `security-scan.js` and `build-catalog.js` exit 0. - `node --test scripts/*.test.js` gives 230 tests, 213 pass, **2 fail**, 15 skipped. Both failures are in `scripts/validate-packs.fixtures.test.js:145` (`pack-spec fixture corpus — invalid`), with `expected invalid, got valid`: - `unknown-attention-ceiling.yaml` (`attention_ceiling: shouty`) - `unknown-receipt-disposition.yaml` The hand-rolled `validatePack()` in `scripts/validate-packs.js` checks neither `attention_ceiling` nor the `receipts` disposition map (pack-spec 4.16.0, ADR-0039 slice 1). So the sync is not a copy: the validator needs two new checks, or a ruling to list the two codes in `SKIPPED_CODES`. ## Expected - `schemas/` matches pack-spec `dist/json/` and `fixtures/` at the 4.20.0 release, and `schemas/version.json` says `4.20.0`. - `validatePack()` rejects an unknown `attention_ceiling` value and an unknown `receipts` disposition, and `CODE_PATTERNS` has a pattern for each code. - This covers #39 (`tool-groups.json` and the `lens` group). ## Acceptance criteria - [ ] `make sync-pack-spec` against pack-spec 4.20.0 leaves no diff. - [ ] `node --test scripts/*.test.js` passes with 0 fail, and both new invalid fixtures fail validation with their expected code. - [ ] The three new valid fixtures pass. - [ ] `validate-packs.js` and `build-catalog.js` still exit 0 on the pinned `stallari-packs`. - [ ] CI `validation` is green. ## Not decided here - Whether to check the two codes in the hand-rolled validator or skip them in `SKIPPED_CODES`. - Whether CI should fail when `schemas/` lags pack-spec. ## Blocked by None - can start immediately
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Stallari/plugins#47
No description provided.