documentation-layout - per-repo AGENTS.md cap override, relocate doctrine to skills #84
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Context
AGENTS.md trim work (follow-on to #81 / agentic-os-kai#370). The structural-move phase showed the file's irreducible floor exceeds the flat 4000-char cap once universal-fire doctrine and leak-critical SSM/secrets rules are kept inline. Decision: let a repo opt AGENTS.md into a larger cap, scoped per-repo, rather than a global basename exception.
Changes
agentic_os/config.py: newget_int_option(hook_id, key, default, repo_root)helper (rejects non-int and bool).agentic_os/check_documentation_layout.py:caps_for()reads per-repo config keysagents_md_max_lines/agents_md_max_chars, defaulting to the standard Markdown cap. No global AGENTS.md blessing - a repo opts in via its own config, everyone else (including this repo's own small AGENTS.md) keeps 4000/80.tests/test_config.py: 5 new tests forget_int_option(default, pyproject read, non-int reject, bool reject, hook-scoping). Suite: 28 passed..agents/skills/kai-git-workflow: now owns the base git workflow rules (relocated from agentic-os-kai AGENTS.md) plus Default TODO destination (Forgejo) and test-flake discipline; added a precedence note reconciling the older GitHub-tracker section..agents/skills/tooling-skill-authoring: gained a general documentation-discipline section (four biases, layout, code comments) relocated from AGENTS.md.Relation to prior decisions
Partially revisits #83 (which reverted #82's loader-bound tier). Unlike #82's global basename tier, this is opt-in per-repo and only the canonical agentic-os-kai AGENTS.md opts in.