Skip to content

[campaign #253] STEP 2 — OIKOS PATTERN AUDIT: canonical deno.json shape + re-inventory #262

@hyperpolymath

Description

@hyperpolymath

Part of #253. Blocked by step 1.

Goal

Codify the canonical deno.json shape derived from oikos Phase 5 + 5 follow-ups (MERGED) so that all downstream physical migrations (STEPs 3-7) follow a single, documented template. Also: re-run the manifest inventory using the umbrella's documented exclude set, since a fresh find on 2026-05-30 disagrees with the umbrella's snapshot.

Prior art — Deno-native invocation pattern

From oikos Phase 5 follow-ups (memory: session_2026_05_28_oikos_phase5_follow_ups.md), the canonical Deno-native pattern for invoking a previously-npm-shipped tool is:

deno run -A --allow-scripts=npm:rescript npm:rescript@^12.0.0

This pattern generalises: invoke npm-published tools through npm:<pkg>@<semver> specifiers with explicit --allow-scripts= when the tool's install lifecycle requires it. Document this pattern as the default for any npm tool that hasn't been ported to a native Deno equivalent.

Inventory reconciliation (acceptance-blocking)

The umbrella body cites 172 package.json manifests post-excludes. A fresh find on 2026-05-30 with looser excludes returned 437. The umbrella's documented exclude set is:

  • hyperpolymath-archive/**
  • **/deps/**, **/node_modules/**
  • upstream forks (rescript/, servers/, repos-monorepo/, linguist/)

Acceptance criterion: re-run the inventory with the documented exclude set, record the actual count, and update the umbrella body (or file a correction issue) so STEPs 3-7 batch sizing is grounded in the true number. If the count is materially different (>10% drift), revisit the STEP 3/4/5 batch ordering.

Audit deliverables

  1. standards/docs/migrations/npm-to-deno-template/deno.json — canonical shape (imports map, tasks, lint, fmt, exclude)
  2. standards/docs/migrations/npm-to-deno-template/MIGRATION.md — per-file migration recipe (package.json → deno.json, npm scripts → deno tasks, .gitignore changes, CI workflow swaps)
  3. Documented exception cases derived from oikos PRs (5 follow-ups worth of lessons)
  4. Refreshed inventory TSV at ~/Documents/npm-to-deno-inventory-2026-05-30.tsv with <count>\t<repo>\t<manifest-path> columns

Acceptance

  • Template files merged into standards/docs/migrations/npm-to-deno-template/
  • Inventory re-run produces accurate count; umbrella body updated if drift
  • Deno-native invocation pattern documented as default
  • All 5 oikos follow-up PRs cross-referenced in MIGRATION.md

Sequencing

Blocked by: STEP 1 (policy gate live before authoring conversion template).
Blocks: STEP 3, 4, 5, 6, 7 (all physical migrations need template + accurate inventory).

Metadata

Metadata

Assignees

No one assigned

    Labels

    campaignMulti-PR multi-session estate campaigndocumentationImprovements or additions to documentationnpm-to-denonpm→Deno migration campaign 2026-05-30

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions