This commit is contained in:
eddiesoehnel committed 2026-08-21 13:31:32 -06:00
1 parent 31253e14c1
commit 8596c42ea1
2029 files changed
+225999 -30819

No files matched your search

+114 -74
View File
@@ -34,11 +34,17 @@ The deterministic portion prepares and validates source material. The reasoning
| `hrecords/` | Public derivative JSON signals. Source facts and AI reasoning are explicitly separated. |
| `files/` | Connected files copied under the owner-approved publish-with-attribution policy. |
| `future-map-insights.md` | Generated human-readable digest. |
| `signals/` | Generated readable page for every public signal, including resolved outgoing references and incoming signal backlinks. |
| `signal-index.jsonl` | Compact AI retrieval index, one signal per line. |
| `derivatives/` | Separate versioned JSON and Markdown drafts authored from reasoning-complete signals. |
| `derivative-index.jsonl` | Compact machine-readable index of authored derivatives and computed lineage state. |
| `manifest.json` | Counts, freshness, pipeline version, and reasoning-state summary. |
| `review/pending.jsonl` | Pending, stale, failed, or warning-bearing records requiring attention. |
| `indexes/core-document-sections.json` | Stable document, Markdown-section, chapter, and slide identities with resolvable locators. |
| `indexes/connections.json` | Resolved signal-to-section and signal-to-signal connections, public URLs, and reverse backlink indexes. |
| `review/relationship-target-issues.jsonl` | Invalid, imprecise, or ambiguous relationship targets requiring review. |
| `review/connection-issues.jsonl` | Relationships that could not be resolved into publishable references; any entry fails pipeline validation. |
| `review/derivatives.jsonl` | Draft, human-reviewed, stale, broken-reference, or source-unavailable derivatives requiring attention. |
| `scripts/` | Deterministic ingest, sanitize, merge, validate, render, scheduling, and test code. |
| `skills/` | Repository-local AI workflow skill built from the agent-design template. |
| `schemas/` | Public signal, readiness-patch, and reasoning-patch contracts. |
@@ -148,6 +154,8 @@ Files:
- [`schemas/future-map-signal.schema.json`](schemas/future-map-signal.schema.json)
- [`schemas/readiness-patch.schema.json`](schemas/readiness-patch.schema.json)
- [`schemas/reasoning-patch.schema.json`](schemas/reasoning-patch.schema.json)
- [`schemas/derivative-patch.schema.json`](schemas/derivative-patch.schema.json)
- [`schemas/future-map-derivative.schema.json`](schemas/future-map-derivative.schema.json)
The taxonomy explains what controlled terms mean. The schemas enforce which values and structures are permitted.
@@ -508,7 +516,7 @@ The pipeline updates:
A sufficiently assessed and successfully enriched record disappears from `pending.jsonl` when no other warnings remain. Partial or otherwise review-required records stay queued. The human-readable digest displays source readiness, analysis, implications, taxonomy classifications, confidence, core-document connections, related signals, source links, and connected media.
The planned connection layer will additionally generate compact per-signal Markdown pages and a connection/backlink index. Those views will be regenerated from authoritative signal relationships; they will not become manually maintained sources of truth.
The implemented connection layer also regenerates compact per-signal Markdown pages, stable signal-to-signal and signal-to-core-section links, reciprocal backlinks, and [`indexes/connections.json`](indexes/connections.json). These views are derived from authoritative signal relationships and are never manually maintained sources of truth.
### 10. Validation and Testing Run
@@ -549,6 +557,56 @@ The receipt records:
The entire `runtime/` directory is intentionally excluded from Git.
## Operating Playbook for Every New Future Map Record
The historical corpus is complete for the current scope. From now on, operate the system incrementally. A new private JSON record enters this workflow only when its tags contain the exact value `Future Map`.
```text
Private JSON tagged Future Map
|
daily deterministic sync at 6:00 AM
|
public pending signal + copied media
|
source/media readiness assessment
|
corpus-grounded enrichment
|
resolved core-section and signal connections
|
validated signal JSON + readable signal page
|
five draft channel derivatives
|
Eddie reviews, revises, approves, rejects or ignores
|
optional external use only by separate human action
```
For each new or changed record:
1. `FutureMap-InsightsHub-Daily` runs `scripts/run_daily.ps1`, which calls `future_map_pipeline.py sync`.
2. The deterministic sync selects the exact tag, sanitizes source fields, copies connected media, computes fingerprints, creates or refreshes the public signal, and adds new or stale work to `review/pending.jsonl`.
Malformed source JSON is skipped and reported in the run log rather than being silently imported; correct the private source file and let the next sync retry it.
3. Run [`skills/process-future-map-insights/SKILL.md`](skills/process-future-map-insights/SKILL.md) for the new signal. It assesses source sufficiency, retrieves any material source or media evidence, reads the relevant taxonomy, core sections and related signals, and creates readiness and reasoning patches.
4. The pipeline applies those patches, resolves relationship IDs through the section and signal indexes, regenerates the signal page and backlinks, and validates the corpus. Insufficient records remain evidence-gated rather than being filled with invented context.
5. When reasoning is complete, run [`skills/author-future-map-derivatives/SKILL.md`](skills/author-future-map-derivatives/SKILL.md). Unless a different assignment is requested, the standard forward pilot creates five drafts: LinkedIn social post, email response, article section, presentation slide and webinar talking point.
6. Each derivative is stored as JSON and readable Markdown under `derivatives/SOURCEID/`, indexed in `derivative-index.jsonl`, linked from its signal page, and queued in `review/derivatives.jsonl`. It remains `draft` and `not-published`.
7. Eddie reviews the outputs. If changes are wanted, rerun the authoring skill with the feedback and preserve the correction as a replacement draft or a new superseding version. If no output is useful, it can remain a draft or be rejected; no further action is required.
8. Copying a draft into social media, email, an article, a presentation or a webinar is a separate human-controlled action. This repository never posts externally on its own.
9. Write the Future Map run receipt and, for a serious authoring run, the ES authoring receipt. Then run tests, pipeline validation, the repository audit and `git diff --check`.
The daily task is deterministic by design. AI readiness assessment, enrichment, derivative authoring, human review, Git commit/push and external publication remain explicit follow-on actions.
### Skills and when to use them
| Order | Skill | Use |
| --- | --- | --- |
| 1 | [`process-future-map-insights`](skills/process-future-map-insights/SKILL.md) | Process each new or stale signal: readiness, evidence inspection, enrichment, classification, relationships and validation. |
| 2 | [`author-future-map-derivatives`](skills/author-future-map-derivatives/SKILL.md) | Turn a reasoning-complete signal into traceable channel drafts using the ES authoring skill. |
| Maintenance | [`index-future-map-sections`](skills/index-future-map-sections/SKILL.md) | Rerun when a core document or presentation is added, changed, renamed, moved or removed. |
| Monthly maintenance | [`review-future-map-taxonomy`](skills/review-future-map-taxonomy/SKILL.md) | Review recent records for evidence-backed taxonomy additions; apply only human-approved changes. |
## Daily Automation Versus AI Enrichment
The scheduled daily task performs only deterministic preparation:
@@ -576,7 +634,7 @@ The completed operating rhythm is:
5. Validate and resolve proposed signal and core-document connections.
6. Review classifications, claims, implications, and relationships.
7. Mark accepted connections as human-approved where appropriate.
8. Optionally author and review channel-specific derivatives.
8. Author the standard five draft channel derivatives for each new reasoning-complete signal and route them to Eddie for review.
9. Publish approved repository artifacts through the normal Git workflow.
The first corpus pass requires substantial reasoning because historical relationships are still being discovered. Subsequent artifacts should process faster because the taxonomy, document catalog, section summaries, and enriched signal network can be reused.
@@ -630,6 +688,18 @@ Read [`skills/process-future-map-insights/SKILL.md`](skills/process-future-map-i
The skill does not directly change `core-docs/`, commit, push, or publish externally without separate authorization.
## Derivative Authoring Operation
Read [`skills/author-future-map-derivatives/SKILL.md`](skills/author-future-map-derivatives/SKILL.md). It uses the authoritative ES writing skill for voice and the Future Map derivative contract for claim selection, validated references, lineage and review state.
Apply an authored patch with:
```text
python data/insights-hub/scripts/future_map_pipeline.py apply-derivative --record-id fm-signal-ID --patch PATH
```
Generated drafts appear under `derivatives/SOURCEID/`. They are automatically indexed and linked but never automatically approved or externally published.
## Daily Task
`FutureMap-InsightsHub-Daily` runs `scripts/run_daily.ps1` at 6:00 AM local time. It performs deterministic preparation only and writes ignored logs under `runtime/logs/`.
@@ -640,20 +710,26 @@ Install or update the task with:
powershell -NoProfile -ExecutionPolicy Bypass -File data/insights-hub/scripts/install_daily_task.ps1
```
The Codex app automation `Daily Future Map AI Processing` runs separately at 6:30 AM local time using `gpt-5.6-sol` with medium reasoning. It verifies the current-day deterministic log, reads only new or stale queue entries, processes at most 20 records, runs the processing and derivative-authoring skills in order, creates the standard five draft channels for each newly completed signal, validates the outputs, and writes receipts. It exits as a no-op when the queue is empty and never commits, pushes, approves, or publishes externally.
These are deliberately separate jobs:
| Time | Automation | Responsibility |
| --- | --- | --- |
| 6:00 AM | Windows task `FutureMap-InsightsHub-Daily` | Deterministic intake, sanitization, media copying, queue and index regeneration. |
| 6:30 AM | Codex automation `Daily Future Map AI Processing` | Readiness, enrichment, connection validation, five-channel draft authoring, validation and receipts. |
## Framework Provenance
The local skill design uses `ai-prompt-skill-agent-design-template-OPEN` version `0.3.1`, specifically its OSDR, ratchet-based skill, routing, evaluation, and receipt patterns. The implementation remains local to this folder.
## Recommended Next Improvements
## Current Operating State
1. Add explicit source-sufficiency and media-inspection states.
2. Complete reviewed historical enrichment in bounded batches.
3. Add connection resolution, publishable references, per-signal Markdown views, and lightweight backlinks.
4. Design the derivative schema and authoring skill without overwriting original summaries.
5. Pilot social, email, article, slide, and webinar derivatives.
6. Add human approval and correction capture for both reasoning and authored copy.
The present project scope is complete. Historical enrichment, connection resolution, derivative infrastructure and the initial five-channel pilot are finished. New exact-tag records now move through the operating playbook above.
The current completion target stops after these capabilities. Graph databases, embeddings, vector retrieval, RAG, MCP, pricing, and access-control infrastructure are deferred and are not required to complete the present repository structure.
Human approval and corrections are intentionally owner-driven: drafts wait in `review/derivatives.jsonl`; feedback can be applied as a replacement draft or a new superseding version. No additional historical channel pilots are planned.
Graph databases, embeddings, vector retrieval, RAG, MCP, pricing and access-control infrastructure remain deferred and are not required to operate the current system.
## Part C: Estimated Token Spend
@@ -873,6 +949,8 @@ config/taxonomy.json
The connection layer will resolve those IDs into validated audience-facing references. It should store stable IDs as relationship identity and derive URLs from repository configuration and indexes. This prevents a filename, branch, domain, or Markdown-anchor change from becoming a silent identity change.
Implementation status: complete. Pipeline version 1.3 generates one readable page per signal, exact core-section links, reciprocal signal backlinks, stable connection IDs, repository-relative links, configured public Gitea URLs, and a machine-readable connection index. Unresolved targets are omitted from publishable references, written to `review/connection-issues.jsonl`, and treated as validation errors.
A related core-section reference can therefore resolve to:
```json
@@ -911,13 +989,9 @@ Core documents should not be edited every time a signal arrives. Generated index
### Step 7: Derivative Authoring and Channel Adaptation
Step 7 is:
Step 7 is implemented in pipeline version `1.4`. It never overwrites the source-owned `summary`, notes, capture context, enrichment, or connections. Instead, it creates separate versioned artifacts under `derivatives/SOURCEID/` from a reasoning-complete signal.
> Derivative Authoring and Channel Adaptation
Step 7 never overwrites the source-owned `summary`, notes, or capture context. It creates separate authored derivatives from the approved enriched signal.
It will use:
The authoring workflow can use:
- Your original title, notes, thoughts, and summary.
- Retrieved source material.
@@ -927,72 +1001,38 @@ It will use:
- Related core documents.
- Related signals.
- Resolved publishable references and backlinks.
- Your authoring skill.
- The authoritative Eddie authoring skill in `ES-authoring-skills`.
- The intended audience, purpose, format, and channel.
The schema should not use one `revised_text` field. A `derivatives` array will support multiple outputs:
The contained routing skill is [`skills/author-future-map-derivatives/SKILL.md`](skills/author-future-map-derivatives/SKILL.md). It uses the external Eddie skill when available and carries a portable snapshot for reproducibility. The Eddie skill controls voice and expression; the Future Map skill controls source boundaries, claims, references, lineage, review state, and repository placement.
```json
{
"derivatives": [
{
"derivative_id": "fm-derivative-7052-social-001",
"artifact_type": "social-post",
"channel": "linkedin",
"audience": ["business-leaders", "workers"],
"objective": "Explain why persistence makes AI agents economically important",
"content": "...",
"call_to_action": "Start measuring agents on completed workflows.",
"source_reasoning_version": "fm-signal-7052:v1",
"claims_used": [],
"related_documents_used": [
"exponential-growth-strategies"
],
"references": [
{
"target_type": "core-section",
"target_id": "exponential-growth-strategies#automation-autonomous-agents",
"relationship": "illustrates",
"label": "My broader Future Map analysis",
"url": "..."
}
],
"authoring_skill": "eddie-voice-writing",
"status": "draft",
"generated_by": "...",
"generated_at": "..."
},
{
"derivative_id": "fm-derivative-7052-slide-001",
"artifact_type": "presentation-slide",
"channel": "presentation",
"audience": ["business-leaders"],
"content": "...",
"status": "draft"
}
]
}
The workflow creates a small authoring patch containing the draft plus zero-based claim indexes and validated Step 6B connection IDs. Apply it with:
```text
python data/insights-hub/scripts/future_map_pipeline.py apply-derivative --record-id fm-signal-ID --patch PATH
```
For the first version, embedding these in the JSON is reasonable. As the number of derivatives grows, the signal should retain a list of derivative IDs while full derivative artifacts live in a separate folder.
For example:
The deterministic command resolves the chosen claims and references, records source, reasoning, connection, and patch hashes, and writes both JSON and copy-friendly Markdown:
```text
data/insights-hub/
├── hrecords/
│ └── 7052.json
└── derivatives/
├── hrecords/7052.json
├── derivatives/
└── 7052/
├── linkedin-post-001.json
├── email-response-001.json
└── presentation-slide-001.json
├── fm-derivative-7052-social-001.json
└── fm-derivative-7052-social-001.md
├── derivative-index.jsonl
└── review/derivatives.jsonl
```
This prevents one signal record from becoming an enormous container.
Every render computes lineage without rewriting the derivative. A draft is `current` when its source record, reasoning, and selected connections still match. Changed source or reasoning becomes `stale`; removed or changed selected connections become `broken-reference`; an absent or no-longer-complete source becomes `source-unavailable`. Drafts and every non-current derivative enter the derivative review queue. Signal pages backlink to their derivatives.
New artifacts begin as `draft` and `not-published`. Applying a derivative does not approve it or publish it externally. Reapplying an identical patch is idempotent. A changed patch with the same ID is rejected unless `--replace` is intentional, and approved or published artifacts cannot be replaced in place.
### Step 8: Pilot Channel-Specific Derivatives
Implementation status: the initial five-channel pilot is complete for signal `fm-signal-7073`. It produced current, draft-only social, email, article, presentation-slide, and webinar derivatives. The comparison and validation notes are recorded in [`derivatives/7073/PILOT-REVIEW.md`](derivatives/7073/PILOT-REVIEW.md). Human approval or correction remains Step 9; nothing was published externally.
Step 8 tests the authoring system on a small representative set before broad use. The pilot should generate and compare formats such as:
- Short and long social posts.
@@ -1253,12 +1293,12 @@ MCP is an interface to the knowledge and tools; it is not the knowledge model it
- **3 — Corpus indexing:** Add stable section indexing and relationship-target validation. **Complete; issue review remains operational maintenance.**
- **4 — Private capture:** Redesign the private JSON capture template and update pipeline/schema mappings. **Complete.**
- **5 — Readiness:** Add source-sufficiency and media-inspection states. **Complete.**
- **6 — Enrichment:** Complete reviewed historical enrichment in bounded batches and establish the incremental enrichment rhythm. **In progress: batch 001 assessed and enriched ten records; 20 of 995 records now have complete reasoning.**
- **6B — Connections:** Add connection resolution, lightweight backlinks, per-signal Markdown pages, and publishable references.
- **7 — Authoring:** Design the derivative schema and authoring skill without overwriting source-owned fields.
- **8 — Pilots:** Pilot social, email, article, slide, and webinar outputs.
- **9 — Approval:** Add human approval and correction capture for reasoning, relationships, and derivatives.
- **10 — Operate:** Stop expanding the architecture and operate the completed system.
- **6 — Enrichment:** Complete reviewed historical enrichment in bounded batches and establish the incremental enrichment rhythm. **Complete for the current corpus: 982 records have complete reasoning and 13 evidence-gated records are retained as excluded.**
- **6B — Connections:** Add connection resolution, lightweight backlinks, per-signal Markdown pages, and publishable references. **Complete.**
- **7 — Authoring:** **Complete.** Separate derivative schemas, the Eddie-authoring routing skill, deterministic claim/reference resolution, lineage and stale detection, JSON and Markdown views, backlinking, indexing, and review routing are implemented without overwriting source-owned fields.
- **8 — Pilots:** **Initial pilot complete for record 7073.** Social, email, article, slide, and webinar derivatives are current drafts awaiting Step 9 human review.
- **9 — Approval:** **Operational as a human review loop.** New derivatives remain drafts until Eddie reviews them; requested corrections become replacement or superseding versions, and external publication remains separate.
- **10 — Operate:** **Complete for the current scope.** Stop expanding the architecture and process new exact-tag records through the documented incremental workflow.
Deferred unless separately authorized: