Skip to content

chore(model): apply canonical MongoDB validators to Development (admin collMod) #752

Description

@quntao-z

Follow-up from #727 (part of #210 Phase 6).

The canonical validator registry now declares moderate/error for all nine canonical collections and strict/error for the six audited-clean collections (accounts, evidence_claims, org_units, research_plans, review_decisions, source_documents). See docs/canonical-model-audit-210-phase6.md.

Development currently carries no canonical validators at all (model-refactor:validators --environment development plans nine collMods). The least-privilege application credentials in server/.env cannot run collMod (user is not allowed to do action [collMod]), so the apply fails closed with nothing applied.

Task: with admin credentials that can run collMod on the Development database, follow the runbook Development dry-run and apply flow (docs/canonical-mongodb-validator-runbook.md) to apply the reviewed plan (six strict + three moderate). Verify postApplyPlan is all noop and a fresh dry-run reports writesPlanned: 0.

collMod mutates no documents and is reversible via the generated rollbackPlan.

Refs #210, #727.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    model-refactorResearch model refactor (docs/research-model-refactor.md)

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions