Skip to content

migrate: backfill type: opportunity on opportunity pages (permanent lint errors after migration) #138

Description

@nmrtn

Found by dogfooding nanopm-migrate-to-wiki on nanopm's own repo (post-0.21.0 upgrade).

When the migrator relocates the /pm-opportunities DB into wiki/entities/opportunities/, the content pages keep their old frontmatter — id / title / theme / status / priority / provenance / evidence_sources / linked_objectives / last_updated. It has no type: field. The new entity-page lint requires id / type / title, so every migrated opportunity page fails:

[missing-frontmatter] entities/opportunities/cold-start-context.md (missing: type)
... (×12 on this repo)

Result: permanent red wiki health for any project that ever ran /pm-opportunities (so bcm / Forto / runningcoach too). This is the same "permanent red" class as the #133 review item #2, but a different gap — #133 skiplisted the housekeeping files (INDEX/LOG/SCHEMA); the opportunity content pages still lack type:.

Fix: when relocating opportunity pages, backfill type: opportunity (and any other required entity frontmatter) into each page. The pages are unambiguously opportunities and live under entities/opportunities/, so the type is known.

Data is fine — pages migrate intact (copy mode), only lint/health is affected. Related: #134#137.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions