@event4u/agent-config 7.0.0 → 7.0.2

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.
@@ -784,10 +784,28 @@ function main(argv?: readonly string[]): number {
784
784
  return 0;
785
785
  }
786
786
 
787
- const _isCliEntry =
788
- process.argv[1] !== undefined &&
789
- import.meta.url === pathToFileURL(path.resolve(process.argv[1])).href;
790
- if (_isCliEntry || process.argv[1] === _HERE) {
787
+ function _isCliEntry(): boolean {
788
+ if (process.argv[1] === undefined) {
789
+ return false;
790
+ }
791
+ const argvUrl = pathToFileURL(path.resolve(process.argv[1])).href;
792
+ if (import.meta.url === argvUrl) {
793
+ return true;
794
+ }
795
+ // A symlinked invocation (e.g. via `.augment/scripts` → `dist/agent-src/scripts`,
796
+ // or macOS /var → /private/var temp dirs) makes the raw URLs differ:
797
+ // import.meta.url is the resolved real path while argv[1] keeps the symlink
798
+ // path. Compare realpaths so the entry guard still fires (without this the
799
+ // dashboard regen silently no-ops when run through the symlink).
800
+ try {
801
+ const here = fs.realpathSync(fileURLToPath(import.meta.url));
802
+ const argv = fs.realpathSync(path.resolve(process.argv[1]));
803
+ return here === argv;
804
+ } catch {
805
+ return false;
806
+ }
807
+ }
808
+ if (_isCliEntry() || process.argv[1] === _HERE) {
791
809
  try {
792
810
  process.exitCode = main();
793
811
  } catch (exc) {
@@ -34,12 +34,29 @@ coordinates); on a standard host run the full chain.
34
34
 
35
35
  ## When to use
36
36
 
37
- - A complex, ambiguous, or long-horizon task on a standard host.
38
- - Work where the reasoning steps are interdependent (a missed grounding or skipped
39
- verification compounds downstream).
40
-
41
- Do NOT use for trivial / linear / fully-specified tasks (the gate filters these),
42
- and do not let it duplicate the work of the skills it coordinates.
37
+ Scope (eval-calibrated, L6): engage only for **interdependent multi-step** work
38
+ — steps whose ordering/handoffs matter (schema → API → job → UI; staged
39
+ migration; cross-cutting refactor). **Not** for single-turn analysis (explain /
40
+ name / yes-no / pick-X-or-Y / one-shot edit): there the ordered chain is a no-op,
41
+ only adds tokens.
42
+
43
+ - Interdependent **multi-step** task on a standard host. Analyze the dependency
44
+ structure (what blocks what) before acting.
45
+ - Work where a missed/out-of-order link (grounding, verification) compounds
46
+ downstream.
47
+
48
+ Do NOT use for trivial / linear / fully-specified tasks **or single-turn
49
+ analysis** (the gate filters these); don't duplicate the work of the skills it
50
+ coordinates.
51
+
52
+ > **Why scoped (L6, 2026-06-22).** Controlled distributed-vs-orchestrated eval
53
+ > (N=16, independent rater): ordered chain gains **+19.2%** on multi-step,
54
+ > **−1.1%** (no-op) on single-turn. Standard host classifies multi-step vs
55
+ > single-turn at gate time 16/16; misclassification degrades gracefully (wrong
56
+ > arm still functional). Revert trigger = re-run `tests/reasoning-layer-eval`
57
+ > (eval is the telemetry — no-runtime package); RDP flip conditions judged
58
+ > per-mechanism, never univariate aggregate. Evidence:
59
+ > `tests/reasoning-layer-eval/RESULTS-L6-largeN-2026-06-22.md`.
43
60
 
44
61
  ## When the agent should load this
45
62
 
@@ -77,8 +94,16 @@ not exclusivity.
77
94
 
78
95
  ## Output
79
96
 
80
- The task's actual deliverable — produced through the chain. Reasoning stays in the
81
- notes file; the response leads with the outcome + its evidence.
97
+ The task's actual deliverable, produced **through the chain** (analysis before
98
+ action — grounding + load-bearing-unknown resolution precede any edit):
99
+
100
+ 1. **Outcome first** — response leads with the result + its evidence.
101
+ 2. **Reasoning stays in notes** — hypotheses / predictions / decisions in the
102
+ notes file, never dumped into the response.
103
+ 3. **Chain honoured in order** — ground → intent → notes → resolve-hardest-first
104
+ → audit → verify ran as ordered links (with handoffs), not a buffet.
105
+ 4. **Verified before "done"** — no completion claim without the verifier link's
106
+ evidence.
82
107
 
83
108
  ## Do NOT
84
109
 
@@ -1,6 +1,6 @@
1
1
  # Discovery — Deprecation Report
2
2
 
3
- - Generated: `2026-06-21T19:16:02Z`
3
+ - Generated: `2026-06-22T07:13:57Z`
4
4
  - Deprecated artefacts: **0**
5
5
 
6
6
  _None. Tree is clean._
@@ -10357,7 +10357,7 @@
10357
10357
  },
10358
10358
  {
10359
10359
  "category": "skill",
10360
- "checksum": "sha256:949bab08a36fcbc7b88de82c6facb3490b59478d430eec284a96a83ac7456a60",
10360
+ "checksum": "sha256:c7a74836f37f983ea6432ce8773fd03df7c20bdb616616db4852364406b4ad78",
10361
10361
  "install": {
10362
10362
  "default": true,
10363
10363
  "removable": false
@@ -11742,7 +11742,7 @@
11742
11742
  ]
11743
11743
  }
11744
11744
  ],
11745
- "checksum": "sha256:f2a4c972feea1c5cde8781f698209980d6d156e17612b71b66e885f6a97ed19e",
11745
+ "checksum": "sha256:f5d227f1f899e88091f76a952cdfadda24da8bcc233811a2c55a8ebfdf564fa7",
11746
11746
  "deprecations": [
11747
11747
  {
11748
11748
  "key": "tier",
@@ -11880,7 +11880,7 @@
11880
11880
  "reason": "scaffold template for ticket-bundle tickets (ADR-101); carries no runtime frontmatter — emit-tickets fills it in per ticket"
11881
11881
  }
11882
11882
  ],
11883
- "generated_at": "2026-06-21T19:16:02Z",
11883
+ "generated_at": "2026-06-22T07:13:57Z",
11884
11884
  "packs": [
11885
11885
  {
11886
11886
  "artefact_count": 93,
@@ -1 +1 @@
1
- 78d3c6a663e8c9493f4d81e9eb47692060332d5b78ad791e936385f044dfb235 discovery-manifest.json
1
+ a8b3e192c4c3462c185328180eed27e001de5e3f87feba346a63e42c6d6ebcb0 discovery-manifest.json
@@ -1,6 +1,6 @@
1
1
  # Discovery Manifest — Summary
2
2
 
3
- - Generated: `2026-06-21T19:16:02Z`
3
+ - Generated: `2026-06-22T07:13:57Z`
4
4
  - Scanner: `47c9a32fb265`
5
5
  - Artefacts: **501**
6
6
  - Unassigned: **0**
@@ -1,6 +1,6 @@
1
1
  # Discovery — Orphan Report
2
2
 
3
- - Generated: `2026-06-21T19:16:02Z`
3
+ - Generated: `2026-06-22T07:13:57Z`
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:f2a4c972feea1c5cde8781f698209980d6d156e17612b71b66e885f6a97ed19e",
3
- "generated_at": "2026-06-21T19:16:02Z",
2
+ "checksum": "sha256:f5d227f1f899e88091f76a952cdfadda24da8bcc233811a2c55a8ebfdf564fa7",
3
+ "generated_at": "2026-06-22T07:13:57Z",
4
4
  "packs": [
5
5
  {
6
6
  "always_on": false,
@@ -1,6 +1,6 @@
1
1
  # Discovery — Trust Report
2
2
 
3
- - Generated: `2026-06-21T19:16:02Z`
3
+ - Generated: `2026-06-22T07:13:57Z`
4
4
  - Workspaces tracked: **8**
5
5
  - Human-review-required artefacts: **2**
6
6
 
@@ -1,6 +1,6 @@
1
1
  {
2
- "checksum": "sha256:f2a4c972feea1c5cde8781f698209980d6d156e17612b71b66e885f6a97ed19e",
3
- "generated_at": "2026-06-21T19:16:02Z",
2
+ "checksum": "sha256:f5d227f1f899e88091f76a952cdfadda24da8bcc233811a2c55a8ebfdf564fa7",
3
+ "generated_at": "2026-06-22T07:13:57Z",
4
4
  "scanner_version": "47c9a32fb265",
5
5
  "workspaces": [
6
6
  {
@@ -7929,21 +7929,37 @@ function tuple_lt(a, b) {
7929
7929
  }
7930
7930
  return false;
7931
7931
  }
7932
- function current_package_version(repo_root) {
7933
- let root = repo_root ?? null;
7934
- if (root === null) {
7935
- const here = path2.dirname(fileURLToPath(import.meta.url));
7936
- root = path2.resolve(here, "..", "..", "..");
7937
- }
7932
+ function _read_package_version(dir) {
7938
7933
  try {
7939
- const data = JSON.parse(fs2.readFileSync(path2.join(root, "package.json"), { encoding: "utf-8" }));
7934
+ const data = JSON.parse(fs2.readFileSync(path2.join(dir, "package.json"), { encoding: "utf-8" }));
7940
7935
  const version = data.version;
7941
7936
  if (typeof version === "string" && version.trim()) {
7942
7937
  return version.trim();
7943
7938
  }
7944
7939
  } catch {
7945
7940
  }
7946
- return "0.0.0";
7941
+ return null;
7942
+ }
7943
+ function _find_package_version_upward(start_dir) {
7944
+ let dir = start_dir;
7945
+ for (; ; ) {
7946
+ const found = _read_package_version(dir);
7947
+ if (found !== null) {
7948
+ return found;
7949
+ }
7950
+ const parent = path2.dirname(dir);
7951
+ if (parent === dir) {
7952
+ return null;
7953
+ }
7954
+ dir = parent;
7955
+ }
7956
+ }
7957
+ function current_package_version(repo_root) {
7958
+ if (repo_root != null) {
7959
+ return _read_package_version(repo_root) ?? "0.0.0";
7960
+ }
7961
+ const here = path2.dirname(fileURLToPath(import.meta.url));
7962
+ return _find_package_version_upward(here) ?? "0.0.0";
7947
7963
  }
7948
7964
 
7949
7965
  // src/scripts/_lib/surface_tiers.ts
@@ -3,13 +3,13 @@
3
3
  "artefact_count": 501,
4
4
  "scanner_version": "47c9a32fb265"
5
5
  },
6
- "generated_at": "2026-06-21",
6
+ "generated_at": "2026-06-22",
7
7
  "package": {
8
8
  "description": "Universal AI Agent OS \u2014 audited skills, governance rules, commands, and templates for AI coding tools (Claude Code, Cursor, Windsurf, Copilot).",
9
9
  "homepage": "https://github.com/event4u-app/agent-config#readme",
10
10
  "name": "@event4u/agent-config",
11
11
  "repository": "https://github.com/event4u-app/agent-config",
12
- "version": "7.0.0"
12
+ "version": "7.0.2"
13
13
  },
14
14
  "registries": [
15
15
  {