Skip to main content
← Back to list
01Issue
BugShippedSwamp CLIPublic
AssigneesNone

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 annotation on export const argsSchema
  • error[private-type-ref]: public type 'Args' references private type 'output' on export 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:

  1. Copy the Grade A example from templates.md into behaviors/example.ts.
  2. ~/.swamp/deno/deno doc --lint behaviors/example.ts prints the two diagnostics above and exits 1.
  3. swamp extension quality manifest.yaml --json on the same extension still scores fast-check 1/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.

02Bog Flow
✓OPEN✓TRIAGED✓IN PROGRESS✓SHIPPEDLINKED+ 3 MOREPR_LINKED+ 2 MORESESSION_SUMMARIZED

Shipped

10/23/2026, 6:32:45 PM

Click a lifecycle step above to view its details.

03Sludge Pulse
stack72 linked sibling of #385310/23/2026, 5:35:02 PM
Editable. Press Enter to edit.

stack72 commented 10/23/2026, 6:32:54 PM

Thanks @reset for reporting this! The fix has been merged and a release is on its way. We appreciate your contribution to swamp.

Sign in to post a ripple.