Some checks failed
Docs CI / lint-and-preview (push) Has been cancelled
Signals CI & Image / signals-ci (push) Has been cancelled
Policy Lint & Smoke / policy-lint (push) Has been cancelled
Policy Simulation / policy-simulate (push) Has been cancelled
SDK Publish & Sign / sdk-publish (push) Has been cancelled
AOC Guard CI / aoc-guard (push) Has been cancelled
AOC Guard CI / aoc-verify (push) Has been cancelled
Concelier Attestation Tests / attestation-tests (push) Has been cancelled
devportal-offline / build-offline (push) Has been cancelled
1.9 KiB
1.9 KiB
Excititor · VEX Raw Collection Validator (AOC-19-001/002)
- Date: 2025-11-25
- Scope: EXCITITOR-STORE-AOC-19-001 / 19-002
- Working directory:
src/Excititor/__Libraries/StellaOps.Excititor.Storage.Mongo
What shipped
$jsonSchemavalidator applied tovex_raw(migration20251125-vex-raw-json-schema) withvalidationAction=warn,validationLevel=moderateto surface contract violations without impacting ingestion.- Schema lives at
docs/modules/excititor/schemas/vex_raw.schema.json(mirrors Mongo validator fields: digest/id, providerId, format, sourceUri, retrievedAt, optional content/GridFS object id, metadata strings). - Migration is auto-registered in DI; hosted migration runner applies it on service start. New collections created with the validator if missing.
How to run (online/offline)
- Ensure Excititor WebService/Worker starts with Mongo credentials that allow
collMod. - Validator applies automatically via migration runner. To force manually:
mongosh "$MONGO_URI" --eval 'db.runCommand({collMod:"vex_raw", validator:'$(cat docs/modules/excititor/schemas/vex_raw.schema.json)', validationAction:"warn", validationLevel:"moderate"})' - Offline kit: bundle
docs/modules/excititor/schemas/vex_raw.schema.jsonwith release artifacts; ops can apply viamongoshormongooffline against snapshots.
Rollback / relax
- To relax validation (e.g., hotfix window):
db.runCommand({collMod:"vex_raw", validator:{}, validationAction:"warn", validationLevel:"off"}). - Reapplying the migration restores the schema.
Compatibility notes
- Validator keeps
additionalProperties=trueto avoid blocking future fields; required set is minimal to guarantee provenance + content hash presence. - Action is
warnto avoid breaking existing feeds; flip toerroronce downstream datasets are clean.
Acceptance
- Contract + schema captured.
- Migration in code and auto-applied.
- Rollback path documented.