Repository navigation
docs(OMN-15199): slim CLAUDE.md to the proven root pattern (42,089 -> 19,988 bytes) - #817
Conversation
… 19,988 bytes) Apply the root-pattern slimming method: delete drift-prone state and duplicated topic tables (EVENT_SURFACE.md is the source of truth), replace illustrative code snippets with pointers to the real exemplar files, compress procedure to pointers at code, and correct two live-false claims (fingerprint auto-stamp poisoning is now defended by the B1.5 pre-check + auto-stamp abort; PostToolUse hook is ACTIVE via OMN-2984, not DEFERRED). Purity enforcement corrected to tests/unit/test_node_purity.py (tests/audit/test_io_violations.py no longer exists).
|
Warning Review limit reachedYou’ve reached a temporary PR review limit under our Fair Usage Limits Policy. Next review available in: 48 minutes Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (3)
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
Summary
Closes OMN-15199 (epic OMN-15197). Slims
omniintelligence/CLAUDE.mdend to end using the proven root-pattern method (omni_home root 64,334 → 30,766; canary OMN-15198 omnibase_infra 43,049 → 18,136, PR omnibase_infra#2482): delete drift-prone state, delete content duplicated from the always-loaded root CLAUDE.md, delete generic advice, replace procedure and illustrative snippets with pointers at real code.42,089 → 19,988 bytes (target was ~24,000; every cut is justified below).
No GENERATED block exists in this file (verified: no markers, no script in the repo writes CLAUDE.md).
KEEP contract — live-verified before preservation (8/8 checked, 2 corrected)
Every KEEP item from the survey was verified against source before being preserved. Two were live-false and are corrected, not preserved:
idempotency_recordsat first boot ⇒ poisoned auto-stamp ⇒ later boots fail withSchemaFingerprintMismatchError)runtime/plugin.pyB1.5_check_cross_repo_tables(OMN-3531) raisesRuntimeHostErrorwith the provisioning command when the table is absent, before B2 runs; the B2 first-boot auto-stamp additionally aborts when live table count < manifest count. The poisoned-fingerprint scenario is defended twice; the migrations-first invariant is kept with the corrected failure modeAdapterPatternStoreignoresconn; each method is an independent transactionrepositories/adapter_pattern_store.py(one-time warning logged, param ignored)wire_dispatchers()beforestart_consumers()— no dispatch engine = no consumersstart_consumersreturnsskippedwhen_dispatch_engine is None; also raises if handshake not validatedproducer is not Noneguards across effect handlers; contracts declarerequired: falseprotocols/__init__.py+ node handler modulesstore_with_version_transition()for atomic version transitionsadapter_pattern_store.py:564, declared inlearned_patterns.repository.yamlapi/;Dependsused only for DIhandler_claude_event.pyroutesPOST_TOOL_USEandPOST_TOOL_USE_FAILUREtohandle_post_tool_use(), which persists toagent_actions(OMN-2984) and degrades to no-op when no repository is injected. PostToolUse is ACTIVE, not DEFERREDAdditional corrected false claims found during verification:
tests/audit/test_io_violations.pyfor four rules — that file does not exist. Purity is enforced bytests/unit/test_node_purity.py(AST purity validator, OMN-1140), whose actual rules differ (interface methods allowed, stub nodes excluded, no line-count check). Corrected.-m auditwas described as "I/O purity enforcement (AST checks)" —tests/audit/now contains model-type-safety and pattern-status audits; purity lives under-m unit. Corrected.Where each deleted section landed
node_quality_scoring_compute/node.py,node_claude_hook_event_effect/node.py,node_pattern_promotion_effect/node.py)contract.yaml+ one-paragraph key inventoryomnibase_infra/src/omnibase_infra/runtime/runtime_host_process.py(core-owned architecture)docs/reference/EVENT_SURFACE.md(the file's own stated source of truth; tables were self-contradicting that rule)EnumIntelligenceOperationTypeoperations table → pointer atenums/enum_intelligence_operation_type.py; FSM flows →enums/enum_fsm.pyrepositories/learned_patterns.repository.yamlpyproject.toml [project.entry-points."onex.nodes"]+docs/reference/NODE_INVENTORY.mdpyproject.toml, handler dirs,tests/conftest.py)dispatch_handler_*.pyglob descriptionCompanion doc coherence:
docs/reference/EVENT_SURFACE.mdanddocs/INDEX.mdno longer cite "CLAUDE.md topic tables" as a verification source (contract YAML is the single source).dod_evidence
wc -c CLAUDE.mdat 6ab20bc); target ≤ ~24,000 metpre-commit run --files CLAUDE.md docs/INDEX.md docs/reference/EVENT_SURFACE.md— all hooks Passed/Skipped(no files) on.200(Stickybeatz-Studio); docs-only diff, no Python changes.200, sha256-verified identical (c4ba8adc… CLAUDE.md,48aa4b7f… docs/INDEX.md,2af75ee9… docs/reference/EVENT_SURFACE.md), committed and pushed from.200$OMNI_HOME/omni_worktrees/OMN-15199/omniintelligence, branched fromorigin/dev@ 287f001 (workspace rule 9 respected)Evidence-Ticket: OMN-15199
Evidence-Source: OCC#5012