docs: consolidate platform/docs/ via trueup pipeline #6
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "agent/docs-trueup-2026-05-09"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What
Trueup pass on
platform/docs/. Reduces the tree from 1,360 filesto 69 by aggregating thematic clusters into consolidated documents,
relocating archive content to a new
platform/archive/sibling, anddeleting source files whose content is now in the consolidated docs.
Tooling: scripts + rules + prompts at
/home/mreddy/hanuman/temp/(operator workstation only — not committed; this PR's contents are
the output, not the pipeline). The 5-stage pipeline (inventory →
cluster → aggregate → manual review → execute) was run end-to-end
under the Max plan via subagents (no API spend).
15 consolidated documents written:
docs/architecture/workspace-model.mddocs/architecture/architecture-extracts.mddocs/archive/handoff-artifacts/machine-protocol-handoff.mddocs/archive/historical-reports/stage-reports.mddocs/archive/historical-reports/hanuman-ops-roadmap.mddocs/archive/deferred-decisions/rebaseline.mdarchive/snapshots/automation-context.mdarchive/snapshots/cp-sonar-poc-bundle-summary.mdarchive/snapshots/cp-sonar-poc-bundle.tar.gzarchive/historical-reports/contract-migration-prep.mdarchive/historical-reports/contract-reconciliation.mdarchive/workflow-history/task-history.mdarchive/workflow-history/public-repo-reviews-summary.mdarchive/workflow-history/hanuman-ops-roadmap-history.mdarchive/code/hsdk-scripts-summary.mdarchive/code/hsdk-tools-summary.mdPer-file relocations (no aggregation):
code-files-in-docscluster) →archive/code/<original-path>archive/deprecated/<original-path>(directory structure preserved to avoid basename collisions on README.md etc.)archive/code/{hsdk-scripts,hsdk-tools,cp-sonar-poc-bundle}/<inner-path>Datestamps stripped from filenames per workspace convention; the
captured-on dates are preserved inside each document body.
33 preserve-as-is files left untouched: the strategic doc set
(operating-thesis, strategy, decisions-log, technical-architecture,
architecture-summary, partnership-and-channel-map,
next-90-days-execution-plan, recalibration-log), the
architecture/components/quartet, thearchitecture/foundation/trio, the PEX-0001 ADR,
governance/ledger.json, all ofpolicies/,templates/,contracts/,ops/,pattern-library/,handovers/.Why
platform/docs/had accumulated organically over months. 263 sourcecode files, 687 JSON workflow outputs, 35+ README.md files in archive
sub-trees, multiple version-pair documents (v1 and v2 sitting
alongside each other), 764 sequential workflow-run dirs from one
day's bring-up against
apache/commons-lang. Without consolidation,finding current architectural truth required wading through
historical strata; the foundation work landing today (PR #3) needs a
clean substrate going forward.
The trueup pass:
platform/archive/as the home for non-doc archivecontent (code, snapshots, workflow history) — keeping
docs/fordocuments only.
consolidated documents that read top-to-bottom.
preserved in those consolidated docs.
Subagents flagged a handful of fidelity items worth post-merge
attention (recorded inline in the consolidated docs):
architecture-extracts.mdflags v1↔v2 contradiction on thelearning-loop liveness claim (preserves both characterizations).
machine-protocol-handoff.mdflags F8-vs-F21 sequencingdisagreement between two snapshots.
task-history.mddiscovered the 23 task files were not atemporal series but a single archival snapshot — reframed
accordingly.
How verified
inspected before aggregation; 15 aggregated docs spot-checked.
committed). Action breakdown: 15 copy-consolidated, 861
delete-aggregated, 437 moves, 0 destination collisions.
agent/docs-trueup-2026-05-09matches the regex; commit follows Conventional Commits; this PR
body has the three required sections.
git revert HEADrestores the entire pre-trueuptree state in one operation. Fine-grained recovery (specific
documents only) requires
git checkout HEAD~1 -- <path>for therelevant source files.
Refs: B3 (
docs/wip/B3-git-policy.md), foundation v0(
docs/architecture/foundation/).