@event4u/agent-config 15.0.0 → 16.0.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 (78) hide show
  1. package/.augment-plugin/marketplace.json +3 -3
  2. package/.augment-plugin/plugin.json +1 -1
  3. package/.claude-plugin/marketplace.json +1 -1
  4. package/CHANGELOG.md +142 -348
  5. package/dist/agent-src/commands/roadmap/create.md +3 -2
  6. package/dist/agent-src/contexts/communication/rules-auto/user-interaction-mechanics.md +50 -0
  7. package/dist/agent-src/rules/user-interaction.md +31 -30
  8. package/dist/agent-src/skills/error-handling-patterns/SKILL.md +9 -0
  9. package/dist/agent-src/templates/agents/agent-project-settings.example.yml +1 -1
  10. package/dist/cli-delegate/{chunk-HZ52BRGG.js → chunk-H32DGUJH.js} +14 -89
  11. package/dist/cli-delegate/chunk-NUHLI2RX.js +80 -0
  12. package/dist/cli-delegate/{chunk-TYSY33MD.js → chunk-QJWAUMJW.js} +12 -2
  13. package/dist/cli-delegate/{chunk-2KKXJW25.js → chunk-S3VFXMTM.js} +1 -1
  14. package/dist/cli-delegate/cmd_conformance.js +831 -272
  15. package/dist/cli-delegate/cmd_explain.js +4 -2
  16. package/dist/cli-delegate/cmd_handoff.js +2 -2
  17. package/dist/cli-delegate/cmd_packs_active.js +2 -1
  18. package/dist/cli-delegate/cmd_session_recycle.js +2 -2
  19. package/dist/cli-delegate/cmd_settings_set.js +13 -0
  20. package/dist/discovery/deprecation-report.md +1 -1
  21. package/dist/discovery/discovery-manifest.json +5 -5
  22. package/dist/discovery/discovery-manifest.json.sha256 +1 -1
  23. package/dist/discovery/discovery-manifest.summary.md +1 -1
  24. package/dist/discovery/dormancy-report.md +1 -1
  25. package/dist/discovery/orphan-report.md +1 -1
  26. package/dist/discovery/packs.json +2 -2
  27. package/dist/discovery/trust-report.md +1 -1
  28. package/dist/discovery/workspaces.json +2 -2
  29. package/dist/hooks/dispatch.js +1274 -571
  30. package/dist/install/install.mjs +1 -0
  31. package/dist/mcp/registry-manifest.json +2 -2
  32. package/dist/mcp/server.json +2 -2
  33. package/dist/mcp/server.mjs +1218 -632
  34. package/dist/scripts/_lib/installed_lock.js +1 -1
  35. package/dist/server/io/yamlIO.js +50 -0
  36. package/package.json +1 -1
  37. package/src/config/continuity-surface.json +7 -0
  38. package/src/config/gate-violation-baselines.json +3 -3
  39. package/src/config/host-injection-effect.json +1 -1
  40. package/src/config/preamble-payload-budget.json +12 -7
  41. package/src/config/preamble-payload-exceptions.json +28 -0
  42. package/src/scripts/_dispatch.bash +3 -1
  43. package/src/scripts/_lib/base_ref_payload.ts +315 -0
  44. package/src/scripts/_lib/dropped_decision.ts +142 -0
  45. package/src/scripts/_lib/installed_lock.ts +1 -1
  46. package/src/scripts/_lib/measured_payload_ceiling.ts +424 -0
  47. package/src/scripts/_lib/payload_catalogue_completeness.ts +211 -0
  48. package/src/scripts/_lib/release_findings_ingest.ts +324 -0
  49. package/src/scripts/_lib/release_tag_dispatch.ts +63 -0
  50. package/src/scripts/_lib/review_baseline.ts +254 -0
  51. package/src/scripts/_lib/review_skipped_record.ts +61 -1
  52. package/src/scripts/_lib/standing_bound_ratchet.ts +216 -103
  53. package/src/scripts/_lib/turn_end_refusals.ts +51 -4
  54. package/src/scripts/check_beta_review_markers.ts +35 -4
  55. package/src/scripts/check_finding_dispositions.ts +167 -16
  56. package/src/scripts/check_held_object_arrivals.ts +381 -0
  57. package/src/scripts/check_preamble_payload_budget.ts +399 -122
  58. package/src/scripts/check_release_published.ts +1 -1
  59. package/src/scripts/check_reply_consistency.ts +86 -17
  60. package/src/scripts/hook_manifest.json +1 -1
  61. package/src/scripts/hook_manifest.yaml +39 -3
  62. package/src/scripts/hooks/block_kernel_rule_writes.ts +12 -2
  63. package/src/scripts/hooks/concern_registry.ts +2 -0
  64. package/src/scripts/hooks/end_review_nudge_hook.ts +101 -21
  65. package/src/scripts/hooks/review_baseline_hook.ts +130 -0
  66. package/src/scripts/hooks/turn_end_gate_hook.ts +232 -14
  67. package/src/scripts/hooks_doctor.ts +4 -1
  68. package/src/scripts/install.ts +1 -1
  69. package/src/scripts/interruption_report.ts +8 -2
  70. package/src/scripts/janitor.ts +8 -1
  71. package/src/scripts/measure_turn_end_gate.ts +302 -5
  72. package/src/scripts/release.ts +52 -64
  73. package/src/scripts/release_drill.ts +193 -14
  74. package/src/scripts/release_env.ts +1 -1
  75. package/src/scripts/release_publication.ts +1 -1
  76. package/src/scripts/report_held_object_arrivals.ts +456 -0
  77. package/src/scripts/sync_agent_settings.ts +140 -18
  78. package/src/server/io/yamlIO.ts +48 -0
@@ -6,13 +6,15 @@ import {
6
6
  import {
7
7
  PROFILE_ID_ENV,
8
8
  ProfileError,
9
- artefact_roots,
10
9
  resolve_profile
11
- } from "./chunk-HZ52BRGG.js";
10
+ } from "./chunk-H32DGUJH.js";
12
11
  import {
13
12
  StateLoadError,
14
13
  load_state
15
14
  } from "./chunk-GME3Q44L.js";
15
+ import {
16
+ artefact_roots
17
+ } from "./chunk-NUHLI2RX.js";
16
18
  import {
17
19
  DEFAULT_PROJECT_FILE,
18
20
  ProjectRootError,
@@ -13,14 +13,14 @@ import {
13
13
  predecessorTracePresent,
14
14
  recycle_consumed_rel,
15
15
  resolveContinuityRecord
16
- } from "./chunk-2KKXJW25.js";
16
+ } from "./chunk-S3VFXMTM.js";
17
17
  import "./chunk-YUM5KURG.js";
18
18
  import {
19
19
  hasBoundaryMarker,
20
20
  scanEnvelopeDirectives,
21
21
  validateRecycleEnvelope,
22
22
  wrapAsPriorSessionData
23
- } from "./chunk-TYSY33MD.js";
23
+ } from "./chunk-QJWAUMJW.js";
24
24
  import {
25
25
  readHookStdin
26
26
  } from "./chunk-F7DQWYR5.js";
@@ -4,7 +4,8 @@ import {
4
4
  SOURCE_MISSING,
5
5
  profile_file,
6
6
  resolve_profile
7
- } from "./chunk-HZ52BRGG.js";
7
+ } from "./chunk-H32DGUJH.js";
8
+ import "./chunk-NUHLI2RX.js";
8
9
  import {
9
10
  DEFAULT_PROJECT_FILE,
10
11
  load_agent_settings,
@@ -5,11 +5,11 @@ import {
5
5
  env_session_id,
6
6
  recycle_envelope_rel,
7
7
  resolvePredecessor
8
- } from "./chunk-2KKXJW25.js";
8
+ } from "./chunk-S3VFXMTM.js";
9
9
  import {
10
10
  CAPSULE_SCHEMA_VERSION,
11
11
  validateRecycleEnvelope
12
- } from "./chunk-TYSY33MD.js";
12
+ } from "./chunk-QJWAUMJW.js";
13
13
  import "./chunk-F7DQWYR5.js";
14
14
  import {
15
15
  atomic_write_json
@@ -118,6 +118,18 @@ function replaceFlatDottedKey(template, dottedPath, value) {
118
118
  for (let i = hits.length - 1; i >= 1; i--) lines.splice(hits[i], 1);
119
119
  return { found: true, body: lines.join("\n") };
120
120
  }
121
+ function dropFlatDottedTwins(template, dottedPath) {
122
+ if (dottedPath.length < 2) return template;
123
+ const flat = dottedPath.join(".");
124
+ const lines = template.split("\n");
125
+ const kept = lines.filter((line) => {
126
+ if (line.length !== line.trimStart().length) return true;
127
+ const m = /^([A-Za-z_][A-Za-z0-9_.-]*)\s*:/.exec(line);
128
+ return m === null || m[1] !== flat;
129
+ });
130
+ if (kept.length === lines.length) return template;
131
+ return kept.join("\n");
132
+ }
121
133
  function mergeIntoTemplate(templateBody, newValues) {
122
134
  let body = templateBody;
123
135
  const appended = [];
@@ -126,6 +138,7 @@ function mergeIntoTemplate(templateBody, newValues) {
126
138
  const leaf = entry.path[entry.path.length - 1];
127
139
  if (findScalarLine(body.split("\n"), sections, leaf) !== -1) {
128
140
  body = replaceScalar(body, entry.path, entry.value);
141
+ body = dropFlatDottedTwins(body, entry.path);
129
142
  continue;
130
143
  }
131
144
  const flat = replaceFlatDottedKey(body, entry.path, entry.value);
@@ -1,6 +1,6 @@
1
1
  # Discovery — Deprecation Report
2
2
 
3
- - Generated: `2026-09-10T22:22:41Z`
3
+ - Generated: `2026-09-12T08:49:20Z`
4
4
  - Deprecated artefacts: **0**
5
5
 
6
6
  _None. Tree is clean._
@@ -5010,7 +5010,7 @@
5010
5010
  },
5011
5011
  {
5012
5012
  "category": "command",
5013
- "checksum": "sha256:9f4303a18330391fa6c7b9f73e22cb9d359950278a2c7c9522723d5e5fc10461",
5013
+ "checksum": "sha256:28fefa821f495cce0794b46885524a5c5c0f84c348bbfd63c5da32086a151027",
5014
5014
  "install": {
5015
5015
  "default": true,
5016
5016
  "removable": false
@@ -8083,7 +8083,7 @@
8083
8083
  },
8084
8084
  {
8085
8085
  "category": "rule",
8086
- "checksum": "sha256:4ec892d1da7f0b6725fb040c445aa21de2d09f7d502d34817c29bc384f452158",
8086
+ "checksum": "sha256:901d6fcb2480264ac8ba8c4d7a27e73461aeb6d4a98e862c993dde10832367e8",
8087
8087
  "install": {
8088
8088
  "default": true,
8089
8089
  "removable": false
@@ -9990,7 +9990,7 @@
9990
9990
  },
9991
9991
  {
9992
9992
  "category": "skill",
9993
- "checksum": "sha256:cc59418fac6f4b865fe6182b5d2c440b2601acc9767f5d9935464b66ebe4c7de",
9993
+ "checksum": "sha256:1e3e4397121243f7ac7170180341c10f56ba5496fd769913dc256cd96440fdcc",
9994
9994
  "install": {
9995
9995
  "default": true,
9996
9996
  "removable": false
@@ -14765,7 +14765,7 @@
14765
14765
  "workspaces": []
14766
14766
  }
14767
14767
  ],
14768
- "checksum": "sha256:f411616062f38aeb5fa5db231f3fa0fcfa7490730e3346b751bd83856c8204cf",
14768
+ "checksum": "sha256:fd319bba8c48de690407adabab688742715059312377818adc23cb3206a5326f",
14769
14769
  "deprecations": [
14770
14770
  {
14771
14771
  "key": "tier",
@@ -14914,7 +14914,7 @@
14914
14914
  "reason": "scaffold template for ticket-bundle tickets (ADR-101); carries no runtime frontmatter — emit-tickets fills it in per ticket"
14915
14915
  }
14916
14916
  ],
14917
- "generated_at": "2026-09-10T22:22:41Z",
14917
+ "generated_at": "2026-09-12T08:49:20Z",
14918
14918
  "packs": [
14919
14919
  {
14920
14920
  "artefact_count": 128,
@@ -1 +1 @@
1
- 6f260f313084a4fb24059917c630acc64cad5546475eb4f2b28b2aa82a7098c7 discovery-manifest.json
1
+ cdda5aff30d587dd725d5fcc440f0f9ddfc55edca913f8fbe8bcc5010231a430 discovery-manifest.json
@@ -1,6 +1,6 @@
1
1
  # Discovery Manifest — Summary
2
2
 
3
- - Generated: `2026-09-10T22:22:41Z`
3
+ - Generated: `2026-09-12T08:49:20Z`
4
4
  - Scanner: `de0a22b4ac4c`
5
5
  - Artefacts: **623**
6
6
  - Unassigned: **0**
@@ -1,6 +1,6 @@
1
1
  # Discovery — Dormancy Report
2
2
 
3
- - Generated: `2026-09-10T22:22:41Z`
3
+ - Generated: `2026-09-12T08:49:20Z`
4
4
  - Window: **6 months** without a commit
5
5
 
6
6
  > Dormancy triggers **review, never auto-deprecation**
@@ -1,6 +1,6 @@
1
1
  # Discovery — Orphan Report
2
2
 
3
- - Generated: `2026-09-10T22:22:41Z`
3
+ - Generated: `2026-09-12T08:49:20Z`
4
4
  - Orphan artefacts: **0**
5
5
 
6
6
  > An orphan is an artefact whose declared pack has no other members.
@@ -1,6 +1,6 @@
1
1
  {
2
- "checksum": "sha256:f411616062f38aeb5fa5db231f3fa0fcfa7490730e3346b751bd83856c8204cf",
3
- "generated_at": "2026-09-10T22:22:41Z",
2
+ "checksum": "sha256:fd319bba8c48de690407adabab688742715059312377818adc23cb3206a5326f",
3
+ "generated_at": "2026-09-12T08:49:20Z",
4
4
  "packs": [
5
5
  {
6
6
  "always_on": false,
@@ -1,6 +1,6 @@
1
1
  # Discovery — Trust Report
2
2
 
3
- - Generated: `2026-09-10T22:22:41Z`
3
+ - Generated: `2026-09-12T08:49:20Z`
4
4
  - Workspaces tracked: **10**
5
5
  - Human-review-required artefacts: **3**
6
6
 
@@ -1,6 +1,6 @@
1
1
  {
2
- "checksum": "sha256:f411616062f38aeb5fa5db231f3fa0fcfa7490730e3346b751bd83856c8204cf",
3
- "generated_at": "2026-09-10T22:22:41Z",
2
+ "checksum": "sha256:fd319bba8c48de690407adabab688742715059312377818adc23cb3206a5326f",
3
+ "generated_at": "2026-09-12T08:49:20Z",
4
4
  "scanner_version": "de0a22b4ac4c",
5
5
  "workspaces": [
6
6
  {