Skip to content

feat(ids): track .aiox-core/core/docs/ in entity registry SCAN_CONFIG - #753

Merged
rafaelscosta merged 2 commits into
mainfrom
fix/scan-config-core-docs
May 18, 2026
Merged

feat(ids): track .aiox-core/core/docs/ in entity registry SCAN_CONFIG#753
rafaelscosta merged 2 commits into
mainfrom
fix/scan-config-core-docs

Conversation

@rafaelscosta

@rafaelscosta rafaelscosta commented May 18, 2026

Copy link
Copy Markdown
Collaborator

Summary

Closes the Pacote E follow-up from the 2026-05-17 handoff. The IDS registry's modules scan covers .aiox-core/core/**/*.{js,mjs} only, so framework documentation under .aiox-core/core/docs/ was invisible to impact analysis. Operators editing those guides got no signal in aiox graph, *ids queries, or pre-push validation when references shifted.

What changes

  • Added { category: 'core-docs', basePath: '.aiox-core/core/docs', glob: '**/*.md', type: 'docs' } to SCAN_CONFIG in populate-entity-registry.js.
  • Added explicit docs: 0.5 to ADAPTABILITY_DEFAULTS (same numeric outcome as the fallback, but documents intent: reference material, mutable across major project evolution but rarely per-mission).
  • Registry regenerated: total entities 816 → 820 with 5 new core-docs entries.

Files newly visible

  • SHARD-TRANSLATION-GUIDE.md
  • component-creation-guide.md
  • session-update-pattern.md
  • template-syntax.md
  • troubleshooting-guide.md

Validation

  • npm run lint → exit 0
  • node .aiox-core/development/scripts/populate-entity-registry.js → 5 core-docs found, 100% resolution rate
  • Manual inspection of entity-registry.yaml confirms entities.core-docs.* with correct purposes extracted from frontmatter / overview / title (per PR fix(ids): scope purpose inference + sync self-entry on regen #748 priority chain)

Test plan

  • CI essentials green
  • Post-merge: aiox graph --deps reflects the new core-docs category

Co-Authored-By: Claude Opus 4.7 (1M context) noreply@anthropic.com

Summary by CodeRabbit

  • New Features

    • Added documentation entity registration and indexing support.
  • Tests

    • Updated tests to expect the new documentation category and its indexing behavior.
  • Chores

    • Updated system configuration metadata and regenerate install manifest.

Review Change Stack

Follow-up to PR #748. The IDS registry's `modules` scan only catches
`.aiox-core/core/**/*.{js,mjs}`, so framework documentation under
`.aiox-core/core/docs/` was invisible to impact analysis. Operators
editing those guides got no signal in `aiox graph`, `*ids` queries,
or pre-push validation when references shifted.

## Files added to the registry

- `SHARD-TRANSLATION-GUIDE.md` — shard composition reference
- `component-creation-guide.md` — meta-agent enhanced template system
- `session-update-pattern.md` — session state regen pattern
- `template-syntax.md` — handlebars template syntax reference
- `troubleshooting-guide.md` — common framework recovery flows

Total entities: 816 → 820 (one was already auto-tracked under data; the
others are newly visible).

## Implementation

- Added `{ category: 'core-docs', basePath: '.aiox-core/core/docs',
  glob: '**/*.md', type: 'docs' }` to `SCAN_CONFIG`.
- Added explicit `docs: 0.5` to `ADAPTABILITY_DEFAULTS` (matches `data`
  type: reference material, mutable across major project evolution but
  rarely per-mission). Without this, the script would fall through to
  the generic 0.5 default — same numeric outcome but the explicit entry
  documents intent.

## Validation

- [x] `npm run lint` → exit 0
- [x] `node .aiox-core/development/scripts/populate-entity-registry.js`
  reports "Found 5 core-docs" + 100% resolution rate (1289/1289 deps)
- [x] All 5 markdown files appear under `entities.core-docs.*` with
  correct `type: docs` and parsed purposes (e.g.
  `component-creation-guide` purpose extracted from frontmatter).

Closes the 2026-05-17 handoff's Pacote E follow-up.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@vercel

vercel Bot commented May 18, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
aiox-core Ready Ready Preview, Comment May 18, 2026 5:43am

Request Review

@github-actions github-actions Bot added the area: docs Documentation (docs/) label May 18, 2026
@coderabbitai

coderabbitai Bot commented May 18, 2026

Copy link
Copy Markdown

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: d7b063f4-86fe-4dd9-961b-088ab9f79335

📥 Commits

Reviewing files that changed from the base of the PR and between cc34030 and 1a2a8ab.

📒 Files selected for processing (1)
  • tests/core/ids/populate-entity-registry.test.js

Walkthrough

Adds a SCAN_CONFIG rule to register core markdown docs as docs entities and sets ADAPTABILITY_DEFAULTS.docs = 0.5. Tests updated to expect a new core-docs category and the install manifest was regenerated with updated metadata.

Changes

Documentation Registry Configuration

Layer / File(s) Summary
Docs entity scanning and adaptability defaults
.aiox-core/development/scripts/populate-entity-registry.js, tests/core/ids/populate-entity-registry.test.js
Added core-docs scan rule for .aiox-core/core/docs/**/*.md registering them as docs entities; added docs: 0.5 to ADAPTABILITY_DEFAULTS; tests updated to expect the new category and its properties.
Generated manifest artifacts
.aiox-core/install-manifest.yaml
Updated generated_at timestamp and refreshed SHA256 hash and size entries for data/entity-registry.yaml and development/scripts/populate-entity-registry.js.

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~20 minutes

Possibly related PRs

  • SynkraAI/aiox-core#703: Introduced scan-config path resolution and dependency detection in populate-entity-registry.js; this PR extends that framework by adding the core-docs scan rule and corresponding adaptability defaults.

Suggested labels

area: core, type: test

Suggested reviewers

  • Pedrovaleriolopez
  • oalanicolas
🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately summarizes the main change: adding .aiox-core/core/docs/ to the entity registry SCAN_CONFIG for documentation tracking.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ 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 fix/scan-config-core-docs

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.

@github-actions

github-actions Bot commented May 18, 2026

Copy link
Copy Markdown
Contributor

📊 Coverage Report

Coverage report not available

📈 Full coverage report available in Codecov


Generated by PR Automation (Story 6.1)

@coderabbitai coderabbitai 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.

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (1)
.aiox-core/development/scripts/populate-entity-registry.js (1)

822-840: 🛠️ Refactor suggestion | 🟠 Major | ⚡ Quick win

Add description for 'core-docs' category.

The getCategoryDescription function is missing a description entry for the newly added core-docs category. While the fallback prevents runtime errors, adding a description maintains consistency with all other categories and improves clarity for tooling that uses these descriptions.

📝 Proposed addition
 function getCategoryDescription(category) {
   const descriptions = {
     tasks: 'Executable task workflows for agent operations',
     templates: 'Document and code generation templates',
     scripts: 'Utility and automation scripts',
     modules: 'Core framework modules and libraries',
     agents: 'Agent persona definitions and configurations',
     checklists: 'Validation and review checklists',
     data: 'Configuration and reference data files',
     workflows: 'Multi-phase orchestration workflows',
     utils: 'Shared utility libraries and helpers',
     tools: 'Development tool definitions and configurations',
     'infra-scripts': 'Infrastructure automation and utility scripts',
     'infra-tools': 'Infrastructure tool definitions and configurations',
     'product-checklists': 'Product validation and review checklists',
     'product-data': 'Product reference data and configuration files',
+    'core-docs': 'Framework documentation and reference guides',
   };
   return descriptions[category] || category;
 }
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In @.aiox-core/development/scripts/populate-entity-registry.js around lines 822
- 840, The getCategoryDescription function lacks an entry for the new
'core-docs' category; add a mapping in the descriptions object (inside
getCategoryDescription) with key 'core-docs' and a concise description (e.g.,
'Core documentation and reference guides') so it is handled consistently like
other categories.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Outside diff comments:
In @.aiox-core/development/scripts/populate-entity-registry.js:
- Around line 822-840: The getCategoryDescription function lacks an entry for
the new 'core-docs' category; add a mapping in the descriptions object (inside
getCategoryDescription) with key 'core-docs' and a concise description (e.g.,
'Core documentation and reference guides') so it is handled consistently like
other categories.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 21258491-bf3c-4f9b-a094-c48a2007eeec

📥 Commits

Reviewing files that changed from the base of the PR and between 38cfa89 and cc34030.

📒 Files selected for processing (3)
  • .aiox-core/data/entity-registry.yaml
  • .aiox-core/development/scripts/populate-entity-registry.js
  • .aiox-core/install-manifest.yaml

coderabbitai[bot]
coderabbitai Bot previously approved these changes May 18, 2026
The previous test pinned `SCAN_CONFIG.length` at 14 (10 original + 4
NOG-16A). Adding `core-docs` raises the count to 15. Test name and
assertions updated accordingly. Added a type/basePath assertion for
the new `core-docs` entry alongside the existing checks.

Suite: 96/96 pass (was 95/95 — net unchanged in pass count because the
pinning test simply changed its expectation).

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@rafaelscosta
rafaelscosta merged commit d877231 into main May 18, 2026
40 checks passed
@rafaelscosta
rafaelscosta deleted the fix/scan-config-core-docs branch May 18, 2026 05:46
tuanmedeiros pushed a commit to tuanmedeiros/aios-core-synkraay that referenced this pull request Jun 2, 2026
…SynkraAI#753)

* feat(ids): track .aiox-core/core/docs/ in entity registry SCAN_CONFIG

Follow-up to PR SynkraAI#748. The IDS registry's `modules` scan only catches
`.aiox-core/core/**/*.{js,mjs}`, so framework documentation under
`.aiox-core/core/docs/` was invisible to impact analysis. Operators
editing those guides got no signal in `aiox graph`, `*ids` queries,
or pre-push validation when references shifted.

## Files added to the registry

- `SHARD-TRANSLATION-GUIDE.md` — shard composition reference
- `component-creation-guide.md` — meta-agent enhanced template system
- `session-update-pattern.md` — session state regen pattern
- `template-syntax.md` — handlebars template syntax reference
- `troubleshooting-guide.md` — common framework recovery flows

Total entities: 816 → 820 (one was already auto-tracked under data; the
others are newly visible).

## Implementation

- Added `{ category: 'core-docs', basePath: '.aiox-core/core/docs',
  glob: '**/*.md', type: 'docs' }` to `SCAN_CONFIG`.
- Added explicit `docs: 0.5` to `ADAPTABILITY_DEFAULTS` (matches `data`
  type: reference material, mutable across major project evolution but
  rarely per-mission). Without this, the script would fall through to
  the generic 0.5 default — same numeric outcome but the explicit entry
  documents intent.

## Validation

- [x] `npm run lint` → exit 0
- [x] `node .aiox-core/development/scripts/populate-entity-registry.js`
  reports "Found 5 core-docs" + 100% resolution rate (1289/1289 deps)
- [x] All 5 markdown files appear under `entities.core-docs.*` with
  correct `type: docs` and parsed purposes (e.g.
  `component-creation-guide` purpose extracted from frontmatter).

Closes the 2026-05-17 handoff's Pacote E follow-up.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>

* test(ids): expand SCAN_CONFIG count to 15 for new core-docs category

The previous test pinned `SCAN_CONFIG.length` at 14 (10 original + 4
NOG-16A). Adding `core-docs` raises the count to 15. Test name and
assertions updated accordingly. Added a type/basePath assertion for
the new `core-docs` entry alongside the existing checks.

Suite: 96/96 pass (was 95/95 — net unchanged in pass count because the
pinning test simply changed its expectation).

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: docs Documentation (docs/) type: test Test coverage and quality

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant