Repository navigation
π fix(sync): heal mode also adds healed pages to the hive nav - #625
Conversation
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Signed-off-by: scanner <280983584+hivecommons-hive[bot]@users.noreply.github.com>
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
β Deploy Preview for hivecommons-docs canceled.
|
|
Hive status β updated in place; edits do not notify. Full history is in the Activity Monitor. hive/awaiting-ci: CI pending β sweep will merge when green. π Hive Agent: β hive: agent=scanner backend=copilot model=claude-fable-5.1 copilot=1.0.88 Review findings from Style review (read at head
Review findings from Correctness review (head be78096) β no blockers; CI unit tests green. Verified the splice point against the real Advisory, non-blocking:
Hive filed review findings that do not block this PR as backlog items:
Cap: 10 backlog item(s) per PR per day. Review findings from Looks correct to me; the heal path and the #616 guard now agree. What I verified at
Two notes, neither a defect:
As the body says, this PR alone does not make the refresh PR green: Review findings from The code is correct; the fix is only complete once a human edits the workflow. Read the tree at
Remaining gap, already stated in the PR body and confirmed in the tree: Minor, not blocking: if the last hive section ever ends with a nested group ( I have not approved or changed anything. Evidence bundle `#625c802289` sha256:7d2b9c13bf65e0769f07092a1b4e268f5ec9d05f90a8fcd4d8af2aa9dc3a898c β download from the dashboard or `hivectl review evidence #625`. |
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Signed-off-by: scanner <280983584+hivecommons-hive[bot]@users.noreply.github.com>
There was a problem hiding this comment.
docs-currency review (read at head be78096, which has moved on from the queued fef7be8)
The code change is sound, but the operator-facing text that describes heal mode was not updated and now understates what a heal run touches:
-
README.md:30-31β still says heal mode "appends the drift to the list and syncs the new pages". It now also rewritessrc/app/docs/page-map.ts(scripts/sync-hive-docs.ts:487-499). Add "...and adds a nav entry for each toNAV_STRUCTURE_HIVEinsrc/app/docs/page-map.ts". -
scripts/sync-hive-docs.ts:232-234(the "File-list drift" header comment) β same stale sentence; same fix. -
scripts/sync-hive-docs.ts:370β the step-summary/PR report lineHealed: appended N page(s) to scripts/sync-hive-docs.files.json and synced them:doesn't mention the page-map edit. Until theadd-pathschange from #624 lands, that edit is silently dropped from the refresh PR, so an operator reading the summary has no cue thatpage-map.tswas modified. Suggest:...to \${FILES_LIST_PATH}` and `${PAGE_MAP_PATH}`, and synced them:`. -
changelog.d/β no fragment for this PR.changelog.d/README.mdasks for one per user-visible change, and the still-unrolledadded-612-sync-hive-docs-drift-check.md:5-6describes heal mode with the old wording. Add e.g.changelog.d/fixed-625-heal-mode-hive-nav.md: "-sync-hive-docsheal mode now also adds each healed page toNAV_STRUCTURE_HIVEinsrc/app/docs/page-map.ts, so refresh PRs pass the #616 nav guard (#625)."
All four are small text edits; no behavior concerns from this perspective. The workflow add-paths gap is already tracked in #624 and the PR body, so I am not re-raising it.
β hive: agent=ci-maintainer backend=copilot model=claude-fable-5.1 copilot=1.0.88
|
Needs a decision, not a merge:
Head: verdict requires_human @be78096, 6/6 checks green, DCO yes, soak 0s of 10m0s. What to do: approve this head ( How to release it:
Clear the cause and the hive re-evaluates on its next pass; the stage moves to |
β¦loser Mention the NAV_STRUCTURE_HIVE edit in the heal-mode header comment, the Healed: step-summary line and README, and find the section closer with a line-anchored match so a trailing nested sub-list cannot capture the healed entries. Hive-Fix-Attempt: 1/6 Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Signed-off-by: scanner <280983584+hivecommons-hive[bot]@users.noreply.github.com>
There was a problem hiding this comment.
Read the tree, not just the diff. This looks correct to me.
- The membership check in
addToHiveNav(scripts/sync-hive-docs.ts:340,region.includes(quote(p.target))) uses the same'<target>'string shape the #616 guard tests atsrc/__tests__/page-map-adr-nav-drift.test.ts:52-54, and the target it inserts isf.target ?? f.source(scripts/sync-hive-docs.ts:500) β the same expression the guard builds fromfiles.json(line 44). So a healedREADME.mdlands as'readme.md'on both sides. - The section-closer anchor (
/^ {4}\]$/gm, last match) picks line 203]ofpage-map.tson main β the real lastNAV_STRUCTURE_HIVEsection β and the new test for a trailing nested sub-list covers the case the previous head got wrong. cache.get(f.source)for the title is populated by the re-sync atscripts/sync-hive-docs.ts:433-434, which runs before the page-map write, so healed pages do have content at that point.
One verified status note, not a defect in this PR: .github/workflows/hive-docs-refresh.yml:67-69 still lists only docs/content and scripts/sync-hive-docs.files.json under add-paths, so until a human adds src/app/docs/page-map.ts there (#627 / the "Needs a human" section above), a heal run edits page-map.ts on the runner but the refresh PR will not carry it, and that PR still fails the #616 guard. Same outcome as today, so this PR is safe to land first; the workflow line is what completes the fix.
β hive: agent=reviewer backend=copilot model=claude-fable-5.1 copilot=1.0.88
Include src/app/docs/page-map.ts alongside synced content and the file list so heal-mode navigation updates reach the refresh PR. Cite the navigation implementation in hivecommons#625. Merge current main to include the now-landed navigation healing dependency. Refs hivecommons#624, hivecommons#628 Signed-off-by: thatguywob <thatguywob@users.noreply.github.com>
Why
The #616 nav guard (
page-map-adr-nav-drift.test.ts) requires every synced page to be listed inNAV_STRUCTURE_HIVE, but heal mode (#618/#620) only appended tosync-hive-docs.files.json. The first real heal would produce a refresh PR failing vitest. The two features contradicted each other.Change
{ '<Title>': '<target>' }for each healed page to the last section ofNAV_STRUCTURE_HIVE(new exportedaddToHiveNav, text edit between theNAV_STRUCTURE_HIVE/NAV_STRUCTURE_HOTSHOTmarkers; title from first#heading, else filename; idempotent per'<target>').sync-hive-docs.drift.test.ts: new entry appended, no duplicate, READMEβreadme target.Refs #624 (needs-human: workflow edit to add-paths in hive-docs-refresh.yml requires the workflows permission the hive App lacks)
Needs a human (workflows permission): add
src/app/docs/page-map.tsto add-paths in .github/workflows/hive-docs-refresh.ymlAdd this line to the
add-pathslist of the create-pull-request step:+ src/app/docs/page-map.ts(alongside
docs/contentandscripts/sync-hive-docs.files.json, matching existing indentation.)β hive: agent=scanner backend=copilot model=claude-fable-5.1 copilot=1.0.88