@event4u/agent-config 1.24.0 → 1.26.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (75) hide show
  1. package/.agent-src/commands/review-routing.md +7 -10
  2. package/.agent-src/contexts/authority/kernel-rule-edits.md +48 -0
  3. package/.agent-src/contexts/authority/scope-mechanics.md +15 -0
  4. package/.agent-src/contexts/contracts/consumer-agents-md-guide.md +127 -0
  5. package/.agent-src/contexts/contracts/emergency-triage-block.md +53 -0
  6. package/.agent-src/rules/analysis-skill-routing.md +1 -1
  7. package/.agent-src/rules/artifact-drafting-protocol.md +1 -1
  8. package/.agent-src/rules/artifact-engagement-recording.md +1 -1
  9. package/.agent-src/rules/augment-source-of-truth.md +1 -1
  10. package/.agent-src/rules/autonomous-execution.md +1 -1
  11. package/.agent-src/rules/caveman-speak.md +1 -1
  12. package/.agent-src/rules/cli-output-handling.md +1 -1
  13. package/.agent-src/rules/command-suggestion-policy.md +1 -1
  14. package/.agent-src/rules/docs-sync.md +1 -1
  15. package/.agent-src/rules/guidelines.md +1 -1
  16. package/.agent-src/rules/improve-before-implement.md +1 -1
  17. package/.agent-src/rules/invite-challenge.md +1 -1
  18. package/.agent-src/rules/minimal-safe-diff.md +1 -1
  19. package/.agent-src/rules/model-recommendation.md +1 -1
  20. package/.agent-src/rules/no-attribution-footers.md +1 -1
  21. package/.agent-src/rules/no-roadmap-references.md +56 -20
  22. package/.agent-src/rules/onboarding-gate.md +1 -1
  23. package/.agent-src/rules/package-ci-checks.md +1 -1
  24. package/.agent-src/rules/reviewer-awareness.md +9 -2
  25. package/.agent-src/rules/roadmap-progress-sync.md +1 -1
  26. package/.agent-src/rules/scope-control.md +6 -0
  27. package/.agent-src/rules/security-sensitive-stop.md +1 -1
  28. package/.agent-src/rules/size-enforcement.md +1 -1
  29. package/.agent-src/rules/token-optimizer-maintenance.md +1 -1
  30. package/.agent-src/rules/ui-audit-gate.md +1 -1
  31. package/.agent-src/skills/adr-create/SKILL.md +2 -1
  32. package/.agent-src/skills/agents-md-thin-root/SKILL.md +125 -0
  33. package/.agent-src/skills/ai-council/SKILL.md +9 -7
  34. package/.agent-src/skills/review-routing/SKILL.md +3 -4
  35. package/.agent-src/templates/AGENTS.md +18 -148
  36. package/.agent-src/templates/copilot-instructions.md +41 -17
  37. package/.agent-src/templates/github-workflows/pr-risk-review.yml +1 -1
  38. package/.agent-src/templates/scripts/pr_review_routing.py +1 -1
  39. package/.claude-plugin/marketplace.json +2 -1
  40. package/AGENTS.md +18 -216
  41. package/CHANGELOG.md +58 -0
  42. package/README.md +2 -2
  43. package/docs/architecture.md +13 -7
  44. package/docs/catalog.md +26 -27
  45. package/docs/contracts/agents-md-tech-stack.md +74 -0
  46. package/docs/contracts/linear-ai-rules-inclusion.md +1 -1
  47. package/docs/contracts/linter-structural-model.md +180 -0
  48. package/docs/contracts/package-self-orientation.md +135 -0
  49. package/docs/contracts/rule-classification.md +4 -4
  50. package/docs/decisions/ADR-004-rule-governance-pruning.md +240 -0
  51. package/docs/getting-started.md +1 -1
  52. package/docs/guidelines/agent-infra/review-routing-data-format.md +1 -2
  53. package/docs/guidelines/agent-infra/size-and-scope.md +18 -12
  54. package/package.json +1 -1
  55. package/scripts/_p4_migrate.py +5 -5
  56. package/scripts/audit_auto_rules.py +159 -0
  57. package/scripts/audit_likelihood.py +148 -0
  58. package/scripts/audit_overlap.py +145 -0
  59. package/scripts/build_rule_trigger_matrix.py +3 -5
  60. package/scripts/check_augment_description_cap.py +79 -0
  61. package/scripts/check_council_references.py +3 -3
  62. package/scripts/check_kernel_rule_bundle.py +151 -0
  63. package/scripts/check_references.py +21 -1
  64. package/scripts/compile_router.py +3 -0
  65. package/scripts/install.sh +0 -1
  66. package/scripts/lint_agents_md.py +168 -0
  67. package/scripts/measure_augment_budget.py +208 -0
  68. package/scripts/measure_density.py +232 -0
  69. package/scripts/schemas/rule.schema.json +2 -1
  70. package/scripts/skill_linter.py +166 -31
  71. package/scripts/spotcheck_thin_root.py +134 -0
  72. package/scripts/update_counts.py +6 -10
  73. package/.agent-src/rules/no-council-references.md +0 -76
  74. package/.agent-src/rules/review-routing-awareness.md +0 -19
  75. package/.agent-src/templates/copilot-review-instructions.md +0 -76
@@ -1,76 +0,0 @@
1
- ---
2
- type: "auto"
3
- tier: "mechanical-already"
4
- description: "Linking a specific file in agents/council-{questions,responses,sessions}/ from any artifact — council files are gitignored, local-only, auto-pruned; inline the convergence instead"
5
- alwaysApply: false
6
- source: package
7
- triggers:
8
- - path_prefix: "agents/council-questions/"
9
- - path_prefix: "agents/council-responses/"
10
- - path_prefix: "agents/council-sessions/"
11
- - intent: "link to council artefact"
12
- routes_to:
13
- - "skill:ai-council"
14
- validator_ignore:
15
- - type: "substring"
16
- pattern: ".agent-src.uncompressed/"
17
- reason: "Rule references the authoring tree when contrasting transient council files."
18
- ---
19
-
20
- # No Council References from Any Artifact
21
-
22
- Council artefacts under `agents/council-{questions,responses,sessions}/`
23
- are **gitignored, local-only, and auto-pruned** after
24
- `ai_council.session_retention_days` (default 7). They are
25
- disposable scratch — never part of the repo, never visible to a
26
- reviewer who clones, never durable across the retention window.
27
-
28
- A link to a specific council file rots three ways: gitignored
29
- (not in cloned repo), pruned after retention window (gone even
30
- locally), and the installed `.augment/` projection cannot follow a
31
- path that does not exist in the consumer.
32
-
33
- ## The Iron Law
34
-
35
- ```
36
- NEVER LINK TO A SPECIFIC FILE INSIDE
37
- agents/council-{questions,responses,sessions}/
38
- FROM ANY ARTIFACT — ROADMAPS INCLUDED.
39
- INLINE THE CONVERGENCE WITH DATE + MEMBERS, NEVER THE PATH.
40
- ```
41
-
42
- Applies to **every** artifact. Council artefacts are more transient
43
- than roadmaps — the local copy disappears too.
44
-
45
- ## Forbidden vs allowed
46
-
47
- **Forbidden** in any `*.md` / `*.yml` / `*.json` / `*.py`:
48
- `agents/council-questions/<file>.md`,
49
- `agents/council-responses/<file>.json`,
50
- `agents/council-sessions/<file>.json` or `<timestamp>/...`.
51
-
52
- **Allowed**: directory mentions (talking about the output convention,
53
- not a specific file); the `ai-council` skill and `/council:*` commands
54
- documenting the output path schema; inline convergence summary —
55
- e.g. *"Council (claude-sonnet-4-5 + gpt-4o, 2026-05-06) converged
56
- on …"* with date + members, no filepath.
57
-
58
- ## What to do instead
59
-
60
- Identify the durable conclusion (decision, contract, lesson),
61
- inline a convergence-summary block (members, date, cost if relevant
62
- — see `ai-council` § Output format), and optionally promote the
63
- lesson to `agents/contexts/`. The context is durable; the council
64
- file was the catalyst.
65
-
66
- Failure mode: *"I'll just link to the session JSON, it's evidence."*
67
- The session is gone in 7 days. **Inline first, link never.**
68
-
69
- ## See also
70
-
71
- - [`no-roadmap-references`](no-roadmap-references.md) — sibling rule
72
- for the roadmap layer
73
- - [`augment-source-of-truth`](augment-source-of-truth.md) — edit
74
- `.agent-src.uncompressed/`
75
- - [`ai-council`](../skills/ai-council/SKILL.md) — output path
76
- convention and convergence-summary format
@@ -1,19 +0,0 @@
1
- ---
2
- type: "auto"
3
- tier: "2a"
4
- description: "When routing reviewers or flagging risk hotspots — consult ownership-map and historical-bug-patterns before suggesting reviewers or claiming a change is safe"
5
- source: package
6
- triggers:
7
- - keyword: "reviewer"
8
- - phrase: "risk hotspot"
9
- - phrase: "ownership map"
10
- routes_to:
11
- - "skill:review-routing"
12
- ---
13
-
14
- # Review Routing Awareness
15
-
16
- **Iron Law.** Consult ownership-map and historical-bug-patterns before suggesting reviewers or claiming a change is safe.
17
-
18
- Body migrated to `skill:review-routing` (per P4 of `road-to-kernel-and-router.md`).
19
- Trigger-set above activates this routing under the `balanced` and `full` profiles.
@@ -1,76 +0,0 @@
1
- # Copilot Code Review — Repository-Specific Suppressions
2
-
3
- > Read by GitHub Copilot Code Review (PR bot) when reviewing this repo.
4
- > Companion to `.github/copilot-instructions.md`. **This file is the
5
- > path-resolution suppression floor** — it carries the rules Copilot
6
- > needs to *not* flag, sharply scoped to the agent-config layout.
7
-
8
- ## Why this file exists
9
-
10
- The repo ships agent-config rules, skills, commands, and contexts under
11
- `.augment/`, `.agent-src/`, and (during authoring) `.agent-src.uncompressed/`.
12
- Cross-references inside those trees are valid via the **delivered**
13
- `.augment/` layout — not via raw git checkout. Copilot's static checker
14
- walks the git tree, so it sees broken paths where there are none.
15
-
16
- This is **intentional, not a bug**. The installer (`scripts/install.sh`)
17
- projects `.agent-src/` → `.augment/` and creates the symlinks that make
18
- the paths resolve at agent runtime.
19
-
20
- ## ✅ Known False Positives — Do NOT Flag
21
-
22
- ### Relative cross-references inside markdown rules / skills / commands
23
-
24
- ```markdown
25
- [link](../docs/guidelines/foo.md)
26
- [link](../contexts/bar.md)
27
- [link](../docs/guidelines/baz.md)
28
- ```
29
-
30
- These resolve from the file's delivered location (e.g.
31
- `.augment/rules/<rule>.md`). Even when the file is symlinked into
32
- `.claude/rules/`, `.cursor/rules/`, or `.clinerules/`, the relative
33
- form is correct by construction.
34
-
35
- ### `path_prefix:` triggers containing `.agent-src.uncompressed/`
36
-
37
- ```yaml
38
- triggers:
39
- - path_prefix: ".agent-src.uncompressed/rules/"
40
- ```
41
-
42
- This is a **literal match string** for the host's router — *not* a file
43
- reference. Source-of-truth meta-rules (`augment-source-of-truth`,
44
- `augment-portability`, `skill-quality`, `docs-sync`,
45
- `rule-type-governance`) legitimately match against the authoring tree.
46
-
47
- ### Symlinked rule / skill / command files
48
-
49
- Targets resolve into `.augment/rules/`, `.augment/skills/`,
50
- `.augment/commands/` via installer-managed symlinks. Missing-file
51
- reports under `.claude/`, `.cursor/`, `.clinerules/` are renderer
52
- artifacts, not real bugs.
53
-
54
- ### Body-link forms `../docs/guidelines/...`
55
-
56
- Single-up form is the post-rewrite shape produced by
57
- `scripts/compress.py`. The compressed `.agent-src/rules/` tree is one
58
- level deeper than the source `.agent-src.uncompressed/rules/`, so the
59
- rewriter collapses `../../docs/...` to `../docs/...`. Both forms are
60
- expected — one in source, one in compressed output.
61
-
62
- ## ✅ What TO flag
63
-
64
- - Code defects, security issues, broken tests, type errors — normal
65
- review.
66
- - New `.agent-src.uncompressed/` substrings introduced into
67
- `.agent-src/rules/` body content (the `check-compressed-paths` task
68
- already gates this — flag it as a regression if it slips through).
69
- - Rule frontmatter with `load_context:` entries that don't follow the
70
- logical-name convention (`contexts/<area>/<file>.md`).
71
-
72
- ## Pointer
73
-
74
- The full architecture is in `docs/architecture.md` § "Path resolution
75
- and Copilot integration". The compressed-path validator is
76
- `scripts/check_compressed_paths.py`, wired into `task ci`.