Relationships
↔ sibling #3853#3848 Docs: templates.md and rubric.md still score deno doc --lint as the fast-check point that #595 deprecated
Opened by reset · 10/23/2026· Shipped 10/23/2026
The swamp skill's references/extension/references/quality/templates.md (line 213) says "Any diagnostic from deno doc --lint costs the fast-check point. Fix each one before pushing", and quality/rubric.md (line 76) says fast-check is "Earned when deno doc --lint <entrypoints> produces zero slow-type diagnostics". On swamp 20261020.024627.0-sha.26dc044f (macOS 27) the CLI scorer awards the point unconditionally: the rubric row is built as boolRow("fast-check", "No slow types (deprecated)", 1, true, {}) in extension_quality_checker.ts, per #595.
The template the page recommends does not pass the lint it says it is written for. ~/.swamp/deno/deno doc --lint on a file with the exact shape of the Grade A template (export const argsSchema = z.object(...) and export type Args = z.infer<typeof argsSchema>) prints:
error[missing-explicit-type]: exported symbol is missing an explicit type annotationonexport const argsSchemaerror[private-type-ref]: public type 'Args' references private type 'output'onexport type Args
So a user who follows templates.md spends time rewriting public types into hand-written interfaces held by satisfies z.ZodType<T> to earn a point that is already granted.
Expected: templates.md and rubric.md describe fast-check as deprecated and always awarded, and the "Pre-publish command sequence" does not require a clean deno doc --lint.
Actual: both pages present the lint as a scored gate, and the template they call Grade A fails it.
Steps to reproduce:
- Copy the Grade A example from templates.md into
behaviors/example.ts. ~/.swamp/deno/deno doc --lint behaviors/example.tsprints the two diagnostics above and exits 1.swamp extension quality manifest.yaml --jsonon the same extension still scoresfast-check1/1 (inference from the scorer source; the row is hard-coded true).
#595 (shipped) deprecated the factor on both scorers; the skill text was not updated with it. The "Common mistakes" table row "Missing return type on one exported function: fast-check 0/1" and the bullet "All public types are themselves exported ... so nothing exposed through the API refers to a private type" are wrong for the same reason.
Suggestion: mark fast-check deprecated in rubric.md, drop the lint from the template's pre-publish sequence (or keep it as advice for symbols-docs only), and note that zod exports are fine.
Shipped
Click a lifecycle step above to view its details.