@event4u/agent-config 2.12.0 → 2.14.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 (107) hide show
  1. package/.agent-src/commands/council/analysis.md +142 -0
  2. package/.agent-src/commands/council/debate.md +129 -0
  3. package/.agent-src/commands/council/default.md +8 -0
  4. package/.agent-src/commands/council/design.md +16 -12
  5. package/.agent-src/commands/council/optimize.md +16 -15
  6. package/.agent-src/commands/council/pr.md +12 -12
  7. package/.agent-src/commands/council.md +48 -2
  8. package/.agent-src/commands/memory/learn-low-impact.md +143 -0
  9. package/.agent-src/personas/advisors/contrarian.md +95 -0
  10. package/.agent-src/personas/advisors/executor.md +99 -0
  11. package/.agent-src/personas/advisors/expansionist.md +98 -0
  12. package/.agent-src/personas/advisors/first-principles.md +98 -0
  13. package/.agent-src/personas/advisors/outsider.md +102 -0
  14. package/.agent-src/rules/ask-when-uncertain.md +10 -6
  15. package/.agent-src/rules/copilot-routing.md +19 -0
  16. package/.agent-src/rules/devcontainer-routing.md +20 -0
  17. package/.agent-src/rules/external-reference-deep-dive.md +1 -1
  18. package/.agent-src/rules/fast-path-marker-visibility.md +38 -0
  19. package/.agent-src/rules/laravel-routing.md +20 -0
  20. package/.agent-src/rules/low-impact-corpus-privacy-floor.md +74 -0
  21. package/.agent-src/rules/symfony-routing.md +20 -0
  22. package/.agent-src/skills/ai-council/SKILL.md +388 -10
  23. package/.agent-src/skills/copilot-config/SKILL.md +1 -1
  24. package/.agent-src/skills/devcontainer/SKILL.md +1 -1
  25. package/.agent-src/skills/laravel/SKILL.md +1 -1
  26. package/.agent-src/skills/project-analysis-core/SKILL.md +1 -1
  27. package/.agent-src/skills/project-analyzer/SKILL.md +1 -1
  28. package/.agent-src/skills/symfony-workflow/SKILL.md +1 -1
  29. package/.agent-src/skills/universal-project-analysis/SKILL.md +1 -1
  30. package/.agent-src/templates/agents/agent-project-settings.example.yml +1 -1
  31. package/.claude-plugin/marketplace.json +4 -1
  32. package/AGENTS.md +1 -1
  33. package/CHANGELOG.md +346 -124
  34. package/CONTRIBUTING.md +5 -0
  35. package/README.md +6 -6
  36. package/config/agent-settings.template.yml +5 -93
  37. package/config/gitignore-block.txt +6 -0
  38. package/docs/architecture/multi-tool-projection.md +53 -0
  39. package/docs/architecture/{compression.md → source-projection.md} +21 -3
  40. package/docs/architecture.md +15 -15
  41. package/docs/archive/CHANGELOG-pre-2.11.0.md +141 -0
  42. package/docs/catalog.md +25 -12
  43. package/docs/contracts/adr-architectural-consensus-mechanism.md +68 -0
  44. package/docs/contracts/adr-level-6-productization.md +7 -9
  45. package/docs/contracts/ai-council-config.md +658 -0
  46. package/docs/contracts/command-clusters.md +58 -2
  47. package/docs/contracts/command-surface-tiers.md +3 -2
  48. package/docs/contracts/cost-profile-defaults.md +5 -0
  49. package/docs/contracts/decision-engine-gates.md +5 -0
  50. package/docs/contracts/decision-trace-v1.md +2 -2
  51. package/docs/contracts/file-ownership-matrix.json +1735 -72
  52. package/docs/contracts/installed-tools-lockfile.md +2 -1
  53. package/docs/contracts/low-impact-corpus-format.md +95 -0
  54. package/docs/contracts/mcp-beta-criteria.md +6 -5
  55. package/docs/contracts/mcp-cloud-scope.md +5 -4
  56. package/docs/contracts/multi-tool-projection-fidelity.md +115 -0
  57. package/docs/contracts/release-trunk-sync.md +4 -3
  58. package/docs/contracts/tier-3-contrib-plugin.md +5 -6
  59. package/docs/getting-started.md +2 -2
  60. package/docs/guidelines/agent-infra/installed-tools-manifest.md +2 -1
  61. package/docs/installation.md +32 -0
  62. package/package.json +1 -1
  63. package/scripts/_archive/README.md +59 -0
  64. package/scripts/_cli/cmd_doctor.py +134 -0
  65. package/scripts/ai_council/_default_prices.py +10 -1
  66. package/scripts/ai_council/advisors.py +148 -0
  67. package/scripts/ai_council/airgap.py +165 -0
  68. package/scripts/ai_council/cli_hints.py +123 -0
  69. package/scripts/ai_council/clients.py +959 -5
  70. package/scripts/ai_council/compile_corpus.py +178 -0
  71. package/scripts/ai_council/confidence_gate.py +156 -0
  72. package/scripts/ai_council/config.py +1364 -0
  73. package/scripts/ai_council/consensus.py +329 -0
  74. package/scripts/ai_council/events_log.py +137 -0
  75. package/scripts/ai_council/learn_low_impact_preview.py +252 -0
  76. package/scripts/ai_council/low_impact.py +714 -0
  77. package/scripts/ai_council/low_impact_corpus.py +466 -0
  78. package/scripts/ai_council/low_impact_intake.py +163 -0
  79. package/scripts/ai_council/modes.py +6 -1
  80. package/scripts/ai_council/necessity.py +782 -0
  81. package/scripts/ai_council/orchestrator.py +872 -20
  82. package/scripts/ai_council/probation_gate.py +152 -0
  83. package/scripts/ai_council/prompts.py +335 -0
  84. package/scripts/ai_council/redact_low_impact_entry.py +155 -0
  85. package/scripts/ai_council/replay.py +155 -0
  86. package/scripts/ai_council/session.py +19 -1
  87. package/scripts/ai_council/shadow_dispatch.py +235 -0
  88. package/scripts/ai_council/solo_dispatch.py +226 -0
  89. package/scripts/audit_cloud_compatibility.py +74 -0
  90. package/scripts/audit_command_surface.py +363 -0
  91. package/scripts/check_compressed_paths.py +6 -1
  92. package/scripts/check_council_layout.py +11 -0
  93. package/scripts/ci_time_ratio.py +168 -0
  94. package/scripts/council_cli.py +2005 -30
  95. package/scripts/install.sh +12 -0
  96. package/scripts/measure_projection_bytes.py +159 -0
  97. package/scripts/measure_roadmap_trajectory.py +112 -0
  98. package/scripts/probe_projection_fidelity.py +202 -0
  99. package/scripts/score_skill_selection.py +198 -0
  100. package/scripts/skill_collision_clusters.py +162 -0
  101. /package/scripts/{_backfill_skill_domains.py → _archive/_backfill_skill_domains.py} +0 -0
  102. /package/scripts/{_bootstrap_tier_frontmatter.py → _archive/_bootstrap_tier_frontmatter.py} +0 -0
  103. /package/scripts/{_p43_bodies.py → _archive/_p43_bodies.py} +0 -0
  104. /package/scripts/{_p43_compress.py → _archive/_p43_compress.py} +0 -0
  105. /package/scripts/{_p4_migrate.py → _archive/_p4_migrate.py} +0 -0
  106. /package/scripts/{_phase2_shim_helper.py → _archive/_phase2_shim_helper.py} +0 -0
  107. /package/scripts/{_pilot_council_question.py → _archive/_pilot_council_question.py} +0 -0
@@ -33,7 +33,7 @@ column 1 of this table.
33
33
  | `feature` | 1 | `explore` · `plan` · `refactor` · `roadmap` · `dev` | `feature-explore` · `feature-plan` · `feature-refactor` · `feature-roadmap` · `feature-dev` |
34
34
  | `chat-history` | 2 | `show` · `import` · `learn` | `chat-history` (legacy status) — `resume` / `clear` / `checkpoint` removed in `road-to-chat-history-hook-only` (auto-adopt + structural hooks); `import` (verbatim cross-session render) and `learn` (project-improving learning extraction) added in the v4 stateless schema |
35
35
  | `agents` | 2 | `init` · `optimize` · `audit` | AGENTS.md file family (high-frequency) — repurposed 2026-05-09: `init` (was `/copilot-agents init`) · `optimize` (merger of `/optimize agents-md` + `/copilot-agents optimize`) · `audit` (was `/optimize agents`, collapses old `audit` + `check` verbs); legacy folder ops (`prepare` / `cleanup` / folder-`audit`) moved to `/optimize agents-dir` |
36
- | `memory` | 2 | `add` · `load` · `promote` · `propose` · `mine-session` | `memory-add` · `memory-full` · `memory-promote` · `propose-memory`; `mine-session` added 2026-05-10 — manual transcript-mining sub-command from `road-to-dream-skill-adoption.md`, opt-in via `--confirm-transcript-access` per invocation |
36
+ | `memory` | 2 | `add` · `load` · `promote` · `propose` · `mine-session` · `learn-low-impact` | `memory-add` · `memory-full` · `memory-promote` · `propose-memory`; `mine-session` added 2026-05-10 — manual transcript-mining sub-command from `road-to-dream-skill-adoption.md`, opt-in via `--confirm-transcript-access` per invocation; `learn-low-impact` added 2026-05-15 — upstreams `## Validated` entries from `agents/low-impact-decisions.md` to the package seed via a DRAFT PR (re-runs the privacy-floor redactor as a second gate per `low-impact-corpus-privacy-floor`) |
37
37
  | `roadmap` | 2 | `create` · `ai-council` · `process-step` · `process-phase` · `process-full` | `roadmap-create` · `roadmap-execute` (replaced — autonomous, no per-step gate; `process-phase` is the default execution scope); `ai-council` added 2026-05-07 — wraps `/council default` with `--input-mode roadmap --depth deep` |
38
38
  | `module` | 2 | `create` · `explore` | `module-create` · `module-explore` |
39
39
  | `tests` | 2 | `create` · `execute` | `tests-create` · `tests-execute` |
@@ -42,7 +42,7 @@ column 1 of this table.
42
42
  | `judge` | 2 | `solo` · `on-diff` · `steps` | `judge` (legacy standalone) · `do-and-judge` · `do-in-steps` |
43
43
  | `commit` | 2 | `in-chunks` | `commit-in-chunks` |
44
44
  | `create-pr` | 2 | `description-only` | `create-pr-description` |
45
- | `council` | 3 | `default` · `pr` · `design` · `optimize` | `council` (legacy default lens) · `council-pr` · `council-design` · `council-optimize` |
45
+ | `council` | 3 | `default` · `pr` · `design` · `optimize` · `analysis` | `council` (legacy default lens) · `council-pr` · `council-design` · `council-optimize`; `analysis` added 2026-05-14 — wrapper for local analysis outputs with a Top-N consensus tail block consumed by `/roadmap create` |
46
46
  | `challenge-me` | — | `vision` · `with-docs` | new — Pocock-inspired one-question-at-a-time interview; `vision` is the standard 95%-confidence variant, `with-docs` adds doc/glossary awareness with a session-scoped glossary and load-bearing claim-vs-code verification |
47
47
  | `research` | 2 | `deep` · `report` | preliminary-research scaffolder ported from `Weizhena/Deep-Research-skills` (cluster head emits `outline.yaml` + `fields.yaml` against the `research-schema` contract). `:deep` populates per-item JSON in batches with native web-search + JSON-Schema self-validation (no Python runtime); `:report` renders `report.md` directly + optionally emits a `jq` template for deterministic regeneration. `add-items` / `add-fields` intentionally **not** ported — re-run `/research <topic>` to extend the field framework. |
48
48
  | `orchestrate` | — | _(none yet — cluster head only)_ | new — runtime executor for YAML pipelines under `.agent-config/orchestrations/` per the [`orchestration-dsl-v1`](orchestration-dsl-v1.md) contract; chains personas / skills / commands / sub-agents deterministically. Single cluster head; sub-commands deferred until a second verb is needed. |
@@ -119,6 +119,62 @@ grandfathered indefinitely; modifying them does NOT require adding
119
119
  the field. The goal is to stop the atomic surface from growing,
120
120
  not to retro-fit every legacy command into a cluster.
121
121
 
122
+ ## Master / wrapper sub-command shape (`council` cluster)
123
+
124
+ The `council` cluster uses a **master / wrapper** shape within the flat
125
+ ADR-003 dispatch — the only cluster currently shaped this way. It does
126
+ not break ADR-003 (still one level of sub-commands) and is documented
127
+ here so future lens additions follow the same shape.
128
+
129
+ - **Master:** `/council default` owns the full orchestration — Step 1
130
+ (resolve target + capture `original_ask`), Step 2 (configure check +
131
+ price-table freshness), Step 3 (cost confirmation), Step 4 (run CLI),
132
+ Step 5 / 5a / 5b (render → critical-evaluation lens → user options),
133
+ Step 6 (hard floor). See [`commands/council.md` → `## Architecture`](../../.agent-src.uncompressed/commands/council.md).
134
+ - **Wrappers:** `/council pr` · `/council design` · `/council optimize`
135
+ resolve lens-specific input (PR target / design artefact / optimization
136
+ target + metric), capture a wrapper-specific `original_ask`, then
137
+ delegate to `/council default` with `mode_override=<lens>`. They MUST
138
+ NOT re-implement cost-gate, CLI invocation, render, or host-verdict;
139
+ those flow through the master verbatim. Wrapper step references anchor
140
+ to the master (e.g. "cost gate from `/council default` Step 3",
141
+ "render via Step 5/5a/5b of `/council default`"), not the wrapper.
142
+ - **Single source of lens addendums:** lens-specific neutrality
143
+ addendums live in [`scripts/ai_council/prompts.py:_MODE_TABLE`](../../scripts/ai_council/prompts.py)
144
+ and are selected by `mode_override`. A new lens = a new `_MODE_TABLE`
145
+ entry **plus** a new wrapper file mirroring the `pr.md` / `design.md` /
146
+ `optimize.md` shape (~100–130 lines). No new master.
147
+ - **Behavioural changes** to the orchestration (e.g. a new render step)
148
+ land in `default.md` + `_MODE_TABLE` only; wrappers inherit
149
+ automatically. This invariant is what makes the shape safe under the
150
+ flat ADR-003 contract — the wrapper is text-only delegation.
151
+
152
+ Cluster-table names are unchanged: `/council default` is the master,
153
+ the other wrappers (`pr`, `design`, `optimize`, `analysis`) follow the
154
+ same shape. The deprecation shims for the four legacy slugs (`/council`,
155
+ `/council-pr`, `/council-design`, `/council-optimize`) continue to
156
+ follow the standard shim contract below.
157
+
158
+ ### Wrapper output shapes (consumer contract)
159
+
160
+ Each wrapper renders the standard stacked + Convergence/Divergence
161
+ layout from `/council default` Step 5/5a/5b. Wrappers MAY append a
162
+ **lens-specific tail block** when their output is the input to a
163
+ downstream command — locking the tail shape avoids brittle scraping.
164
+
165
+ | Wrapper | Tail block | Downstream consumer |
166
+ |---|---|---|
167
+ | `pr` | (optional) one-line PR header at top; no structured tail | `gh pr comment` (opt-in single comment) |
168
+ | `design` | (none — open-ended prose) | Human reader; `/feature plan` / `/feature refactor` |
169
+ | `optimize` | (none — open-ended prose) | Human reader |
170
+ | `analysis` | `## Top-N consensus findings (roadmap-ready first)` — numbered list, each finding with `evidence-grade` (confirmed / inferred / speculative), `roadmap-ready` (yes / needs-discovery), `cited by`, `supporting citation` | `/roadmap create` |
171
+
172
+ The `analysis` Top-N block is the only structured tail shipped today.
173
+ Its fields are normative — `/roadmap create` parses them to draft a
174
+ roadmap; renaming or reordering them is a breaking change for the
175
+ council → roadmap pipeline. Cap at N=10 unless the upstream analysis
176
+ has fewer findings.
177
+
122
178
  ## Deprecation shim contract
123
179
 
124
180
  A shim is a one-file stub that:
@@ -12,7 +12,8 @@ keep-beta-until: 2026-08-12
12
12
  > - **CLI commands** rendered by `./agent-config --help`.
13
13
  > - **Slash commands** under `.agent-src.uncompressed/commands/**`.
14
14
  >
15
- > Per Phase 4 of `agents/roadmaps/road-to-distribution-maturity.md`.
15
+ > Per Phase 4 of the distribution-maturity roadmap (see
16
+ > `agents/roadmaps/` for current status).
16
17
 
17
18
  ## Why tiering
18
19
 
@@ -157,6 +158,6 @@ Hooked into `task lint-skills` so it runs in CI.
157
158
 
158
159
  ## See also
159
160
 
160
- - `agents/roadmaps/road-to-distribution-maturity.md` — Phase 4.
161
+ - The distribution-maturity roadmap — Phase 4 (under `agents/roadmaps/`).
161
162
  - `docs/contracts/command-clusters.md` — orchestrator → child wiring.
162
163
  - `docs/contracts/STABILITY.md` — surface-stability commitments.
@@ -1,3 +1,8 @@
1
+ ---
2
+ stability: beta
3
+ keep-beta-until: 2026-08-13
4
+ ---
5
+
1
6
  # Cost-Profile Defaults — Contract
2
7
 
3
8
  > **Status:** beta · **Owner:** package maintainer · **Last reviewed:** 2026-05-14
@@ -1,3 +1,8 @@
1
+ ---
2
+ stability: beta
3
+ keep-beta-until: 2026-08-13
4
+ ---
5
+
1
6
  # Decision-engine gates (v1)
2
7
 
3
8
  **Status:** beta — landed 2026-05-14 via `road-to-productization.md` Phase 2.
@@ -119,8 +119,8 @@ is `low`.
119
119
  **Purpose.** Bound the surface area where a memory hit can be said
120
120
  to have *changed* an outcome. Closed list, not open — without this
121
121
  bound, every memory call risks the "memory affected everything"
122
- failure mode (Risk register row 2 of
123
- [`agents/roadmaps/road-to-proof-not-features.md`](../../agents/roadmaps/road-to-proof-not-features.md)).
122
+ failure mode (Risk register row 2 of the `road-to-proof-not-features`
123
+ roadmap; see `agents/roadmaps/` or `agents/roadmaps/archive/`).
124
124
 
125
125
  **Closed list (v1).** Exactly four keys. Adding a fifth requires a
126
126
  schema bump + entry under `### Breaking` in `CHANGELOG.md`.