@reqvire-org/ads 0.3.39 → 0.3.41
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/dist/bun-compiler.mjs +1 -1
- package/dist/config.mjs +4 -1
- package/dist/investigations.mjs +27 -8
- package/dist/mcp/build-status.mjs +27 -16
- package/dist/mcp/context.mjs +1 -1
- package/dist/mcp/drafts.mjs +1 -1
- package/dist/mcp/execution-context.mjs +38 -0
- package/dist/mcp/execution-coordinator.mjs +220 -0
- package/dist/mcp/execution-results.mjs +107 -48
- package/dist/mcp/mutations.mjs +2 -0
- package/dist/mcp/preview-widget.bundle.js +2 -2
- package/dist/mcp/resource-loader.js +3 -2
- package/dist/mcp/server.mjs +42 -13
- package/dist/preview-failure.mjs +20 -0
- package/dist/preview-resources.mjs +69 -21
- package/dist/scenarios-compiler.mjs +7 -6
- package/dist/showcase/client.bundle.js +43 -41
- package/dist/showcase/index.html +15 -1
- package/dist/showcase/preview-state.js +2 -1
- package/dist/showcase/style.css +4 -1
- package/dist/skills/ads-break-ui/references/behaviors.md +4 -5
- package/dist/skills/ads-break-ui/references/evidence.md +12 -8
- package/dist/skills/ads-break-ui/references/validation.md +33 -0
- package/dist/skills/ads-designer/references/behaviors.md +4 -5
- package/dist/skills/ads-designer/references/evidence.md +12 -8
- package/dist/skills/ads-designer/references/validation.md +33 -0
- package/dist/skills/ads-import/references/behaviors.md +4 -5
- package/dist/skills/ads-import/references/evidence.md +12 -8
- package/dist/skills/ads-import/references/validation.md +33 -0
- package/dist/skills/ads-motion/references/behaviors.md +4 -5
- package/dist/skills/ads-motion/references/evidence.md +12 -8
- package/dist/skills/ads-motion/references/validation.md +33 -0
- package/dist/skills/ads-port/references/behaviors.md +4 -5
- package/dist/skills/ads-port/references/evidence.md +12 -8
- package/dist/skills/ads-port/references/validation.md +33 -0
- package/dist/validation-checks.mjs +6 -2
- package/dist/validation.mjs +8 -2
- package/dist/verification.mjs +7 -3
- package/docs/ARCHITECTURE.md +21 -3
- package/docs/CHANGELOG.md +40 -28
- package/docs/MCP.md +66 -12
- package/docs/plans/execution-coordination.md +57 -0
- package/package.json +1 -1
package/dist/showcase/index.html
CHANGED
|
@@ -12,6 +12,20 @@
|
|
|
12
12
|
</nav>
|
|
13
13
|
<div class="actions"><button id="preview-status" data-phase="opening" aria-label="Preview status: Connecting to ADS MCP…" title="Connecting to ADS MCP…" popovertarget="status-details"><span class="status-dot" aria-hidden="true"></span></button><div id="status-details" popover><p id="status" role="status">Connecting to ADS MCP…</p><p id="warmup-status" hidden></p></div><button id="viewport" aria-label="Phone viewport" aria-pressed="false" aria-controls="frame-slot" title="Preview at phone width (390 px)"><svg viewBox="0 0 16 16" aria-hidden="true"><rect x="4" y="1" width="8" height="14" rx="1.5"/><path d="M7 12.5h2"/></svg></button><button id="theme" aria-label="Use dark theme" title="Use dark theme"><svg viewBox="0 0 16 16"><path d="M13.5 9a5.5 5.5 0 0 1-6.5-6.5A5.5 5.5 0 1 0 13.5 9Z"/></svg></button><button id="minimize" aria-label="Minimize showcase menu" title="Minimize showcase menu (refresh to restore)"><svg viewBox="0 0 16 16"><path d="m4 10 4-4 4 4"/></svg></button></div>
|
|
14
14
|
</header>
|
|
15
|
-
<main
|
|
15
|
+
<main>
|
|
16
|
+
<aside id="sidebar"><nav id="entries" aria-label="Tokens"></nav></aside>
|
|
17
|
+
<section id="preview-workspace" aria-label="Preview workspace">
|
|
18
|
+
<div id="preview-error" role="alert" hidden>
|
|
19
|
+
<svg viewBox="0 0 16 16" aria-hidden="true"><path d="m8 2 7 12H1L8 2Z"/><path d="M8 6v3M8 11v.5"/></svg>
|
|
20
|
+
<p id="preview-error-message"></p>
|
|
21
|
+
<button id="preview-error-details" type="button" popovertarget="status-details">Details</button>
|
|
22
|
+
<button id="retry-preview" type="button">Retry preview</button>
|
|
23
|
+
</div>
|
|
24
|
+
<section id="preview" aria-label="Preview">
|
|
25
|
+
<div id="loader" role="status" aria-label="Loading preview" hidden><span class="spinner" aria-hidden="true"></span></div>
|
|
26
|
+
<div id="frame-slot"></div>
|
|
27
|
+
</section>
|
|
28
|
+
</section>
|
|
29
|
+
</main>
|
|
16
30
|
<script type="module" src="/client.js"></script>
|
|
17
31
|
</body></html>
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { previewFailureTitle } from "../src/preview-failure.mjs";
|
|
1
2
|
/** One monochrome state per entry; proposal presence and build state are distinct. */
|
|
2
3
|
export function entryPreviewState(item, report, preferredDraft) {
|
|
3
4
|
const draft = item.drafts?.find(value => value.id === preferredDraft) ?? item.drafts?.[0];
|
|
@@ -5,7 +6,7 @@ export function entryPreviewState(item, report, preferredDraft) {
|
|
|
5
6
|
const build = draft ? proposal?.scenarios?.find(value => value.id === item.id) ?? proposal : report?.previews?.find(value => value.id === item.id) ?? item.build;
|
|
6
7
|
const state = build?.state === "error" ? "error" : build?.state === "checking" || build?.live ? "checking"
|
|
7
8
|
: build?.building || ["queued", "building"].includes(build?.state) ? "building" : build?.current ? "ready" : build?.stale ? "stale" : "unreported";
|
|
8
|
-
const labels = { error:
|
|
9
|
+
const labels = { error: previewFailureTitle(build), checking: "Preview compiled; checking changes", building: "Preview build in progress", ready: "Preview build complete", stale: "Previous preview; current source not built", unreported: "Preview not built" };
|
|
9
10
|
return { state, label: `${draft ? "Draft · " : ""}${labels[state]}${draft && state === "ready" ? " · unaccepted" : ""}` };
|
|
10
11
|
}
|
|
11
12
|
|
package/dist/showcase/style.css
CHANGED
|
@@ -22,6 +22,9 @@ main{flex:1;min-height:0;display:flex}#sidebar{width:var(--pane-width);flex:none
|
|
|
22
22
|
:root[data-viewport="phone"] #frame-slot:has(.draft-comparison){width:100%}:root[data-viewport="phone"] .draft-stage iframe{width:min(390px,100%)}
|
|
23
23
|
@media(max-width:760px){.draft-comparison[data-split="true"]{grid-template-columns:minmax(0,1fr);grid-template-rows:repeat(2,minmax(0,1fr))}.draft-version+ .draft-version{border-inline-start:0;border-top:1px solid var(--frame-line)}}
|
|
24
24
|
|
|
25
|
-
#preview-
|
|
25
|
+
#preview-workspace{flex:1;min-width:0;min-height:0;display:flex;flex-direction:column}
|
|
26
|
+
/* Host diagnostics belong to workspace chrome, outside the rendered canvas. */
|
|
27
|
+
#preview-error{display:flex;align-items:center;gap:8px;flex:none;min-height:40px;padding:6px 12px;border-bottom:1px solid var(--frame-line);background:var(--frame-bg);color:var(--frame-ink)}#preview-error-message{flex:1;min-width:0;margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}#preview-error button{flex:none;padding:3px 8px}
|
|
28
|
+
@media(max-width:480px){#preview-error{flex-wrap:wrap}#preview-error-message{flex-basis:calc(100% - 24px)}#preview-error-details{margin-inline-start:22px}}
|
|
26
29
|
|
|
27
30
|
#preview-status[data-warmup="warming"][data-phase="ready"] .status-dot{background:transparent;border:1.5px solid currentColor;animation:status-pulse 1.6s ease-in-out infinite}#warmup-status{margin:8px 0 0;opacity:.7}
|
|
@@ -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.
|
|
350
|
-
|
|
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.
|
|
362
|
-
|
|
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.
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
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
|
|
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
|
-
|
|
97
|
-
|
|
98
|
-
|
|
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.
|
|
@@ -101,3 +101,36 @@ before browser workers open their pages. They share one candidate graph and
|
|
|
101
101
|
keep independent App state. This avoids compiling a growing graph per page.
|
|
102
102
|
A graph revision changing during startup keeps the preview pending until a
|
|
103
103
|
coherent current build mounts; it does not establish passing case evidence.
|
|
104
|
+
|
|
105
|
+
## Shared-server execution
|
|
106
|
+
|
|
107
|
+
ADS serializes validation, acceptance, verification and guarded source application
|
|
108
|
+
across all MCP clients served by one process. This includes changed scope and
|
|
109
|
+
unit checks. A conflicting call returns `ADS_VALIDATION_LOCKED` immediately with
|
|
110
|
+
its holder, run ID, operation, selection, progress and approximate ETA (null when
|
|
111
|
+
unknown). Read `ads_status.execution`, keep previewing/reading, and retry after the
|
|
112
|
+
lease clears. Do not repeatedly retry, start another ADS process to bypass it,
|
|
113
|
+
or interrupt another client's work. There is no wait mode or parallel-unit lane.
|
|
114
|
+
|
|
115
|
+
Coordinate direct editor changes before starting a full audit. Relevant external
|
|
116
|
+
source edits stop a run with `ADS_SOURCE_CHANGED_DURING_RUN`; inspect its diagnostic
|
|
117
|
+
files and attribution, then retry against current source. Direct edits have unknown
|
|
118
|
+
authorship. Generated output is excluded. A stopped run never advances a baseline.
|
|
119
|
+
Ordinary preview viewing and draft editing remain available; accepted-source writes
|
|
120
|
+
are refused while checking, including writes from the lease holder.
|
|
121
|
+
|
|
122
|
+
The run ID is its eventual result ID and survives response loss or reconnection.
|
|
123
|
+
Cancellation/disconnection holds the lease through runner cleanup and saves the
|
|
124
|
+
terminal outcome. After a restart, abandoned runs become interrupted; they are
|
|
125
|
+
never resumed automatically. Completed evidence and successful baselines persist.
|
|
126
|
+
Use `ads_results` to inspect retained completion-time evidence, and `ads_behaviors`
|
|
127
|
+
for whether registered results still match current source.
|
|
128
|
+
|
|
129
|
+
Retention defaults to 50 completed runs, seven days and 256 MiB of owned result
|
|
130
|
+
and browser evidence. Configure `mcp.resultRetention` (`maxRuns`, `maxAgeDays`,
|
|
131
|
+
`maxBytesMb`) for the project. Active work and the newly returned result are
|
|
132
|
+
protected, so status may temporarily report `overBudget`. Cleanup runs at startup
|
|
133
|
+
and after execution, independently of client disconnects. Expired IDs return
|
|
134
|
+
`ADS_RESULT_EXPIRED` (recent expiry tombstones are bounded); copy evidence needed
|
|
135
|
+
for long-term release/audit records before it expires. Separate ADS processes are
|
|
136
|
+
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.
|
|
350
|
-
|
|
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.
|
|
362
|
-
|
|
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.
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
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
|
|
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
|
-
|
|
97
|
-
|
|
98
|
-
|
|
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.
|
|
@@ -101,3 +101,36 @@ before browser workers open their pages. They share one candidate graph and
|
|
|
101
101
|
keep independent App state. This avoids compiling a growing graph per page.
|
|
102
102
|
A graph revision changing during startup keeps the preview pending until a
|
|
103
103
|
coherent current build mounts; it does not establish passing case evidence.
|
|
104
|
+
|
|
105
|
+
## Shared-server execution
|
|
106
|
+
|
|
107
|
+
ADS serializes validation, acceptance, verification and guarded source application
|
|
108
|
+
across all MCP clients served by one process. This includes changed scope and
|
|
109
|
+
unit checks. A conflicting call returns `ADS_VALIDATION_LOCKED` immediately with
|
|
110
|
+
its holder, run ID, operation, selection, progress and approximate ETA (null when
|
|
111
|
+
unknown). Read `ads_status.execution`, keep previewing/reading, and retry after the
|
|
112
|
+
lease clears. Do not repeatedly retry, start another ADS process to bypass it,
|
|
113
|
+
or interrupt another client's work. There is no wait mode or parallel-unit lane.
|
|
114
|
+
|
|
115
|
+
Coordinate direct editor changes before starting a full audit. Relevant external
|
|
116
|
+
source edits stop a run with `ADS_SOURCE_CHANGED_DURING_RUN`; inspect its diagnostic
|
|
117
|
+
files and attribution, then retry against current source. Direct edits have unknown
|
|
118
|
+
authorship. Generated output is excluded. A stopped run never advances a baseline.
|
|
119
|
+
Ordinary preview viewing and draft editing remain available; accepted-source writes
|
|
120
|
+
are refused while checking, including writes from the lease holder.
|
|
121
|
+
|
|
122
|
+
The run ID is its eventual result ID and survives response loss or reconnection.
|
|
123
|
+
Cancellation/disconnection holds the lease through runner cleanup and saves the
|
|
124
|
+
terminal outcome. After a restart, abandoned runs become interrupted; they are
|
|
125
|
+
never resumed automatically. Completed evidence and successful baselines persist.
|
|
126
|
+
Use `ads_results` to inspect retained completion-time evidence, and `ads_behaviors`
|
|
127
|
+
for whether registered results still match current source.
|
|
128
|
+
|
|
129
|
+
Retention defaults to 50 completed runs, seven days and 256 MiB of owned result
|
|
130
|
+
and browser evidence. Configure `mcp.resultRetention` (`maxRuns`, `maxAgeDays`,
|
|
131
|
+
`maxBytesMb`) for the project. Active work and the newly returned result are
|
|
132
|
+
protected, so status may temporarily report `overBudget`. Cleanup runs at startup
|
|
133
|
+
and after execution, independently of client disconnects. Expired IDs return
|
|
134
|
+
`ADS_RESULT_EXPIRED` (recent expiry tombstones are bounded); copy evidence needed
|
|
135
|
+
for long-term release/audit records before it expires. Separate ADS processes are
|
|
136
|
+
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.
|
|
350
|
-
|
|
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.
|
|
362
|
-
|
|
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.
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
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
|
|
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
|
-
|
|
97
|
-
|
|
98
|
-
|
|
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.
|
|
@@ -101,3 +101,36 @@ before browser workers open their pages. They share one candidate graph and
|
|
|
101
101
|
keep independent App state. This avoids compiling a growing graph per page.
|
|
102
102
|
A graph revision changing during startup keeps the preview pending until a
|
|
103
103
|
coherent current build mounts; it does not establish passing case evidence.
|
|
104
|
+
|
|
105
|
+
## Shared-server execution
|
|
106
|
+
|
|
107
|
+
ADS serializes validation, acceptance, verification and guarded source application
|
|
108
|
+
across all MCP clients served by one process. This includes changed scope and
|
|
109
|
+
unit checks. A conflicting call returns `ADS_VALIDATION_LOCKED` immediately with
|
|
110
|
+
its holder, run ID, operation, selection, progress and approximate ETA (null when
|
|
111
|
+
unknown). Read `ads_status.execution`, keep previewing/reading, and retry after the
|
|
112
|
+
lease clears. Do not repeatedly retry, start another ADS process to bypass it,
|
|
113
|
+
or interrupt another client's work. There is no wait mode or parallel-unit lane.
|
|
114
|
+
|
|
115
|
+
Coordinate direct editor changes before starting a full audit. Relevant external
|
|
116
|
+
source edits stop a run with `ADS_SOURCE_CHANGED_DURING_RUN`; inspect its diagnostic
|
|
117
|
+
files and attribution, then retry against current source. Direct edits have unknown
|
|
118
|
+
authorship. Generated output is excluded. A stopped run never advances a baseline.
|
|
119
|
+
Ordinary preview viewing and draft editing remain available; accepted-source writes
|
|
120
|
+
are refused while checking, including writes from the lease holder.
|
|
121
|
+
|
|
122
|
+
The run ID is its eventual result ID and survives response loss or reconnection.
|
|
123
|
+
Cancellation/disconnection holds the lease through runner cleanup and saves the
|
|
124
|
+
terminal outcome. After a restart, abandoned runs become interrupted; they are
|
|
125
|
+
never resumed automatically. Completed evidence and successful baselines persist.
|
|
126
|
+
Use `ads_results` to inspect retained completion-time evidence, and `ads_behaviors`
|
|
127
|
+
for whether registered results still match current source.
|
|
128
|
+
|
|
129
|
+
Retention defaults to 50 completed runs, seven days and 256 MiB of owned result
|
|
130
|
+
and browser evidence. Configure `mcp.resultRetention` (`maxRuns`, `maxAgeDays`,
|
|
131
|
+
`maxBytesMb`) for the project. Active work and the newly returned result are
|
|
132
|
+
protected, so status may temporarily report `overBudget`. Cleanup runs at startup
|
|
133
|
+
and after execution, independently of client disconnects. Expired IDs return
|
|
134
|
+
`ADS_RESULT_EXPIRED` (recent expiry tombstones are bounded); copy evidence needed
|
|
135
|
+
for long-term release/audit records before it expires. Separate ADS processes are
|
|
136
|
+
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.
|
|
350
|
-
|
|
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.
|
|
362
|
-
|
|
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.
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
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
|
|
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
|
-
|
|
97
|
-
|
|
98
|
-
|
|
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.
|
|
@@ -101,3 +101,36 @@ before browser workers open their pages. They share one candidate graph and
|
|
|
101
101
|
keep independent App state. This avoids compiling a growing graph per page.
|
|
102
102
|
A graph revision changing during startup keeps the preview pending until a
|
|
103
103
|
coherent current build mounts; it does not establish passing case evidence.
|
|
104
|
+
|
|
105
|
+
## Shared-server execution
|
|
106
|
+
|
|
107
|
+
ADS serializes validation, acceptance, verification and guarded source application
|
|
108
|
+
across all MCP clients served by one process. This includes changed scope and
|
|
109
|
+
unit checks. A conflicting call returns `ADS_VALIDATION_LOCKED` immediately with
|
|
110
|
+
its holder, run ID, operation, selection, progress and approximate ETA (null when
|
|
111
|
+
unknown). Read `ads_status.execution`, keep previewing/reading, and retry after the
|
|
112
|
+
lease clears. Do not repeatedly retry, start another ADS process to bypass it,
|
|
113
|
+
or interrupt another client's work. There is no wait mode or parallel-unit lane.
|
|
114
|
+
|
|
115
|
+
Coordinate direct editor changes before starting a full audit. Relevant external
|
|
116
|
+
source edits stop a run with `ADS_SOURCE_CHANGED_DURING_RUN`; inspect its diagnostic
|
|
117
|
+
files and attribution, then retry against current source. Direct edits have unknown
|
|
118
|
+
authorship. Generated output is excluded. A stopped run never advances a baseline.
|
|
119
|
+
Ordinary preview viewing and draft editing remain available; accepted-source writes
|
|
120
|
+
are refused while checking, including writes from the lease holder.
|
|
121
|
+
|
|
122
|
+
The run ID is its eventual result ID and survives response loss or reconnection.
|
|
123
|
+
Cancellation/disconnection holds the lease through runner cleanup and saves the
|
|
124
|
+
terminal outcome. After a restart, abandoned runs become interrupted; they are
|
|
125
|
+
never resumed automatically. Completed evidence and successful baselines persist.
|
|
126
|
+
Use `ads_results` to inspect retained completion-time evidence, and `ads_behaviors`
|
|
127
|
+
for whether registered results still match current source.
|
|
128
|
+
|
|
129
|
+
Retention defaults to 50 completed runs, seven days and 256 MiB of owned result
|
|
130
|
+
and browser evidence. Configure `mcp.resultRetention` (`maxRuns`, `maxAgeDays`,
|
|
131
|
+
`maxBytesMb`) for the project. Active work and the newly returned result are
|
|
132
|
+
protected, so status may temporarily report `overBudget`. Cleanup runs at startup
|
|
133
|
+
and after execution, independently of client disconnects. Expired IDs return
|
|
134
|
+
`ADS_RESULT_EXPIRED` (recent expiry tombstones are bounded); copy evidence needed
|
|
135
|
+
for long-term release/audit records before it expires. Separate ADS processes are
|
|
136
|
+
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.
|
|
350
|
-
|
|
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.
|
|
362
|
-
|
|
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.
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
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
|
|
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
|
-
|
|
97
|
-
|
|
98
|
-
|
|
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.
|
|
@@ -101,3 +101,36 @@ before browser workers open their pages. They share one candidate graph and
|
|
|
101
101
|
keep independent App state. This avoids compiling a growing graph per page.
|
|
102
102
|
A graph revision changing during startup keeps the preview pending until a
|
|
103
103
|
coherent current build mounts; it does not establish passing case evidence.
|
|
104
|
+
|
|
105
|
+
## Shared-server execution
|
|
106
|
+
|
|
107
|
+
ADS serializes validation, acceptance, verification and guarded source application
|
|
108
|
+
across all MCP clients served by one process. This includes changed scope and
|
|
109
|
+
unit checks. A conflicting call returns `ADS_VALIDATION_LOCKED` immediately with
|
|
110
|
+
its holder, run ID, operation, selection, progress and approximate ETA (null when
|
|
111
|
+
unknown). Read `ads_status.execution`, keep previewing/reading, and retry after the
|
|
112
|
+
lease clears. Do not repeatedly retry, start another ADS process to bypass it,
|
|
113
|
+
or interrupt another client's work. There is no wait mode or parallel-unit lane.
|
|
114
|
+
|
|
115
|
+
Coordinate direct editor changes before starting a full audit. Relevant external
|
|
116
|
+
source edits stop a run with `ADS_SOURCE_CHANGED_DURING_RUN`; inspect its diagnostic
|
|
117
|
+
files and attribution, then retry against current source. Direct edits have unknown
|
|
118
|
+
authorship. Generated output is excluded. A stopped run never advances a baseline.
|
|
119
|
+
Ordinary preview viewing and draft editing remain available; accepted-source writes
|
|
120
|
+
are refused while checking, including writes from the lease holder.
|
|
121
|
+
|
|
122
|
+
The run ID is its eventual result ID and survives response loss or reconnection.
|
|
123
|
+
Cancellation/disconnection holds the lease through runner cleanup and saves the
|
|
124
|
+
terminal outcome. After a restart, abandoned runs become interrupted; they are
|
|
125
|
+
never resumed automatically. Completed evidence and successful baselines persist.
|
|
126
|
+
Use `ads_results` to inspect retained completion-time evidence, and `ads_behaviors`
|
|
127
|
+
for whether registered results still match current source.
|
|
128
|
+
|
|
129
|
+
Retention defaults to 50 completed runs, seven days and 256 MiB of owned result
|
|
130
|
+
and browser evidence. Configure `mcp.resultRetention` (`maxRuns`, `maxAgeDays`,
|
|
131
|
+
`maxBytesMb`) for the project. Active work and the newly returned result are
|
|
132
|
+
protected, so status may temporarily report `overBudget`. Cleanup runs at startup
|
|
133
|
+
and after execution, independently of client disconnects. Expired IDs return
|
|
134
|
+
`ADS_RESULT_EXPIRED` (recent expiry tombstones are bounded); copy evidence needed
|
|
135
|
+
for long-term release/audit records before it expires. Separate ADS processes are
|
|
136
|
+
not coordinated by this process-local lease.
|