Repository navigation
test(company-monitoring): add sealed evidence curation gate - #6488
Merged
Merged
Conversation
Contributor
|
Preview deployment for your docs. Learn more about Mintlify Previews.
💡 Tip: Enable Workflows to automatically generate PRs for you. |
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Company Monitoring now has a sealed, fail-closed path from genuine public-source curator manifests to opaque pilot, tracer, and Stage 3 corpus artifacts. This extends the merged deterministic scorer and admission policy without changing the frozen classifier policy.
The offline compiler enforces exact provenance, evidence timestamps and precision, private-company proof, custody versions, bounded excerpts, opaque identifiers, and pairwise disjointness. It emits no raw identity, URL, excerpt, or label. Invalid input returns a stable error code without echoing sealed content or paths.
No raw evidence, predictions, or gold labels are committed in this PR.
Corpus-side evidence
The sealed external v3 receipts record genuine public-source collection and remain outside Git.
The selected source distribution is 100 CPSC recall records, 100 openFDA food-enforcement records, 100 Find a Tender award records, and 100 UK Gazette insolvency notices. The v3 audit passes across opaque ID, occurrence, content fingerprint, corporate family, and primary source origin. Its manifest digests remain unchanged after the review fixes.
Recorded exclusions are:
Remaining acceptance gate
The v3 manifests and compiled corpora remain draft. They use
pending_pinned_openrouter_model. No prediction, gold-label, forecast, freeze, or score artifact exists.The next blind step needs these runtime settings outside Git:
OPENROUTER_API_KEYCOMPANY_MONITORING_CLASSIFIER_MODELEXA_API_KEYSX_BEARER_TOKENThe exact resolved OpenRouter model and provider route must be approved and pinned. The runtime must also prove zero data retention, no training, disabled reasoning, and disabled activity logging. The repository has no approved offline discovery-plus-classifier prediction runner, so the official curator evidence cannot be substituted as classifier predictions.
After that gate, create immutable v4 manifests, lock the pilot, generate predictions before any gold labels are opened, and run the existing forecast/freeze/scorer sequence. A weak forecast must remain
forecast_warning; a post-score denominator gap must remainincomplete.Test plan
npm run typecheckpasses.npm run typecheck:contract-testspasses with the new compiler, CLI, and tests included.Code review receipt:
status: complete, run20260812-105839-ca880ee8.Post-Deploy Monitoring & Validation
No additional production runtime monitoring is required because this PR adds an offline curator CLI and contract tests only. No product request path imports the new module.
audit-splitreturns 100 pilot, 100 tracer, and 200 Stage 3 rows with the retained v3 manifest digests.Related
Related: #6006
Related: #6002