Skip to content

[finding] os:check doc blocks type-check but never run os validate — a docs example can carry an author-time lint error (e.g. missing sharingModel) and no gate sees it #10618

Description

@os-zhuang

Split out of #10581 (member of sweep #10616) — the sweep fixes the 22 instances; this card records the CLASS.

Observation

packages/spec/scripts/check-skill-examples.ts compiles {/* os:check */} fenced blocks in content/docs/**, so nonexistent identifiers and type errors are caught. But author-time lint rules enforced by os validate (packages/lint/**) never run over those blocks. Measured consequence: 22 ObjectSchema.create() examples omitted sharingModelz.enum([...]).optional() with no .default(), so the omission type-checks clean, while os validate rejects it as severity: 'error' (SECURITY_OWD_UNSET, packages/lint/src/validate-security-posture.ts:266-281). A reader copying a canonical docs example gets a failing os validate with no hint from the page.

Shape of a fix (for grading, not a ruling)

Run the relevant packages/lint author-time rules (or full os validate) over os:check blocks that construct authorable metadata (ObjectSchema.create at minimum). Producer is the spec-lane docs-gate toolchain (packages/spec/scripts/**), hence domain:spec (same anchoring as #10457).

Grading questions for first touch

Back-links: #10581, #10616, #10563. Dedupe: semantic search zero-hit, channel verified against #10563.

Metadata

Metadata

Assignees

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions