@event4u/agent-config 9.31.0 → 9.32.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.
- package/.claude-plugin/marketplace.json +1 -1
- package/CHANGELOG.md +51 -0
- package/dist/agent-src/contexts/execution/host-capability-manifest.md +32 -1
- package/dist/agent-src/rules/delegation-policy.md +11 -1
- package/dist/agent-src/templates/agents/agent-project-settings.example.yml +1 -1
- package/dist/agent-src/templates/scripts/work_engine/delivery_state.ts +6 -0
- package/dist/agent-src/templates/scripts/work_engine/directives/backend/_self_fix.ts +332 -0
- package/dist/agent-src/templates/scripts/work_engine/directives/backend/refine.ts +106 -1
- package/dist/agent-src/templates/scripts/work_engine/directives/backend/test.ts +50 -15
- package/dist/agent-src/templates/scripts/work_engine/directives/backend/verify.ts +49 -15
- package/dist/agent-src/templates/scripts/work_engine/state.ts +74 -0
- package/dist/agent-src/templates/scripts/work_engine/state_io.ts +6 -0
- package/dist/cli-delegate/chunk-2WELHO3P.js +582 -0
- package/dist/cli-delegate/{chunk-2WCLVDWC.js → chunk-542DZR4P.js} +117 -147
- package/dist/cli-delegate/chunk-PZWRPRWP.js +38 -0
- package/dist/cli-delegate/cmd_conformance.js +81 -30
- package/dist/cli-delegate/cmd_doctor.js +2 -1
- package/dist/cli-delegate/cmd_handoff.js +166 -57
- package/dist/cli-delegate/cmd_session_recycle.js +17 -2
- package/dist/discovery/deprecation-report.md +1 -1
- package/dist/discovery/discovery-manifest.json +3 -3
- package/dist/discovery/discovery-manifest.json.sha256 +1 -1
- package/dist/discovery/discovery-manifest.summary.md +1 -1
- package/dist/discovery/orphan-report.md +1 -1
- package/dist/discovery/packs.json +2 -2
- package/dist/discovery/trust-report.md +1 -1
- package/dist/discovery/workspaces.json +2 -2
- package/dist/hooks/dispatch.js +1118 -690
- package/dist/mcp/registry-manifest.json +1 -1
- package/dist/mcp/server.json +2 -2
- package/dist/mcp/server.mjs +79 -29
- package/package.json +1 -1
- package/src/agent-src/templates/scripts/work_engine/delivery_state.ts +6 -0
- package/src/agent-src/templates/scripts/work_engine/directives/backend/_self_fix.ts +332 -0
- package/src/agent-src/templates/scripts/work_engine/directives/backend/refine.ts +106 -1
- package/src/agent-src/templates/scripts/work_engine/directives/backend/test.ts +50 -15
- package/src/agent-src/templates/scripts/work_engine/directives/backend/verify.ts +49 -15
- package/src/agent-src/templates/scripts/work_engine/state.ts +74 -0
- package/src/agent-src/templates/scripts/work_engine/state_io.ts +6 -0
- package/src/scripts/_cli/cmd_session_recycle.ts +25 -0
- package/src/scripts/_cli/handoff_generate.ts +36 -1
- package/src/scripts/_cli/handoff_sessions.ts +140 -9
- package/src/scripts/_lib/carrier_divergence.ts +98 -27
- package/src/scripts/_lib/envelope_grounding.ts +206 -0
- package/src/scripts/_lib/host_capability.ts +79 -0
- package/src/scripts/_lib/session_eol.ts +85 -0
- package/src/scripts/_lib/subagent_capsule.ts +256 -1
- package/src/scripts/check_secret_leak.test.ts +43 -0
- package/src/scripts/check_secret_leak.ts +12 -0
- package/src/scripts/handoff_context_hook.ts +66 -18
- package/src/scripts/hooks/session_eol_hook.ts +12 -12
- package/src/scripts/report_carrier_divergence.ts +94 -29
- package/src/scripts/report_conformance_funnel.ts +11 -4
- package/src/scripts/routing_doctor.ts +25 -2
- package/src/scripts/schemas/dod.schema.json +45 -0
- package/dist/cli-delegate/chunk-RVGBH4XK.js +0 -142
|
@@ -3,11 +3,13 @@ import {
|
|
|
3
3
|
CAPSULE_SCHEMA_VERSION,
|
|
4
4
|
RECYCLE_ENVELOPE_MAX_BYTES,
|
|
5
5
|
RECYCLE_ENVELOPE_REL,
|
|
6
|
+
collectGrounding,
|
|
6
7
|
validateRecycleEnvelope
|
|
7
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-2WELHO3P.js";
|
|
8
9
|
import {
|
|
9
10
|
atomic_write_json
|
|
10
11
|
} from "./chunk-EJITJBJX.js";
|
|
12
|
+
import "./chunk-PZWRPRWP.js";
|
|
11
13
|
import {
|
|
12
14
|
resolve_project_root
|
|
13
15
|
} from "./chunk-JEJABGKB.js";
|
|
@@ -32,7 +34,10 @@ function templateEnvelope() {
|
|
|
32
34
|
constraints: ["<binding constraint>"],
|
|
33
35
|
open_worker_envelopes: [],
|
|
34
36
|
artifact_paths: ["<path to a deliverable / note / evidence file>"],
|
|
35
|
-
assumptions: []
|
|
37
|
+
assumptions: [],
|
|
38
|
+
next_task: "<the ONE task this envelope is written for \u2014 select content for it>",
|
|
39
|
+
suggested_skills: ["<skill the successor should invoke>"],
|
|
40
|
+
failed_approaches: ['<tried X, failed because Y \u2014 or the single entry "none">']
|
|
36
41
|
};
|
|
37
42
|
}
|
|
38
43
|
function parseArgv(argv) {
|
|
@@ -74,6 +79,16 @@ function runSessionRecycle(input, opts) {
|
|
|
74
79
|
envelope["written_at"] = (opts.now ?? /* @__PURE__ */ new Date()).toISOString();
|
|
75
80
|
}
|
|
76
81
|
if (envelope["workspace"] === void 0) envelope["workspace"] = projectRoot;
|
|
82
|
+
const grounding = collectGrounding(projectRoot);
|
|
83
|
+
for (const key of ["repo_identity", "branch", "head", "status_summary", "last_verify", "uncommitted_paths"]) {
|
|
84
|
+
delete envelope[key];
|
|
85
|
+
}
|
|
86
|
+
if (grounding.repo_identity !== null) envelope["repo_identity"] = grounding.repo_identity;
|
|
87
|
+
if (grounding.branch !== null) envelope["branch"] = grounding.branch;
|
|
88
|
+
if (grounding.head !== null) envelope["head"] = grounding.head;
|
|
89
|
+
if (grounding.status_summary !== null) envelope["status_summary"] = grounding.status_summary;
|
|
90
|
+
if (grounding.last_verify !== null) envelope["last_verify"] = grounding.last_verify;
|
|
91
|
+
envelope["uncommitted_paths"] = grounding.uncommitted_paths;
|
|
77
92
|
const violations = validateRecycleEnvelope(envelope);
|
|
78
93
|
if (violations.length > 0) {
|
|
79
94
|
return {
|
|
@@ -5992,7 +5992,7 @@
|
|
|
5992
5992
|
},
|
|
5993
5993
|
{
|
|
5994
5994
|
"category": "rule",
|
|
5995
|
-
"checksum": "sha256:
|
|
5995
|
+
"checksum": "sha256:451a0a10bb077b527aa2febc9f6b9838e350c186d52942b08057b9c9cc036c59",
|
|
5996
5996
|
"install": {
|
|
5997
5997
|
"default": true,
|
|
5998
5998
|
"removable": false
|
|
@@ -14486,7 +14486,7 @@
|
|
|
14486
14486
|
"workspaces": []
|
|
14487
14487
|
}
|
|
14488
14488
|
],
|
|
14489
|
-
"checksum": "sha256:
|
|
14489
|
+
"checksum": "sha256:4e2e2973fd45560962626d01db0162ba85d636050dbb84b4fefb0c7c07ed3bce",
|
|
14490
14490
|
"deprecations": [
|
|
14491
14491
|
{
|
|
14492
14492
|
"key": "tier",
|
|
@@ -14629,7 +14629,7 @@
|
|
|
14629
14629
|
"reason": "scaffold template for ticket-bundle tickets (ADR-101); carries no runtime frontmatter — emit-tickets fills it in per ticket"
|
|
14630
14630
|
}
|
|
14631
14631
|
],
|
|
14632
|
-
"generated_at": "2026-08-
|
|
14632
|
+
"generated_at": "2026-08-10T20:19:17Z",
|
|
14633
14633
|
"packs": [
|
|
14634
14634
|
{
|
|
14635
14635
|
"artefact_count": 118,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
1690f54c3b7262c13b6a12398d8750b90d202f7cbf332b2484041f6cdcc92388 discovery-manifest.json
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
|
-
"checksum": "sha256:
|
|
3
|
-
"generated_at": "2026-08-
|
|
2
|
+
"checksum": "sha256:4e2e2973fd45560962626d01db0162ba85d636050dbb84b4fefb0c7c07ed3bce",
|
|
3
|
+
"generated_at": "2026-08-10T20:19:17Z",
|
|
4
4
|
"packs": [
|
|
5
5
|
{
|
|
6
6
|
"always_on": false,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
|
-
"checksum": "sha256:
|
|
3
|
-
"generated_at": "2026-08-
|
|
2
|
+
"checksum": "sha256:4e2e2973fd45560962626d01db0162ba85d636050dbb84b4fefb0c7c07ed3bce",
|
|
3
|
+
"generated_at": "2026-08-10T20:19:17Z",
|
|
4
4
|
"scanner_version": "c24312e116f8",
|
|
5
5
|
"workspaces": [
|
|
6
6
|
{
|