5.4 KiB
5.4 KiB
Add Future Map Insights Hub
Plan Control
- Task ID:
add-future-map-insights-hub - Target repository:
C:\projects\future-map\future-map-OPEN - Repository mode:
existing - Profile:
documentation-guidewith a generated data collection - Revision:
1 - Status:
implemented - Created:
2026-08-12 - Updated:
2026-08-12 - Approval evidence: The user explicitly requested duplication and adaptation of the Portable Identity Document Insights Hub workflow, a daily pull, and structured-artifact integration.
Outcome
Publish all exact-tag Future Map Insights Hub records, associated local media, and a human-readable Markdown digest into the Future Map repository through a repeatable daily local workflow.
Current State
Facts
- The reference script selects
External Platform Posts, copies matching JSON and media, and limits only its Markdown digest to 183 days. - The source currently contains 986 records whose
HubTagsarray contains the exact valueFuture Map. - The Future Map repository already uses a documentation/guide profile with human, AI, manifest, and content-index entry points.
- Existing repository changes must be preserved and no automatic Git publication is authorized.
Assumptions
- Exact membership means records may also contain additional tags.
- The daily run time defaults to 6:00 AM local time because no time was specified.
- The Google Drive source is available when the scheduled task runs.
Baseline Audit
- Command:
python scripts/audit_repository.py . --profile documentation-guide - Result: PASS before implementation
Profile Decision
Retain the documentation/guide profile and add a meaningful generated data/ collection rather than changing the whole repository to the dataset profile. Curated core documents remain primary; Insights Hub records provide a supporting signal layer.
File Actions
| Path | Action | Purpose | Existing-content treatment |
|---|---|---|---|
scripts/future-map-insights-hub/ |
create |
Adapted publisher, runner, installer, and usage guide | Derived from the reference script with tag/date/path changes |
data/insights-hub/ |
create |
Generated JSON, media, digest, and source guidance | Dedicated generated-output directory |
README.md |
modify |
Add human entry point and repository-map links | Preserve all core-document links |
AGENTS.md |
modify |
Distinguish authoritative source data, generated copies, and curated documents | Merge scoped rules |
repository.json |
modify |
Declare the generated data collection and retrieval paths | Preserve stable repository identity |
content-index.json |
modify |
Index the stable aggregate digest once | Do not index hundreds of individual records |
scripts/README.md, docs/README.md |
modify |
Index the workflow and integration guidance | Preserve existing audit guidance |
docs/insights-hub-integration.md |
create |
Record architecture, guardrails, and future options | New design record |
CHANGELOG.md |
modify |
Record the workflow and generated collection | Add under Unreleased |
tasks/add-future-map-insights-hub/ |
create |
Record plan, execution, validation, and rollback | New bounded task record |
Human and AI Entry Points
- Human starts at:
README.md, thendata/insights-hub/future-map-insights.md - AI starts at:
AGENTS.md, thencontent-index.jsonand relevant JSON records - Authoritative repository manifest:
repository.json - Authoritative Insights Hub source: Personal Organization JSON database
Hosting and Scheduling Choices
- Preserve Gitea configuration and default branch.
- Create the local Windows scheduled task
FutureMap-InsightsHub-Dailyat 6:00 AM. - Do not stage, commit, push, or create releases automatically.
Validation and Definition of Done
- Exact
Future Maptag filtering selects all matching records without a date cutoff. - Matching JSON records and referenced local media copy successfully.
- The Markdown digest includes every matching record in reverse chronological order.
- Generated Markdown image references resolve.
- Repository metadata parses and indexed paths exist.
- The documentation/guide audit passes.
- The daily scheduled task exists with the expected command and next run time.
- No Git commit, push, release, or hosting-setting change occurs.
Risks and Preservation Notes
- The generated collection is large and may materially increase repository size.
- The initial build is approximately 168 MB and the all-record digest contains hundreds of inline images, which may render slowly in Gitea.
- Missing Google Drive assets must be reported rather than silently invented.
- Three currently tagged source records contain legacy literal control characters; the publisher uses Python’s non-strict JSON string mode while preserving the copied source bytes.
- Daily execution depends on Google Drive and the configured Python path being available.
- The adapted publisher prunes only stale files inside its dedicated generated JSON and media folders so the output remains an exact current selection. Removed copies remain recoverable from the source database.
Out of Scope
- Automatic commit or push
- Semantic chunking, embeddings, or one root content-index entry per hrecord
- Automatic promotion into curated core documents
- Rewriting source summaries or changing source JSON
Approval
Revision 1 is approved for immediate implementation by the user’s explicit request.