This commit is contained in:
eddiesoehnel committed 2026-11-09 13:34:58 -07:00
1 parent ab924ce1be
commit d54c1544f0
19 files changed
+2592 -34

No files matched your search

+11 -3
View File
@@ -1,6 +1,6 @@
# Artifact contract
Evidence JSON: `run_id`, `run_date` (YYYY-MM-DD), `window` containing `start`, `end_exclusive`, `timezone`; `status` (`complete` or `incomplete`); `report_path`, `receipt_path`; `playbook` with `path`, `sha256`, `sections`; `coverage` mapping all four required pools to `complete`/`unavailable`/`partial`; `searches` array; `sources` array. Complete means the documented bounded scan succeeded, not exhaustive knowledge of the market.
Evidence JSON: `run_id`, `run_date` (YYYY-MM-DD), `window` containing `start`, `end_exclusive`, `timezone`; `status` (`complete`, `completed-with-gaps` or `incomplete`); `report_path`, `receipt_path`; `playbook` with `path`, `sha256`, `sections` (or, for completed-with-gaps only, `status: unavailable`, empty `sections`, and a `limitation` also present in receipt gaps); `coverage` mapping all four required pools to `complete`/`unavailable`/`partial`; `searches` array; `sources` array. Complete means the documented bounded scan succeeded, not exhaustive knowledge of the market.
Each search: `method` (`standard_web`, `exa`, `direct`, `gmail`), `query`, `status` (`ok`, `error`), `returned_count` integer or null on error. Also log requested count, timestamp, exclusions and errors when available. Direct pool checks include actual issuer-index and episode-list URLs and outcomes; log those as direct queries. Sources with unknown publication date remain exclusions, not main evidence.
@@ -8,7 +8,7 @@ Each source: unique `id`, `url`, `title`, `published_date`, `discovery_methods`
SIA podcast records additionally follow the transcript-only source policy: identify `podcast_series` (`sia_inside_line` or `sia_other`), `transcript_url`, `transcript_provider`, `transcript_completeness` (full/partial) and `transcript_limitations`. Format is `publisher_transcript` or `provided_speech_to_text`; missing transcripts belong in `sia_review` as not reviewed. Written show-note statements may be news evidence labeled `show_notes`, but cannot establish spoken-content or transcript coverage.
Outdoor Unfiltered/Eoin podcast records use `podcast_series: outdoor_unfiltered` or `eoin_comerford_other` and the transcript-only source policy. Require actual transcript format, URL or original file identifier/path, provider, completeness and limitations; file evidence also retains original filename and SHA-256. Missing transcript episodes belong in `outdoor_unfiltered_review` as not reviewed. Keep existing required coverage pools and success rules unchanged.
Outdoor Unfiltered/Eoin podcast records use `podcast_series: outdoor_unfiltered` or `eoin_comerford_other` and the transcript-only source policy. Require actual transcript format, URL or original file identifier/path, provider, completeness and limitations; file evidence also retains original filename and SHA-256. Missing transcript episodes belong in `outdoor_unfiltered_review` as not reviewed. Keep required coverage pools, transcript evidence gates and separate full-success criteria unchanged.
Receipt JSON: `run_id`, `status`, `validation_passed` boolean, `gaps` array, `capture_completeness` (`complete`, `partial`, `unavailable`), `started_at`, `ended_at`, `usage` (null if unavailable), plus decisions/errors, revisions and tool metadata when observable. Capture completeness concerns the retained research ledger, not complete runtime telemetry; explicitly describe capture scope. Receipt is an agent-authored record, not independent proof of source truth.
@@ -16,4 +16,12 @@ For each included source, use `[S001]` style evidence IDs and clickable source l
Use paths relative to this repository for report/receipt artifacts. Finalization checks content before indexing and maintains the checkpoint last. On a write failure, retain existing state and report the failure; rerun the same validated artifacts to repair index/checkpoint consistency. Never delete artifacts to hide partial work.
Gmail candidate coverage: for runs on/after `gmail_candidate_source.enabled_from_run_date`, also require `coverage.gmail_brandemails` and `gmail_collection` as defined in source policy. Keep sanitized aggregate collection metadata only, with no mailbox identifiers in reports or email content/IDs in artifacts. Public sources discovered through mail use `gmail` in `discovery_methods` and their actual public retrieval method; source kind remains news/podcast/sec. Search method may be `gmail` with a sanitized window/label-scan description and observed counts. A partial/unavailable Gmail scan cannot finalize; independent public research can still produce incomplete artifacts. Historical runs before activation retain their existing contract.
Gmail candidate coverage: for runs on/after `gmail_candidate_source.enabled_from_run_date`, also require `coverage.gmail_brandemails` and `gmail_collection` as defined in source policy. Keep sanitized aggregate collection metadata only, with no mailbox identifiers in reports or email content/IDs in artifacts. Public sources discovered through mail use `gmail` in `discovery_methods` and their actual public retrieval method; source kind remains news/podcast/sec. Search method may be `gmail` with a sanitized window/label-scan description and observed counts. A partial/unavailable Gmail scan can finalize a reviewed completed-with-gaps subset; full-success state remains unchanged. Historical runs before activation retain their existing contract.
## Verified-subset completion (owner approved 2026-11-09)
Coverage gaps, inaccessible sources, unverifiable publication dates, unavailable discovery engines or playbook access do not block independent verified findings. Attempt the configured passes within existing budgets, then exclude unsupported claims and finish `completed-with-gaps` when useful verified material remains. Record every limitation in receipt `gaps` and verbatim in the report; unavailable coverage is not no news. Never invent evidence, dates, transcripts, counts or completed engine passes. Keep discovery pools independent. Missing playbook access means omit playbook mappings, not guess them.
Use evidence/receipt status `completed-with-gaps`, receipt capture_completeness `partial`, and evidence `verified_subset_reviewed: true` only after reviewing every admitted claim against actually read evidence. Keep all source/date/provenance checks. Finalize catalogs this validated subset and records `state/last-completed-with-gaps-run.json`; it never advances `state/last-successful-run.json`. `incomplete` remains for interrupted/unvalidated work. Check completed-with-gaps state as well as full success before repeating the same occurrence; recovering gaps is an explicit timestamped revision, not a duplicate run.
Privacy, authorization, credential exposure, fabricated/conflicting evidence, hash mismatch, malformed artifacts, failed validation/readback, unsafe paths and write failures remain blockers. Preserve reports and independent source verification; no publication, push, schedule or permission changes are authorized by this policy.
+9 -1
View File
@@ -58,4 +58,12 @@ Received date controls mailbox enumeration only. Verify publication and event da
Store no email bodies, snippets, private subjects, message/thread IDs, recipient/contact details, tracking URLs, Gmail links or connector payloads in this repository or public outputs. Keep necessary message IDs only in transient execution context. Retain sanitized aggregate counts and coverage/errors, public canonical URLs and public evidence summaries. The mailbox identifier and configured label are operational configuration, not report citations. If a connector failure contains private data, redact it before logging.
For new runs from the configured activation date, add `gmail_brandemails` to evidence coverage and include `gmail_collection` with `status`, `pages_read`, `messages_enumerated`, `messages_screened`, `enumeration_complete`, `screening_complete`, and `limitations` (a sanitized list). Status uses complete/partial/unavailable. Complete means all in-window labeled messages were enumerated and screened, even if zero qualify; a bounded/truncated scan is partial. Record the same outcome in the receipt and report's Search Methods and Coverage. Continue public research if Gmail is unavailable, retain incomplete artifacts and leave success state unchanged. Historical evidence before activation requires no migration.
For new runs from the configured activation date, add `gmail_brandemails` to evidence coverage and include `gmail_collection` with `status`, `pages_read`, `messages_enumerated`, `messages_screened`, `enumeration_complete`, `screening_complete`, and `limitations` (a sanitized list). Status uses complete/partial/unavailable. Complete means all in-window labeled messages were enumerated and screened, even if zero qualify; a bounded/truncated scan is partial. Record the same outcome in the receipt and report's Search Methods and Coverage. Continue public research if Gmail is unavailable, finalize a validated completed-with-gaps subset and leave full-success state unchanged. Historical evidence before activation requires no migration.
## Verified-subset completion (owner approved 2026-11-09)
Coverage gaps, inaccessible sources, unverifiable publication dates, unavailable discovery engines or playbook access do not block independent verified findings. Attempt the configured passes within existing budgets, then exclude unsupported claims and finish `completed-with-gaps` when useful verified material remains. Record every limitation in receipt `gaps` and verbatim in the report; unavailable coverage is not no news. Never invent evidence, dates, transcripts, counts or completed engine passes. Keep discovery pools independent. Missing playbook access means omit playbook mappings, not guess them.
Use evidence/receipt status `completed-with-gaps`, receipt capture_completeness `partial`, and evidence `verified_subset_reviewed: true` only after reviewing every admitted claim against actually read evidence. Keep all source/date/provenance checks. Finalize catalogs this validated subset and records `state/last-completed-with-gaps-run.json`; it never advances `state/last-successful-run.json`. `incomplete` remains for interrupted/unvalidated work. Check completed-with-gaps state as well as full success before repeating the same occurrence; recovering gaps is an explicit timestamped revision, not a duplicate run.
Privacy, authorization, credential exposure, fabricated/conflicting evidence, hash mismatch, malformed artifacts, failed validation/readback, unsafe paths and write failures remain blockers. Preserve reports and independent source verification; no publication, push, schedule or permission changes are authorized by this policy.