5.3 KiB
Future Map Insights Hub Publication and Git LFS
Task Control
- Date:
2026-08-12 - Repository:
C:\projects\future-map\future-map-OPEN - Branch:
main - Status: Complete
- Published commit:
87cc362513148a3460df8322ebeaa6872f46cf26 - Related task:
tasks/add-future-map-insights-hub/
Objective
Complete the new Future Map Insights Hub workflow, publish its generated JSON, media, and Markdown output to Gitea, and prevent large generated media from causing oversized normal Git pushes.
Work Completed Today
Insights Hub workflow
Adapted the Insights Hub publisher from the Eddie Soehnel Portable Identity Document repository for the Future Map repository.
- Select records whose
HubTagscontains the exact valueFuture Map. - Include all matching records; there is no six-month or other date cutoff.
- Copy matching JSON into
data/insights-hub/hrecords/. - Copy referenced images and files into
data/insights-hub/files/. - Generate the reverse-chronological digest
data/insights-hub/future-map-insights.md. - Add repository, README, AI-navigation, content-index, and operating documentation.
- Add publisher, daily runner, and Task Scheduler installer under
scripts/future-map-insights-hub/.
Initial publication results:
- Exact-tag records: 986
- Copied JSON records: 986
- Unique media paths: 535
- Unique uploaded LFS objects: 533, because two paths share content with other tracked paths
- Digest entries: 986
- Missing source media: 0
- Missing Markdown images: 0
Daily local refresh
- Windows task name:
FutureMap-InsightsHub-Daily - Schedule: Daily at 6:00 AM local time
- Action:
scripts/future-map-insights-hub/run_daily.ps1 - Test run result: Success, result code 0
- Git behavior: The task regenerates local files only. It does not stage, commit, or push.
Push Failure and Diagnosis
The first Gitea push failed with HTTP 413 Request Entity Too Large while sending the standard Git pack.
Evidence:
- The local branch was one commit ahead of
origin/main. - The outgoing compressed normal Git pack was approximately 145.26 MB.
- Generated Insights Hub media occupied approximately 165 MB locally.
- The largest individual generated files were approximately 12.6 MB.
- Git LFS was installed locally, but the repository did not yet have LFS tracking rules.
The issue was the combined normal Git request size, not missing files or an unsuccessful local commit. Git LFS was selected instead of increasing the Caddy request-body limit because the generated media are binary assets and are better stored outside normal Git object history.
Git LFS Implementation
A local recovery branch was created before rewriting the unpushed commit:
codex/pre-lfs-insights
Git LFS was initialized for this repository, and .gitattributes was added with:
data/insights-hub/files/** filter=lfs diff=lfs merge=lfs -text
All files already committed under data/insights-hub/files/ were renormalized so the amended commit stores LFS pointer records instead of binary contents. Full media files remain available in the local working tree and are uploaded to Gitea's LFS storage.
The original unpushed commit was amended:
- Pre-LFS commit:
d4573c42597384599b8df11d6cce0967379966b6 - Published LFS commit:
87cc362513148a3460df8322ebeaa6872f46cf26
Verification and Publication Result
- LFS-managed paths: 535
- Unique LFS objects uploaded: 533
- LFS transfer: Approximately 172 MB
- Remaining normal Git pack: 1.32 MB, reduced from approximately 145.26 MB
git lfs fsck: PASS- Working tree after push: Clean
- Local
mainequalsorigin/main: PASS - Gitea push: PASS
- Caddy configuration change: Not required
Ongoing Operating Procedure
Files created by future daily runs under data/insights-hub/files/ automatically inherit the LFS rule.
After reviewing a daily refresh:
git status
git lfs status
git add data/insights-hub
git commit -m "Refresh Future Map Insights Hub"
git push origin main
The Git client and Fork workstation must have Git LFS installed. A fresh clone or pull downloads LFS content through Gitea automatically when LFS is available.
Validation Checks
Use these checks before or after publication:
git lfs ls-files
git lfs status
git lfs fsck
git status --short --branch
Expected state after a successful push:
- No LFS objects waiting to be pushed
- No staged or unstaged changes
mainis not ahead of or behindorigin/main
Recovery and Rollback
- The local branch
codex/pre-lfs-insightspreserves the original pre-LFS commit. - Do not push that backup branch because it contains the large media in normal Git history.
- If LFS must be reversed, create a separate recovery branch and deliberately migrate files out of LFS; do not reset or overwrite
maincasually. - The authoritative source JSON and media remain outside this generated repository collection and can be republished with the Insights Hub script.
Follow-Up Integration Ideas
- Keep
data/insights-hub/future-map-insights.mdas the full browsable stream. - Generate smaller topic, date, or signal-type views for faster human browsing.
- Add reviewed promotion workflows that elevate selected signals into curated
core-docs/artifacts. - Consider automated validation and commit preparation after the daily run, while keeping push approval manual unless explicitly changed.