Skip to content

refactor: system architecture overhaul with graph primitives - #18

Merged
deepracticexs merged 53 commits into
mainfrom
refactor
Feb 22, 2026
Merged

deepracticexs merged 53 commits into
mainfrom
refactor

Conversation

@deepracticexs

Copy link
Copy Markdown
Member

Summary

  • Introduce @rolexjs/system package — graph primitives (Structure, Process, State, Runtime, Prototype, mergeState)
  • Rewrite rolexjs as stateless API layer with string-id resolution, namespaces (individual/role/org)
  • Add execution cycle (want/plan/todo/finish/achieve/abandon) and cognition cycle (reflect/realize/master)
  • Add external injection (teach/train with upsert) and knowledge management (forget with prototype protection)
  • Add prototype/instance origin tracking — mergeState tags nodes, renderState shows {prototype}/{instance}
  • Add skill system with progressive disclosure (procedure → skill → use) and ResourceX locator
  • Add MCP server with cognitive instructions (9 world features), session state, and all tools
  • Rewrite CLI as thin wrapper over rolexjs API
  • Add description system — .feature files auto-generated into index.ts, world features as MCP instructions
  • Add @rolexjs/resourcex-types for cross-package ResourceX type sharing
  • Migrate from ESLint/Prettier to Biome
  • Add comprehensive tests: unit tests (rolexjs, system, local-platform, parser), BDD features and journeys

Test plan

  • bun run build — all 8 packages build successfully
  • bun run test — all unit tests pass (parser, system, rolexjs, local-platform)
  • bun run check — Biome lint passes
  • MCP server tested via Claude Code — activate, forget prototype protection, origin rendering verified

🤖 Generated with Claude Code

deepracticexs and others added 30 commits February 9, 2026 13:00
Skills are standalone Gherkin features that inject into role identity
when equipped. They are peer entities alongside Organization and
Position, enabling the "tools are channels, skills are manuals" pattern.

- Skill type: Feature subtype (type: "skill"), stored in .rolex/skills/
- Platform API: createSkill, equip, unequip, roleSkills, allSkills, getSkill
- Identity injection: equipped skills auto-inject alongside duties
- Config: skills[] registry + equipment{} role-skill mapping
- MCP: skill tool (create/equip/unequip), directory includes skills
- Tests: 16 new tests covering full CRUD and injection lifecycle

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Extract all operation definitions (descriptions, parameters, permissions,
execute logic) into rolexjs/src/api/ as ApiOperation registry. MCP server
becomes a thin consumer (591 → 99 lines, -83%) that auto-generates tools
from the registry.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Skill operations (create, equip, unequip) are now a dedicated namespace
instead of being scattered across society and role. This aligns with
the four-entity peer model: society, organization, role, skill.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@deepracticexs
deepracticexs merged commit 824d0ca into main Feb 22, 2026
3 of 5 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