@reqvire-org/ads 0.3.40 → 0.3.42

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 (43) hide show
  1. package/README.md +1 -0
  2. package/dist/bun-compiler.mjs +8 -4
  3. package/dist/cli.mjs +7 -4
  4. package/dist/config.mjs +4 -1
  5. package/dist/investigations.mjs +27 -8
  6. package/dist/mcp/context.mjs +1 -1
  7. package/dist/mcp/execution-context.mjs +38 -0
  8. package/dist/mcp/execution-coordinator.mjs +220 -0
  9. package/dist/mcp/execution-results.mjs +108 -48
  10. package/dist/mcp/mutations.mjs +3 -1
  11. package/dist/mcp/server.mjs +52 -21
  12. package/dist/scenarios-compiler.mjs +28 -1
  13. package/dist/skills/ads-break-ui/references/behaviors.md +4 -5
  14. package/dist/skills/ads-break-ui/references/evidence.md +12 -8
  15. package/dist/skills/ads-break-ui/references/validation.md +46 -0
  16. package/dist/skills/ads-designer/references/behaviors.md +4 -5
  17. package/dist/skills/ads-designer/references/cli.md +6 -1
  18. package/dist/skills/ads-designer/references/evidence.md +12 -8
  19. package/dist/skills/ads-designer/references/validation.md +46 -0
  20. package/dist/skills/ads-import/references/behaviors.md +4 -5
  21. package/dist/skills/ads-import/references/cli.md +6 -1
  22. package/dist/skills/ads-import/references/evidence.md +12 -8
  23. package/dist/skills/ads-import/references/validation.md +46 -0
  24. package/dist/skills/ads-motion/references/behaviors.md +4 -5
  25. package/dist/skills/ads-motion/references/evidence.md +12 -8
  26. package/dist/skills/ads-motion/references/validation.md +46 -0
  27. package/dist/skills/ads-port/references/behaviors.md +4 -5
  28. package/dist/skills/ads-port/references/cli.md +6 -1
  29. package/dist/skills/ads-port/references/evidence.md +12 -8
  30. package/dist/skills/ads-port/references/validation.md +46 -0
  31. package/dist/task-cache.mjs +122 -0
  32. package/dist/task-worker.mjs +19 -0
  33. package/dist/validation-checks.mjs +12 -10
  34. package/dist/validation.mjs +11 -5
  35. package/dist/verification.mjs +7 -3
  36. package/docs/ARCHITECTURE.md +23 -3
  37. package/docs/CACHING.md +99 -0
  38. package/docs/CHANGELOG.md +38 -12
  39. package/docs/MCP.md +54 -9
  40. package/docs/benchmarks/turbo-poc.md +266 -0
  41. package/docs/plans/execution-coordination.md +57 -0
  42. package/package.json +4 -3
  43. package/dist/check-runner.mjs +0 -7
@@ -1,5 +1,18 @@
1
1
  # Validation scope
2
2
 
3
+ ADS runs architecture batch checks through its internal pinned Turbo dependency.
4
+ Local task caching is on by default; projects need no Turbo config. Source/tool,
5
+ dependency, Git-tracking and runtime changes invalidate reports. A hit reuses only
6
+ the source analysis, never policy success, browser results, a baseline or a run ID.
7
+ Project scripts and registered behavior tests still follow the selected policy.
8
+ Use CLI `check/validate --fresh`, or MCP `ads_check`, `ads_validate`, `ads_accept`
9
+ with `fresh:true`, to bypass task-cache reads. `ADS_CACHE=off` disables reads and
10
+ writes; `ADS_CACHE_DIR` relocates the local store. Remote caching is opt-in with
11
+ `ADS_REMOTE_CACHE=1` and standard Turbo provider variables. For CI, persist only
12
+ `.ds/task-cache` with the CI cache action or configure that remote provider; no
13
+ ADS cache service/API is needed. Inspect task-cache status in source reports,
14
+ execution summaries and `ads_results`; it is not a new test execution claim.
15
+
3
16
  These checks apply to both [direct editing and MCP-only editing](workflows.md).
4
17
  Direct source edits need current checks and rendered review; ordinary edits do
5
18
  not require a draft or acceptance call. Tracked proposals validate on acceptance.
@@ -101,3 +114,36 @@ before browser workers open their pages. They share one candidate graph and
101
114
  keep independent App state. This avoids compiling a growing graph per page.
102
115
  A graph revision changing during startup keeps the preview pending until a
103
116
  coherent current build mounts; it does not establish passing case evidence.
117
+
118
+ ## Shared-server execution
119
+
120
+ ADS serializes validation, acceptance, verification and guarded source application
121
+ across all MCP clients served by one process. This includes changed scope and
122
+ unit checks. A conflicting call returns `ADS_VALIDATION_LOCKED` immediately with
123
+ its holder, run ID, operation, selection, progress and approximate ETA (null when
124
+ unknown). Read `ads_status.execution`, keep previewing/reading, and retry after the
125
+ lease clears. Do not repeatedly retry, start another ADS process to bypass it,
126
+ or interrupt another client's work. There is no wait mode or parallel-unit lane.
127
+
128
+ Coordinate direct editor changes before starting a full audit. Relevant external
129
+ source edits stop a run with `ADS_SOURCE_CHANGED_DURING_RUN`; inspect its diagnostic
130
+ files and attribution, then retry against current source. Direct edits have unknown
131
+ authorship. Generated output is excluded. A stopped run never advances a baseline.
132
+ Ordinary preview viewing and draft editing remain available; accepted-source writes
133
+ are refused while checking, including writes from the lease holder.
134
+
135
+ The run ID is its eventual result ID and survives response loss or reconnection.
136
+ Cancellation/disconnection holds the lease through runner cleanup and saves the
137
+ terminal outcome. After a restart, abandoned runs become interrupted; they are
138
+ never resumed automatically. Completed evidence and successful baselines persist.
139
+ Use `ads_results` to inspect retained completion-time evidence, and `ads_behaviors`
140
+ for whether registered results still match current source.
141
+
142
+ Retention defaults to 50 completed runs, seven days and 256 MiB of owned result
143
+ and browser evidence. Configure `mcp.resultRetention` (`maxRuns`, `maxAgeDays`,
144
+ `maxBytesMb`) for the project. Active work and the newly returned result are
145
+ protected, so status may temporarily report `overBudget`. Cleanup runs at startup
146
+ and after execution, independently of client disconnects. Expired IDs return
147
+ `ADS_RESULT_EXPIRED` (recent expiry tombstones are bounded); copy evidence needed
148
+ for long-term release/audit records before it expires. Separate ADS processes are
149
+ not coordinated by this process-local lease.
@@ -346,9 +346,8 @@ previews and a `resultId` (4 KiB UTF-8 JSON maximum). Use `ads_results` to read
346
346
  selected `outcomes`, `checks`, `diagnostics` or other sections without execution.
347
347
  Pages default to 10 rows, allow at most 20 and stay within 8 KiB; follow
348
348
  `nextCursor` with identical selection/status. Truncated records provide
349
- `recordIndex` for exact `offset`/`chars` ranges. Only the latest verification and
350
- mutation snapshots are retained, independently, at most 8 MiB each. Replaced IDs
351
- fail explicitly. Validation still uses complete internal outcomes.
349
+ `recordIndex` for exact `offset`/`chars` ranges. Immutable run snapshots remain readable across other executions and reconnects,
350
+ within configurable retention, at most 8 MiB each. Expired IDs fail explicitly. Validation still uses complete internal outcomes.
352
351
 
353
352
  Use `ads_investigate({unit,check,runId})` with an outcome's exact IDs for its compact
354
353
  summary (4 KiB maximum); details, requests, browser errors and artifact metadata are separate
@@ -358,8 +357,8 @@ the recorded run ID. Saved outcomes describe completion time; compare current
358
357
  input and observed preview revisions, failing step/source, startup viewport,
359
358
  failed startup requests and available project-recorded artifacts keep diagnosis
360
359
  separate from an inferred component defect. No artifact is invented or test
361
- retried. Each check retains one latest bundle; old artifact resource access is
362
- superseded. Candidate bundles remain distinct from passing live-source evidence.
360
+ retried. Latest-check listings are indexes; exact run IDs retain their historical bundles
361
+ and artifacts until collection. Candidate bundles remain distinct from passing live-source evidence.
363
362
  Read the portable [evidence reference](evidence.md)
364
363
  for category meanings, collection limits and artifact policy.
365
364
 
@@ -8,7 +8,12 @@ Install Bun 1.4.1+ for ADS tooling and previews. The application keeps its own
8
8
  Node/npm or Bun build pipeline. Use these commands alongside this skill's research,
9
9
  implementation, documentation, and verification workflow. ADS must be a project
10
10
  development dependency, and its checks must run before the project's build.
11
- Routine builds use the local CLI.
11
+ Routine builds use the local CLI. ADS manages its internal Turbo dependency and
12
+ local task cache automatically; no project Turbo configuration is required.
13
+ In Hermit-managed projects, pin supported Bun (>=1.4.1); Turbo arrives through
14
+ ADS in devDependencies, so do not add a separate Hermit/global Turbo installation.
15
+ `ads check --fresh` and `ads validate --fresh` bypass task-cache reads. See
16
+ [validation](validation.md) for cache controls and CI wiring.
12
17
 
13
18
  Select an actual published package/version or a real local tarball supplied by
14
19
  the user or built from the tool checkout. Respect the project's installed
@@ -45,10 +45,13 @@ characters); follow `nextOffset`. Do not combine ranges with a cursor/status fil
45
45
  Read only the relevant log range. Reading pages or ranges never executes checks.
46
46
 
47
47
  `ads://project/results` lists the latest IDs. `ads://results/<resultId>` reads a
48
- summary; matching query parameters read pages/ranges. Only the latest verification
49
- and latest mutation snapshots are retained, independently, up to 8 MiB each.
50
- A superseded ID fails explicitly. An oversized report retains only its summary
51
- with a warning; disk failure retains details in server memory until shutdown.
48
+ summary; matching query parameters read pages/ranges. Immutable snapshots remain
49
+ readable across subsequent runs and reconnects, within `mcp.resultRetention`.
50
+ Defaults are 50 runs, seven days and 256 MiB including owned browser evidence;
51
+ individual snapshots remain limited to 8 MiB. `ADS_RESULT_EXPIRED` identifies a
52
+ recently collected ID; older/unknown IDs are unavailable. An oversized report
53
+ retains only its summary with a warning; disk failure retains latest details in
54
+ server memory until shutdown.
52
55
  Neither changes actual acceptance or applied state. These are logical JSON byte
53
56
  budgets, not token estimates; compatibility text can duplicate structured JSON.
54
57
  Saved outcomes describe completion-time evidence, not current source freshness;
@@ -68,7 +71,7 @@ Take an outcome's exact owner/check/run IDs from `ads_results`, then:
68
71
  ```
69
72
 
70
73
  Send this to `ads_investigate`. It reads a summary within 4096 JSON bytes, without
71
- running code. The run ID rejects evidence superseded by another execution.
74
+ running code. The exact run ID selects retained historical evidence from that execution.
72
75
  `section: "details"`, `"requests"`, `"browserErrors"` or `"artifacts"` reads separate pages
73
76
  (default 10/max 20 rows, at most 8192 JSON bytes); artifacts themselves require
74
77
  explicit resource reads. Truncated investigation records also support
@@ -93,9 +96,10 @@ artifacts exist; ADS does not turn on expensive recording or rerun a failed case
93
96
  Protocol runners may provide structured failure/step/location/artifact fields;
94
97
  older reports remain valid and their unclassified errors stay explicit.
95
98
 
96
- Only the latest bundle per registered check is exposed, including dry runs.
97
- Another verification replaces it and removes old artifacts from resource access;
98
- old runner output directories follow project cleanup policy. Artifact resources
99
+ Listings show the latest bundle per registered check, including dry runs.
100
+ An exact `runId` reads the retained historical bundle and artifacts. Collection
101
+ expires a result and its owned evidence together; another verification alone does
102
+ not revoke earlier evidence. Artifact resources
99
103
  are restricted to registered ordinary files under that run's output directory,
100
104
  bounded to 20 MiB each and checked against their recorded digest on read.
101
105
  Metadata is bounded to 2 MiB. Removed registrations are pruned on verification.
@@ -1,5 +1,18 @@
1
1
  # Validation scope
2
2
 
3
+ ADS runs architecture batch checks through its internal pinned Turbo dependency.
4
+ Local task caching is on by default; projects need no Turbo config. Source/tool,
5
+ dependency, Git-tracking and runtime changes invalidate reports. A hit reuses only
6
+ the source analysis, never policy success, browser results, a baseline or a run ID.
7
+ Project scripts and registered behavior tests still follow the selected policy.
8
+ Use CLI `check/validate --fresh`, or MCP `ads_check`, `ads_validate`, `ads_accept`
9
+ with `fresh:true`, to bypass task-cache reads. `ADS_CACHE=off` disables reads and
10
+ writes; `ADS_CACHE_DIR` relocates the local store. Remote caching is opt-in with
11
+ `ADS_REMOTE_CACHE=1` and standard Turbo provider variables. For CI, persist only
12
+ `.ds/task-cache` with the CI cache action or configure that remote provider; no
13
+ ADS cache service/API is needed. Inspect task-cache status in source reports,
14
+ execution summaries and `ads_results`; it is not a new test execution claim.
15
+
3
16
  These checks apply to both [direct editing and MCP-only editing](workflows.md).
4
17
  Direct source edits need current checks and rendered review; ordinary edits do
5
18
  not require a draft or acceptance call. Tracked proposals validate on acceptance.
@@ -101,3 +114,36 @@ before browser workers open their pages. They share one candidate graph and
101
114
  keep independent App state. This avoids compiling a growing graph per page.
102
115
  A graph revision changing during startup keeps the preview pending until a
103
116
  coherent current build mounts; it does not establish passing case evidence.
117
+
118
+ ## Shared-server execution
119
+
120
+ ADS serializes validation, acceptance, verification and guarded source application
121
+ across all MCP clients served by one process. This includes changed scope and
122
+ unit checks. A conflicting call returns `ADS_VALIDATION_LOCKED` immediately with
123
+ its holder, run ID, operation, selection, progress and approximate ETA (null when
124
+ unknown). Read `ads_status.execution`, keep previewing/reading, and retry after the
125
+ lease clears. Do not repeatedly retry, start another ADS process to bypass it,
126
+ or interrupt another client's work. There is no wait mode or parallel-unit lane.
127
+
128
+ Coordinate direct editor changes before starting a full audit. Relevant external
129
+ source edits stop a run with `ADS_SOURCE_CHANGED_DURING_RUN`; inspect its diagnostic
130
+ files and attribution, then retry against current source. Direct edits have unknown
131
+ authorship. Generated output is excluded. A stopped run never advances a baseline.
132
+ Ordinary preview viewing and draft editing remain available; accepted-source writes
133
+ are refused while checking, including writes from the lease holder.
134
+
135
+ The run ID is its eventual result ID and survives response loss or reconnection.
136
+ Cancellation/disconnection holds the lease through runner cleanup and saves the
137
+ terminal outcome. After a restart, abandoned runs become interrupted; they are
138
+ never resumed automatically. Completed evidence and successful baselines persist.
139
+ Use `ads_results` to inspect retained completion-time evidence, and `ads_behaviors`
140
+ for whether registered results still match current source.
141
+
142
+ Retention defaults to 50 completed runs, seven days and 256 MiB of owned result
143
+ and browser evidence. Configure `mcp.resultRetention` (`maxRuns`, `maxAgeDays`,
144
+ `maxBytesMb`) for the project. Active work and the newly returned result are
145
+ protected, so status may temporarily report `overBudget`. Cleanup runs at startup
146
+ and after execution, independently of client disconnects. Expired IDs return
147
+ `ADS_RESULT_EXPIRED` (recent expiry tombstones are bounded); copy evidence needed
148
+ for long-term release/audit records before it expires. Separate ADS processes are
149
+ not coordinated by this process-local lease.
@@ -346,9 +346,8 @@ previews and a `resultId` (4 KiB UTF-8 JSON maximum). Use `ads_results` to read
346
346
  selected `outcomes`, `checks`, `diagnostics` or other sections without execution.
347
347
  Pages default to 10 rows, allow at most 20 and stay within 8 KiB; follow
348
348
  `nextCursor` with identical selection/status. Truncated records provide
349
- `recordIndex` for exact `offset`/`chars` ranges. Only the latest verification and
350
- mutation snapshots are retained, independently, at most 8 MiB each. Replaced IDs
351
- fail explicitly. Validation still uses complete internal outcomes.
349
+ `recordIndex` for exact `offset`/`chars` ranges. Immutable run snapshots remain readable across other executions and reconnects,
350
+ within configurable retention, at most 8 MiB each. Expired IDs fail explicitly. Validation still uses complete internal outcomes.
352
351
 
353
352
  Use `ads_investigate({unit,check,runId})` with an outcome's exact IDs for its compact
354
353
  summary (4 KiB maximum); details, requests, browser errors and artifact metadata are separate
@@ -358,8 +357,8 @@ the recorded run ID. Saved outcomes describe completion time; compare current
358
357
  input and observed preview revisions, failing step/source, startup viewport,
359
358
  failed startup requests and available project-recorded artifacts keep diagnosis
360
359
  separate from an inferred component defect. No artifact is invented or test
361
- retried. Each check retains one latest bundle; old artifact resource access is
362
- superseded. Candidate bundles remain distinct from passing live-source evidence.
360
+ retried. Latest-check listings are indexes; exact run IDs retain their historical bundles
361
+ and artifacts until collection. Candidate bundles remain distinct from passing live-source evidence.
363
362
  Read the portable [evidence reference](evidence.md)
364
363
  for category meanings, collection limits and artifact policy.
365
364
 
@@ -8,7 +8,12 @@ Install Bun 1.4.1+ for ADS tooling and previews. The application keeps its own
8
8
  Node/npm or Bun build pipeline. Use these commands alongside this skill's research,
9
9
  implementation, documentation, and verification workflow. ADS must be a project
10
10
  development dependency, and its checks must run before the project's build.
11
- Routine builds use the local CLI.
11
+ Routine builds use the local CLI. ADS manages its internal Turbo dependency and
12
+ local task cache automatically; no project Turbo configuration is required.
13
+ In Hermit-managed projects, pin supported Bun (>=1.4.1); Turbo arrives through
14
+ ADS in devDependencies, so do not add a separate Hermit/global Turbo installation.
15
+ `ads check --fresh` and `ads validate --fresh` bypass task-cache reads. See
16
+ [validation](validation.md) for cache controls and CI wiring.
12
17
 
13
18
  Select an actual published package/version or a real local tarball supplied by
14
19
  the user or built from the tool checkout. Respect the project's installed
@@ -45,10 +45,13 @@ characters); follow `nextOffset`. Do not combine ranges with a cursor/status fil
45
45
  Read only the relevant log range. Reading pages or ranges never executes checks.
46
46
 
47
47
  `ads://project/results` lists the latest IDs. `ads://results/<resultId>` reads a
48
- summary; matching query parameters read pages/ranges. Only the latest verification
49
- and latest mutation snapshots are retained, independently, up to 8 MiB each.
50
- A superseded ID fails explicitly. An oversized report retains only its summary
51
- with a warning; disk failure retains details in server memory until shutdown.
48
+ summary; matching query parameters read pages/ranges. Immutable snapshots remain
49
+ readable across subsequent runs and reconnects, within `mcp.resultRetention`.
50
+ Defaults are 50 runs, seven days and 256 MiB including owned browser evidence;
51
+ individual snapshots remain limited to 8 MiB. `ADS_RESULT_EXPIRED` identifies a
52
+ recently collected ID; older/unknown IDs are unavailable. An oversized report
53
+ retains only its summary with a warning; disk failure retains latest details in
54
+ server memory until shutdown.
52
55
  Neither changes actual acceptance or applied state. These are logical JSON byte
53
56
  budgets, not token estimates; compatibility text can duplicate structured JSON.
54
57
  Saved outcomes describe completion-time evidence, not current source freshness;
@@ -68,7 +71,7 @@ Take an outcome's exact owner/check/run IDs from `ads_results`, then:
68
71
  ```
69
72
 
70
73
  Send this to `ads_investigate`. It reads a summary within 4096 JSON bytes, without
71
- running code. The run ID rejects evidence superseded by another execution.
74
+ running code. The exact run ID selects retained historical evidence from that execution.
72
75
  `section: "details"`, `"requests"`, `"browserErrors"` or `"artifacts"` reads separate pages
73
76
  (default 10/max 20 rows, at most 8192 JSON bytes); artifacts themselves require
74
77
  explicit resource reads. Truncated investigation records also support
@@ -93,9 +96,10 @@ artifacts exist; ADS does not turn on expensive recording or rerun a failed case
93
96
  Protocol runners may provide structured failure/step/location/artifact fields;
94
97
  older reports remain valid and their unclassified errors stay explicit.
95
98
 
96
- Only the latest bundle per registered check is exposed, including dry runs.
97
- Another verification replaces it and removes old artifacts from resource access;
98
- old runner output directories follow project cleanup policy. Artifact resources
99
+ Listings show the latest bundle per registered check, including dry runs.
100
+ An exact `runId` reads the retained historical bundle and artifacts. Collection
101
+ expires a result and its owned evidence together; another verification alone does
102
+ not revoke earlier evidence. Artifact resources
99
103
  are restricted to registered ordinary files under that run's output directory,
100
104
  bounded to 20 MiB each and checked against their recorded digest on read.
101
105
  Metadata is bounded to 2 MiB. Removed registrations are pruned on verification.
@@ -1,5 +1,18 @@
1
1
  # Validation scope
2
2
 
3
+ ADS runs architecture batch checks through its internal pinned Turbo dependency.
4
+ Local task caching is on by default; projects need no Turbo config. Source/tool,
5
+ dependency, Git-tracking and runtime changes invalidate reports. A hit reuses only
6
+ the source analysis, never policy success, browser results, a baseline or a run ID.
7
+ Project scripts and registered behavior tests still follow the selected policy.
8
+ Use CLI `check/validate --fresh`, or MCP `ads_check`, `ads_validate`, `ads_accept`
9
+ with `fresh:true`, to bypass task-cache reads. `ADS_CACHE=off` disables reads and
10
+ writes; `ADS_CACHE_DIR` relocates the local store. Remote caching is opt-in with
11
+ `ADS_REMOTE_CACHE=1` and standard Turbo provider variables. For CI, persist only
12
+ `.ds/task-cache` with the CI cache action or configure that remote provider; no
13
+ ADS cache service/API is needed. Inspect task-cache status in source reports,
14
+ execution summaries and `ads_results`; it is not a new test execution claim.
15
+
3
16
  These checks apply to both [direct editing and MCP-only editing](workflows.md).
4
17
  Direct source edits need current checks and rendered review; ordinary edits do
5
18
  not require a draft or acceptance call. Tracked proposals validate on acceptance.
@@ -101,3 +114,36 @@ before browser workers open their pages. They share one candidate graph and
101
114
  keep independent App state. This avoids compiling a growing graph per page.
102
115
  A graph revision changing during startup keeps the preview pending until a
103
116
  coherent current build mounts; it does not establish passing case evidence.
117
+
118
+ ## Shared-server execution
119
+
120
+ ADS serializes validation, acceptance, verification and guarded source application
121
+ across all MCP clients served by one process. This includes changed scope and
122
+ unit checks. A conflicting call returns `ADS_VALIDATION_LOCKED` immediately with
123
+ its holder, run ID, operation, selection, progress and approximate ETA (null when
124
+ unknown). Read `ads_status.execution`, keep previewing/reading, and retry after the
125
+ lease clears. Do not repeatedly retry, start another ADS process to bypass it,
126
+ or interrupt another client's work. There is no wait mode or parallel-unit lane.
127
+
128
+ Coordinate direct editor changes before starting a full audit. Relevant external
129
+ source edits stop a run with `ADS_SOURCE_CHANGED_DURING_RUN`; inspect its diagnostic
130
+ files and attribution, then retry against current source. Direct edits have unknown
131
+ authorship. Generated output is excluded. A stopped run never advances a baseline.
132
+ Ordinary preview viewing and draft editing remain available; accepted-source writes
133
+ are refused while checking, including writes from the lease holder.
134
+
135
+ The run ID is its eventual result ID and survives response loss or reconnection.
136
+ Cancellation/disconnection holds the lease through runner cleanup and saves the
137
+ terminal outcome. After a restart, abandoned runs become interrupted; they are
138
+ never resumed automatically. Completed evidence and successful baselines persist.
139
+ Use `ads_results` to inspect retained completion-time evidence, and `ads_behaviors`
140
+ for whether registered results still match current source.
141
+
142
+ Retention defaults to 50 completed runs, seven days and 256 MiB of owned result
143
+ and browser evidence. Configure `mcp.resultRetention` (`maxRuns`, `maxAgeDays`,
144
+ `maxBytesMb`) for the project. Active work and the newly returned result are
145
+ protected, so status may temporarily report `overBudget`. Cleanup runs at startup
146
+ and after execution, independently of client disconnects. Expired IDs return
147
+ `ADS_RESULT_EXPIRED` (recent expiry tombstones are bounded); copy evidence needed
148
+ for long-term release/audit records before it expires. Separate ADS processes are
149
+ not coordinated by this process-local lease.
@@ -346,9 +346,8 @@ previews and a `resultId` (4 KiB UTF-8 JSON maximum). Use `ads_results` to read
346
346
  selected `outcomes`, `checks`, `diagnostics` or other sections without execution.
347
347
  Pages default to 10 rows, allow at most 20 and stay within 8 KiB; follow
348
348
  `nextCursor` with identical selection/status. Truncated records provide
349
- `recordIndex` for exact `offset`/`chars` ranges. Only the latest verification and
350
- mutation snapshots are retained, independently, at most 8 MiB each. Replaced IDs
351
- fail explicitly. Validation still uses complete internal outcomes.
349
+ `recordIndex` for exact `offset`/`chars` ranges. Immutable run snapshots remain readable across other executions and reconnects,
350
+ within configurable retention, at most 8 MiB each. Expired IDs fail explicitly. Validation still uses complete internal outcomes.
352
351
 
353
352
  Use `ads_investigate({unit,check,runId})` with an outcome's exact IDs for its compact
354
353
  summary (4 KiB maximum); details, requests, browser errors and artifact metadata are separate
@@ -358,8 +357,8 @@ the recorded run ID. Saved outcomes describe completion time; compare current
358
357
  input and observed preview revisions, failing step/source, startup viewport,
359
358
  failed startup requests and available project-recorded artifacts keep diagnosis
360
359
  separate from an inferred component defect. No artifact is invented or test
361
- retried. Each check retains one latest bundle; old artifact resource access is
362
- superseded. Candidate bundles remain distinct from passing live-source evidence.
360
+ retried. Latest-check listings are indexes; exact run IDs retain their historical bundles
361
+ and artifacts until collection. Candidate bundles remain distinct from passing live-source evidence.
363
362
  Read the portable [evidence reference](evidence.md)
364
363
  for category meanings, collection limits and artifact policy.
365
364
 
@@ -45,10 +45,13 @@ characters); follow `nextOffset`. Do not combine ranges with a cursor/status fil
45
45
  Read only the relevant log range. Reading pages or ranges never executes checks.
46
46
 
47
47
  `ads://project/results` lists the latest IDs. `ads://results/<resultId>` reads a
48
- summary; matching query parameters read pages/ranges. Only the latest verification
49
- and latest mutation snapshots are retained, independently, up to 8 MiB each.
50
- A superseded ID fails explicitly. An oversized report retains only its summary
51
- with a warning; disk failure retains details in server memory until shutdown.
48
+ summary; matching query parameters read pages/ranges. Immutable snapshots remain
49
+ readable across subsequent runs and reconnects, within `mcp.resultRetention`.
50
+ Defaults are 50 runs, seven days and 256 MiB including owned browser evidence;
51
+ individual snapshots remain limited to 8 MiB. `ADS_RESULT_EXPIRED` identifies a
52
+ recently collected ID; older/unknown IDs are unavailable. An oversized report
53
+ retains only its summary with a warning; disk failure retains latest details in
54
+ server memory until shutdown.
52
55
  Neither changes actual acceptance or applied state. These are logical JSON byte
53
56
  budgets, not token estimates; compatibility text can duplicate structured JSON.
54
57
  Saved outcomes describe completion-time evidence, not current source freshness;
@@ -68,7 +71,7 @@ Take an outcome's exact owner/check/run IDs from `ads_results`, then:
68
71
  ```
69
72
 
70
73
  Send this to `ads_investigate`. It reads a summary within 4096 JSON bytes, without
71
- running code. The run ID rejects evidence superseded by another execution.
74
+ running code. The exact run ID selects retained historical evidence from that execution.
72
75
  `section: "details"`, `"requests"`, `"browserErrors"` or `"artifacts"` reads separate pages
73
76
  (default 10/max 20 rows, at most 8192 JSON bytes); artifacts themselves require
74
77
  explicit resource reads. Truncated investigation records also support
@@ -93,9 +96,10 @@ artifacts exist; ADS does not turn on expensive recording or rerun a failed case
93
96
  Protocol runners may provide structured failure/step/location/artifact fields;
94
97
  older reports remain valid and their unclassified errors stay explicit.
95
98
 
96
- Only the latest bundle per registered check is exposed, including dry runs.
97
- Another verification replaces it and removes old artifacts from resource access;
98
- old runner output directories follow project cleanup policy. Artifact resources
99
+ Listings show the latest bundle per registered check, including dry runs.
100
+ An exact `runId` reads the retained historical bundle and artifacts. Collection
101
+ expires a result and its owned evidence together; another verification alone does
102
+ not revoke earlier evidence. Artifact resources
99
103
  are restricted to registered ordinary files under that run's output directory,
100
104
  bounded to 20 MiB each and checked against their recorded digest on read.
101
105
  Metadata is bounded to 2 MiB. Removed registrations are pruned on verification.
@@ -1,5 +1,18 @@
1
1
  # Validation scope
2
2
 
3
+ ADS runs architecture batch checks through its internal pinned Turbo dependency.
4
+ Local task caching is on by default; projects need no Turbo config. Source/tool,
5
+ dependency, Git-tracking and runtime changes invalidate reports. A hit reuses only
6
+ the source analysis, never policy success, browser results, a baseline or a run ID.
7
+ Project scripts and registered behavior tests still follow the selected policy.
8
+ Use CLI `check/validate --fresh`, or MCP `ads_check`, `ads_validate`, `ads_accept`
9
+ with `fresh:true`, to bypass task-cache reads. `ADS_CACHE=off` disables reads and
10
+ writes; `ADS_CACHE_DIR` relocates the local store. Remote caching is opt-in with
11
+ `ADS_REMOTE_CACHE=1` and standard Turbo provider variables. For CI, persist only
12
+ `.ds/task-cache` with the CI cache action or configure that remote provider; no
13
+ ADS cache service/API is needed. Inspect task-cache status in source reports,
14
+ execution summaries and `ads_results`; it is not a new test execution claim.
15
+
3
16
  These checks apply to both [direct editing and MCP-only editing](workflows.md).
4
17
  Direct source edits need current checks and rendered review; ordinary edits do
5
18
  not require a draft or acceptance call. Tracked proposals validate on acceptance.
@@ -101,3 +114,36 @@ before browser workers open their pages. They share one candidate graph and
101
114
  keep independent App state. This avoids compiling a growing graph per page.
102
115
  A graph revision changing during startup keeps the preview pending until a
103
116
  coherent current build mounts; it does not establish passing case evidence.
117
+
118
+ ## Shared-server execution
119
+
120
+ ADS serializes validation, acceptance, verification and guarded source application
121
+ across all MCP clients served by one process. This includes changed scope and
122
+ unit checks. A conflicting call returns `ADS_VALIDATION_LOCKED` immediately with
123
+ its holder, run ID, operation, selection, progress and approximate ETA (null when
124
+ unknown). Read `ads_status.execution`, keep previewing/reading, and retry after the
125
+ lease clears. Do not repeatedly retry, start another ADS process to bypass it,
126
+ or interrupt another client's work. There is no wait mode or parallel-unit lane.
127
+
128
+ Coordinate direct editor changes before starting a full audit. Relevant external
129
+ source edits stop a run with `ADS_SOURCE_CHANGED_DURING_RUN`; inspect its diagnostic
130
+ files and attribution, then retry against current source. Direct edits have unknown
131
+ authorship. Generated output is excluded. A stopped run never advances a baseline.
132
+ Ordinary preview viewing and draft editing remain available; accepted-source writes
133
+ are refused while checking, including writes from the lease holder.
134
+
135
+ The run ID is its eventual result ID and survives response loss or reconnection.
136
+ Cancellation/disconnection holds the lease through runner cleanup and saves the
137
+ terminal outcome. After a restart, abandoned runs become interrupted; they are
138
+ never resumed automatically. Completed evidence and successful baselines persist.
139
+ Use `ads_results` to inspect retained completion-time evidence, and `ads_behaviors`
140
+ for whether registered results still match current source.
141
+
142
+ Retention defaults to 50 completed runs, seven days and 256 MiB of owned result
143
+ and browser evidence. Configure `mcp.resultRetention` (`maxRuns`, `maxAgeDays`,
144
+ `maxBytesMb`) for the project. Active work and the newly returned result are
145
+ protected, so status may temporarily report `overBudget`. Cleanup runs at startup
146
+ and after execution, independently of client disconnects. Expired IDs return
147
+ `ADS_RESULT_EXPIRED` (recent expiry tombstones are bounded); copy evidence needed
148
+ for long-term release/audit records before it expires. Separate ADS processes are
149
+ not coordinated by this process-local lease.
@@ -346,9 +346,8 @@ previews and a `resultId` (4 KiB UTF-8 JSON maximum). Use `ads_results` to read
346
346
  selected `outcomes`, `checks`, `diagnostics` or other sections without execution.
347
347
  Pages default to 10 rows, allow at most 20 and stay within 8 KiB; follow
348
348
  `nextCursor` with identical selection/status. Truncated records provide
349
- `recordIndex` for exact `offset`/`chars` ranges. Only the latest verification and
350
- mutation snapshots are retained, independently, at most 8 MiB each. Replaced IDs
351
- fail explicitly. Validation still uses complete internal outcomes.
349
+ `recordIndex` for exact `offset`/`chars` ranges. Immutable run snapshots remain readable across other executions and reconnects,
350
+ within configurable retention, at most 8 MiB each. Expired IDs fail explicitly. Validation still uses complete internal outcomes.
352
351
 
353
352
  Use `ads_investigate({unit,check,runId})` with an outcome's exact IDs for its compact
354
353
  summary (4 KiB maximum); details, requests, browser errors and artifact metadata are separate
@@ -358,8 +357,8 @@ the recorded run ID. Saved outcomes describe completion time; compare current
358
357
  input and observed preview revisions, failing step/source, startup viewport,
359
358
  failed startup requests and available project-recorded artifacts keep diagnosis
360
359
  separate from an inferred component defect. No artifact is invented or test
361
- retried. Each check retains one latest bundle; old artifact resource access is
362
- superseded. Candidate bundles remain distinct from passing live-source evidence.
360
+ retried. Latest-check listings are indexes; exact run IDs retain their historical bundles
361
+ and artifacts until collection. Candidate bundles remain distinct from passing live-source evidence.
363
362
  Read the portable [evidence reference](evidence.md)
364
363
  for category meanings, collection limits and artifact policy.
365
364
 
@@ -8,7 +8,12 @@ Install Bun 1.4.1+ for ADS tooling and previews. The application keeps its own
8
8
  Node/npm or Bun build pipeline. Use these commands alongside this skill's research,
9
9
  implementation, documentation, and verification workflow. ADS must be a project
10
10
  development dependency, and its checks must run before the project's build.
11
- Routine builds use the local CLI.
11
+ Routine builds use the local CLI. ADS manages its internal Turbo dependency and
12
+ local task cache automatically; no project Turbo configuration is required.
13
+ In Hermit-managed projects, pin supported Bun (>=1.4.1); Turbo arrives through
14
+ ADS in devDependencies, so do not add a separate Hermit/global Turbo installation.
15
+ `ads check --fresh` and `ads validate --fresh` bypass task-cache reads. See
16
+ [validation](validation.md) for cache controls and CI wiring.
12
17
 
13
18
  Select an actual published package/version or a real local tarball supplied by
14
19
  the user or built from the tool checkout. Respect the project's installed
@@ -45,10 +45,13 @@ characters); follow `nextOffset`. Do not combine ranges with a cursor/status fil
45
45
  Read only the relevant log range. Reading pages or ranges never executes checks.
46
46
 
47
47
  `ads://project/results` lists the latest IDs. `ads://results/<resultId>` reads a
48
- summary; matching query parameters read pages/ranges. Only the latest verification
49
- and latest mutation snapshots are retained, independently, up to 8 MiB each.
50
- A superseded ID fails explicitly. An oversized report retains only its summary
51
- with a warning; disk failure retains details in server memory until shutdown.
48
+ summary; matching query parameters read pages/ranges. Immutable snapshots remain
49
+ readable across subsequent runs and reconnects, within `mcp.resultRetention`.
50
+ Defaults are 50 runs, seven days and 256 MiB including owned browser evidence;
51
+ individual snapshots remain limited to 8 MiB. `ADS_RESULT_EXPIRED` identifies a
52
+ recently collected ID; older/unknown IDs are unavailable. An oversized report
53
+ retains only its summary with a warning; disk failure retains latest details in
54
+ server memory until shutdown.
52
55
  Neither changes actual acceptance or applied state. These are logical JSON byte
53
56
  budgets, not token estimates; compatibility text can duplicate structured JSON.
54
57
  Saved outcomes describe completion-time evidence, not current source freshness;
@@ -68,7 +71,7 @@ Take an outcome's exact owner/check/run IDs from `ads_results`, then:
68
71
  ```
69
72
 
70
73
  Send this to `ads_investigate`. It reads a summary within 4096 JSON bytes, without
71
- running code. The run ID rejects evidence superseded by another execution.
74
+ running code. The exact run ID selects retained historical evidence from that execution.
72
75
  `section: "details"`, `"requests"`, `"browserErrors"` or `"artifacts"` reads separate pages
73
76
  (default 10/max 20 rows, at most 8192 JSON bytes); artifacts themselves require
74
77
  explicit resource reads. Truncated investigation records also support
@@ -93,9 +96,10 @@ artifacts exist; ADS does not turn on expensive recording or rerun a failed case
93
96
  Protocol runners may provide structured failure/step/location/artifact fields;
94
97
  older reports remain valid and their unclassified errors stay explicit.
95
98
 
96
- Only the latest bundle per registered check is exposed, including dry runs.
97
- Another verification replaces it and removes old artifacts from resource access;
98
- old runner output directories follow project cleanup policy. Artifact resources
99
+ Listings show the latest bundle per registered check, including dry runs.
100
+ An exact `runId` reads the retained historical bundle and artifacts. Collection
101
+ expires a result and its owned evidence together; another verification alone does
102
+ not revoke earlier evidence. Artifact resources
99
103
  are restricted to registered ordinary files under that run's output directory,
100
104
  bounded to 20 MiB each and checked against their recorded digest on read.
101
105
  Metadata is bounded to 2 MiB. Removed registrations are pruned on verification.
@@ -1,5 +1,18 @@
1
1
  # Validation scope
2
2
 
3
+ ADS runs architecture batch checks through its internal pinned Turbo dependency.
4
+ Local task caching is on by default; projects need no Turbo config. Source/tool,
5
+ dependency, Git-tracking and runtime changes invalidate reports. A hit reuses only
6
+ the source analysis, never policy success, browser results, a baseline or a run ID.
7
+ Project scripts and registered behavior tests still follow the selected policy.
8
+ Use CLI `check/validate --fresh`, or MCP `ads_check`, `ads_validate`, `ads_accept`
9
+ with `fresh:true`, to bypass task-cache reads. `ADS_CACHE=off` disables reads and
10
+ writes; `ADS_CACHE_DIR` relocates the local store. Remote caching is opt-in with
11
+ `ADS_REMOTE_CACHE=1` and standard Turbo provider variables. For CI, persist only
12
+ `.ds/task-cache` with the CI cache action or configure that remote provider; no
13
+ ADS cache service/API is needed. Inspect task-cache status in source reports,
14
+ execution summaries and `ads_results`; it is not a new test execution claim.
15
+
3
16
  These checks apply to both [direct editing and MCP-only editing](workflows.md).
4
17
  Direct source edits need current checks and rendered review; ordinary edits do
5
18
  not require a draft or acceptance call. Tracked proposals validate on acceptance.
@@ -101,3 +114,36 @@ before browser workers open their pages. They share one candidate graph and
101
114
  keep independent App state. This avoids compiling a growing graph per page.
102
115
  A graph revision changing during startup keeps the preview pending until a
103
116
  coherent current build mounts; it does not establish passing case evidence.
117
+
118
+ ## Shared-server execution
119
+
120
+ ADS serializes validation, acceptance, verification and guarded source application
121
+ across all MCP clients served by one process. This includes changed scope and
122
+ unit checks. A conflicting call returns `ADS_VALIDATION_LOCKED` immediately with
123
+ its holder, run ID, operation, selection, progress and approximate ETA (null when
124
+ unknown). Read `ads_status.execution`, keep previewing/reading, and retry after the
125
+ lease clears. Do not repeatedly retry, start another ADS process to bypass it,
126
+ or interrupt another client's work. There is no wait mode or parallel-unit lane.
127
+
128
+ Coordinate direct editor changes before starting a full audit. Relevant external
129
+ source edits stop a run with `ADS_SOURCE_CHANGED_DURING_RUN`; inspect its diagnostic
130
+ files and attribution, then retry against current source. Direct edits have unknown
131
+ authorship. Generated output is excluded. A stopped run never advances a baseline.
132
+ Ordinary preview viewing and draft editing remain available; accepted-source writes
133
+ are refused while checking, including writes from the lease holder.
134
+
135
+ The run ID is its eventual result ID and survives response loss or reconnection.
136
+ Cancellation/disconnection holds the lease through runner cleanup and saves the
137
+ terminal outcome. After a restart, abandoned runs become interrupted; they are
138
+ never resumed automatically. Completed evidence and successful baselines persist.
139
+ Use `ads_results` to inspect retained completion-time evidence, and `ads_behaviors`
140
+ for whether registered results still match current source.
141
+
142
+ Retention defaults to 50 completed runs, seven days and 256 MiB of owned result
143
+ and browser evidence. Configure `mcp.resultRetention` (`maxRuns`, `maxAgeDays`,
144
+ `maxBytesMb`) for the project. Active work and the newly returned result are
145
+ protected, so status may temporarily report `overBudget`. Cleanup runs at startup
146
+ and after execution, independently of client disconnects. Expired IDs return
147
+ `ADS_RESULT_EXPIRED` (recent expiry tombstones are bounded); copy evidence needed
148
+ for long-term release/audit records before it expires. Separate ADS processes are
149
+ not coordinated by this process-local lease.