Skip to content

Restore the Interdefinables heading hierarchy - #13

Merged
erinepshovel-code merged 9 commits into
mainfrom
agent/fix-interdefinables-hierarchy
Jul 21, 2026
Merged

erinepshovel-code merged 9 commits into
mainfrom
agent/fix-interdefinables-hierarchy

Conversation

@erinepshovel-code

Copy link
Copy Markdown
Contributor

Purpose

Corrects the canonical opening hierarchy so Human consciousness emerges from is a subheading beneath The Interdefinables, its binary/trinary/archetype headings remain nested beneath it, and Preamble is the next major section.

What changed

  • gives canonical heading titles explicit semantic levels rather than trusting legacy Markdown depth
  • classifies The Interdefinables and Preamble as level-2 peer sections
  • classifies Human consciousness emerges from as a level-3 child of The Interdefinables
  • classifies the binary, trinary, social-perception, and archetype headings as level-4 children
  • records immediate parentId relationships and heading-parent edges without removing existing section edges
  • renders nested heading levels visibly in the Way map
  • exposes a unit's immediate parent on its companion page
  • adds parser fixtures for both plain canon and legacy Markdown
  • makes the release gate reject promotion of Human consciousness to a section or separation from The Interdefinables
  • verifies that the controlling remote canon places Preamble immediately after The Interdefinables as the next major section

File plan

Path Change Purpose Risk Required evidence
scripts/canon-parser.mjs modify encode canonical title hierarchy and immediate heading parents route or parent drift parser fixtures + canon integrity
scripts/validate-content.mjs modify fail release on hierarchy regression fallback mirror has older physical ordering remote-only order gate; shared nesting gate
src/way/index.njk, src/way/unit.njk, CSS modify make hierarchy visible and navigable excessive indentation on mobile browser/accessibility gate
tests modify protect plain, Markdown, JSON, and generated HTML hierarchy none full PR workflow
docs/content-model.md modify record load-bearing opening hierarchy none content review

Canon boundary

The controlling source remains wayseer00/main:canon/INTERDEPENDENT_WAY.txt. This patch changes no canonical wording. It corrects how the website represents the relationships already present in that source.

Usage

Run npm run validate after any canon refresh. A build now fails if Human consciousness emerges from becomes a peer section, loses The Interdefinables as its parent, or if the controlling remote canon inserts another major section before Preamble.

hmmm

The checked-in recovery mirror still contains older wording and physical ordering. This patch interprets its heading relationships correctly but does not silently elevate that recovery copy into a competing canon source.

@erinepshovel-code
erinepshovel-code merged commit 6821921 into main Jul 21, 2026
5 checks passed

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 8fe9938682

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread scripts/canon-parser.mjs
};

while (headingStack.length && headingStack.at(-1).level >= level) headingStack.pop();
headingStack.push({ id, level });

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Update parent IDs after duplicate heading renames

If a refreshed canon repeats a heading slug within the same section and either copy has lower-level children, this stores the pre-deduplicated id in headingStack; the duplicate pass later suffixes unit.id values but never rewrites existing parentIds. Those children then get dangling heading-parent edges and the new unit page parent lookup renders an empty “Parent heading” despite the parent unit existing under its suffixed ID.

Useful? React with 👍 / 👎.

assert.ok(interdefinablesSection >= 0, 'Interdefinables section missing');
assert.ok(humanHeading > interdefinablesSection, 'Human consciousness must appear inside Interdefinables');
assert.ok(binaryHeading > humanHeading, 'Human consciousness child headings must follow their parent');
assert.ok(preambleSection > binaryHeading, 'Preamble must be the next major section after Interdefinables');

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Skip fallback-only Preamble order in generated test

When _site is built from the documented fallback mirror, such as with OFFLINE=1 or a GitHub fetch failure, the checked-in mirror has Preamble before The Interdefinables, and validate-content intentionally skips the remote-only order gate for canon.source.fallback. This unconditional assertion makes npm run check fail in fallback builds even though that recovery path is supposed to remain supported.

Useful? React with 👍 / 👎.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant