Files
computer-playbook/docs/contributing/design/role/services
kevinveenbirkenbachandClaude Opus 5 3d6b3900e0 refactor(cli): gather the documentation generators under cli/build/docs
Two of them lived inside docs/ next to the pages they render, which is why both had grown a __file__ upward walk to find the repository root, a sys.path insert to import from utils, and a nocheck for each. A generator parked among documents reads as documentation and drops out of the checks that apply to code.

Moving them surfaced six real violations that the old location had hidden: yaml.safe_load instead of the shared cache, two uncached read_text calls, five hard-coded role paths instead of ROLE_FILE_META_SERVICES and ROLE_FILE_META_MCP, two make targets without an alias, and a requirement reference in code. All six are fixed at the root, none with a suppression, and both generators lose their project-root exemptions because a package supplies PROJECT_ROOT.

cli/build/readme joins them so the three generators that write into docs/ sit together. A new lint keeps docs/ to .md, .html, .rst and .nocheck; it enumerates through git ls-files so untracked __pycache__ is not its business. Checked against HEAD, it names exactly the three .py files that moved.

026-unified-addon-syntax stated that the matrix generator stays under docs/requirements/. The lint makes that impossible, so the requirement now records where the generator actually lives.

Verified: every one of the twelve modules under the new tree imports, no old module path survives anywhere in the repository, 482 lint tests and 1246 cli unit tests pass, and both generators run without drift.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-09-08 23:17:55 +02:00
..

Services 🧱

This directory contains contributor guidance for Infinito.Nexus shared services. Its scope is the model that defines how shared services are declared, discovered, loaded, injected, and consumed, plus the per-service contracts that role authors and consumers MUST follow.

Pages 📚

Page Purpose
layout.md Per-role meta/<topic>.yml shape, file-root convention, services-inlining rule, meta/secrets.yml (incl. the default: field), per-role networks: and per-entity ports shape, run_after/lifecycle placement.
base.md Service registration, discovery, load order, injection model, lookup plugins.
email.md email lookup plugin contract.
mcp.md mcp service block: fields, allowed values, endpoint metadata, client discovery.
lifecycle.md Role lifecycle stages and what each one promises.