added
This commit is contained in:
1 parent
87cc362513
commit
2a0d6aa2bf
1029 files changed
+106050
-14573
No files matched your search
@@ -2,89 +2,69 @@
|
||||
|
||||
## Purpose
|
||||
|
||||
The Insights Hub adds a continuously refreshed signal layer to the curated Future Map repository. It republishes every Personal Organization JSON record whose `HubTags` array contains the exact value `Future Map`, copies associated local media, and generates a reverse-chronological Markdown digest for easy browsing.
|
||||
The Insights Hub is the high-volume signal and evidence layer beneath curated `core-docs/`. Its contained six-stage workflow converts private exact-tag records into structured public signals that AI can retrieve, parse, compare, and relate to the Future Map corpus.
|
||||
|
||||
## Implemented Architecture
|
||||
## Architecture
|
||||
|
||||
```text
|
||||
Personal Organization JSON database
|
||||
├── hrecords/*.json
|
||||
└── files/*
|
||||
│
|
||||
▼ exact tag membership: Future Map
|
||||
scripts/future-map-insights-hub/
|
||||
│
|
||||
▼ daily local refresh
|
||||
Private source database (authoritative source facts)
|
||||
|
|
||||
v
|
||||
data/insights-hub/
|
||||
├── hrecords/*.json structured record copies
|
||||
├── files/* associated local media
|
||||
├── future-map-insights.md human browsing layer
|
||||
└── README.md source and maintenance guidance
|
||||
1. ingest deterministic exact-tag selection
|
||||
2. sanitize normalize source fields, notes, links, and privacy-sensitive data
|
||||
3. enrich AI reasoning against content-index.json and relevant core-docs
|
||||
4. validate schemas, invariants, links, media, and source/reasoning separation
|
||||
5. review pending, stale, failed, warnings, contradictions, and proposals
|
||||
6. publish derivative JSON, connected files, indexes, manifest, and Markdown
|
||||
```
|
||||
|
||||
The stable digest path is listed once in `content-index.json`. The repository manifest declares `data/insights-hub/` as a generated data collection. Individual JSON files are not duplicated into the repository-wide content index because hundreds of records would make that index cumbersome and noisy.
|
||||
All workflow-specific scripts, skills, schemas, configuration, evaluations, tests, templates, review state, and generated outputs live under `data/insights-hub/`. The repository-wide structural audit remains under root `scripts/` because it serves the whole repository.
|
||||
|
||||
## Content Roles
|
||||
|
||||
| Layer | Role | Authority |
|
||||
| --- | --- | --- |
|
||||
| `core-docs/` | Curated, durable Future Map documents and presentations | Authoritative published documents |
|
||||
| Personal Organization database | Live Insights Hub record source | Authoritative source records |
|
||||
| `data/insights-hub/hrecords/` | Public structured snapshots | Generated copies |
|
||||
| `data/insights-hub/files/` | Media needed to preserve record context | Generated copies |
|
||||
| `data/insights-hub/future-map-insights.md` | Easy human browsing and inline images | Generated derivative view |
|
||||
| `content-index.json` | Stable collection discovery | Repository-level discovery metadata |
|
||||
| `core-docs/` | Curated Future Map frameworks, theses, predictions, and plans | Authoritative published documents |
|
||||
| Private Personal Organization database | Original Insights Hub source fields and connected files | Authoritative source facts |
|
||||
| `data/insights-hub/hrecords/` | Sanitized, source/reasoning-separated public signals | Generated derivatives |
|
||||
| `data/insights-hub/files/` | Connected publication files | Generated copies |
|
||||
| `data/insights-hub/signal-index.jsonl` | Compact record-level AI retrieval | Generated discovery index |
|
||||
| `data/insights-hub/future-map-insights.md` | Human browsing | Generated view |
|
||||
| `data/insights-hub/review/pending.jsonl` | Pending, stale, failed, and warning-bearing work | Generated review queue |
|
||||
|
||||
## Deterministic And Reasoned Fields
|
||||
|
||||
Deterministic preparation preserves the source record ID, original title and summary, normalized notes, dates, tags, company references, link and media relationships, hashes, and any explicit source or rights metadata. It excludes raw contact identifiers while recording their count.
|
||||
|
||||
AI enrichment creates analysis, implications, claims, classification, confidence, novelty, and relationships to core documents. The AI must read the complete signal, the repository content index, and relevant complete core documents. It may not overwrite source-derived fields or invent provenance.
|
||||
|
||||
Completed reasoning remains intact when source and media fingerprints are unchanged. A source or connected-file change marks completed reasoning `stale` and returns it to review.
|
||||
|
||||
## Publication Policy
|
||||
|
||||
The repository owner has explicitly chosen `publish-with-attribution` for connected files even when redistribution rights are unknown or absent. The workflow records that decision without claiming permission. Rights uncertainty does not block copying; security, privacy, confidentiality, malware, and explicit do-not-publish findings do.
|
||||
|
||||
## Daily Operation
|
||||
|
||||
The Windows scheduled task `FutureMap-InsightsHub-Daily` runs the local publisher every day at 6:00 AM in the machine’s local timezone. It writes a dated log under the ignored `logs/` directory.
|
||||
The Windows task `FutureMap-InsightsHub-Daily` runs `data/insights-hub/scripts/run_daily.ps1` every day at 6:00 AM local time. It performs deterministic preparation and writes ignored logs under `data/insights-hub/runtime/logs/`.
|
||||
|
||||
The task does not run Git commands. Generated changes remain local until reviewed, committed, and pushed through the normal repository workflow.
|
||||
The daily task does not invoke AI, edit core documents, stage, commit, push, or publish externally. AI enrichment is a separate bounded use of `data/insights-hub/skills/process-future-map-insights/SKILL.md`.
|
||||
|
||||
Each run also prunes only stale generated JSON and media copies, keeping the publication aligned with the current exact-tag selection. The source database remains authoritative, so those generated copies can be recreated.
|
||||
## Core-Document Integration
|
||||
|
||||
The initial full build contains 986 JSON records, 535 unique copied media files, and a 986-entry Markdown digest. The generated collection is approximately 168 MB. A single page with hundreds of inline images may render slowly in Gitea even though it remains convenient as one complete archive.
|
||||
Signals link to core documents through explicit reasoned relationships: `supports`, `challenges`, `updates`, `illustrates`, `early-warning`, `contradicts`, or `supersedes`. Generated relationships begin as machine proposals. Promotion into a core document remains a separate human-reviewed action.
|
||||
|
||||
## Recommended Integration Policy
|
||||
This keeps the evidence layer broad while preserving the editorial authority and coherence of `core-docs/`.
|
||||
|
||||
Use the generated Insights Hub as the high-volume signal and memory layer. Keep `core-docs` selective and editorial. Promote an insight into a core document only through deliberate human review when it becomes a durable framework, thesis, prediction, strategy, or synthesis.
|
||||
## Validation
|
||||
|
||||
This separation keeps the repository useful in two different modes:
|
||||
Run:
|
||||
|
||||
- browse recent and historical signals in the generated digest;
|
||||
- retrieve stable, deeply developed thinking from curated core documents.
|
||||
```text
|
||||
python -m unittest discover -s data/insights-hub/tests -v
|
||||
python data/insights-hub/scripts/future_map_pipeline.py validate
|
||||
python scripts/audit_repository.py . --profile documentation-guide
|
||||
```
|
||||
|
||||
## Next Integration Options
|
||||
|
||||
### 1. Generated collection manifest — recommended next
|
||||
|
||||
Add a deterministic `data/insights-hub/manifest.json` containing the source tag, record count, media count, latest source date, and generation timestamp. This would let AI agents and repository tooling assess freshness without parsing the full digest.
|
||||
|
||||
### 2. Year and month browsing views — recommended for usability
|
||||
|
||||
Generate smaller yearly or monthly Markdown digests while retaining the stable all-record digest. This would make Gitea browsing faster and reduce the number of images loaded on one page.
|
||||
|
||||
### 3. Topic and relationship rollups
|
||||
|
||||
Generate compact indexes by secondary Hub tag, year, source type, or referenced core document. This would improve retrieval without adding every hrecord to the root `content-index.json`.
|
||||
|
||||
### 4. Curated promotion workflow
|
||||
|
||||
Add a reviewed process for promoting selected records into an existing core document, a new synthesis, or an `UPDATES.md` proposal. Promotion should preserve the source Hub ID and JSON path for provenance.
|
||||
|
||||
### 5. Core-document relationship map
|
||||
|
||||
Maintain a small reviewed mapping from stable core-document IDs to relevant Hub IDs. Avoid fully automatic semantic linking until its quality can be measured and incorrect relationships can be reviewed efficiently.
|
||||
|
||||
### 6. Reviewed publication automation
|
||||
|
||||
If unattended Gitea publication is later desired, add a separate workflow that creates a dated branch and proposed commit only when generated outputs change. Automatic direct pushes to `main` are not recommended because source records or media may need privacy, licensing, and quality review.
|
||||
|
||||
## Guardrails
|
||||
|
||||
- Match the exact `Future Map` tag; do not infer inclusion from free text.
|
||||
- Do not hand-edit generated records, media, or digest content; synchronization may replace or remove those generated copies.
|
||||
- Do not treat the digest as more authoritative than its source JSON.
|
||||
- Do not automatically promote every insight into `core-docs`.
|
||||
- Review privacy, copyright, and document-specific licensing before pushing generated changes publicly.
|
||||
- Keep local logs, credentials, and Google Drive runtime state out of Git.
|
||||
Also validate the local skill with the available skill validator, confirm all indexed paths exist, and verify Markdown image references.
|
||||
Reference in new issue
Block a user