test(m4): validate autonomous React delivery and page behavior

This commit is contained in:
Agent Workbench Dev
2026-11-11 23:41:08 +08:00
parent b8eca3b5a9
commit 52accafe6b
10 changed files with 3417 additions and 0 deletions
+3
View File
@@ -59,6 +59,7 @@ for (const kind of ['node', 'react', 'python']) {
const reports = result.reportArtifacts.filter(value => value.kind === 'delivery-report').map(value => {
const file = result.captures.find(capture => capture.artifactId === value.id).path, report = read(file);
return { artifactId: value.id, status: report.status, taskStatus: report.task?.status, lifecycle: report.lifecycle,
gitOutcome: report.gitOutcome, terminalGit: report.terminalGit,
deliveries: report.deliveries?.map(item => ({ id: item.id, status: item.status, commit: item.commit })), source: source(file) };
});
engineering.push({ kind, success: result.success, executed: result.executed, projectId: result.projectId, sessionId: result.sessionId,
@@ -68,6 +69,8 @@ for (const kind of ['node', 'react', 'python']) {
stopReason: result.productStopReason, failure: result.failure, identitiesPassed: result.identitiesPassed,
commit: result.commit, initialHead: result.initialHead, committedPaths: result.committedPaths, committedCurrent: result.committedCurrent,
otherUntracked: result.otherUntracked, final: result.final, browser: result.browser,
browserSources: ['browser/result.json', 'browser/visual-review.json'].filter(file => fs.existsSync(path.join(root, kind, file)))
.map(file => source(kind + '/' + file)).concat((result.browser?.screenshots ?? []).map(file => source(path.relative(root, file).replaceAll('\\', '/')))),
ownerBytesAndIndexPreserved: result.ownerBytesAndIndexPreserved, supervisorContinuations: result.supervisorContinuations,
localTokenCapsChanged: result.localTokenCapsChanged, internalDeliveries: result.internalDeliveries, reports,
accounting: metrics, reads: { calls: reads.length, distinctByteRanges: seenReads.size, repeatedSameByteRanges: reads.filter(value => value.sameByteRangePreviouslyRead).length, observations: reads },