This commit is contained in:
eddiesoehnel committed 2026-08-20 15:08:07 -06:00
1 parent c04ca92c13
commit 31253e14c1
1008 files changed
+46154 -10432

No files matched your search

@@ -25,6 +25,7 @@ Preserve source facts, distinguish reasoning from source content, enrich each si
- Source JSON remains unchanged.
- Public hrecords conform to `../../schemas/future-map-signal.schema.json`.
- Original summary and normalized notes remain labeled as source content.
- Source sufficiency and each connected media item's inspection state remain explicit.
- Analysis, implications, claims, classifications, and relationships remain labeled as reasoning.
- Pending, stale, failed, and complete states remain explicit.
- Connected files and links remain attached when available.
@@ -35,11 +36,12 @@ Preserve source facts, distinguish reasoning from source content, enrich each si
- Exact-tag source records selected by deterministic scripts.
- `review/pending.jsonl` or user-selected record IDs.
- Repository `content-index.json` and relevant core documents.
- `references/reasoning-rubric.md` and `references/publication-policy.md`.
- `references/readiness-rubric.md`, `references/reasoning-rubric.md`, and `references/publication-policy.md`.
## Outputs
- Enrichment patch JSON for each processed record.
- Readiness patch JSON and, only when eligible, enrichment patch JSON for each processed record.
- Updated readiness state through `scripts/future_map_pipeline.py apply-readiness`.
- Updated derivative hrecord through `scripts/future_map_pipeline.py apply-reasoning`.
- Refreshed digest, indexes, review queue, manifest, and receipt.
@@ -66,11 +68,21 @@ Confirm the exact `Future Map` tag filter, source availability, copied media, pe
Read `review/pending.jsonl`. Process a small explicit batch. Do not load all records and all core documents into one prompt.
### 3. Retrieve Corpus Context
### 3. Assess Source And Media Readiness
Follow `references/readiness-rubric.md`. Inspect source fields, links, and any connected media needed to understand the signal. Create a patch matching `../../schemas/readiness-patch.schema.json`, then apply it through:
```text
python data/insights-hub/scripts/future_map_pipeline.py apply-readiness --record-id fm-signal-ID --patch PATH
```
Do not proceed to enrichment unless the source assessment is `sufficient` or `partial` and every media item marked `required` is `inspected`. A `partial` assessment must identify missing elements and constrain confidence.
### 4. Retrieve Corpus Context
Read repository `content-index.json`. Always consider foundational methodologies when relevant, then load only core documents whose titles, descriptions, concepts, or sections plausibly relate to the signal. Record which documents were consulted.
### 4. Enrich
### 5. Enrich
Follow `references/reasoning-rubric.md`. Create a patch matching `../../schemas/reasoning-patch.schema.json`.
@@ -82,7 +94,7 @@ Keep these boundaries:
- Never invent source, rights, dates, authors, publishers, URLs, or media provenance.
- Use `unknown`, an empty list, or a lower confidence when evidence is insufficient.
### 5. Apply And Validate
### 6. Apply And Validate
Apply each patch through the deterministic merge command:
@@ -98,7 +110,7 @@ python data/insights-hub/scripts/future_map_pipeline.py validate
Do not hand-edit generated indexes, queues, manifest, or digest.
### 6. Review And Publish
### 7. Review And Publish
Inspect validation warnings and the affected Markdown entry. Publication means writing local generated artifacts only. Git commit, push, external publication, and core-document promotion require separate authorization.
@@ -107,15 +119,17 @@ Write a receipt under `runtime/receipts/` using `../../templates/run-receipt.jso
## Test Surface
- Static: skill validation and unresolved-placeholder scan.
- Schema: public signals, reasoning patches, manifest, and receipt.
- Invariants: exact tag, stable ID, source hash, source/reasoning separation, local media existence.
- Fixtures: missing title, HTML notes, remote links, duplicate media, stale reasoning, malformed JSON.
- Schema: public signals, readiness patches, reasoning patches, manifest, and receipt.
- Invariants: exact tag, stable ID, source hash, source/reasoning separation, local media existence, readiness before enrichment.
- Fixtures: missing title, HTML notes, remote links, duplicate media, uninspected required media, stale reasoning, malformed JSON.
- Behavioral: use deterministic merging; report uncertainty; never overwrite source facts with inference.
- Routing: deterministic preparation first, model reasoning only for enrichment, human authority for publication-policy and core-document changes.
## Edge Cases
- Preserve complete reasoning when the source fingerprint is unchanged.
- Preserve assessed readiness and media inspection when source and media fingerprints are unchanged.
- Reset readiness to `unassessed` when source JSON or connected media changes.
- Mark reasoning `stale` when source JSON or connected media changes.
- Keep missing media as a warning and explicit media status.
- Normalize legacy control characters without changing the private source file.
@@ -131,6 +145,7 @@ Do not:
- Replace original summaries with generated summaries.
- Infer redistribution rights from payment, access, or availability.
- classify a record without consulting relevant corpus context.
- enrich a record before source readiness is sufficient or partial, or while required media remains uninspected.
- edit generated output indexes manually.
- call a model from the unattended daily deterministic task.