Skip to content

fixup(clanos): complete kernel wire identifier alignment#6

Merged
clancymendonca merged 3 commits into
mainfrom
cursor/rename-ares-rt-to-clan-rt
Jun 13, 2026
Merged

fixup(clanos): complete kernel wire identifier alignment#6
clancymendonca merged 3 commits into
mainfrom
cursor/rename-ares-rt-to-clan-rt

Conversation

@clancymendonca

@clancymendonca clancymendonca commented Jun 13, 2026

Copy link
Copy Markdown
Owner

Summary

  • Normalize docs/VALIDATION_GATES.md formatting and repair the system-gate subsystem table
  • Align remaining kernel wire tokens with the Clan OS ABI (clan-exec-v1, clan-info, CLAN_ABI_V1, CLANFS1, etc.)
  • Add ares-infoclan-info to the rename_clanos.py migration map

Follow-up to #5 — closes the last doc/code drift from the AresOS → ClanOS rebrand audit.

Test plan

  • cargo check -p kernel
  • python scripts/project_health.py
  • python scripts/validation_matrix.py --smoke-timeout 180

Summary by CodeRabbit

  • Documentation

    • Updated validation gates documentation with refreshed boot and system gate procedures and command references.
  • Chores

    • System-wide rebranding of internal identifiers and constants.
    • Updated built-in program outputs, help text, and demo program names.
    • Updated filesystem and manifest identifiers.

Remove broken double-spacing, repair the system-gate table, and document all system gate subsystems.
Rename remaining ares-exec-v1, ares-info, clan-abi, and CLANFS wire tokens in kernel manifests, governance, and shell dispatch.
Cover the clan-info builtin alias in the one-shot rebrand script.
@coderabbitai

coderabbitai Bot commented Jun 13, 2026

Copy link
Copy Markdown

Review Change Stack

Caution

Review failed

The pull request is closed.

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: 195d64c4-b86e-4316-bd2d-bee0ec7fcb87

📥 Commits

Reviewing files that changed from the base of the PR and between be0834d and 2719f64.

📒 Files selected for processing (14)
  • docs/VALIDATION_GATES.md
  • kernel/src/build_integrity.rs
  • kernel/src/elf_reloc.rs
  • kernel/src/governance.rs
  • kernel/src/milestone150.rs
  • kernel/src/native_manifest.rs
  • kernel/src/storage.rs
  • kernel/src/system_gate.rs
  • kernel/src/task/keyboard.rs
  • kernel/src/task/program_loader.rs
  • kernel/src/task/userspace.rs
  • kernel/src/user_copy.rs
  • kernel/src/userland_install.rs
  • scripts/rename_clanos.py

📝 Walkthrough

Walkthrough

This PR systematically rebrands ClanOS kernel identifiers from ARES to CLAN. Governance constants, ELF markers, filesystem magic, manifest versions, program dispatch, and supporting text/tests are updated consistently to reflect the new naming scheme. Documentation is refreshed to describe gate-based validation flow.

Changes

ClanOS ARES-to-CLAN Rebrand

Layer / File(s) Summary
Core governance constants and ABI flags
kernel/src/governance.rs
New exported CLAN_ABI_V1 and CLAN_SEMANTICS_V1 constants replace ARE_* variants; smoke_constitutional() and status() updated to reference and report the new flags.
ELF markers and build integrity identifiers
kernel/src/elf_reloc.rs, kernel/src/build_integrity.rs
ELF relocation detection updated to recognize CLAN marker at offset 120..124; kernel image tags, rollback anchors, and signed ELF corpus identifiers changed to new clanos-* and clan-rt values.
Filesystem magic and bootstrap contents
kernel/src/storage.rs
Filesystem magic changed from ARESFS1\0 to CLANFS1\0; embedded ELF fixture and bootstrap file descriptors updated to use clan-exec-v1 headers and /bin/clan-info tool path.
System validation gate governance reference
kernel/src/system_gate.rs
scheduling_gate() updated to depend on new CLAN_SEMANTICS_V1 constant.
Program manifest version and loading validation
kernel/src/task/program_loader.rs
parse_manifest now expects clan-exec-v1 header; manifest_for_builtin, test data, and fallback probes updated to generate/validate the new manifest version.
Userspace program dispatch and demo output
kernel/src/task/userspace.rs, kernel/src/userland_install.rs
Built-in program dispatch updated to recognize clan-info instead of ares-info; demo-hello output and userland demo manifest/validation logic changed to expect clan-rt runtime identifier.
Test probes, comments, help text, and tooling
kernel/src/user_copy.rs, kernel/src/milestone150.rs, kernel/src/native_manifest.rs, kernel/src/task/keyboard.rs, scripts/rename_clanos.py
User copy probe, module comments, and help text updated to clan identifiers; rebrand script extended to handle ares-infoclan-info mapping.
Validation gates documentation
docs/VALIDATION_GATES.md
Gate-based validation flow documented with sequential BootGate/SystemGate execution; subsystem tables, preemption section, and CI matrix refreshed to reflect current validation architecture.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~12 minutes

Poem

A rabbit hops through the code with glee,
CLAN now marches where ARES used to be,
Constants renamed, markers redrawn,
From dusk of ARES to ClanOS dawn! 🐰✨

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch cursor/rename-ares-rt-to-clan-rt

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@clancymendonca clancymendonca merged commit 7a9569a into main Jun 13, 2026
1 of 3 checks passed
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