test: seal live delivery V network stop and preserve original state
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
# Agent Workbench项目执行规范
|
||||
|
||||
V按一次诊断partial在预检前结束,真实请求0;原正式状态精确保持,46份证据离线通过,见docs/QA-LIVE-DELIVERY-V.md。当前用户新增Tianshu-harness深度源码研究:固定2d0b22e,只读机制/原理/逻辑与本产品差异,不运行第三方安装服务或导入其配置,不改正式Provider/Key,不委派、不推送;真实交付另冻新样本,不续跑V/T/R/P/O。下方U“下一V”和V执行中段落为历史状态。
|
||||
|
||||
U已本地交付1.24.8/source7e77fd65/候选20261103235313371:同SHA/原范围页聚合、完整小源码/最新纯读组保留、修改前当前检查事实与routine/latest去重完成。114相关、569输入独立重建22/22、三归档/便携、12实际安装和安装副本16+9文件流程,以及源码/便携/安装三载荷各7请求工作记忆夹具通过。正式原PID36552/Provider、65项目81会话6377记录13484事件及outbox/3720工件、全部原表行/导出/工件和公开模型中心在网页/原生回看后再次精确保持,9229关闭。本轮真实请求0,原T九测试仍失败,未证明真实交付或Purge收益。证据620份/100126636字节离线核验通过,身份见docs/working-memory-u-release-identity.json,回顾见docs/RETROSPECTIVE-WORKING-MEMORY-U.md。下一按docs/LIVE-DELIVERY-V-PLAN.md另冻新诊断/单次预检/Node,旧T/R/P/O不续跑;Node后才React/Python/Purge,1.25及更新性能独立排期。不委派、不提取/复制/解密/重存Key、不推送。
|
||||
|
||||
以下U开发中及更早“当前/下一”段落按历史时点理解;当前状态以上段和V计划为准。
|
||||
|
||||
@@ -1,5 +1,12 @@
|
||||
# 后续执行计划
|
||||
|
||||
## 当前:V已封存,Tianshu-harness源码研究
|
||||
|
||||
V唯一诊断partial:auto/IPv6 TLS通过,独立IPv4握手超时;按冻结计划在身份预检前结束,模型/HTTP请求0。65项目81会话6377记录13484事件/outbox、3720工件和225尝试、原PID36552/Provider及公开配置保持,9/1/73修订均未变,9229关闭。46份/38772720字节证据离线通过,见docs/QA-LIVE-DELIVERY-V.md及回顾。多历史诊断的显示排序误比已用只读ID核对更正,首失败保留、不重跑。
|
||||
|
||||
用户明确要求深度分析 https://github.com/huiliyi37/Tianshu-harness.git;源码固定2d0b22e0b3554686e1e4131f8bdc568ef768e060,位于仓库外research/Tianshu-harness-2d0b22e。下一只读源码/机制/实证与本产品差异分析,形成采用优先级及验收计划。不执行第三方安装/服务、不导入配置、不改正式Provider、不委派、不推送。
|
||||
|
||||
|
||||
U已本地交付1.24.8/source7e77fd65/候选20261103235313371:同SHA/原范围页聚合、完整小源码/最新纯读组保留、修改前当前检查事实与routine/latest去重完成。114相关、569输入独立重建22/22、三归档/便携、12实际安装和安装副本16+9文件流程,以及源码/便携/安装三载荷各7请求工作记忆夹具通过。正式原PID36552/Provider、65项目81会话6377记录13484事件及outbox/3720工件、全部原表行/导出/工件和公开模型中心在网页/原生回看后再次精确保持,9229关闭。本轮真实请求0,原T九测试仍失败,未证明真实交付或Purge收益。证据620份/100126636字节,见docs/QA-WORKING-MEMORY-U.md、docs/RETROSPECTIVE-WORKING-MEMORY-U.md及docs/working-memory-u-release-identity.json。下一另冻docs/LIVE-DELIVERY-V-PLAN.md的新诊断/单次预检/Node,不续跑T/R/P/O;Node后才React/Python/Purge。1.25/更新重复核验性能仍单列。不委派、不提取/复制/解密/重存Key、不推送。
|
||||
|
||||
下一按[V新有界真实交付](LIVE-DELIVERY-V-PLAN.md),U已完成;下方T/S及更早状态按历史时点理解。
|
||||
|
||||
@@ -0,0 +1,17 @@
|
||||
# V 新有界真实交付:在网络观察异常处结束
|
||||
|
||||
本阶段没有发送真实模型请求。正式版本仍为 1.24.8/source7e77fd65,原 PID36552/Provider 保持。调用前契约提交为 `19214ba`,完整证据位于 `docs/live-delivery-v-evidence/manifest.json`。
|
||||
|
||||
按 `LIVE-DELIVERY-V-PLAN.md`,仅执行一次所属 jojocode 连接的 DNS/TCP/TLS 观察:job `0c78eca9-c3cc-436b-ad98-fe2bc714aa7f`,连接修订9/凭据修订1,总耗时10092ms。DNS通过;自动选路经IPv4成功、TLS获授权;IPv6成功;独立IPv4 TCP连接成功,TLS在10006ms内未完成,报 `TLS_HANDSHAKE_TIMEOUT`,总体 `partial`。
|
||||
|
||||
自动试验和独立IPv4试验都选中了172.67.146.140,但TLS分别约8364ms通过、9407ms超时;IPv6的TLS约376ms通过。单次观察只证明当时的时延/超时现象,不能确定根因、API稳定性、模型身份或哪种IP族永久可用。原证书、路由、代理、预算均未修改。
|
||||
|
||||
冻结计划要求任何观察异常即结束,因此未运行身份预检、新Node、React/Python或Purge。HTTP API请求0,模型请求0,未知请求0,未读取或重存Key。不存在新项目、会话或模型费用。
|
||||
|
||||
验收脚本首失败原件保留:此前已处理接口派生的stale/currentConnectionRevision字段,但有两条历史记录后暴露接口新到旧、原始存储旧到新排序不同。只读补充审计按不可变ID排序、剔除这两个派生字段后逐字段一致;没有重跑诊断。调用前新增11文件SHA断言的首语法错误同样保留,修正和语法检查均在冻结/网络操作前完成。
|
||||
|
||||
最终全量核对:65原项目、81全部会话导出、6377记录、13484事件及outbox、3720工件文件、225原模型尝试全部保持。各表schema/每行、公开配置/模型中心、预算/原高性能池、原工件SHA保持;唯一追加为一条所属诊断。连接9→9、凭据1→1、全局73→73,调试端口9229关闭。项目位置无顺移,新增会话/记录/事件/outbox均0。
|
||||
|
||||
封存46份/38772720字节,manifest SHA-256:`7aedac375c95ceeb591ea4691d904d84d405a89c7e27fa26658aa163c45f9093`。`scripts/verify-live-delivery-v.mjs`纯离线检查通过,核对冻结提交/输入、原状态SHA和唯一诊断追加,不调用网络或模型。V不是新产品发行,也未证明真实交付或Purge收益。
|
||||
|
||||
用户随后明确提出深度分析 Tianshu-harness。该研究独立于V的目标模型测试:只读公开源码、固定提交和本地分析,不运行其安装脚本、不导入它的模型配置。真实交付后续必须另冻新样本和条件,不续跑V/T/R/P/O。
|
||||
@@ -0,0 +1,9 @@
|
||||
# V 回顾
|
||||
|
||||
V在预检之前按约束停止,不能把计划项写为已通过。一次TLS观察出现partial,停止既定样本后只做状态审计、证据封存和离线核验。旧测试和正式服务无改动;冻结了后续真实工程原目标与11文件,但没有执行它们。
|
||||
|
||||
本次发现的具体问题是QA脚本把接口展示数组与原始存储数组直接比较。派生字段剔除仍不足,还必须按不可变ID关联;数组展示顺序不应视为原数据改写。首失败保留,补充审计仅读取已完成结果,不重放操作。后续诊断驱动须在调用前覆盖零、一、多历史记录及不同展示顺序的本地样本。
|
||||
|
||||
网络观察不能替代模型API验收。自动IPv4成功与独立IPv4超时同时存在,证书通过也不能排除网络路径/时间窗口/远端负载等因素。后续不应硬改IP族、取消证书检查或反复调用到成功;先依据原job完善分层解释,再另冻有限样本,以实际API原响应分别判定。
|
||||
|
||||
工作记忆U是否改善真实交付,在V未得到新证据;原T结果仍为失败,所有历史原件保持。下一产品研究按用户提供的Tianshu-harness源码展开,评估其监督、任务契约、收敛和交付机制与本产品已有能力的实际差异,再给出分片实施和验收方案。Node通过后才React/Python,Purge仍需独立AB/BA。
|
||||
@@ -0,0 +1,62 @@
|
||||
import fs from 'node:fs';
|
||||
import path from 'node:path';
|
||||
import assert from 'node:assert/strict';
|
||||
import { createHash } from 'node:crypto';
|
||||
import { DatabaseSync } from 'node:sqlite';
|
||||
import { snapshotPersistentData } from '../src/core/desktop/install-manager.mjs';
|
||||
export const hash = bytes => createHash('sha256').update(bytes).digest('hex');
|
||||
export const canonical = value => Array.isArray(value) ? value.map(canonical) : value && typeof value === 'object' ? Object.fromEntries(Object.keys(value).sort().map(key => [key, canonical(value[key])])) : value;
|
||||
export const digest = value => hash(JSON.stringify(canonical(value)));
|
||||
export function databaseSnapshot(dataRoot) {
|
||||
const database = new DatabaseSync(path.join(dataRoot, 'workbench.sqlite'), { readOnly: true }); database.exec('BEGIN');
|
||||
try {
|
||||
assert.equal(database.prepare('PRAGMA quick_check').get().quick_check, 'ok');
|
||||
const tables = {};
|
||||
for (const { name, sql } of database.prepare("SELECT name,sql FROM sqlite_schema WHERE type='table' ORDER BY name").all()) {
|
||||
assert.match(name, /^[a-z_]+$/);
|
||||
const rows = database.prepare('SELECT * FROM "' + name + '" ORDER BY rowid').all().filter(row => !(name === 'metadata' && row.key === 'runtimeOwner'));
|
||||
tables[name] = { count: rows.length, schemaSha256: hash(sql), sha256: digest(rows), rows: rows.map((row, index) => ({ id: row.id ?? row.key ?? row.seq ?? index, ...(row.kind ? { kind: row.kind } : {}), sha256: digest(row) })) };
|
||||
}
|
||||
const sessionIds = database.prepare('SELECT id FROM sessions ORDER BY id').all().map(row => row.id);
|
||||
const owner = database.prepare("SELECT value FROM metadata WHERE key='runtimeOwner'").get();
|
||||
return { tables, sessionIds, ownerSha256: owner ? digest(owner) : null, scope: 'Every original table schema and row field hashed, excluding only runtimeOwner lifecycle metadata. No row payload or credential is returned.' };
|
||||
} finally { database.exec('ROLLBACK'); database.close(); }
|
||||
}
|
||||
export async function publicSnapshot(url, dataRoot) {
|
||||
const healthResponse = await fetch(url + '/api/health', { headers: { Connection: 'close' }, signal: AbortSignal.timeout(20000) }); assert.equal(healthResponse.status, 200);
|
||||
const health = await healthResponse.json(), bootResponse = await fetch(url + '/api/bootstrap', { headers: { Connection: 'close' }, signal: AbortSignal.timeout(20000) }); assert.equal(bootResponse.status, 200);
|
||||
const bootstrap = await bootResponse.json(); const token = bootstrap.token;
|
||||
const api = async route => { const response = await fetch(url + '/api' + route, { headers: { 'X-Workbench-Token': token, Connection: 'close' }, signal: AbortSignal.timeout(20000) }); assert.ok(response.ok, route + ': HTTP ' + response.status); return response.json(); };
|
||||
const database = databaseSnapshot(dataRoot), exports = [];
|
||||
for (const id of database.sessionIds) {
|
||||
const report = await api('/sessions/' + id + '/export');
|
||||
exports.push({ id, project: digest(report.project), session: digest(report.session), execution: digest(report.execution) });
|
||||
}
|
||||
const center = await api('/model-center');
|
||||
// This is the documented public model-center view; Provider's private map and
|
||||
// API key are never accessed. Only this public object is retained for schema-aware comparison.
|
||||
const modelCenter = structuredClone(center);
|
||||
return { observedAt: new Date().toISOString(), version: health.version, pid: health.pid, runtimeRoot: bootstrap.runtimeRoot,
|
||||
configSha256: digest(bootstrap.config), projectsSha256: digest(bootstrap.projects), sessionsSha256: digest(bootstrap.sessions), modelCenterSha256: digest(modelCenter), modelCenter,
|
||||
projects: bootstrap.projects.length, visibleSessions: bootstrap.sessions.length, hasKey: !!bootstrap.config.hasKey,
|
||||
active: bootstrap.sessions.filter(value => ['running', 'awaiting_approval', 'stopping'].includes(value.status)).map(value => ({ id: value.id, status: value.status })),
|
||||
storage: bootstrap.storage, eventCursor: bootstrap.eventCursor, database, exports, persistent: snapshotPersistentData(dataRoot),
|
||||
scope: 'Read-only public state, every original session export digest, original table/row/schema hashes and every original artifact byte hash. No credential extraction, model probe, execution or mutation.' };
|
||||
}
|
||||
export function compareOriginalState(before, after, { modelCenterSchemaChange = false } = {}) {
|
||||
for (const field of ['pid', 'hasKey', 'configSha256', 'projectsSha256', 'sessionsSha256', 'eventCursor']) assert.deepEqual(after[field], before[field], field);
|
||||
assert.deepEqual(canonical(after.database.tables), canonical(before.database.tables), 'All original table schemas and every persistent row');
|
||||
assert.deepEqual(after.database.sessionIds, before.database.sessionIds); assert.deepEqual(after.exports, before.exports);
|
||||
assert.deepEqual(after.persistent, before.persistent, 'Every original artifact byte, persistent row and public disk config');
|
||||
if (modelCenterSchemaChange) {
|
||||
const original = structuredClone(before.modelCenter), next = structuredClone(after.modelCenter);
|
||||
// 1.15 changes only the public explanatory text about optional DPAPI storage.
|
||||
// Existing IDs, routes, revisions, credentials-present bits and all original attempts remain exact.
|
||||
assert.match(next.storage.restart, /临时凭据.*已明确本机加密保存/);
|
||||
next.storage.restart = original.storage.restart;
|
||||
assert.deepEqual(next, original, 'Original public model center, except versioned storage explanation');
|
||||
return { modelCenterChange: { path: '/storage/restart', original: before.modelCenter.storage.restart, actual: after.modelCenter.storage.restart }, originalRows: 'exact', originalExports: 'exact', originalArtifactBytes: 'exact' };
|
||||
}
|
||||
assert.equal(after.modelCenterSha256, before.modelCenterSha256);
|
||||
return { originalRows: 'exact', originalExports: 'exact', originalArtifactBytes: 'exact', originalModelCenter: 'exact' };
|
||||
}
|
||||
@@ -0,0 +1,46 @@
|
||||
import fs from 'node:fs';
|
||||
import path from 'node:path';
|
||||
import assert from 'node:assert/strict';
|
||||
import { createHash } from 'node:crypto';
|
||||
import { execFileSync } from 'node:child_process';
|
||||
const target=path.resolve('docs/live-delivery-v-contract'); assert.equal(fs.existsSync(target),false);
|
||||
const sha=bytes=>createHash('sha256').update(bytes).digest('hex');
|
||||
const sourceFiles=['prepare-live-delivery-v.mjs','freeze-live-delivery-v.mjs','desktop-f-state.mjs',
|
||||
...['initial','common','payload','inspector','network','preflight','preflight-audit','node','final-audit','capture-artifacts','ownership-proof','final-readback','proof-support','analyze','context-proof'].map(name=>'live-delivery-v-'+name+'.mjs')];
|
||||
const initialBytes=fs.readFileSync('.qa/live-delivery-v/current.json'), initial=JSON.parse(initialBytes);
|
||||
const release=JSON.parse(fs.readFileSync('docs/working-memory-u-release-identity.json'));
|
||||
assert.equal(initial.host.identity.runtimeRoot.endsWith('Agent-Workbench-1.24.8-win-x64-20261103235313371'),true);
|
||||
assert.equal(initial.host.identity.runtimeIdentity,'6f4b7681e8393fe0c7b7441264b806662741f59c7dc818f2632ad7ceb6e67c99');
|
||||
const files=[];
|
||||
for(const name of sourceFiles){
|
||||
const bytes=fs.readFileSync(path.join('.qa',name)),relative='drivers/'+name+'.txt';
|
||||
fs.mkdirSync(path.join(target,'drivers'),{recursive:true}); fs.writeFileSync(path.join(target,relative),bytes,{flag:'wx'});
|
||||
files.push({path:relative,bytes:bytes.length,sha256:sha(bytes)});
|
||||
}
|
||||
const oldDriver=fs.readFileSync('.qa/live-delivery-t-node.mjs','utf8'), newDriver=fs.readFileSync('.qa/live-delivery-v-node.mjs','utf8');
|
||||
const goalDeclaration=text=>text.slice(text.indexOf(' const goal = '),text.indexOf(" save('node/goal.txt'"));
|
||||
assert.equal(goalDeclaration(oldDriver),goalDeclaration(newDriver));
|
||||
const fixtureFiles=['src/amount.mjs','src/summary.mjs','src/report.mjs','test/expense.test.mjs','package.json','scripts/build.mjs'];
|
||||
const originalFixture=JSON.parse(fs.readFileSync('.qa/live-delivery-t/node/source-identity.json'));
|
||||
const inputs=fixtureFiles.map(name=>{
|
||||
const bytes=fs.readFileSync('benchmarks/live-delivery-v1/node/'+name);
|
||||
assert.equal(sha(bytes),originalFixture.files[name]);
|
||||
const relative='inputs/'+name; fs.mkdirSync(path.dirname(path.join(target,relative)),{recursive:true}); fs.writeFileSync(path.join(target,relative),bytes,{flag:'wx'});
|
||||
return {path:name,capturedPath:relative,bytes:bytes.length,sha256:sha(bytes)};
|
||||
});
|
||||
const manifest={schemaVersion:1,kind:'bounded-live-delivery-v-contract',frozenAt:new Date().toISOString(),
|
||||
sourceBaseCommit:initial.sourceCommit,branch:execFileSync('git',['branch','--show-current'],{encoding:'utf8',windowsHide:true}).trim(),
|
||||
planSha256:sha(fs.readFileSync('docs/LIVE-DELIVERY-V-PLAN.md')),originalBaselineSha256:sha(initialBytes),
|
||||
releaseVersion:release.version,releaseSourceCommit:release.sourceCommit,releaseIdentitySha256:sha(fs.readFileSync('docs/working-memory-u-release-identity.json')),
|
||||
host:{pid:initial.host.identity.pid,runtimeRoot:initial.host.identity.runtimeRoot,runtimeIdentity:initial.host.identity.runtimeIdentity},
|
||||
originalProjects:initial.baseline.projects,originalSessions:initial.baseline.exports.length,originalArtifacts:initial.baseline.persistent.artifacts.length,
|
||||
originalAttemptsRow:initial.baseline.database.tables.metadata.rows.find(row=>row.id==='modelAttempts'),
|
||||
originalDiagnosticsRow:initial.baseline.database.tables.metadata.rows.find(row=>row.id==='modelNetworkDiagnostics'),
|
||||
inputs,originalElevenFileHashes:originalFixture.files,goalDeclarationSha256:sha(goalDeclaration(newDriver)),goalMatchesTExactly:true,
|
||||
dependencySources:['src/core/git-process.mjs','src/core/desktop/install-manager.mjs',...fixtureFiles.map(name=>'benchmarks/live-delivery-v1/node/'+name)]
|
||||
.map(name=>({path:name,sha256:sha(fs.readFileSync(name))})),
|
||||
previousDriverHashes:['initial','common','payload','inspector','preflight','preflight-audit','node','network'].map(name=>({path:'.qa/live-delivery-t-'+name+'.mjs',sha256:sha(fs.readFileSync('.qa/live-delivery-t-'+name+'.mjs'))})),
|
||||
maxNetworkJobs:1,maxPreflightRequests:1,maxNodeRequests:8,maxNodeTokens:90000,maxNodeDurationMs:600000,contextLimit:16000,maxOutputTokens:2048,safetyReserveTokens:1600,
|
||||
modelRequestsAtFreeze:0,noKeyValuesReadOrSaved:true,files:files.sort((a,b)=>a.path.localeCompare(b.path))};
|
||||
fs.writeFileSync(path.join(target,'manifest.json'),JSON.stringify(manifest,null,2)+'\n',{flag:'wx'});
|
||||
console.log(JSON.stringify({frozen:true,drivers:files.length,inputs:inputs.length,projects:manifest.originalProjects,sessions:manifest.originalSessions,artifacts:manifest.originalArtifacts,goalMatchesTExactly:true,manifestSha256:sha(fs.readFileSync(path.join(target,'manifest.json'))),modelRequests:0}));
|
||||
@@ -0,0 +1,34 @@
|
||||
import fs from 'node:fs';
|
||||
import path from 'node:path';
|
||||
import assert from 'node:assert/strict';
|
||||
import { root, save, sha } from './live-delivery-v-common.mjs';
|
||||
const read = relative => JSON.parse(fs.readFileSync(path.join(root, relative)));
|
||||
const node = read('node/result.json'), session = read('node/session.json'), attempts = read('node/attempts.json');
|
||||
const requests = attempts.map((attempt, index) => {
|
||||
const request = node.captures.find(row => row.attemptId === attempt.id && row.kind === 'request');
|
||||
const response = node.captures.find(row => row.attemptId === attempt.id && row.kind === 'response');
|
||||
const originalRequest = fs.readFileSync(path.join(root, request.path));
|
||||
const originalResponse = response ? fs.readFileSync(path.join(root, response.path)) : null;
|
||||
assert.equal(sha(originalRequest), attempt.requestSha256); if(originalResponse) assert.equal(sha(originalResponse), attempt.responseSha256);
|
||||
const body = JSON.parse(originalRequest); let raw=null; try { raw=JSON.parse(originalResponse); } catch {}
|
||||
if(raw?.usage) assert.deepEqual(raw.usage, attempt.usage);
|
||||
return { ordinalInSample: index + 1, attemptId: attempt.id, requestId: attempt.requestId,
|
||||
requestBytes: originalRequest.length, responseBytes: originalResponse?.length ?? 0, tools: body.tools?.length ?? 0,
|
||||
messages: body.messages.map(row => ({ role: row.role, contentBytes: Buffer.byteLength(row.content ?? ''),
|
||||
toolCallId: row.tool_call_id, toolNames: row.tool_calls?.map(call => call.function.name) })),
|
||||
usage: raw?.usage ?? attempt.usage, identity: attempt.modelIdentity, responseMessage: raw?.choices?.[0]?.message ?? null,
|
||||
finishReason: raw?.choices?.[0]?.finish_reason ?? null };
|
||||
});
|
||||
const result = { nodeSucceeded: node.success, stopReason: node.stopReason, requests,
|
||||
contextPlans: session.execution.contextPlans.map(plan => ({ id: plan.id, status: plan.status, budget: plan.budget,
|
||||
tokenReservation: plan.tokenReservation, requestAttempts: plan.requestAttempts, diagnostic: plan.diagnostic, usage: plan.usage })),
|
||||
events: session.events.filter(row => row.kind === 'tool' || row.diagnostic || /budget|limit/.test(row.kind))
|
||||
.map(row => ({ id: row.id, kind: row.kind, tool: row.tool, phase: row.phase, label: row.label, message: row.message, diagnostic: row.diagnostic })),
|
||||
task: session.execution.task, run: session.execution.run,
|
||||
checks: session.execution.checks, plans: session.execution.plans, taskPlans: session.execution.taskPlans,
|
||||
changes: session.changes, approvals: node.approvals, applications: node.applications,
|
||||
allowedWorkingTreeDiffEmpty: read('node/git-final.json').diff === '',
|
||||
originalAndFinalHeadEqual: read('node/source-identity.json').head === read('node/git-final.json').head,
|
||||
scope: 'Offline original raw request/response, stored context plans, budget receipts and tool events. No model requests or host mutations.' };
|
||||
save('analysis/original-review.json', result);
|
||||
console.log(JSON.stringify({requests:requests.length,nodeSucceeded:node.success,stopReason:node.stopReason,modelRequests:0}));
|
||||
+31
@@ -0,0 +1,31 @@
|
||||
import fs from 'node:fs';
|
||||
import path from 'node:path';
|
||||
import assert from 'node:assert/strict';
|
||||
import { DatabaseSync } from 'node:sqlite';
|
||||
import { root, dataRoot, save, client, sha } from './live-delivery-v-common.mjs';
|
||||
const read = name => JSON.parse(fs.readFileSync(path.join(root, name)));
|
||||
const owners = ['preflight', 'node'].filter(name => fs.existsSync(path.join(root,name,'owned.json'))).map(name => read(name + '/owned.json'));
|
||||
const db = new DatabaseSync(path.join(dataRoot, 'workbench.sqlite'), { readOnly: true });
|
||||
let artifacts;
|
||||
try {
|
||||
artifacts = owners.flatMap(owner => db.prepare("SELECT payload FROM records WHERE kind='artifact' AND session_id=?").all(owner.session.id).map(row => JSON.parse(row.payload)));
|
||||
} finally { db.close(); }
|
||||
assert.ok(artifacts.length >= 0);
|
||||
const { api, close } = await client(), index = [];
|
||||
try {
|
||||
for (const artifact of artifacts) {
|
||||
const owner = owners.find(row => row.session.id === artifact.sessionId);
|
||||
assert.ok(owner); assert.equal(artifact.projectId, owner.project.id);
|
||||
let content = '', offset = 0, page;
|
||||
do {
|
||||
page = await api('/artifacts/' + artifact.id + '?session=' + artifact.sessionId + '&offset=' + offset + '&limit=16000');
|
||||
assert.ok(page.content.length || !page.truncated); content += page.content; offset += page.content.length;
|
||||
} while (page.truncated);
|
||||
const bytes = Buffer.from(content, 'utf8'); assert.equal(sha(bytes), artifact.sha256); assert.equal(bytes.length, artifact.bytes);
|
||||
const relative = 'analysis/artifacts/' + artifact.sessionId + '/' + artifact.id + '.txt'; save(relative, bytes);
|
||||
index.push({ ...artifact, capturedPath: relative });
|
||||
}
|
||||
save('analysis/artifact-index.json', { artifacts: index, scope: 'Every owned artifact record, fetched read-only through the original API and checked against its original SHA and bytes; no old/user artifact contents exported.' });
|
||||
console.log(JSON.stringify({ capturedOwnedArtifactRecords: index.length, uniqueByteHashes: new Set(index.map(row => row.sha256)).size,
|
||||
bytes: index.reduce((sum,row) => sum + row.bytes, 0), modelRequests: 0, allHashesExact: true }));
|
||||
} finally { await close(); }
|
||||
@@ -0,0 +1,53 @@
|
||||
import fs from 'node:fs';
|
||||
import path from 'node:path';
|
||||
import assert from 'node:assert/strict';
|
||||
import { createHash } from 'node:crypto';
|
||||
import { DatabaseSync } from 'node:sqlite';
|
||||
import { Agent, fetch } from 'undici';
|
||||
export const root = path.resolve('.qa/live-delivery-v');
|
||||
export const original = JSON.parse(fs.readFileSync(path.join(root, 'current.json')));
|
||||
export const origin = 'http://127.0.0.1:4318';
|
||||
export const dataRoot = original.host.identity.dataRoot;
|
||||
export const connectionId = '5b4daed9-b2f7-4de0-b949-573eba70c7b3';
|
||||
export const sha = value => createHash('sha256').update(value).digest('hex');
|
||||
export const save = (relative, value) => {
|
||||
const file = path.join(root, relative); fs.mkdirSync(path.dirname(file), { recursive: true });
|
||||
fs.writeFileSync(file, typeof value === 'string' || Buffer.isBuffer(value) ? value : JSON.stringify(value, null, 2) + '\n', { flag: 'wx' });
|
||||
};
|
||||
export function meta(name) {
|
||||
assert.ok(['config', 'modelRegistry', 'modelAttempts', 'modelNetworkDiagnostics'].includes(name));
|
||||
const db = new DatabaseSync(path.join(dataRoot, 'workbench.sqlite'), { readOnly: true });
|
||||
try { return JSON.parse(db.prepare('SELECT value FROM metadata WHERE key=?').get(name).value); }
|
||||
finally { db.close(); }
|
||||
}
|
||||
export async function client() {
|
||||
const dispatcher = new Agent({ connect: { autoSelectFamily: true, timeout: 5000 } });
|
||||
let token;
|
||||
const api = async (route, input, timeout = 30000) => {
|
||||
const response = await fetch(origin + '/api' + route, { dispatcher,
|
||||
method: input === undefined ? 'GET' : 'POST', redirect: 'error', signal: AbortSignal.timeout(timeout),
|
||||
headers: { ...(token ? { 'X-Workbench-Token': token } : {}), 'Content-Type': 'application/json', Connection: 'close' },
|
||||
...(input === undefined ? {} : { body: JSON.stringify(input) }) });
|
||||
const value = await response.json();
|
||||
if (!response.ok) throw Object.assign(new Error(route + ': ' + (value.error ?? response.status)), { status: response.status });
|
||||
return value;
|
||||
};
|
||||
const boot = await api('/bootstrap'); token = boot.token;
|
||||
return { api, boot, close: () => dispatcher.close() };
|
||||
}
|
||||
export async function captureAttempts(api, attempts, relative) {
|
||||
const captures = [];
|
||||
for (const attempt of attempts) for (const kind of ['request', 'response']) {
|
||||
const id = attempt[kind + 'ArtifactId']; if (!id) continue;
|
||||
let content = '', offset = 0, page;
|
||||
do {
|
||||
page = await api('/artifacts/' + id + '?session=' + attempt.sessionId + '&offset=' + offset + '&limit=16000');
|
||||
assert.ok(page.content.length || !page.truncated); content += page.content; offset += page.content.length;
|
||||
} while (page.truncated);
|
||||
assert.equal(sha(content), page.sha256);
|
||||
assert.equal(page.sha256, attempt[kind + 'Sha256']);
|
||||
const name = `${relative}/${attempt.id}-${kind}.${kind === 'request' ? 'json' : attempt.streaming ? 'sse' : 'txt'}`;
|
||||
save(name, content); captures.push({ attemptId: attempt.id, kind, artifactId: id, path: name, sha256: sha(content), bytes: Buffer.byteLength(content) });
|
||||
}
|
||||
return captures;
|
||||
}
|
||||
@@ -0,0 +1,75 @@
|
||||
import fs from 'node:fs';
|
||||
import path from 'node:path';
|
||||
import assert from 'node:assert/strict';
|
||||
import { root, readFileSync, save, sha } from './live-delivery-v-proof-support.mjs';
|
||||
const read=name=>JSON.parse(readFileSync(name));
|
||||
const session=read('node/session.json'),outcome=read('node/result.json'),attempts=read('node/attempts.json');
|
||||
const artifacts=read('analysis/artifact-index.json').artifacts.filter(row=>row.sessionId===session.id), byId=new Map(artifacts.map(row=>[row.id,row]));
|
||||
const paths=['test/expense.test.mjs','src/amount.mjs','src/summary.mjs','src/report.mjs'];
|
||||
const sources=Object.fromEntries(paths.map(name=>[name,readFileSync('node/source-before/'+name).toString('utf8')]));
|
||||
const versions=new Map(paths.map(name=>[name+':'+sha(sources[name]),sources[name]]));
|
||||
for(const name of paths.slice(1)){
|
||||
const text=readFileSync('node/source-after/'+name).toString('utf8');versions.set(name+':'+sha(text),text);
|
||||
}
|
||||
for(const change of session.changes)if(paths.includes(change.path)&&typeof change.content==='string')versions.set(change.path+':'+sha(change.content),change.content);
|
||||
const union=ranges=>ranges.slice().sort((a,b)=>a[0]-b[0]).reduce((result,[a,b])=>{const last=result.at(-1);if(last&&a<=last[1])last[1]=Math.max(last[1],b);else result.push([a,b]);return result;},[]);
|
||||
const count=ranges=>ranges.reduce((sum,[a,b])=>sum+b-a,0);
|
||||
const difference=(a,b)=>a.flatMap(([start,end])=>{let rest=[[start,end]];for(const [x,y]of b)rest=rest.flatMap(([p,q])=>y<=p||x>=q?[[p,q]]:[[p,Math.min(q,x)],[Math.max(p,y),q]].filter(([l,r])=>l<r));return rest;});
|
||||
const rawPages=[];
|
||||
for(const artifact of artifacts.filter(row=>row.kind==='tool-result')){
|
||||
let result;try{result=JSON.parse(readFileSync(artifact.capturedPath));}catch{continue;}
|
||||
if(paths.includes(result.path)&&typeof result.content==='string'){
|
||||
const source=versions.get(result.path+':'+result.sha256);assert.equal(typeof source,'string','Unknown observed source revision');
|
||||
assert.equal(result.content,source.slice(result.offset,result.next_offset));
|
||||
rawPages.push({artifactId:artifact.id,createdAt:artifact.createdAt,path:result.path,sha256:result.sha256,start:result.offset,end:result.next_offset,characters:result.content.length});
|
||||
}
|
||||
}
|
||||
const perRequest=[], seen=new Map();let previousEngineeringState=null;
|
||||
for(const [n,attempt] of attempts.entries()){
|
||||
const capture=outcome.captures.find(row=>row.kind==='request'&&row.attemptId===attempt.id);assert.ok(capture);
|
||||
const bytes=readFileSync(capture.path),body=JSON.parse(bytes);assert.equal(sha(bytes),capture.sha256);
|
||||
const segments=[];
|
||||
const add=(result,content,extraOffset,sourceKind,sourceId)=>{
|
||||
if(!paths.includes(result?.path)||typeof content!=='string')return;
|
||||
const source=versions.get(result.path+':'+result.sha256);assert.equal(typeof source,'string');
|
||||
const start=(result.offset??0)+(extraOffset??0),end=start+content.length;assert.equal(content,source.slice(start,end));
|
||||
const available=rawPages.filter(row=>row.path===result.path&&row.sha256===result.sha256&&row.createdAt<=attempt.startedAt);
|
||||
assert.equal(count(difference([[start,end]],union(available.map(row=>[row.start,row.end])))),0,'Wire source must come from actually returned pages');
|
||||
if(sourceId)assert.ok(byId.has(sourceId));
|
||||
segments.push({path:result.path,sourceSha256:result.sha256,start,end,sourceKind,sourceId,characters:content.length,contentSha256:sha(content)});
|
||||
};
|
||||
for(const message of body.messages){
|
||||
if(message.role==='tool'){let result;try{result=JSON.parse(message.content);}catch{} add(result,result?.content,0,'paired-file-tool-result',null);}
|
||||
if(message.role!=='system')continue;
|
||||
const start=message.content.indexOf('\n{');if(start<0)continue;
|
||||
let document;try{document=JSON.parse(message.content.slice(start+1));}catch{continue;}
|
||||
if(document.data?.kind==='task-working-set')for(const entry of document.data.entries)add(entry.observation,entry.content,entry.content_offset??0,'working-set-file-view',entry.source?.result_artifact_id);
|
||||
if(document.data?.kind==='latest-tool-feedback')for(const entry of document.data.entries)if(entry.tool==='read_file')add(entry.result,entry.result?.content_excerpt,0,'latest-file-excerpt',entry.result_artifact_id);
|
||||
}
|
||||
const files=paths.map(name=>{
|
||||
const originalSha=sha(sources[name]);
|
||||
const returnedRanges=union(rawPages.filter(row=>row.path===name&&row.sha256===originalSha&&row.createdAt<=attempt.startedAt).map(row=>[row.start,row.end]));
|
||||
const wireRanges=union(segments.filter(row=>row.path===name&&row.sourceSha256===originalSha).map(row=>[row.start,row.end]));
|
||||
const missingReadRanges=difference(returnedRanges,wireRanges),total=sources[name].length;
|
||||
return {path:name,sha256:originalSha,totalCharacters:total,cumulativeActuallyReadRanges:returnedRanges,cumulativeActuallyReadCharacters:count(returnedRanges),actualWireRanges:wireRanges,actualWireCharacters:count(wireRanges),missingPreviouslyReadRanges:missingReadRanges,missingPreviouslyReadCharacters:count(missingReadRanges),fullOriginalSourcePresent:count(wireRanges)===total};
|
||||
});
|
||||
const wire=bytes.toString('utf8'),availableJobs=session.execution.checks.filter(job=>job.finishedAt&&job.finishedAt<=attempt.startedAt);
|
||||
const currentJob=availableJobs.at(-1)??null;
|
||||
const facts=currentJob?{jobId:currentJob.id,status:currentJob.status,finishedAt:currentJob.finishedAt,jobIdOnWire:wire.includes(currentJob.id),sourceFingerprint:currentJob.sourceFingerprint,sourceFingerprintOnWire:wire.includes(currentJob.sourceFingerprint),logs:currentJob.results.map(result=>{const artifact=byId.get(result.logArtifactId);assert.ok(artifact);return {name:result.name,status:result.status,tests:result.tests,artifactId:artifact.id,sha256:artifact.sha256,artifactIdOnWire:wire.includes(artifact.id),sha256OnWire:wire.includes(artifact.sha256)};})}:null;
|
||||
const appliedChanges=session.changes.filter(change=>change.status==='applied'&&change.appliedAt&&change.appliedAt<=attempt.startedAt).map(change=>change.id);
|
||||
const engineeringState=sha(JSON.stringify({read:files.map(file=>file.cumulativeActuallyReadRanges),checks:availableJobs.map(job=>({source:job.sourceFingerprint,status:job.status,results:job.results.map(row=>({name:row.name,status:row.status,tests:row.tests}))})),appliedChanges}));
|
||||
let assistantTools=[];
|
||||
const response=outcome.captures.find(row=>row.kind==='response'&&row.attemptId===attempt.id);
|
||||
if(response){let raw;try{raw=JSON.parse(readFileSync(response.path));}catch{}assistantTools=(raw?.choices?.[0]?.message?.tool_calls??[]).map(call=>({name:call.function.name,arguments:JSON.parse(call.function.arguments)}));}
|
||||
const repeatedObservations=assistantTools.filter(call=>['inspect_project','plan_checks','read_file','read_artifact','project_index'].includes(call.name)).map(call=>{
|
||||
const key=JSON.stringify(call),previous=seen.get(key);seen.set(key,{request:n+1,engineeringState});
|
||||
return {...call,previousIdenticalRequest:previous?.request??null,repeatedWithoutNewEngineeringState:previous?.engineeringState===engineeringState};
|
||||
});
|
||||
perRequest.push({request:n+1,attemptId:attempt.id,startedAt:attempt.startedAt,requestSha256:sha(bytes),files,segments,currentCheckFacts:facts,allFourOriginalFilesPresent:files.every(row=>row.fullOriginalSourcePresent),engineeringStateChanged:previousEngineeringState!==engineeringState,assistantTools,repeatedObservations});
|
||||
previousEngineeringState=engineeringState;
|
||||
}
|
||||
for(const plan of session.execution.contextPlans){assert.equal(plan.budget.contextLimit,16000);assert.equal(plan.budget.outputReservation,2048);assert.equal(plan.budget.safetyTokens,1600);assert.ok(plan.estimatedInputTokens<=plan.budget.inputBudget);assert.ok(plan.tokenReservation.reservedTokens<=Math.min(plan.budget.runRemainingTokens,plan.budget.taskRemainingTokens));}
|
||||
const result={schemaVersion:1,modelRequests:0,rawPages,perRequest,firstRequestWithAllFourOriginalFiles:perRequest.find(row=>row.allFourOriginalFilesPresent)?.request??null,repeatedObservationCallsWithoutNewEngineeringState:perRequest.flatMap(row=>row.repeatedObservations).filter(row=>row.repeatedWithoutNewEngineeringState).length,nodeDelivered:outcome.success,stopReason:outcome.stopReason,
|
||||
scope:'Read-only original request bytes, SHA-verified owned artifacts, typed source ranges, chronological actually returned ranges and completed checks. Counts describe this sample; no causal or Purge benefit claim. Engineering state is actual read coverage/completed check source-results/applied changes; observation-only replans are not implementation progress.'};
|
||||
save('analysis/context-proof.json',result);
|
||||
console.log(JSON.stringify({passed:true,firstAllFour:result.firstRequestWithAllFourOriginalFiles,repeatedObservations:result.repeatedObservationCallsWithoutNewEngineeringState,requests:perRequest.map(row=>({n:row.request,readTestCharacters:row.files[0].cumulativeActuallyReadCharacters,wireTestCharacters:row.files[0].actualWireCharacters,missingPreviouslyRead:row.files[0].missingPreviouslyReadCharacters,allFour:row.allFourOriginalFilesPresent,checkJobPresent:row.currentCheckFacts?.jobIdOnWire,tools:row.assistantTools.map(call=>call.name)})),modelRequests:0}));
|
||||
@@ -0,0 +1,108 @@
|
||||
import fs from 'node:fs';
|
||||
import path from 'node:path';
|
||||
import assert from 'node:assert/strict';
|
||||
import { DatabaseSync } from 'node:sqlite';
|
||||
import { execFileSync } from 'node:child_process';
|
||||
import { publicSnapshot, databaseSnapshot, canonical, digest } from './desktop-f-state.mjs';
|
||||
import { root, origin, dataRoot, original, connectionId, save, meta, client, sha } from './live-delivery-v-common.mjs';
|
||||
import { inspectorClosed } from './live-delivery-v-inspector.mjs';
|
||||
const read = name => JSON.parse(fs.readFileSync(path.join(root, name)));
|
||||
const preflight = fs.existsSync(path.join(root,'preflight/result.json')) ? read('preflight/result.json') : { passed:false, usage:null }, nodeExists = fs.existsSync(path.join(root, 'node/result.json'));
|
||||
const node = nodeExists ? read('node/result.json') : null;
|
||||
const previous = read(nodeExists ? 'node/after.json' : fs.existsSync(path.join(root,'preflight/after.json')) ? 'preflight/after.json' : 'network/after.json'), before = original.baseline;
|
||||
const { api, boot, close } = await client();
|
||||
try {
|
||||
const host = await api('/host/status'); assert.equal(host.identity.pid, 36552); assert.equal(host.activity.active, false);
|
||||
const existing = fs.existsSync(path.join(root, 'final/snapshot.json'));
|
||||
const after = existing ? read('final/snapshot.json') : await publicSnapshot(origin, dataRoot);
|
||||
if (!existing) save('final/snapshot.json', after);
|
||||
assert.deepEqual(canonical(databaseSnapshot(dataRoot).tables), canonical(after.database.tables), 'Frozen final snapshot is still current.');
|
||||
for (const field of ['pid', 'version', 'runtimeRoot', 'configSha256', 'projectsSha256', 'sessionsSha256', 'eventCursor']) assert.deepEqual(after[field], previous[field], field);
|
||||
assert.deepEqual(canonical(after.database.tables), canonical(previous.database.tables));
|
||||
assert.deepEqual(after.exports, previous.exports); assert.deepEqual(after.persistent, previous.persistent);
|
||||
for (const item of before.exports) assert.deepEqual(after.exports.find(value => value.id === item.id), item);
|
||||
for (const [table, originalTable] of Object.entries(before.database.tables)) assert.equal(after.database.tables[table].schemaSha256, originalTable.schemaSha256, table + ' schema');
|
||||
for (const table of ['sessions', 'records', 'events', 'outbox']) {
|
||||
const rows = new Map(after.database.tables[table].rows.map(row => [row.id, row]));
|
||||
for (const item of before.database.tables[table].rows) assert.deepEqual(rows.get(item.id), item, table + '/' + item.id);
|
||||
}
|
||||
const beforeRows = new Map(before.database.tables.metadata.rows.map(row => [row.id, row]));
|
||||
const finalRows = new Map(after.database.tables.metadata.rows.map(row => [row.id, row]));
|
||||
for (const [id, row] of beforeRows) if (!['config', 'modelRegistry', 'modelAttempts', 'modelNetworkDiagnostics'].includes(id)) assert.deepEqual(finalRows.get(id), row);
|
||||
const network = read('network/after.json');
|
||||
assert.deepEqual(finalRows.get('modelNetworkDiagnostics'), network.database.tables.metadata.rows.find(row => row.id === 'modelNetworkDiagnostics'));
|
||||
assert.deepEqual([...finalRows.keys()].filter(id => !beforeRows.has(id)), []);
|
||||
assert.equal(meta('modelNetworkDiagnostics').length, read('network/history-before.json').jobs.length + 1);
|
||||
const artifacts = new Map(after.persistent.artifacts.map(row => [row.path, row]));
|
||||
for (const row of before.persistent.artifacts) assert.deepEqual(artifacts.get(row.path), row);
|
||||
const initialCenter = original.center, center = after.modelCenter;
|
||||
assert.deepEqual(center.selected, initialCenter.selected); assert.deepEqual(center.pools, initialCenter.pools);
|
||||
const expectedConnection = initialCenter.connections.find(row => row.id === connectionId), actualConnection = center.connections.find(row => row.id === connectionId);
|
||||
assert.equal(actualConnection.revision, expectedConnection.revision + (nodeExists ? 2 : 0));
|
||||
assert.equal(actualConnection.credentialRevision, 1);
|
||||
assert.deepEqual({ ...actualConnection, revision: expectedConnection.revision, updatedAt: expectedConnection.updatedAt,
|
||||
health: expectedConnection.health, status: expectedConnection.status }, expectedConnection);
|
||||
for (const item of initialCenter.connections.filter(row => row.id !== connectionId)) {
|
||||
const next = center.connections.find(row => row.id === item.id);
|
||||
if (item.id === 'legacy-default') {
|
||||
assert.equal(item.revision, original.config.configRevision); assert.equal(next.revision, boot.config.configRevision);
|
||||
assert.deepEqual({ ...next, revision: item.revision }, item);
|
||||
} else assert.deepEqual(next, item);
|
||||
}
|
||||
assert.deepEqual({ ...boot.config, configRevision: original.config.configRevision }, original.config);
|
||||
const owns = ['preflight','node'].filter(name => fs.existsSync(path.join(root,name,'owned.json'))).map(name => read(name+'/owned.json'));
|
||||
const ownedProjects = owns.map(row => row.project.id), ownedSessions = owns.map(row => row.session.id);
|
||||
assert.deepEqual(boot.projects.filter(row => !ownedProjects.includes(row.id)), original.projects);
|
||||
assert.deepEqual(after.database.sessionIds.filter(id => !ownedSessions.includes(id)), before.database.sessionIds);
|
||||
const db = new DatabaseSync(path.join(dataRoot, 'workbench.sqlite'), { readOnly: true });
|
||||
try {
|
||||
const projectRows = new Map(db.prepare('SELECT * FROM projects').all().map(row => [row.id, row]));
|
||||
for (const row of before.database.tables.projects.rows) assert.equal(digest({ ...projectRows.get(row.id), position: projectRows.get(row.id).position - ownedProjects.length }), row.sha256, 'Original raw project except declared insertion offset: ' + row.id);
|
||||
for (const table of ['sessions', 'records', 'events']) {
|
||||
const ids = new Set(before.database.tables[table].rows.map(row => row.id));
|
||||
const rows = db.prepare('SELECT * FROM ' + table).all().filter(row => !ids.has(row.id));
|
||||
assert.ok(rows.every(row => ownedProjects.includes(row.project_id) && (table === 'sessions' ? ownedSessions.includes(row.id) : ownedSessions.includes(row.session_id))), 'Every new ' + table + ' row belongs only to this experiment.');
|
||||
}
|
||||
const sequence = db.prepare("SELECT seq FROM sqlite_sequence WHERE name='events'").get().seq;
|
||||
assert.equal(sequence, db.prepare('SELECT MAX(seq) AS seq FROM events').get().seq);
|
||||
const oldOutbox = new Set(before.database.tables.outbox.rows.map(row => row.id));
|
||||
for (const row of db.prepare('SELECT o.*,e.session_id FROM outbox o JOIN events e ON e.seq=o.seq').all()) if (!oldOutbox.has(row.seq)) assert.ok(ownedSessions.includes(row.session_id));
|
||||
} finally { db.close(); }
|
||||
const attempts = meta('modelAttempts'), oldAttempts = fs.existsSync(path.join(root,'preflight/original-attempts.json')) ? read('preflight/original-attempts.json') : read('initial-attempts.json');
|
||||
for (const item of oldAttempts) assert.deepEqual(attempts.find(row => row.id === item.id), item);
|
||||
const added = attempts.filter(row => !oldAttempts.some(old => old.id === row.id));
|
||||
const expectedAttempts = [...(fs.existsSync(path.join(root,'preflight/attempts.json')) ? read('preflight/attempts.json') : []), ...(nodeExists ? read('node/attempts.json') : [])];
|
||||
assert.deepEqual(added, expectedAttempts); assert.ok(added.every(row => ownedSessions.includes(row.sessionId)));
|
||||
const reportedTokens = added.reduce((sum, row) => sum + (row.usage?.total_tokens ?? 0), 0);
|
||||
const unknownRequests = added.filter(row => row.usageStatus === 'unknown').length;
|
||||
assert.equal(reportedTokens, (preflight.usage?.total_tokens ?? 0) + (node?.usage?.reportedTokens ?? node?.usage?.totalTokens ?? 0));
|
||||
assert.equal(unknownRequests, node?.usage?.unknownRequests ?? 0);
|
||||
const sourceChanged = execFileSync('git', ['diff', original.sourceCommit, '--name-only', '--', 'src', 'package.json', 'package-lock.json'], { encoding: 'utf8', windowsHide: true }).trim();
|
||||
assert.equal(sourceChanged, '');
|
||||
const contract = JSON.parse(fs.readFileSync('docs/live-delivery-v-contract/manifest.json'));
|
||||
for (const row of contract.files) {
|
||||
assert.equal(sha(fs.readFileSync(path.join('docs/live-delivery-v-contract', row.path))), row.sha256);
|
||||
assert.equal(sha(fs.readFileSync(path.join('.qa',path.basename(row.path,'.txt')))),row.sha256);
|
||||
}
|
||||
for (const row of contract.previousDriverHashes) assert.equal(sha(fs.readFileSync(row.path)), row.sha256);
|
||||
assert.equal(sha(fs.readFileSync(path.join(root, 'current.json'))), contract.originalBaselineSha256);
|
||||
const result = { passed: true, pid: after.pid, version: after.version, runtimeRoot: after.runtimeRoot,
|
||||
originalProjects: original.projects.length, originalSessions: before.exports.length, originalArtifacts: before.persistent.artifacts.length,
|
||||
originalAttempts: oldAttempts.length, finalProjects: after.projects, finalSessions: after.exports.length,
|
||||
finalArtifacts: after.persistent.artifacts.length, finalCounts: Object.fromEntries(Object.entries(after.database.tables).map(([name, table]) => [name, table.count])),
|
||||
ownedProjects, ownedSessions, addedAttempts: added.length, originalRowsExportsAndArtifactsExact: true,
|
||||
originalRawProjectRowsExceptOwnedInsertionOffsetExact: true, ownedProjectInsertionOffset: ownedProjects.length,
|
||||
allAppendedRowsBelongToOwnedSamples: true, originalPublicProjectsExact: true, originalAttemptsExact: true,
|
||||
originalBudgetsSelectionAndPoolRestored: true, connectionRevision: [expectedConnection.revision, actualConnection.revision], credentialRevision: 1,
|
||||
observedHealthAndStatusExcludedFromConfigurationEquality: true,
|
||||
legacyDisplayRevisionFollowsGlobalConfigurationRevision: [original.config.configRevision, boot.config.configRevision],
|
||||
diagnosticHistoryOnlyDeclaredAppend: true, diagnosticJobIds: meta('modelNetworkDiagnostics').map(row => row.id),
|
||||
inspectorClosed: await inspectorClosed(), modelRequests: added.length, reportedTokens, unknownRequests,
|
||||
estimatedUnknownTokens: node?.usage?.estimatedUnknownTokens ?? 0, nodeDelivered: node?.success ?? false,
|
||||
preflightPassed: preflight.passed, exactSinceLastRestoration: true, previousDriversUnchanged: true,
|
||||
purgeBenefitTested: false, keyReadOrResaved: false, productSourceChanged: false };
|
||||
save('final/result.json', result); console.log(JSON.stringify(result));
|
||||
} catch (error) {
|
||||
save('final/audit-error-' + Date.now() + '.json', { name: error.name, message: error.message, stack: error.stack, automaticReplay: false });
|
||||
throw error;
|
||||
} finally { await close(); }
|
||||
@@ -0,0 +1,17 @@
|
||||
import assert from 'node:assert/strict';
|
||||
import fs from 'node:fs';
|
||||
import path from 'node:path';
|
||||
import { databaseSnapshot, canonical } from './desktop-f-state.mjs';
|
||||
import { root, original, dataRoot, save, client } from './live-delivery-v-common.mjs';
|
||||
import { inspectorClosed } from './live-delivery-v-inspector.mjs';
|
||||
const final=JSON.parse(fs.readFileSync(path.join(root,'final/snapshot.json')));
|
||||
assert.deepEqual(canonical(databaseSnapshot(dataRoot).tables),canonical(final.database.tables));
|
||||
const {api,boot,close}=await client();
|
||||
try {
|
||||
const host=await api('/host/status'),center=await api('/model-center');
|
||||
assert.equal(host.identity.pid,36552);assert.equal(host.activity.active,false);assert.equal(boot.version,'1.24.8');
|
||||
for(const key of ['pid','runtimeRoot','runtimeIdentity','dataRoot'])assert.deepEqual(host.identity[key],original.host.identity[key]);
|
||||
assert.deepEqual(center,final.modelCenter);assert.equal(await inspectorClosed(),true);
|
||||
save('final/host-readback.json',{host,version:boot.version,originalIdentityExact:true,modelCenterExactSinceRestoration:true,inspectorClosed:true});
|
||||
console.log(JSON.stringify({passed:true,pid:host.identity.pid,version:boot.version,originalIdentityExact:true,allStoredRowsStillExact:true,inspectorClosed:true,modelRequests:0}));
|
||||
}finally{await close();}
|
||||
@@ -0,0 +1,25 @@
|
||||
import fs from 'node:fs';
|
||||
import path from 'node:path';
|
||||
import assert from 'node:assert/strict';
|
||||
import { execFileSync } from 'node:child_process';
|
||||
import { DatabaseSync } from 'node:sqlite';
|
||||
import { publicSnapshot } from './desktop-f-state.mjs';
|
||||
const root = path.resolve('.qa/live-delivery-v'); assert.equal(fs.existsSync(root), false);
|
||||
const origin = 'http://127.0.0.1:4318', boot = await (await fetch(origin + '/api/bootstrap', { headers: { Connection: 'close' } })).json();
|
||||
const api = async route => (await fetch(origin + '/api' + route, { headers: { 'X-Workbench-Token': boot.token, Connection: 'close' } })).json();
|
||||
const host = await api('/host/status'), center = await api('/model-center'), connection = center.connections.find(c => c.id === '5b4daed9-b2f7-4de0-b949-573eba70c7b3');
|
||||
assert.equal(boot.version, '1.24.8'); assert.equal(host.identity.pid, 36552); assert.equal(host.activity.active, false);
|
||||
assert.equal(connection.enabled, true); assert.equal(connection.hasKey, true); assert.equal(connection.credentialRevision, 1); assert.equal(connection.revision, 9);
|
||||
assert.equal(connection.model, 'gpt-6.1-sol'); assert.equal(connection.protocol, 'chat-completions'); assert.equal(connection.streaming, false);
|
||||
assert.equal(connection.contextLimit, 16000); assert.equal(connection.maxOutputTokens, 2048);
|
||||
assert.equal(center.connections.find(c => c.id === '09b0293b-faad-45c3-832d-7c8b615813aa').enabled, false);
|
||||
const baseline = await publicSnapshot(origin, host.identity.dataRoot); assert.deepEqual(baseline.active, []);
|
||||
assert.deepEqual(center.selected, { type: 'pool', id: '68e30376-b799-445b-a858-db2dba9920a0' });
|
||||
fs.mkdirSync(root);
|
||||
const database = new DatabaseSync(path.join(host.identity.dataRoot,'workbench.sqlite'), {readOnly:true});
|
||||
try { fs.writeFileSync(path.join(root,'initial-attempts.json'),JSON.stringify(JSON.parse(database.prepare('SELECT value FROM metadata WHERE key=?').get('modelAttempts').value),null,2)+'\n',{flag:'wx'}); }
|
||||
finally { database.close(); }
|
||||
fs.writeFileSync(path.join(root, 'current.json'), JSON.stringify({ host, config: boot.config, projects: boot.projects, center, baseline,
|
||||
sourceCommit: execFileSync('git', ['rev-parse', 'HEAD'], { encoding: 'utf8' }).trim(), observedAt: new Date().toISOString() }, null, 2), { flag: 'wx' });
|
||||
console.log(JSON.stringify({ success: true, version: boot.version, pid: host.identity.pid, projects: baseline.projects, sessions: baseline.exports.length,
|
||||
connectionId: connection.id, contextLimit: connection.contextLimit, modelRequests: 0 }));
|
||||
@@ -0,0 +1,58 @@
|
||||
import assert from 'node:assert/strict';
|
||||
import net from 'node:net';
|
||||
import { setTimeout as delay } from 'node:timers/promises';
|
||||
import { boundedGptPreflight } from './live-delivery-v-payload.mjs';
|
||||
export async function inspectorClosed() {
|
||||
return new Promise((resolve, reject) => {
|
||||
const socket = net.createConnection({ host: '127.0.0.1', port: 9229 }); socket.setTimeout(1500);
|
||||
socket.once('connect', () => { socket.destroy(); reject(Error('Inspector already open.')); });
|
||||
socket.once('error', e => { socket.destroy(); e.code === 'ECONNREFUSED' ? resolve(true) : reject(e); });
|
||||
socket.once('timeout', () => { socket.destroy(); reject(Error('Inspector state unknown.')); });
|
||||
});
|
||||
}
|
||||
class Protocol {
|
||||
constructor(socket) {
|
||||
this.socket = socket; this.nextId = 1; this.pending = new Map();
|
||||
socket.addEventListener('message', event => {
|
||||
const m = JSON.parse(String(event.data)); if (!m.id) return;
|
||||
const p = this.pending.get(m.id); if (!p) return; this.pending.delete(m.id); clearTimeout(p.timer);
|
||||
m.error ? p.reject(Error(m.error.message)) : p.resolve(m.result);
|
||||
});
|
||||
socket.addEventListener('close', () => { for (const p of this.pending.values()) { clearTimeout(p.timer); p.reject(Error('Inspector closed; outcome unknown.')); } this.pending.clear(); });
|
||||
}
|
||||
send(method, params, timeout = 10000) {
|
||||
return new Promise((resolve, reject) => {
|
||||
const id = this.nextId++, timer = setTimeout(() => { this.pending.delete(id); reject(Error('Inspector timeout; do not replay.')); }, timeout);
|
||||
this.pending.set(id, { resolve, reject, timer }); this.socket.send(JSON.stringify({ id, method, params }));
|
||||
});
|
||||
}
|
||||
}
|
||||
export async function invokeGptProbe(input) {
|
||||
await inspectorClosed(); let socket, protocol, enabled = false;
|
||||
try {
|
||||
process._debugProcess(input.pid); enabled = true;
|
||||
let targets;
|
||||
for (let i = 0; i < 40 && !targets; i++) {
|
||||
await delay(100);
|
||||
try { targets = await (await fetch('http://127.0.0.1:9229/json/list', { signal: AbortSignal.timeout(700) })).json(); } catch {}
|
||||
}
|
||||
assert.equal(targets?.length, 1);
|
||||
assert.ok(targets[0].webSocketDebuggerUrl.startsWith('ws://127.0.0.1:9229/'));
|
||||
socket = new WebSocket(targets[0].webSocketDebuggerUrl);
|
||||
await new Promise((resolve, reject) => { socket.addEventListener('open', resolve, { once: true }); socket.addEventListener('error', reject, { once: true }); });
|
||||
protocol = new Protocol(socket);
|
||||
const identity = await protocol.send('Runtime.evaluate', { expression: 'process.pid', returnByValue: true });
|
||||
assert.equal(identity.result.value, input.pid);
|
||||
const expression = '(' + boundedGptPreflight.toString() + ')(' + JSON.stringify(input) + ')';
|
||||
const result = await protocol.send('Runtime.evaluate', { expression, awaitPromise: true, returnByValue: true }, 345000);
|
||||
if (result.exceptionDetails) throw Error(result.exceptionDetails.exception?.description ?? result.exceptionDetails.text);
|
||||
return { result: result.result.value, expression };
|
||||
} finally {
|
||||
if (protocol && enabled) {
|
||||
await protocol.send('Runtime.evaluate', { expression: "setTimeout(() => process.getBuiltinModule('inspector').close(), 25); 'closing'", returnByValue: true });
|
||||
await delay(200);
|
||||
}
|
||||
socket?.close();
|
||||
await inspectorClosed();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,65 @@
|
||||
import fs from 'node:fs';
|
||||
import path from 'node:path';
|
||||
import assert from 'node:assert/strict';
|
||||
import { setTimeout as delay } from 'node:timers/promises';
|
||||
import { publicSnapshot, canonical } from './desktop-f-state.mjs';
|
||||
import { root, origin, dataRoot, original, connectionId, save, meta, client } from './live-delivery-v-common.mjs';
|
||||
assert.equal(fs.existsSync(path.join(root, 'network')), false, 'One diagnostic only; never overwrite or replay.');
|
||||
const { api, boot, close } = await client();
|
||||
let jobId;
|
||||
try {
|
||||
const host = await api('/host/status');
|
||||
assert.equal(host.identity.pid, 36552); assert.equal(boot.version, '1.24.8'); assert.equal(host.activity.active, false);
|
||||
const before = await publicSnapshot(origin, dataRoot); save('network/before.json', before);
|
||||
assert.deepEqual(canonical(before.database.tables), canonical(original.baseline.database.tables));
|
||||
assert.deepEqual(before.exports, original.baseline.exports); assert.deepEqual(before.persistent, original.baseline.persistent);
|
||||
const history = await api('/model-center/network-diagnostics'); save('network/history-before.json', history);
|
||||
assert.equal(history.active, 0); assert.equal(history.jobs.length, 2);
|
||||
const connection = before.modelCenter.connections.find(row => row.id === connectionId);
|
||||
assert.equal(connection.revision, 9); assert.equal(connection.credentialRevision, 1);
|
||||
save('network/contract.json', { connectionId, revision: connection.revision, target: connection.baseUrl,
|
||||
maxJobs: 1, budgetMs: 12000, credentialAccess: false, httpRequests: 0, modelRequests: 0,
|
||||
directEndpointOnly: true, modelApiRouteVerified: false, defaultOrTransportChanges: false });
|
||||
const started = await api('/model-center/network-diagnostics', { id: connectionId, revision: connection.revision });
|
||||
save('network/start.json', started); jobId = started.job.id;
|
||||
const deadline = Date.now() + 20000;
|
||||
let current;
|
||||
do {
|
||||
current = await api('/model-center/network-diagnostics');
|
||||
if (!current.active) break;
|
||||
assert.ok(Date.now() < deadline, 'Diagnostic exceeded its bounded deadline.'); await delay(200);
|
||||
} while (true);
|
||||
const job = current.jobs.find(row => row.id === jobId);
|
||||
assert.equal(current.jobs.length, history.jobs.length + 1); assert.equal(current.active, 0); assert.ok(job.finishedAt);
|
||||
assert.equal(job.connectionId, connectionId); assert.equal(job.connectionRevision, 9);
|
||||
assert.equal(job.httpRequests, 0); assert.equal(job.modelRequests, 0); assert.equal(job.credentialAccess, false);
|
||||
assert.equal(job.route.kind, 'direct-endpoint-only'); assert.equal(job.route.modelApiRouteVerified, false);
|
||||
save('network/history-after.json', current); save('network/job.json', job);
|
||||
const after = await publicSnapshot(origin, dataRoot); save('network/after.json', after);
|
||||
for (const field of ['pid', 'version', 'hasKey', 'configSha256', 'projectsSha256', 'sessionsSha256', 'eventCursor', 'modelCenterSha256']) assert.deepEqual(after[field], before[field], field);
|
||||
assert.deepEqual(after.exports, before.exports); assert.deepEqual(after.persistent.artifacts, before.persistent.artifacts);
|
||||
assert.deepEqual(after.persistent.files, before.persistent.files);
|
||||
for (const table of Object.keys(before.database.tables)) {
|
||||
assert.equal(after.database.tables[table].schemaSha256, before.database.tables[table].schemaSha256);
|
||||
const nextRows = after.database.tables[table].rows.filter(row => table !== 'metadata' || row.id !== 'modelNetworkDiagnostics');
|
||||
const previousRows = before.database.tables[table].rows.filter(row => table !== 'metadata' || row.id !== 'modelNetworkDiagnostics');
|
||||
assert.deepEqual(nextRows, previousRows, table + ': only diagnostic history may change');
|
||||
}
|
||||
assert.equal(after.database.tables.metadata.count, before.database.tables.metadata.count);
|
||||
const stripDerived = ({ stale, currentConnectionRevision, ...raw }) => raw;
|
||||
assert.deepEqual(meta('modelNetworkDiagnostics').filter(row => row.id !== jobId), history.jobs.map(stripDerived));
|
||||
assert.equal(meta('modelNetworkDiagnostics').filter(row => row.id === jobId).length, 1);
|
||||
const result = { passed: true, jobId, diagnosticStatus: job.status, elapsedMs: job.elapsedMs,
|
||||
dns: job.stages.dns, trials: job.trials.map(row => ({ mode: row.mode, family: row.family, status: row.status, code: row.code })),
|
||||
route: job.route, originalStateExactExceptNewDiagnosticHistory: true, credentialAccess: false, httpRequests: 0, modelRequests: 0 };
|
||||
save('network/restoration.json', result); console.log(JSON.stringify(result));
|
||||
} catch (error) {
|
||||
save('network/driver-error.json', { name: error.name, message: error.message, stack: error.stack, jobId, automaticReplay: false });
|
||||
throw error;
|
||||
} finally {
|
||||
if (jobId) {
|
||||
const state = await api('/model-center/network-diagnostics');
|
||||
if (state.active && ['pending', 'running'].includes(state.jobs.find(row => row.id === jobId)?.status)) save('network/stop.json', await api('/model-center/network-diagnostics/' + jobId + '/stop', {}));
|
||||
}
|
||||
await close();
|
||||
}
|
||||
@@ -0,0 +1,238 @@
|
||||
import fs from 'node:fs';
|
||||
import path from 'node:path';
|
||||
import assert from 'node:assert/strict';
|
||||
import { execFileSync } from 'node:child_process';
|
||||
import { setTimeout as delay } from 'node:timers/promises';
|
||||
import { gitEnvironment } from '../src/core/git-process.mjs';
|
||||
import { publicSnapshot, canonical } from './desktop-f-state.mjs';
|
||||
import { root, origin, dataRoot, connectionId, save, meta, client, sha, captureAttempts } from './live-delivery-v-common.mjs';
|
||||
|
||||
assert.equal(JSON.parse(fs.readFileSync(path.join(root, 'preflight/result.json'))).passed, true);
|
||||
assert.equal(fs.existsSync(path.join(root, 'node')), false, 'Never replay or overwrite a live sample.');
|
||||
const { api, boot, close } = await client();
|
||||
const allowed = ['src/amount.mjs', 'src/summary.mjs', 'src/report.mjs'];
|
||||
const budgetFields = ['contextLimit', 'maxSteps', 'maxOutputTokens', 'maxRunTokens', 'maxTaskTokens', 'maxRunDurationMs'];
|
||||
const connectionFields = ['id', 'name', 'brand', 'model', 'baseUrl', 'enabled', 'requiresKey', 'streaming', 'protocol',
|
||||
'capabilityDeclarations', 'contextLimit', 'maxOutputTokens', 'concurrency', 'nativeParameters', 'outputTokenField',
|
||||
'modelIdentityPolicy', 'modelIdentityAliases', 'modelIdentityAliasSource'];
|
||||
const connectionInput = value => Object.fromEntries(connectionFields.filter(key => Object.hasOwn(value, key)).map(key => [key, value[key]]));
|
||||
const originalIdentity = value => ({ modelIdentityPolicy: value.modelIdentityPolicy ?? 'record',
|
||||
modelIdentityAliases: value.modelIdentityAliases ?? [], modelIdentityAliasSource: value.modelIdentityAliasSource ?? '' });
|
||||
let before, centerBefore, publicMetadata, originalAttempts, connection, configured, project, session, state, taskId, route, budgetWritten = false, selectionWritten = false;
|
||||
let result, delivery, succeeded = false, failure;
|
||||
const approvals = [], applications = [], continuations = [], observations = [], start = Date.now();
|
||||
const sourceRoot = path.join(root, 'node/expense-project');
|
||||
const git = args => execFileSync('git', ['--no-pager', '--no-optional-locks', '-C', sourceRoot, ...args], { encoding: 'utf8', windowsHide: true, env: gitEnvironment() });
|
||||
let protectedBytes, stagedBefore;
|
||||
const protect = () => {
|
||||
for (const [name, bytes] of Object.entries(protectedBytes)) assert.deepEqual(fs.readFileSync(path.join(sourceRoot, name)), bytes, name);
|
||||
assert.equal(git(['show', ':owner-staged.txt']), stagedBefore, 'Preserve original index and working-copy states.');
|
||||
};
|
||||
const waitFor = async (predicate, timeout = 30000) => {
|
||||
const deadline = Date.now() + timeout;
|
||||
while (!await predicate()) { assert.ok(Date.now() < deadline, 'Local operation deadline exceeded; verify outcome, never replay.'); await delay(350); }
|
||||
};
|
||||
const review = async (kind, value) => {
|
||||
const relative = `node/reviews/${kind}-${applications.length + 1}`;
|
||||
const fingerprint = value.fingerprint ?? sha(JSON.stringify(value));
|
||||
save(relative + '/input.json', { ...value, fingerprint });
|
||||
console.log(JSON.stringify({ reviewRequired: true, kind, path: relative + '/input.json', fingerprint }));
|
||||
const decisionPath = path.join(root, relative, 'decision.json');
|
||||
await waitFor(async () => fs.existsSync(decisionPath), Math.max(1, 600000 - (Date.now() - start)));
|
||||
const decision = JSON.parse(fs.readFileSync(decisionPath));
|
||||
assert.equal(decision.approve, true, 'Supervisor declined the original model proposal.');
|
||||
assert.ok(typeof decision.reason === 'string' && decision.reason.length > 20, 'Record substantive review.');
|
||||
assert.equal(decision.fingerprint, fingerprint);
|
||||
return decision;
|
||||
};
|
||||
const remainingRun = async () => {
|
||||
const requests = state?.execution.task.usage.requests ?? 0;
|
||||
assert.ok(requests < 8, 'The sealed eight-request budget is exhausted.');
|
||||
const budgets = { contextLimit: 16000, maxOutputTokens: 2048, maxSteps: 8 - requests,
|
||||
maxRunTokens: 90000, maxTaskTokens: 90000, maxRunDurationMs: 600000 };
|
||||
await api('/model-center/runtime-budgets', budgets); budgetWritten = true;
|
||||
continuations.push({ beforeRequests: requests, remainingSteps: budgets.maxSteps, at: new Date().toISOString() });
|
||||
};
|
||||
try {
|
||||
assert.equal(boot.version, '1.24.8');
|
||||
const host = await api('/host/status'); assert.equal(host.identity.pid, 36552); assert.equal(host.activity.active, false);
|
||||
before = await publicSnapshot(origin, dataRoot); save('node/before.json', before);
|
||||
centerBefore = await api('/model-center'); connection = centerBefore.connections.find(value => value.id === connectionId);
|
||||
assert.equal(connection.enabled, true); assert.equal(connection.hasKey, true); assert.equal(connection.revision, 9);
|
||||
assert.equal(connection.model, 'gpt-6.1-sol'); assert.equal(connection.protocol, 'chat-completions'); assert.equal(connection.contextLimit, 16000);
|
||||
assert.deepEqual(originalIdentity(connection), { modelIdentityPolicy: 'record', modelIdentityAliases: [], modelIdentityAliasSource: '' });
|
||||
publicMetadata = { config: meta('config'), registry: meta('modelRegistry') };
|
||||
save('node/original-public-metadata.json', publicMetadata);
|
||||
originalAttempts = meta('modelAttempts'); save('node/original-attempts.json', originalAttempts);
|
||||
save('node/contract.json', { kind: 'new-real-Node-engineering', version: boot.version, connectionId, connection,
|
||||
maxRequests: 8, maxTokens: 90000, contextLimit: 16000, maxOutputTokens: 2048, maxDurationMs: 600000,
|
||||
allowed, checks: ['test', 'build'], expectedTests: 9, commands: 'Only model-planned npm test/build, no arbitrary run_command',
|
||||
review: 'Model seals all three files, supervisor reviews and applies; model plans Git, supervisor confirms.',
|
||||
continuation: 'Only review-action continuation of the same task with remaining steps, no extra implementation prompts.',
|
||||
originalImplementationSupplied: false, automaticRetry: false, poolSwitching: false,
|
||||
originalSelected: centerBefore.selected, originalBudgets: Object.fromEntries(budgetFields.map(key => [key, boot.config[key]])),
|
||||
restore: 'Original budget values and selection restored. Original absent identity fields become explicit record/[]/empty-string defaults; raw pre-state retained and only this declared normalization accepted. Revision counters remain monotonic.' });
|
||||
fs.cpSync('benchmarks/live-delivery-v1/node', sourceRoot, { recursive: true, errorOnExist: true });
|
||||
fs.writeFileSync(path.join(sourceRoot, 'README.md'), '# Expense report acceptance\nRepair the three source modules using the immutable original nine tests; do not edit checks or owner files.\n', { flag: 'wx' });
|
||||
fs.writeFileSync(path.join(sourceRoot, '.gitignore'), 'dist/\n.awb-*\nnode_modules/\n', { flag: 'wx' });
|
||||
for (const name of ['owner-staged.txt', 'owner-unstaged.txt']) fs.writeFileSync(path.join(sourceRoot, name), 'Owner original baseline\n', { flag: 'wx' });
|
||||
git(['init', '--initial-branch=main']); git(['config', 'core.autocrlf', 'false']);
|
||||
git(['config', 'user.name', 'Workbench QA']); git(['config', 'user.email', 'qa@workbench.invalid']);
|
||||
git(['add', '--', '.']); git(['commit', '--no-gpg-sign', '-m', 'Seal expense engineering baseline and original checks']);
|
||||
fs.writeFileSync(path.join(sourceRoot, 'owner-staged.txt'), 'Owner staged change\n'); git(['add', '--', 'owner-staged.txt']);
|
||||
stagedBefore = git(['show', ':owner-staged.txt']);
|
||||
fs.writeFileSync(path.join(sourceRoot, 'owner-staged.txt'), 'Owner working copy differs from staging\n');
|
||||
fs.writeFileSync(path.join(sourceRoot, 'owner-unstaged.txt'), 'Owner unstaged change\n');
|
||||
fs.writeFileSync(path.join(sourceRoot, 'owner-untracked.txt'), 'Owner untracked change\n', { flag: 'wx' });
|
||||
const protectedNames = ['README.md', '.gitignore', 'package.json', 'test/expense.test.mjs', 'scripts/build.mjs', 'owner-staged.txt', 'owner-unstaged.txt', 'owner-untracked.txt'];
|
||||
protectedBytes = Object.fromEntries(protectedNames.map(name => [name, fs.readFileSync(path.join(sourceRoot, name))]));
|
||||
const sourceFiles = [...protectedNames, ...allowed];
|
||||
const frozenContract = JSON.parse(fs.readFileSync('docs/live-delivery-v-contract/manifest.json'));
|
||||
assert.deepEqual(Object.fromEntries(sourceFiles.map(name => [name, sha(fs.readFileSync(path.join(sourceRoot, name)))])), frozenContract.originalElevenFileHashes);
|
||||
for (const name of sourceFiles) save('node/source-before/' + name, fs.readFileSync(path.join(sourceRoot, name)));
|
||||
save('node/source-identity.json', { head: git(['rev-parse', 'HEAD']).trim(), status: git(['status', '--porcelain=v1']), stagedBefore,
|
||||
files: Object.fromEntries(sourceFiles.map(name => [name, sha(fs.readFileSync(path.join(sourceRoot, name)))])) });
|
||||
project = await api('/projects', { root: sourceRoot }); session = await api('/sessions', { projectId: project.id }); route = '/sessions/' + session.id;
|
||||
save('node/owned.json', { project, session });
|
||||
configured = await api('/model-center/connections', { ...connectionInput(connection), revision: connection.revision,
|
||||
modelIdentityPolicy: 'require-match', modelIdentityAliases: [], modelIdentityAliasSource: '' });
|
||||
assert.equal(configured.credentialRevision, connection.credentialRevision); assert.equal(configured.hasKey, true);
|
||||
save('node/connection-frozen.json', configured);
|
||||
await remainingRun(); await api('/model-center/select', { type: 'connection', id: connectionId }); selectionWritten = true;
|
||||
const goal = '修复这个Node费用报表工程的amount、summary、report三个模块。金额用精确分单位处理,接受测试约定的十进制字符串/有限数字、退款、0及空白;拒绝格式错误、超精度和不安全金额。按独立币种规范化/排序汇总并保留原数组,计数准确、安全求和,报表两位小数含负分金额。以原九项测试为完整契约。'
|
||||
+ '先inspect_project,再plan_checks选择["test","build"]并run_checks保留真实基线失败,读取原测试和相关源码。只允许修改src/amount.mjs、src/summary.mjs、src/report.mjs;不改测试、配置、README、构建脚本、owner文件或原暂存,不使用run_command,不直接提交Git。'
|
||||
+ 'propose_file/propose_patch准备完整三个模块后,用prepare_change_set一次封存全部三文件,等待审查应用。应用后继续同一个Task,重新plan_checks/run_checks,通过原9项测试和build后,用plan_delivery为三个文件准备本地Git预览并等待确认。模型必须自己实现,禁止用口头完成替代检查。预算最多8次模型请求、90000tokens,输出2048,上下文16K,请合并独立工具调用并避免重复观察。';
|
||||
save('node/goal.txt', goal); protect();
|
||||
await api(route + '/messages', { content: goal });
|
||||
while (Date.now() - start < 600000) {
|
||||
state = await api(route); taskId ??= state.execution.task.id; assert.equal(state.execution.task.id, taskId); protect();
|
||||
const usage = state.execution.task.usage; assert.ok(usage.requests <= 8); assert.ok(usage.totalTokens <= 90000);
|
||||
const progress = { status: state.status, requests: usage.requests, tokens: usage.totalTokens, lastTool: state.events.filter(event => event.kind === 'tool').at(-1)?.tool,
|
||||
checks: state.execution.checks.map(job => job.status), elapsedSeconds: Math.round((Date.now() - start) / 1000) };
|
||||
if (JSON.stringify({ ...progress, elapsedSeconds: 0 }) !== JSON.stringify({ ...observations.at(-1), elapsedSeconds: 0 })) { observations.push(progress); console.log(JSON.stringify(progress)); }
|
||||
for (const change of state.changes.filter(change => ['pending', 'conflict'].includes(change.status))) assert.ok(allowed.includes(change.path), 'Out-of-scope proposal: ' + change.path);
|
||||
for (const approval of state.approvals.filter(item => item.status === 'pending')) {
|
||||
const plan = state.execution.plans.find(value => value.id === approval.checkPlanId);
|
||||
const allow = !!plan && plan.taskId === taskId && plan.checks.length === 2 && plan.checks.every(check => ['test', 'build'].includes(check.name) && !check.lifecycle?.length)
|
||||
&& approval.cwd === sourceRoot && approval.command === plan.checks.map(check => check.command).join('\n');
|
||||
approvals.push({ approvalId: approval.id, planId: plan?.id, command: approval.command, allow });
|
||||
await api(route + '/approvals/' + approval.id, { allow }); assert.equal(allow, true, 'Only the sealed original checks are authorized.');
|
||||
}
|
||||
if (['running', 'awaiting_approval', 'stopping'].includes(state.status)) { await delay(650); continue; }
|
||||
if (state.status === 'failed') throw new Error(state.failure?.message ?? 'Actual-model task failed');
|
||||
const plan = state.execution.deliveryPlans?.findLast(value => value.status === 'planned' && value.taskId === taskId);
|
||||
if (plan) {
|
||||
assert.deepEqual(plan.paths.slice().sort(), allowed.slice().sort()); const requests = usage.requests;
|
||||
assert.ok(state.events.some(event => event.tool === 'plan_delivery' && event.phase === 'completed'));
|
||||
const passing = state.execution.checks.filter(job => job.status === 'passed').at(-1);
|
||||
assert.equal(passing?.results.find(value => value.name === 'test')?.tests?.passed, 9);
|
||||
await review('git', { plan, fingerprint: plan.fingerprint, checks: state.execution.checks, source: state.changes,
|
||||
status: git(['status', '--porcelain=v1']), stagedBefore, stagedAfter: git(['show', ':owner-staged.txt']) });
|
||||
await api(route + '/delivery-jobs', { planId: plan.id });
|
||||
await waitFor(async () => { state = await api(route); delivery = state.execution.deliveries.at(-1); return !!delivery?.reportArtifactId; });
|
||||
assert.equal(delivery.status, 'completed'); assert.equal(state.execution.task.usage.requests, requests); break;
|
||||
}
|
||||
const pending = state.changes.filter(change => change.status === 'pending');
|
||||
const batch = state.execution.changeSets?.findLast(value => value.taskId === taskId && value.status === 'prepared');
|
||||
if (pending.length) {
|
||||
assert.ok(state.execution.checks.some(job => job.status === 'failed' && job.results.some(value => value.tests?.failed > 0)), 'Model must preserve the original failing tests.');
|
||||
assert.equal(batch?.source, 'agent', 'Model must seal its own complete change set.');
|
||||
assert.deepEqual(batch.files.map(file => file.changeId).sort(), pending.map(change => change.id).sort());
|
||||
if (!applications.length) assert.deepEqual(batch.files.map(file => file.path).sort(), allowed.slice().sort());
|
||||
assert.ok(applications.length < 3);
|
||||
await review('changes', { fingerprint: batch.fingerprint, batch, changes: pending, checks: state.execution.checks });
|
||||
await api(route + '/change-sets/' + batch.id + '/apply', { fingerprint: batch.fingerprint });
|
||||
await waitFor(async () => (await api(route + '/change-sets/' + batch.id)).status === 'completed');
|
||||
for (const change of pending) assert.equal(sha(fs.readFileSync(path.join(sourceRoot, change.path))), change.sha256);
|
||||
applications.push({ id: batch.id, fingerprint: batch.fingerprint, paths: batch.files.map(file => file.path), source: batch.source }); protect();
|
||||
await remainingRun(); await api(route + '/continue-reviewed', {}); continue;
|
||||
}
|
||||
throw new Error('Model stopped before verified Git delivery: ' + state.status + '/' + state.execution.run.stopReason);
|
||||
}
|
||||
assert.ok(delivery, 'The sealed engineering deadline ended without complete delivery.');
|
||||
const passing = state.execution.checks.filter(job => job.status === 'passed').at(-1); assert.ok(passing);
|
||||
const tests = passing.results.find(value => value.name === 'test')?.tests; assert.equal(tests?.total, 9); assert.equal(tests.passed, 9); assert.equal(tests.failed, 0);
|
||||
assert.deepEqual(git(['diff-tree', '--no-commit-id', '--name-only', '-r', 'HEAD']).trim().split(/\r?\n/).sort(), allowed.slice().sort()); protect();
|
||||
succeeded = true;
|
||||
result = { success: true, commit: delivery.commit, tests, delivery, checkJobId: passing.id };
|
||||
} catch (error) {
|
||||
failure = { name: error.name, message: error.message, stack: error.stack, at: new Date().toISOString(), automaticReplay: false };
|
||||
result = { success: false, failure }; process.exitCode = 1;
|
||||
} finally {
|
||||
if (route) {
|
||||
state = await api(route);
|
||||
if (['running', 'stopping', 'awaiting_approval'].includes(state.status)) { await api(route + '/stop', {}); state = await api(route); }
|
||||
taskId ??= state.execution.task?.id;
|
||||
save('node/session.json', state); save('node/export.json', await api(route + '/export'));
|
||||
const attempts = meta('modelAttempts').filter(value => value.sessionId === session.id); save('node/attempts.json', attempts);
|
||||
const captures = await captureAttempts(api, attempts, 'node/captures');
|
||||
const identitiesValid = attempts.every(value => value.connectionId === connectionId && value.poolId === null && value.ordinal === 1
|
||||
&& value.status === 'completed' && value.modelIdentity?.status === 'matched' && value.modelIdentity.complete === true && value.modelIdentity.policy === 'require-match');
|
||||
result = { ...result, version: boot.version, sessionId: session.id, projectId: project.id, taskId, sourceRoot,
|
||||
connectionId, requestedModel: 'gpt-6.1-sol', usage: state.execution.task?.usage, state: state.status, stopReason: state.execution.run?.stopReason,
|
||||
attempts: attempts.length, identitiesValid, captures, approvals, applications, continuations, observations,
|
||||
modelImplementationSuppliedBySupervisor: false, modelWeightsAuthenticated: false, originalPurgeBenefitTested: false,
|
||||
elapsedSeconds: Math.round((Date.now() - start) / 1000) };
|
||||
if (succeeded) assert.equal(identitiesValid, true);
|
||||
save('node/model-outcome.json', result);
|
||||
for (const name of allowed) save('node/source-after/' + name, fs.readFileSync(path.join(sourceRoot, name)));
|
||||
save('node/git-final.json', { head: git(['rev-parse', 'HEAD']).trim(), status: git(['status', '--porcelain=v1']), stagedBefore, stagedAfter: git(['show', ':owner-staged.txt']), diff: git(['diff', 'HEAD', '--', ...allowed]) });
|
||||
}
|
||||
const host = await api('/host/status'); assert.equal(host.activity.active, false, 'Do not overwrite another active task.');
|
||||
if (configured) {
|
||||
const center = await api('/model-center'), current = center.connections.find(value => value.id === connectionId);
|
||||
assert.equal(current.revision, configured.revision, 'Do not overwrite an external connection edit.');
|
||||
const restored = await api('/model-center/connections', { ...connectionInput(connection), ...originalIdentity(connection), revision: current.revision });
|
||||
assert.equal(restored.credentialRevision, connection.credentialRevision); save('node/connection-restored.json', restored);
|
||||
assert.deepEqual(originalIdentity(restored), originalIdentity(connection));
|
||||
}
|
||||
if (budgetWritten) await api('/model-center/runtime-budgets', Object.fromEntries(budgetFields.map(key => [key, boot.config[key]])));
|
||||
if (selectionWritten) await api('/model-center/select', centerBefore.selected);
|
||||
const after = await publicSnapshot(origin, dataRoot); save('node/after.json', after);
|
||||
if (before) {
|
||||
for (const item of before.exports) assert.deepEqual(after.exports.find(value => value.id === item.id), item, 'Original export: ' + item.id);
|
||||
for (const table of ['sessions', 'records', 'events', 'outbox']) {
|
||||
const rows = new Map(after.database.tables[table].rows.map(row => [row.id, row]));
|
||||
for (const row of before.database.tables[table].rows) assert.deepEqual(rows.get(row.id), row, 'Original ' + table + '/' + row.id);
|
||||
}
|
||||
const artifactMap = new Map(after.persistent.artifacts.map(value => [value.path, value]));
|
||||
for (const item of before.persistent.artifacts) assert.deepEqual(artifactMap.get(item.path), item, 'Original artifact: ' + item.path);
|
||||
const finalBoot = await api('/bootstrap'), normalized = { ...finalBoot.config, configRevision: boot.config.configRevision };
|
||||
assert.deepEqual(canonical(normalized), canonical(boot.config));
|
||||
assert.deepEqual(finalBoot.projects.filter(value => value.id !== project?.id), boot.projects, 'Every original public project, excluding only the new owned sample.');
|
||||
assert.deepEqual(after.modelCenter.selected, centerBefore.selected); assert.deepEqual(after.modelCenter.pools, centerBefore.pools);
|
||||
for (const item of centerBefore.connections.filter(value => ![connectionId, 'legacy-default'].includes(value.id))) assert.deepEqual(after.modelCenter.connections.find(value => value.id === item.id), item);
|
||||
const finalMetadata = { config: meta('config'), registry: meta('modelRegistry') };
|
||||
save('node/final-public-metadata.json', finalMetadata);
|
||||
const configNormalized = { ...finalMetadata.config, configRevision: publicMetadata.config.configRevision };
|
||||
assert.deepEqual(canonical(configNormalized), canonical(publicMetadata.config), 'Raw public disk config except its monotonic revision.');
|
||||
const registryNormalized = structuredClone(finalMetadata.registry);
|
||||
assert.ok(registryNormalized.revision > publicMetadata.registry.revision);
|
||||
registryNormalized.revision = publicMetadata.registry.revision;
|
||||
const originalConnection = publicMetadata.registry.connections.find(value => value.id === connectionId);
|
||||
const finalConnection = registryNormalized.connections.find(value => value.id === connectionId);
|
||||
assert.equal(finalConnection.revision, originalConnection.revision + 2);
|
||||
finalConnection.revision = originalConnection.revision; finalConnection.updatedAt = originalConnection.updatedAt;
|
||||
const registryBefore = structuredClone(publicMetadata.registry);
|
||||
const normalizedBeforeConnection = registryBefore.connections.find(value => value.id === connectionId);
|
||||
const normalization = Object.fromEntries(Object.entries(originalIdentity(normalizedBeforeConnection)).filter(([key]) => !Object.hasOwn(normalizedBeforeConnection, key)));
|
||||
Object.assign(normalizedBeforeConnection, normalization);
|
||||
save('node/declared-identity-default-normalization.json', { connectionId, added: normalization,
|
||||
originalRawStatePreserved: true, originalSemanticsRestored: true, reason: 'The public partial-update API retains missing fields; restore explicit original default semantics rather than silently retaining require-match.' });
|
||||
for (const value of [registryBefore, registryNormalized]) value.connections.sort((a, b) => a.id.localeCompare(b.id));
|
||||
assert.deepEqual(canonical(registryNormalized), canonical(registryBefore), 'Registry except declared revision/timestamp/order and explicit original identity defaults.');
|
||||
const finalAttempts = meta('modelAttempts');
|
||||
for (const item of originalAttempts) assert.deepEqual(finalAttempts.find(value => value.id === item.id), item, 'Original complete model attempt: ' + item.id);
|
||||
const metadataRows = new Map(after.database.tables.metadata.rows.map(row => [row.id, row]));
|
||||
for (const row of before.database.tables.metadata.rows.filter(row => !['config', 'modelRegistry', 'modelAttempts'].includes(row.id))) assert.deepEqual(metadataRows.get(row.id), row);
|
||||
save('node/restoration.json', { passed: true, originalExports: before.exports.length, originalArtifactFiles: before.persistent.artifacts.length,
|
||||
originalRowsExact: ['sessions', 'records', 'events', 'outbox'], budgetsAndSelectionRestored: true, poolsUnchanged: true,
|
||||
originalPublicProjectsExact: true, originalAttemptsExact: originalAttempts.length, rawConfigExceptRevisionExact: true,
|
||||
registryExceptDeclaredRevisionTimestampOrderAndIdentityDefaultsExact: true, identityDefaultNormalization: normalization, otherMetadataRowsExact: true,
|
||||
originalCredentialRevision: connection?.credentialRevision, finalCredentialRevision: after.modelCenter.connections.find(value => value.id === connectionId)?.credentialRevision,
|
||||
changedOnlyMonotonicRevisionsObservedHealthAndDeclaredIdentityDefaults: true, pid: after.pid, version: after.version, noKeyExtractedOrResaved: true });
|
||||
}
|
||||
save('node/result.json', result ?? { success: false, failure, noModelDispatch: true }); await close();
|
||||
}
|
||||
console.log(JSON.stringify({ success: result.success, attempts: result.attempts, usage: result.usage, state: result.state,
|
||||
stopReason: result.stopReason, commit: result.commit, tests: result.tests, error: result.failure?.message }));
|
||||
+35
@@ -0,0 +1,35 @@
|
||||
import fs from 'node:fs';
|
||||
import path from 'node:path';
|
||||
import assert from 'node:assert/strict';
|
||||
import { DatabaseSync } from 'node:sqlite';
|
||||
import { databaseSnapshot, canonical, digest } from './desktop-f-state.mjs';
|
||||
import { root, dataRoot, original, save } from './live-delivery-v-common.mjs';
|
||||
const final = JSON.parse(fs.readFileSync(path.join(root, 'final/result.json')));
|
||||
const snapshot = JSON.parse(fs.readFileSync(path.join(root, 'final/snapshot.json')));
|
||||
assert.deepEqual(canonical(databaseSnapshot(dataRoot).tables), canonical(snapshot.database.tables));
|
||||
const db = new DatabaseSync(path.join(dataRoot, 'workbench.sqlite'), { readOnly: true });
|
||||
try {
|
||||
const additions = {};
|
||||
for (const table of ['sessions', 'records', 'events']) {
|
||||
const originalIds = new Set(original.baseline.database.tables[table].rows.map(row => row.id));
|
||||
additions[table] = db.prepare('SELECT * FROM ' + table).all().filter(row => !originalIds.has(row.id)).map(row => ({
|
||||
id: row.id, ...(row.kind ? { kind: row.kind } : {}), projectId: row.project_id,
|
||||
sessionId: table === 'sessions' ? row.id : row.session_id, sha256: digest(row) }));
|
||||
assert.ok(additions[table].every(row => final.ownedProjects.includes(row.projectId) && final.ownedSessions.includes(row.sessionId)));
|
||||
}
|
||||
const originalOutbox = new Set(original.baseline.database.tables.outbox.rows.map(row => row.id));
|
||||
additions.outbox = db.prepare('SELECT o.seq,o.published_at,e.session_id FROM outbox o JOIN events e ON e.seq=o.seq').all()
|
||||
.filter(row => !originalOutbox.has(row.seq)).map(row => ({ id: row.seq, sessionId: row.session_id, sha256: digest({ seq: row.seq, published_at: row.published_at }) }));
|
||||
assert.ok(additions.outbox.every(row => final.ownedSessions.includes(row.sessionId)));
|
||||
const originalProjects = new Map(original.baseline.database.tables.projects.rows.map(row => [row.id, row]));
|
||||
const projects = db.prepare('SELECT * FROM projects').all().map(row => ({ id: row.id, position: row.position, actualSha256: digest(row),
|
||||
...(originalProjects.has(row.id) ? { originalSha256: originalProjects.get(row.id).sha256,
|
||||
normalizedSha256: digest({ ...row, position: row.position - final.ownedProjectInsertionOffset }) } : { owned: true }) }));
|
||||
assert.ok(projects.filter(row => row.originalSha256).every(row => row.normalizedSha256 === row.originalSha256));
|
||||
const result = { additions, projects, projectInsertionOffset: final.ownedProjectInsertionOffset,
|
||||
sequence: db.prepare("SELECT seq FROM sqlite_sequence WHERE name='events'").get().seq,
|
||||
scope: 'Only IDs, owner fields and full-row hashes of additions; original project payloads are not exported. No key or user content returned.' };
|
||||
save('final/ownership-proof.json', result);
|
||||
console.log(JSON.stringify({ passed: true, additions: Object.fromEntries(Object.entries(additions).map(([name, rows]) => [name, rows.length])),
|
||||
originalProjectsNormalizedExact: projects.filter(row => row.originalSha256).length, ownedProjects: projects.filter(row => row.owned).length }));
|
||||
} finally { db.close(); }
|
||||
@@ -0,0 +1,85 @@
|
||||
// One-shot QA adapter. Runs inside the existing host; never reads a credential.
|
||||
export async function boundedGptPreflight(input) {
|
||||
const ensure = (value, message) => { if (!value) throw new Error(message); };
|
||||
ensure(process.pid === input.pid, 'Unexpected host PID.');
|
||||
const servers = process._getActiveHandles().filter(h => h?.listening && h.address?.()?.address === '127.0.0.1' && h.address?.()?.port === input.port);
|
||||
ensure(servers.length === 1, 'Expected one owned loopback server.');
|
||||
const context = servers[0].workbenchHostAuthority?.context;
|
||||
ensure(context?.provider && context?.store && context?.runtime, 'Original context missing.');
|
||||
const { store, provider, runtime } = context;
|
||||
ensure(runtime.appDirectory === input.runtimeRoot, 'Loaded runtime changed.');
|
||||
ensure(![...store.sessions.values()].some(s => ['running', 'stopping', 'awaiting_approval'].includes(s.status)), 'Host is busy.');
|
||||
const session = store.session(input.sessionId), project = store.project(session.projectId);
|
||||
ensure(session.projectId === input.projectId && session.messages.length === 0 && !session.runId, 'Probe session must be new and owned.');
|
||||
const hub = provider.modelHub(store);
|
||||
const connection = hub.view().connections.find(c => c.id === input.connectionId);
|
||||
ensure(connection?.hasKey && connection.credentialRevision === input.credentialRevision, 'Original saved credential revision changed.');
|
||||
ensure(connection.enabled && connection.protocol === 'chat-completions' && (connection.modelIdentityPolicy ?? 'record') === 'record', 'Probe protocol/auth/identity mismatch.');
|
||||
ensure(connection.baseUrl === input.baseUrl && connection.model === input.model && connection.revision === input.connectionRevision, 'Connection changed.');
|
||||
const config = hub.prepare({ ...store.config, mode: 'compatible', maxSteps: 1, maxOutputTokens: 256,
|
||||
contextLimit: 16000, maxRunTokens: 16000, maxTaskTokens: 16000, maxRunDurationMs: 320000,
|
||||
modelResponseTimeoutMs: 300000, modelStreamIdleTimeoutMs: 120000 }, { type: 'connection', id: input.connectionId });
|
||||
config.modelRouting.members = config.modelRouting.members.map(member => ({ ...member, modelIdentityPolicy: 'require-match', modelIdentityAliases: [], modelIdentityAliasSource: '' }));
|
||||
ensure(config.modelRouting.members.length === 1 && config.modelRouting.maxAttempts === 1 && config.maxOutputTokens === 256, 'One-request hard limits missing.');
|
||||
globalThis.__gptVProbeOnce ??= new Set();
|
||||
ensure(!globalThis.__gptVProbeOnce.has(input.sessionId), 'This sample cannot be replayed.');
|
||||
globalThis.__gptVProbeOnce.add(input.sessionId);
|
||||
session.title = input.title;
|
||||
const run = store.beginRun(session, input.prompt, false, config, { forceNewTask: true });
|
||||
store.message(session, 'user', input.prompt);
|
||||
session.providerMessages.push({ role: 'user', content: input.prompt });
|
||||
const step = store.beginStep(session, run), planner = runtime.requestPlanner();
|
||||
let plan, response, diagnostic = null, requestEvent, receipts = 0, wireStarts = 0;
|
||||
const wireIds = new Set();
|
||||
const signal = AbortSignal.timeout(320000);
|
||||
let stopReason = 'identity_probe_complete';
|
||||
try {
|
||||
plan = planner.prepare(session, run, config, { system: 'This is a connection identity preflight. Reply to the user exactly. No tools are available. Do not perform any project work.', tools: [], stepId: step.id });
|
||||
const variants = plan.body.kind === 'model-route-plan' ? plan.body.variants.map(v => v.body) : [plan.body];
|
||||
ensure(variants.length === 1 && variants.every(b => !(b.tools?.length) && b.max_tokens === 256 && b.model === input.model), 'Wire request violates no-tool contract.');
|
||||
ensure(plan.record.tokenReservation.reservedTokens <= 16000, 'Reservation exceeds sealed budget.');
|
||||
const progress = event => {
|
||||
if (event.consumption) {
|
||||
receipts += Number(store.recordConsumption(session, run, { ...event.consumption, requestId: plan.record.id }, plan.record.tokenReservation.reservedTokens));
|
||||
return;
|
||||
}
|
||||
if (event.phase === 'running' && event.wireAttemptId) { wireIds.add(event.wireAttemptId); wireStarts = wireIds.size; ensure(wireStarts === 1, 'No retries permitted.'); }
|
||||
requestEvent ??= store.event(session, { kind: 'model', source: 'model_connection', label: 'V · GPT单次身份预检(无工具)', phase: 'running', runId: run.id, contextPlanId: plan.record.id, startedAt: new Date().toISOString() });
|
||||
if (event.modelAttemptId) requestEvent.modelAttemptId = event.modelAttemptId;
|
||||
if (event.connectionId) requestEvent.connectionId = event.connectionId;
|
||||
if (event.model) requestEvent.actualModel = event.model;
|
||||
if (event.modelIdentity) requestEvent.modelIdentity = event.modelIdentity;
|
||||
if (event.requestUrl) requestEvent.requestUrl = event.requestUrl;
|
||||
if (event.diagnostic) requestEvent.diagnostic = event.diagnostic;
|
||||
if (event.stream) requestEvent.stream = event.stream;
|
||||
if (event.phase) requestEvent.phase = event.phase;
|
||||
plan.record.requestAttempts = wireStarts; step.modelAttempts = wireStarts;
|
||||
store.save(session);
|
||||
};
|
||||
response = await provider.complete(config, plan.messages, project, signal, progress, plan.record, [], { attempts: 1, maxBudgetAttempts: 1 });
|
||||
ensure(!response.message.tool_calls?.length, 'Unsolicited tools are never executed.');
|
||||
ensure(receipts === 1, 'Expected one original consumption receipt.');
|
||||
planner.finish(session, plan.record, { response, attempts: wireStarts });
|
||||
session.providerMessages.push(response.message); store.message(session, 'assistant', response.message.content);
|
||||
const total = (run.usage?.reportedTokens ?? run.usage?.totalTokens ?? 0);
|
||||
session.status = total > 16000 ? 'paused' : 'completed';
|
||||
if (total > 16000) stopReason = 'task_token_limit';
|
||||
} catch (cause) {
|
||||
diagnostic = cause.diagnostic ?? { source: 'workbench', origin: 'local', stage: 'identity_preflight', kind: signal.aborted ? 'cancelled' : 'runtime', title: '身份预检需要核对', message: provider.redact(cause.message), occurredAt: new Date().toISOString() };
|
||||
session.status = diagnostic.kind === 'model_identity' || signal.aborted ? 'paused' : 'failed';
|
||||
stopReason = diagnostic.kind;
|
||||
session.lastFailure = { ...diagnostic, runId: run.id };
|
||||
const message = store.message(session, 'system', diagnostic.message);
|
||||
session.failure = { ...session.lastFailure, messageId: message.id };
|
||||
if (plan) planner.finish(session, plan.record, { error: new Error(diagnostic.message), attempts: wireStarts });
|
||||
} finally {
|
||||
if (requestEvent) { requestEvent.phase = diagnostic ? 'failed' : 'completed'; requestEvent.finishedAt = new Date().toISOString(); if (diagnostic) requestEvent.diagnostic = diagnostic; }
|
||||
store.finishStep(session, step, diagnostic ? 'failed' : 'completed');
|
||||
store.finishRun(session, run, stopReason);
|
||||
}
|
||||
const attempts = hub.attempts.filter(a => a.sessionId === session.id);
|
||||
ensure(attempts.length <= 1 && wireStarts <= 1, 'Single-request limit exceeded.');
|
||||
return { sessionId: session.id, projectId: project.id, taskId: run.taskId, runId: run.id, status: session.status,
|
||||
stopReason, attempts: attempts.length, receipts, wireStarts, actualTools: run.toolCalls, usage: run.usage,
|
||||
contextPlanId: plan?.record.id ?? null, diagnostic, message: response?.message ?? null };
|
||||
}
|
||||
+40
@@ -0,0 +1,40 @@
|
||||
import fs from 'node:fs';
|
||||
import path from 'node:path';
|
||||
import assert from 'node:assert/strict';
|
||||
import { root, save, original, client, meta, connectionId } from './live-delivery-v-common.mjs';
|
||||
import { inspectorClosed } from './live-delivery-v-inspector.mjs';
|
||||
const read = name => JSON.parse(fs.readFileSync(path.join(root, name)));
|
||||
const before = read('preflight/before.json'), after = read('preflight/after.json');
|
||||
const owned = read('preflight/owned.json'), outcome = read('preflight/result.json');
|
||||
assert.equal(outcome.passed, true);
|
||||
assert.equal(after.pid, before.pid); assert.equal(after.pid, 36552); assert.equal(after.version, '1.24.8');
|
||||
assert.equal(after.configSha256, before.configSha256); assert.deepEqual(after.active, []);
|
||||
for (const item of before.exports) assert.deepEqual(after.exports.find(value => value.id === item.id), item);
|
||||
const tables = ['sessions', 'records', 'events', 'outbox'];
|
||||
for (const table of tables) {
|
||||
assert.equal(after.database.tables[table].schemaSha256, before.database.tables[table].schemaSha256);
|
||||
const rows = new Map(after.database.tables[table].rows.map(row => [row.id, row]));
|
||||
for (const row of before.database.tables[table].rows) assert.deepEqual(rows.get(row.id), row, table + '/' + row.id);
|
||||
}
|
||||
const rows = new Map(after.database.tables.metadata.rows.map(row => [row.id, row]));
|
||||
for (const row of before.database.tables.metadata.rows.filter(row => row.id !== 'modelAttempts')) assert.deepEqual(rows.get(row.id), row, row.id);
|
||||
const artifacts = new Map(after.persistent.artifacts.map(row => [row.path, row]));
|
||||
for (const row of before.persistent.artifacts) assert.deepEqual(artifacts.get(row.path), row);
|
||||
assert.deepEqual(after.modelCenter.selected, before.modelCenter.selected); assert.deepEqual(after.modelCenter.pools, before.modelCenter.pools);
|
||||
for (const item of before.modelCenter.connections) {
|
||||
const next = after.modelCenter.connections.find(row => row.id === item.id);
|
||||
if (item.id === connectionId) { const health = next.health; assert.ok(health); assert.deepEqual({ ...next, health: item.health }, item); }
|
||||
else assert.deepEqual(next, item);
|
||||
}
|
||||
for (const item of read('preflight/original-attempts.json')) assert.deepEqual(meta('modelAttempts').find(row => row.id === item.id), item);
|
||||
const { boot, close } = await client();
|
||||
try {
|
||||
assert.deepEqual(boot.config, original.config);
|
||||
assert.deepEqual(boot.projects.filter(row => row.id !== owned.project.id), original.projects);
|
||||
const closed = await inspectorClosed();
|
||||
const result = { passed: true, pid: after.pid, version: after.version, originalExports: before.exports.length,
|
||||
originalArtifacts: before.persistent.artifacts.length, originalRowsExact: tables, otherMetadataExceptAppendedAttemptsExact: true,
|
||||
originalPublicProjectsExact: true, originalConfigRegistryAndPoolExact: true, observedConnectionHealthChange: true,
|
||||
inspectorClosed: closed, noKeyReadOrResaved: true, ownedProjectId: owned.project.id, ownedSessionId: owned.session.id };
|
||||
save('preflight/restoration.json', result); console.log(JSON.stringify(result));
|
||||
} finally { await close(); }
|
||||
@@ -0,0 +1,69 @@
|
||||
import fs from 'node:fs';
|
||||
import path from 'node:path';
|
||||
import assert from 'node:assert/strict';
|
||||
import { randomUUID } from 'node:crypto';
|
||||
import { publicSnapshot, hash } from './desktop-f-state.mjs';
|
||||
import { invokeGptProbe, inspectorClosed } from './live-delivery-v-inspector.mjs';
|
||||
import { root, origin, dataRoot, connectionId, save, meta, client, captureAttempts } from './live-delivery-v-common.mjs';
|
||||
|
||||
assert.equal(fs.existsSync(path.join(root, 'preflight')), false, 'Never replay or overwrite a real sample.');
|
||||
assert.equal(JSON.parse(fs.readFileSync(path.join(root, 'network/restoration.json'))).diagnosticStatus, 'passed');
|
||||
const { api, boot, close } = await client();
|
||||
let fatal;
|
||||
try {
|
||||
await inspectorClosed();
|
||||
assert.equal(boot.version, '1.24.8');
|
||||
const host = await api('/host/status'); assert.equal(host.identity.pid, 36552); assert.equal(host.activity.active, false);
|
||||
const before = await publicSnapshot(origin, dataRoot); save('preflight/before.json', before);
|
||||
assert.deepEqual(before.active, []);
|
||||
const connection = before.modelCenter.connections.find(value => value.id === connectionId);
|
||||
assert.equal(connection.enabled, true); assert.equal(connection.hasKey, true); assert.equal(connection.credentialRevision, 1);
|
||||
assert.equal(connection.protocol, 'chat-completions'); assert.equal(connection.model, 'gpt-6.1-sol'); assert.equal(connection.revision, 9);
|
||||
assert.equal(connection.contextLimit, 16000); assert.equal(connection.modelIdentityPolicy ?? 'record', 'record');
|
||||
const originalAttempts = meta('modelAttempts'); save('preflight/original-attempts.json', originalAttempts);
|
||||
const nonce = randomUUID(), prompt = `这是独立GPT连接身份预检,不是工程任务。只回复 OK ${nonce},不要调用工具、读写文件或执行命令。`;
|
||||
save('preflight/contract.json', { kind: 'single-real-GPT-identity-preflight', connectionId, connection,
|
||||
version: boot.version, runtimeRoot: boot.runtimeRoot, maxRequests: 1, maxAttempts: 1, maxOutputTokens: 256,
|
||||
maxTokens: 16000, contextLimit: 16000, toolDefinitions: 0, toolExecution: 0,
|
||||
poolSwitching: false, automaticReplay: false, modelIdentityPolicy: 'require-match in this experiment snapshot only',
|
||||
noGlobalConfigurationWrite: true, noCredentialExtractionOrResave: true, prompt, nonce,
|
||||
originalBaselineSha256: hash(fs.readFileSync(path.join(root, 'preflight/before.json'))) });
|
||||
const projectRoot = path.join(root, 'preflight/identity-only'); fs.mkdirSync(projectRoot);
|
||||
fs.writeFileSync(path.join(projectRoot, 'README.md'), '# V GPT identity preflight\nNo engineering or command execution.\n', { flag: 'wx' });
|
||||
const project = await api('/projects', { root: projectRoot });
|
||||
const session = await api('/sessions', { projectId: project.id }); save('preflight/owned.json', { project, session });
|
||||
const input = { pid: host.identity.pid, port: 4318, runtimeRoot: boot.runtimeRoot, sessionId: session.id, projectId: project.id,
|
||||
connectionId, connectionRevision: connection.revision, credentialRevision: connection.credentialRevision,
|
||||
baseUrl: connection.baseUrl, model: connection.model, title: 'V · jojocode GPT连接单次预检', prompt };
|
||||
save('preflight/input.json', input);
|
||||
console.log(JSON.stringify({ stage: 'single-GPT-preflight', connectionId, model: connection.model, requestUrl: connection.baseUrl + '/chat/completions', maxRequests: 1, toolDefinitions: 0 }));
|
||||
const invoked = await invokeGptProbe(input); save('preflight/expression.js', invoked.expression); save('preflight/host-result.json', invoked.result);
|
||||
const previous = new Set(originalAttempts.map(value => value.id));
|
||||
const attempts = meta('modelAttempts').filter(value => !previous.has(value.id)); save('preflight/attempts.json', attempts);
|
||||
assert.ok(attempts.length <= 1); for (const attempt of attempts) { assert.equal(attempt.sessionId, session.id); assert.equal(attempt.connectionId, connectionId); assert.equal(attempt.poolId, null); }
|
||||
const state = await api('/sessions/' + session.id); save('preflight/session.json', state);
|
||||
save('preflight/export.json', await api('/sessions/' + session.id + '/export'));
|
||||
const captures = await captureAttempts(api, attempts, 'preflight/captures');
|
||||
const attempt = attempts[0];
|
||||
const passed = attempts.length === 1 && attempt.status === 'completed' && attempt.modelIdentity?.status === 'matched'
|
||||
&& attempt.modelIdentity.complete === true && attempt.modelIdentity.policy === 'require-match' && attempt.responseRedacted === false
|
||||
&& attempt.usageStatus === 'reported' && attempt.usage.total_tokens <= 16000 && captures.length === 2
|
||||
&& invoked.result.actualTools === 0 && state.status === 'completed' && invoked.result.message?.content?.includes(nonce);
|
||||
const result = { passed, engineeringTestAllowed: passed, testedAt: new Date().toISOString(), version: boot.version,
|
||||
connectionId, sessionId: session.id, projectId: project.id, taskId: invoked.result.taskId,
|
||||
requestedModel: connection.model, reportedModels: attempt?.modelIdentity?.reportedModels ?? [], identity: attempt?.modelIdentity,
|
||||
requestUrl: attempt?.requestUrl, requests: attempts.length, usage: attempt?.usage ?? null, usageStatus: attempt?.usageStatus ?? 'not_dispatched',
|
||||
actualTools: invoked.result.actualTools, stopReason: invoked.result.stopReason, captures,
|
||||
noRetryOrPoolSwitch: attempts.every(value => value.ordinal === 1 && value.poolId === null),
|
||||
modelWeightsAuthenticated: false, engineeringDeliveryTested: false, purgeBenefitTested: false,
|
||||
defaultSelectionChanged: false, connectionConfigChanged: false, credentialValuesReadOrSaved: false };
|
||||
save('preflight/result.json', result); console.log(JSON.stringify({ passed, requests: result.requests, usage: result.usage, reportedModels: result.reportedModels, stopReason: result.stopReason }));
|
||||
} catch (error) {
|
||||
fatal = { name: error.name, message: error.message, stack: error.stack, recordedAt: new Date().toISOString(), automaticReplay: false };
|
||||
save('preflight/driver-error.json', fatal); process.exitCode = 1;
|
||||
} finally {
|
||||
save('preflight/after.json', await publicSnapshot(origin, dataRoot));
|
||||
save('preflight/inspector-final.json', { closed: await inspectorClosed() });
|
||||
await close();
|
||||
}
|
||||
if (fatal) console.error(fatal.message);
|
||||
@@ -0,0 +1,5 @@
|
||||
import fs from 'node:fs';
|
||||
import path from 'node:path';
|
||||
export { root, save, sha } from './live-delivery-v-common.mjs';
|
||||
import { root } from './live-delivery-v-common.mjs';
|
||||
export const readFileSync = name => fs.readFileSync(path.join(root,name));
|
||||
@@ -0,0 +1,43 @@
|
||||
import fs from 'node:fs';
|
||||
import assert from 'node:assert/strict';
|
||||
const once = (text, before, after) => { assert.equal(text.split(before).length, 2, before); return text.replace(before, after); };
|
||||
const names = ['initial','common','payload','inspector','preflight','preflight-audit','node','network','final-audit','capture-artifacts','ownership-proof','final-readback','proof-support','analyze'];
|
||||
for (const name of names) {
|
||||
let value = fs.readFileSync('.qa/live-delivery-t-' + name + '.mjs','utf8')
|
||||
.replaceAll('live-delivery-t','live-delivery-v').replaceAll('__gptTProbeOnce','__gptVProbeOnce')
|
||||
.replaceAll('1.24.7','1.24.8').replaceAll('T GPT','V GPT').replaceAll('T · ','V · ');
|
||||
if (['initial','preflight','node','network'].includes(name)) value = once(value,'assert.equal(connection.revision, 7);','assert.equal(connection.revision, 9);');
|
||||
if (name === 'network') {
|
||||
value = once(value,'assert.equal(history.jobs.length, 1);','assert.equal(history.jobs.length, 2);');
|
||||
value = once(value,'assert.equal(job.connectionRevision, 7);','assert.equal(job.connectionRevision, 9);');
|
||||
value = once(value,"assert.deepEqual(meta('modelNetworkDiagnostics').filter(row => row.id !== jobId), history.jobs);", "const stripDerived = ({ stale, currentConnectionRevision, ...raw }) => raw;\n assert.deepEqual(meta('modelNetworkDiagnostics').filter(row => row.id !== jobId), history.jobs.map(stripDerived));");
|
||||
}
|
||||
if (name === 'preflight') value = once(value,"assert.equal(fs.existsSync(path.join(root, 'preflight')), false, 'Never replay or overwrite a real sample.');", "assert.equal(fs.existsSync(path.join(root, 'preflight')), false, 'Never replay or overwrite a real sample.');\nassert.equal(JSON.parse(fs.readFileSync(path.join(root, 'network/restoration.json'))).diagnosticStatus, 'passed');");
|
||||
if (name === 'final-audit') {
|
||||
value = once(value,"const preflight = read('preflight/result.json'), nodeExists = fs.existsSync(path.join(root, 'node/result.json'));", "const preflight = fs.existsSync(path.join(root,'preflight/result.json')) ? read('preflight/result.json') : { passed:false, usage:null }, nodeExists = fs.existsSync(path.join(root, 'node/result.json'));");
|
||||
value = once(value,"const previous = read(nodeExists ? 'node/after.json' : 'preflight/after.json'), before = original.baseline;", "const previous = read(nodeExists ? 'node/after.json' : fs.existsSync(path.join(root,'preflight/after.json')) ? 'preflight/after.json' : 'network/after.json'), before = original.baseline;");
|
||||
value = once(value,"assert.equal(meta('modelNetworkDiagnostics').length, 2);", "assert.equal(meta('modelNetworkDiagnostics').length, read('network/history-before.json').jobs.length + 1);");
|
||||
value = once(value,"const owns = [read('preflight/owned.json'), ...(nodeExists ? [read('node/owned.json')] : [])];", "const owns = ['preflight','node'].filter(name => fs.existsSync(path.join(root,name,'owned.json'))).map(name => read(name+'/owned.json'));");
|
||||
value = once(value,"oldAttempts = read('preflight/original-attempts.json');", "oldAttempts = fs.existsSync(path.join(root,'preflight/original-attempts.json')) ? read('preflight/original-attempts.json') : read('initial-attempts.json');");
|
||||
value = once(value,"[...read('preflight/attempts.json'), ...(nodeExists ? read('node/attempts.json') : [])]", "[...(fs.existsSync(path.join(root,'preflight/attempts.json')) ? read('preflight/attempts.json') : []), ...(nodeExists ? read('node/attempts.json') : [])]");
|
||||
value = once(value,"'28d21e75'",'original.sourceCommit');
|
||||
value = once(value,"for (const row of contract.files) assert.equal(sha(fs.readFileSync(path.join('docs/live-delivery-v-contract', row.path))), row.sha256);", "for (const row of contract.files) {\n assert.equal(sha(fs.readFileSync(path.join('docs/live-delivery-v-contract', row.path))), row.sha256);\n assert.equal(sha(fs.readFileSync(path.join('.qa',path.basename(row.path,'.txt')))),row.sha256);\n }");
|
||||
}
|
||||
if (name === 'capture-artifacts') {
|
||||
value = once(value,"['preflight', 'node'].map(name => read(name + '/owned.json'))", "['preflight', 'node'].filter(name => fs.existsSync(path.join(root,name,'owned.json'))).map(name => read(name + '/owned.json'))");
|
||||
value = once(value,'assert.ok(artifacts.length > 0);','assert.ok(artifacts.length >= 0);');
|
||||
}
|
||||
if (name === 'analyze') {
|
||||
value = once(value,"const originalResponse = fs.readFileSync(path.join(root, response.path));", "const originalResponse = response ? fs.readFileSync(path.join(root, response.path)) : null;");
|
||||
value = once(value,'assert.equal(sha(originalRequest), attempt.requestSha256); assert.equal(sha(originalResponse), attempt.responseSha256);', 'assert.equal(sha(originalRequest), attempt.requestSha256); if(originalResponse) assert.equal(sha(originalResponse), attempt.responseSha256);');
|
||||
value = once(value,'const body = JSON.parse(originalRequest), raw = JSON.parse(originalResponse);', 'const body = JSON.parse(originalRequest); let raw=null; try { raw=JSON.parse(originalResponse); } catch {}');
|
||||
value = once(value,'assert.deepEqual(raw.usage, attempt.usage);', 'if(raw?.usage) assert.deepEqual(raw.usage, attempt.usage);');
|
||||
value = once(value,'responseBytes: originalResponse.length','responseBytes: originalResponse?.length ?? 0');
|
||||
value = once(value,'usage: raw.usage, identity: attempt.modelIdentity, responseMessage: raw.choices[0].message,','usage: raw?.usage ?? attempt.usage, identity: attempt.modelIdentity, responseMessage: raw?.choices?.[0]?.message ?? null,');
|
||||
value = once(value,'finishReason: raw.choices[0].finish_reason','finishReason: raw?.choices?.[0]?.finish_reason ?? null');
|
||||
value = once(value,"sourceAndGitUnchanged: read('node/git-final.json').diff === '',", "allowedWorkingTreeDiffEmpty: read('node/git-final.json').diff === '',\n originalAndFinalHeadEqual: read('node/source-identity.json').head === read('node/git-final.json').head,");
|
||||
value = value.slice(0,value.indexOf('console.log(JSON.stringify(')) + "console.log(JSON.stringify({requests:requests.length,nodeSucceeded:node.success,stopReason:node.stopReason,modelRequests:0}));\n";
|
||||
}
|
||||
fs.writeFileSync('.qa/live-delivery-v-'+name+'.mjs',value,{flag:'wx'});
|
||||
}
|
||||
console.log(JSON.stringify({prepared:names,modelRequests:0,previousDriversUnchanged:true}));
|
||||
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"name": "owned-live-expense-report",
|
||||
"private": true,
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
"test": "node --test test/expense.test.mjs",
|
||||
"build": "node scripts/build.mjs"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
import { spawnSync } from 'node:child_process';
|
||||
import { readFileSync } from 'node:fs';
|
||||
for (const file of ['src/amount.mjs','src/summary.mjs','src/report.mjs']) {
|
||||
const result=spawnSync(process.execPath,['--check',file],{encoding:'utf8'});
|
||||
if(result.status!==0) { process.stderr.write(result.stderr);process.exit(result.status??1); }
|
||||
if(!readFileSync(file,'utf8').trim()) throw new Error('Empty business module');
|
||||
}
|
||||
console.log('All three business modules compile.');
|
||||
@@ -0,0 +1 @@
|
||||
export function amountToCents(value) { return 0; }
|
||||
@@ -0,0 +1 @@
|
||||
export function formatReport(groups) { return ''; }
|
||||
@@ -0,0 +1,2 @@
|
||||
import { amountToCents } from './amount.mjs';
|
||||
export function summarize(rows) { return []; }
|
||||
@@ -0,0 +1,37 @@
|
||||
import test from 'node:test';
|
||||
import assert from 'node:assert/strict';
|
||||
import { amountToCents } from '../src/amount.mjs';
|
||||
import { summarize } from '../src/summary.mjs';
|
||||
import { formatReport } from '../src/report.mjs';
|
||||
test('decimal strings become exact cents including zero and refunds',()=>{
|
||||
for(const [input,expected] of [['0',0],[' 12.34 ',1234],['+2.5',250],['-1.05',-105],['-0.00',0],['0009.10',910]]) assert.equal(amountToCents(input),expected);
|
||||
});
|
||||
test('finite decimal numbers use the same cents contract',()=>{
|
||||
for(const [input,expected] of [[0,0],[1.01,101],[2.5,250],[-4.32,-432]]) assert.equal(amountToCents(input),expected);
|
||||
});
|
||||
test('malformed overprecision nonfinite and unsafe amounts are rejected',()=>{
|
||||
for(const input of ['',null,undefined,true,{},'1e2','1,000','.50','1.234',1.234,NaN,Infinity,'900719925474099.99']) assert.throws(()=>amountToCents(input),TypeError,String(input));
|
||||
});
|
||||
test('independent currencies are sorted and summed without floating point loss',()=>{
|
||||
assert.deepEqual(summarize([{currency:'usd',amount:'0.10'},{currency:' CNY ',amount:3},{currency:'USD',amount:'0.20'}]),[
|
||||
{currency:'CNY',cents:300,count:1},{currency:'USD',cents:30,count:2}]);
|
||||
});
|
||||
test('refunds cancel totals while counting every original record',()=>{
|
||||
assert.deepEqual(summarize([{currency:'eur',amount:'1.20'},{currency:'EUR',amount:'-1.20'}]),[{currency:'EUR',cents:0,count:2}]);
|
||||
});
|
||||
test('summarizing retains caller rows and handles an empty list',()=>{
|
||||
const rows=Object.freeze([Object.freeze({currency:'usd',amount:'2.00'})]);
|
||||
assert.deepEqual(summarize(rows),[{currency:'USD',cents:200,count:1}]);assert.deepEqual(summarize([]),[]);
|
||||
});
|
||||
test('invalid rows currency and unsafe aggregate totals are rejected',()=>{
|
||||
for(const rows of [null,{},[null],[{currency:'US',amount:'1'}],[{currency:'U1D',amount:'1'}],[{currency:'USD',amount:'1.234'}],
|
||||
[{currency:'USD',amount:'90071992547409.91'},{currency:'USD',amount:'0.01'}]]) assert.throws(()=>summarize(rows),TypeError);
|
||||
});
|
||||
test('reports use two decimals and render negative subunit amounts',()=>{
|
||||
assert.equal(formatReport([{currency:'CNY',cents:300,count:2},{currency:'USD',cents:-105,count:1}]),'CNY 3.00 (2)\nUSD -1.05 (1)');
|
||||
assert.equal(formatReport([{currency:'EUR',cents:-5,count:1}]),'EUR -0.05 (1)');assert.equal(formatReport([]),'');
|
||||
});
|
||||
test('complete expense flow preserves exact decimal sums',()=>{
|
||||
assert.equal(formatReport(summarize([{currency:'usd',amount:'0.29'},{currency:'USD',amount:'-0.30'},{currency:'CNY',amount:'10.50'}])),
|
||||
'CNY 10.50 (1)\nUSD -0.01 (2)');
|
||||
});
|
||||
@@ -0,0 +1,251 @@
|
||||
{
|
||||
"schemaVersion": 1,
|
||||
"kind": "bounded-live-delivery-v-contract",
|
||||
"frozenAt": "2026-11-04T00:54:10.821Z",
|
||||
"sourceBaseCommit": "13849d038ff6cf55074697b823c83b980bc7229f",
|
||||
"branch": "feat/live-delivery-v",
|
||||
"planSha256": "411b4c1b7077e40010b7c92a5210bd2569def52741d4d3b8e859bf41ac09f4a0",
|
||||
"originalBaselineSha256": "8f19c55d570f783bcd5a79917137a180acbc0bb1bcd34bb661c916cfa741b78e",
|
||||
"releaseVersion": "1.24.8",
|
||||
"releaseSourceCommit": "7e77fd65c367b711a9a59b30ef216f5fdf7feb11",
|
||||
"releaseIdentitySha256": "68e52ab9d6002cd59fef12abf60be9e10e2863e3c9015be4dd1b820cf714df85",
|
||||
"host": {
|
||||
"pid": 36552,
|
||||
"runtimeRoot": "C:\\Users\\wangy\\AppData\\Local\\Programs\\AgentWorkbench\\versions\\Agent-Workbench-1.24.8-win-x64-20261103235313371",
|
||||
"runtimeIdentity": "6f4b7681e8393fe0c7b7441264b806662741f59c7dc818f2632ad7ceb6e67c99"
|
||||
},
|
||||
"originalProjects": 65,
|
||||
"originalSessions": 81,
|
||||
"originalArtifacts": 3720,
|
||||
"originalAttemptsRow": {
|
||||
"id": "modelAttempts",
|
||||
"sha256": "506fd2e9553ef0b2f854c411100977615eeba02ef3aad1ceb5d18761d9576007"
|
||||
},
|
||||
"originalDiagnosticsRow": {
|
||||
"id": "modelNetworkDiagnostics",
|
||||
"sha256": "798d612f52e4234b8eb7250baa9d0d6f5853c2b76ea0543510fb183c2473498f"
|
||||
},
|
||||
"inputs": [
|
||||
{
|
||||
"path": "src/amount.mjs",
|
||||
"capturedPath": "inputs/src/amount.mjs",
|
||||
"bytes": 51,
|
||||
"sha256": "84cb647328ec52dad27d288f3a6127ff3e1ad87274ae2d227ad44daa49cbb2ed"
|
||||
},
|
||||
{
|
||||
"path": "src/summary.mjs",
|
||||
"capturedPath": "inputs/src/summary.mjs",
|
||||
"bytes": 93,
|
||||
"sha256": "48829850c11ca0cd0ab5e86bbac69a0c5f90297292168c1ba6dc338e2eae6ee7"
|
||||
},
|
||||
{
|
||||
"path": "src/report.mjs",
|
||||
"capturedPath": "inputs/src/report.mjs",
|
||||
"bytes": 52,
|
||||
"sha256": "ba0a014e6e9df710d66e255a3a6f970f4e1c8af48accc81f33627029dcded7c0"
|
||||
},
|
||||
{
|
||||
"path": "test/expense.test.mjs",
|
||||
"capturedPath": "inputs/test/expense.test.mjs",
|
||||
"bytes": 2584,
|
||||
"sha256": "0bcda551dbaeafad9a6e3df8024492ab67d7c09956f4676c393b78249ab44839"
|
||||
},
|
||||
{
|
||||
"path": "package.json",
|
||||
"capturedPath": "inputs/package.json",
|
||||
"bytes": 188,
|
||||
"sha256": "6ad63026b2fe9de7513a4f6704c372a86108ee3d018a1f04883dc0a409ea4c24"
|
||||
},
|
||||
{
|
||||
"path": "scripts/build.mjs",
|
||||
"capturedPath": "inputs/scripts/build.mjs",
|
||||
"bytes": 475,
|
||||
"sha256": "7279bc7c707c0f3ccbae63b14f0abed248ad3755be14f9e37128124ae9267526"
|
||||
}
|
||||
],
|
||||
"originalElevenFileHashes": {
|
||||
"README.md": "5e35a4dace9537e7c4cc815ce7054f73c171f053f1cccb9ff141f49ecb3c013e",
|
||||
".gitignore": "cab0bc87cad1b1214d71b023eee742986044093ff4b4331cd6a51098af6bdce6",
|
||||
"package.json": "6ad63026b2fe9de7513a4f6704c372a86108ee3d018a1f04883dc0a409ea4c24",
|
||||
"test/expense.test.mjs": "0bcda551dbaeafad9a6e3df8024492ab67d7c09956f4676c393b78249ab44839",
|
||||
"scripts/build.mjs": "7279bc7c707c0f3ccbae63b14f0abed248ad3755be14f9e37128124ae9267526",
|
||||
"owner-staged.txt": "56b0dda452eaf9aead80f0e4ad971d7befa3cf152c3553923f8fde46e1fd336a",
|
||||
"owner-unstaged.txt": "468bfb2956a4ac040508fc5ffd915cf8057fb7420e22c41a3cc2d094785f0d3e",
|
||||
"owner-untracked.txt": "e32ab29a12ed13d72c2ed603b2360e1b4e35afb0fe4280db2e523ad2c6c5bc8d",
|
||||
"src/amount.mjs": "84cb647328ec52dad27d288f3a6127ff3e1ad87274ae2d227ad44daa49cbb2ed",
|
||||
"src/summary.mjs": "48829850c11ca0cd0ab5e86bbac69a0c5f90297292168c1ba6dc338e2eae6ee7",
|
||||
"src/report.mjs": "ba0a014e6e9df710d66e255a3a6f970f4e1c8af48accc81f33627029dcded7c0"
|
||||
},
|
||||
"goalDeclarationSha256": "f0023b525c63e0a4287f8ee692516e6353a91c207cca6a307a7a3e34fa4160f9",
|
||||
"goalMatchesTExactly": true,
|
||||
"dependencySources": [
|
||||
{
|
||||
"path": "src/core/git-process.mjs",
|
||||
"sha256": "80547ec8928610ac4df5a05c5aef12d1aab0dca9e7b1def2773fc745f5adf5f5"
|
||||
},
|
||||
{
|
||||
"path": "src/core/desktop/install-manager.mjs",
|
||||
"sha256": "91c216537666f690122071a5b53b7c8b3beba4ea549acd1534edca24390d9635"
|
||||
},
|
||||
{
|
||||
"path": "benchmarks/live-delivery-v1/node/src/amount.mjs",
|
||||
"sha256": "84cb647328ec52dad27d288f3a6127ff3e1ad87274ae2d227ad44daa49cbb2ed"
|
||||
},
|
||||
{
|
||||
"path": "benchmarks/live-delivery-v1/node/src/summary.mjs",
|
||||
"sha256": "48829850c11ca0cd0ab5e86bbac69a0c5f90297292168c1ba6dc338e2eae6ee7"
|
||||
},
|
||||
{
|
||||
"path": "benchmarks/live-delivery-v1/node/src/report.mjs",
|
||||
"sha256": "ba0a014e6e9df710d66e255a3a6f970f4e1c8af48accc81f33627029dcded7c0"
|
||||
},
|
||||
{
|
||||
"path": "benchmarks/live-delivery-v1/node/test/expense.test.mjs",
|
||||
"sha256": "0bcda551dbaeafad9a6e3df8024492ab67d7c09956f4676c393b78249ab44839"
|
||||
},
|
||||
{
|
||||
"path": "benchmarks/live-delivery-v1/node/package.json",
|
||||
"sha256": "6ad63026b2fe9de7513a4f6704c372a86108ee3d018a1f04883dc0a409ea4c24"
|
||||
},
|
||||
{
|
||||
"path": "benchmarks/live-delivery-v1/node/scripts/build.mjs",
|
||||
"sha256": "7279bc7c707c0f3ccbae63b14f0abed248ad3755be14f9e37128124ae9267526"
|
||||
}
|
||||
],
|
||||
"previousDriverHashes": [
|
||||
{
|
||||
"path": ".qa/live-delivery-t-initial.mjs",
|
||||
"sha256": "70984fcb8f9bb4a839e5acaa44d8fd7712bf7173cb0e8974ea361e89be62b929"
|
||||
},
|
||||
{
|
||||
"path": ".qa/live-delivery-t-common.mjs",
|
||||
"sha256": "f9690cb76eae4970494aee53d6ccaa2997dcaead1705f3bbd393ca844a1a31e5"
|
||||
},
|
||||
{
|
||||
"path": ".qa/live-delivery-t-payload.mjs",
|
||||
"sha256": "170dd3becc13c6e8b9b2293035a4e142fac43a4cb5572dee85fd7644c674fb04"
|
||||
},
|
||||
{
|
||||
"path": ".qa/live-delivery-t-inspector.mjs",
|
||||
"sha256": "69150611edc2829406ce98cd6968fbb24ca97d282d22ce8e500d8d92fb3ee580"
|
||||
},
|
||||
{
|
||||
"path": ".qa/live-delivery-t-preflight.mjs",
|
||||
"sha256": "fa9c26f591e392015a936c80df329ab7a1a9a8dedc96f76eb1bb172cf36f4eb9"
|
||||
},
|
||||
{
|
||||
"path": ".qa/live-delivery-t-preflight-audit.mjs",
|
||||
"sha256": "6f3bab7a6347578050f9c894702994d495cd1b2d169e0734477618d0af97b61e"
|
||||
},
|
||||
{
|
||||
"path": ".qa/live-delivery-t-node.mjs",
|
||||
"sha256": "2313c704c68e3d95b090ec8d73184a9978b19eb87a772efe92f1154b04deeede"
|
||||
},
|
||||
{
|
||||
"path": ".qa/live-delivery-t-network.mjs",
|
||||
"sha256": "7ba233460aca2f58f9072ee8be57a2ab2aa5dbf7a0550af6c35864779d96d5c6"
|
||||
}
|
||||
],
|
||||
"maxNetworkJobs": 1,
|
||||
"maxPreflightRequests": 1,
|
||||
"maxNodeRequests": 8,
|
||||
"maxNodeTokens": 90000,
|
||||
"maxNodeDurationMs": 600000,
|
||||
"contextLimit": 16000,
|
||||
"maxOutputTokens": 2048,
|
||||
"safetyReserveTokens": 1600,
|
||||
"modelRequestsAtFreeze": 0,
|
||||
"noKeyValuesReadOrSaved": true,
|
||||
"files": [
|
||||
{
|
||||
"path": "drivers/desktop-f-state.mjs.txt",
|
||||
"bytes": 5932,
|
||||
"sha256": "6cf41ebd2ce55fe6fe3175948e9b964fac99975aca3132420a83b1d122e08b0b"
|
||||
},
|
||||
{
|
||||
"path": "drivers/freeze-live-delivery-v.mjs.txt",
|
||||
"bytes": 4765,
|
||||
"sha256": "2f54f6abda610ef2f7e7de28c1245a327163ab7d87ad10f8322ad093f8ffec2a"
|
||||
},
|
||||
{
|
||||
"path": "drivers/live-delivery-v-analyze.mjs.txt",
|
||||
"bytes": 3063,
|
||||
"sha256": "ffd4e9d267e935bb0f323e8fc3a78b8025e6c5fd38cefb375afbd03b022d94af"
|
||||
},
|
||||
{
|
||||
"path": "drivers/live-delivery-v-capture-artifacts.mjs.txt",
|
||||
"bytes": 2167,
|
||||
"sha256": "04b1b3e8529b96844d02fedbfb4db8354d7c98651e7a1664918520c49a4148f9"
|
||||
},
|
||||
{
|
||||
"path": "drivers/live-delivery-v-common.mjs.txt",
|
||||
"bytes": 3084,
|
||||
"sha256": "b510c56073df9ca51e33445b8f669a128f7f22c7545fe45b5c1752cde3f971bf"
|
||||
},
|
||||
{
|
||||
"path": "drivers/live-delivery-v-context-proof.mjs.txt",
|
||||
"bytes": 9203,
|
||||
"sha256": "c42d34913cb0af9d7ad77b5840ada3f7e4b26bff0369f49137c82c2e4f3969c0"
|
||||
},
|
||||
{
|
||||
"path": "drivers/live-delivery-v-final-audit.mjs.txt",
|
||||
"bytes": 10442,
|
||||
"sha256": "1aad6f7d744aa6e1c6c76d047467b9baaa23b7c68941623f92af256c51e4fefa"
|
||||
},
|
||||
{
|
||||
"path": "drivers/live-delivery-v-final-readback.mjs.txt",
|
||||
"bytes": 1316,
|
||||
"sha256": "20530203eb849f1e987c0ad809d0f52477fd9d931e05170e97db90aaebe639bc"
|
||||
},
|
||||
{
|
||||
"path": "drivers/live-delivery-v-initial.mjs.txt",
|
||||
"bytes": 2535,
|
||||
"sha256": "6197a5119af2350a29ab0d852719582a30081a825f2f306f5ad2c99c79cb6005"
|
||||
},
|
||||
{
|
||||
"path": "drivers/live-delivery-v-inspector.mjs.txt",
|
||||
"bytes": 3329,
|
||||
"sha256": "68b13fd25297d4713871b7c1f56bf22a9a5763a021645ba42b89168e61a3e1b1"
|
||||
},
|
||||
{
|
||||
"path": "drivers/live-delivery-v-network.mjs.txt",
|
||||
"bytes": 5022,
|
||||
"sha256": "bda66b8e0d59d34855686abbe4164480a1e8d69ab24ef93326124cec12bfbecb"
|
||||
},
|
||||
{
|
||||
"path": "drivers/live-delivery-v-node.mjs.txt",
|
||||
"bytes": 24201,
|
||||
"sha256": "934ff55823939c65d8578fb08ea2510dce4a46ec730e96a470a73120c43b61b0"
|
||||
},
|
||||
{
|
||||
"path": "drivers/live-delivery-v-ownership-proof.mjs.txt",
|
||||
"bytes": 3063,
|
||||
"sha256": "0a889ad6152dedc1b424ede9861e72ed705ae8fa532c2ea5644f7dd8eb714c23"
|
||||
},
|
||||
{
|
||||
"path": "drivers/live-delivery-v-payload.mjs.txt",
|
||||
"bytes": 7367,
|
||||
"sha256": "9b80607d500d1bf24619822b6df8daffa5de9e4edf22307186d7045ffb45cae5"
|
||||
},
|
||||
{
|
||||
"path": "drivers/live-delivery-v-preflight-audit.mjs.txt",
|
||||
"bytes": 3090,
|
||||
"sha256": "59f044416895a1e7a8383c1e9233ff65e8e8f84d51dfcb1f9bc0cc1f57eef961"
|
||||
},
|
||||
{
|
||||
"path": "drivers/live-delivery-v-preflight.mjs.txt",
|
||||
"bytes": 6267,
|
||||
"sha256": "b1c01ec5c1a69658e63ed781a77922aed08e77e432e970d19e7711b07ea82764"
|
||||
},
|
||||
{
|
||||
"path": "drivers/live-delivery-v-proof-support.mjs.txt",
|
||||
"bytes": 248,
|
||||
"sha256": "ee614752d80e413940390efb34a77f99a97b97b07f8b65e1a420088ad94a9210"
|
||||
},
|
||||
{
|
||||
"path": "drivers/prepare-live-delivery-v.mjs.txt",
|
||||
"bytes": 6327,
|
||||
"sha256": "2d27febbbcc4c22b1196abeb6dc3b3799bfe8e141f73da4e62a7a3fb6f0aed0d"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,32 @@
|
||||
import fs from 'node:fs';
|
||||
import path from 'node:path';
|
||||
import assert from 'node:assert/strict';
|
||||
import { publicSnapshot, canonical } from './desktop-f-state.mjs';
|
||||
import { root, original, origin, dataRoot, client, save, meta, connectionId } from './live-delivery-v-common.mjs';
|
||||
const read=name=>JSON.parse(fs.readFileSync(path.join(root,name)));
|
||||
const before=read('network/before.json'),after=read('network/after.json'),history=read('network/history-before.json'),current=read('network/history-after.json'),job=read('network/job.json');
|
||||
const firstFailure=read('network/driver-error.json');assert.equal(firstFailure.name,'AssertionError');assert.equal(firstFailure.jobId,job.id);
|
||||
assert.equal(current.active,0);assert.equal(current.jobs.length,history.jobs.length+1);
|
||||
const strip=({stale,currentConnectionRevision,...raw})=>raw;
|
||||
const sorted=rows=>rows.slice().sort((a,b)=>a.id.localeCompare(b.id));
|
||||
const raw=meta('modelNetworkDiagnostics');
|
||||
assert.deepEqual(sorted(raw.filter(row=>row.id!==job.id)),sorted(history.jobs.map(strip)));
|
||||
assert.deepEqual(raw.find(row=>row.id===job.id),strip(job));
|
||||
assert.equal(job.connectionId,connectionId);assert.equal(job.connectionRevision,9);assert.ok(job.finishedAt);
|
||||
assert.equal(job.httpRequests,0);assert.equal(job.modelRequests,0);assert.equal(job.credentialAccess,false);
|
||||
assert.equal(job.route.kind,'direct-endpoint-only');assert.equal(job.route.modelApiRouteVerified,false);
|
||||
for(const field of ['pid','version','hasKey','configSha256','projectsSha256','sessionsSha256','eventCursor','modelCenterSha256'])assert.deepEqual(after[field],before[field],field);
|
||||
assert.deepEqual(after.exports,before.exports);assert.deepEqual(after.persistent.artifacts,before.persistent.artifacts);assert.deepEqual(after.persistent.files,before.persistent.files);
|
||||
for(const table of Object.keys(before.database.tables)){
|
||||
assert.equal(after.database.tables[table].schemaSha256,before.database.tables[table].schemaSha256);
|
||||
const remove=rows=>rows.filter(row=>table!=='metadata'||row.id!=='modelNetworkDiagnostics');
|
||||
assert.deepEqual(remove(after.database.tables[table].rows),remove(before.database.tables[table].rows));
|
||||
}
|
||||
assert.deepEqual(canonical(before.database.tables),canonical(original.baseline.database.tables));
|
||||
const {api,close}=await client();
|
||||
try{
|
||||
const live=await publicSnapshot(origin,dataRoot);assert.deepEqual(canonical(live.database.tables),canonical(after.database.tables));assert.deepEqual(live.exports,after.exports);assert.deepEqual(live.persistent,after.persistent);
|
||||
const now=await api('/model-center/network-diagnostics');assert.deepEqual(now,current);
|
||||
const result={passed:true,jobId:job.id,diagnosticStatus:job.status,elapsedMs:job.elapsedMs,dns:job.stages.dns,trials:job.trials.map(row=>({mode:row.mode,family:row.family,status:row.status,code:row.code})),route:job.route,originalStateExactExceptNewDiagnosticHistory:true,credentialAccess:false,httpRequests:0,modelRequests:0,firstDriverFailurePreserved:true,readOnlyReconciliation:true,comparison:'Remove API-derived stale/currentConnectionRevision and sort by immutable ID before exact equality; no diagnostic replay'};
|
||||
save('network/restoration.json',result);console.log(JSON.stringify(result));
|
||||
}finally{await close();}
|
||||
@@ -0,0 +1,28 @@
|
||||
import fs from 'node:fs';
|
||||
import path from 'node:path';
|
||||
import assert from 'node:assert/strict';
|
||||
import {createHash} from 'node:crypto';
|
||||
import {execFileSync} from 'node:child_process';
|
||||
const source=path.resolve('.qa/live-delivery-v'),target=path.resolve('docs/live-delivery-v-evidence');
|
||||
assert.equal(fs.existsSync(target),false,'Never overwrite sealed evidence.');
|
||||
const read=name=>JSON.parse(fs.readFileSync(path.join(source,name)));
|
||||
const final=read('final/result.json'),job=read('network/job.json');
|
||||
assert.equal(final.passed,true);assert.equal(job.status,'partial');assert.equal(final.modelRequests,0);
|
||||
assert.equal(fs.existsSync(path.join(source,'preflight')),false);assert.equal(fs.existsSync(path.join(source,'node')),false);
|
||||
assert.equal(read('final/host-readback.json').originalIdentityExact,true);
|
||||
const git=args=>execFileSync('git',args,{encoding:'utf8',windowsHide:true}).trim();
|
||||
const contract=JSON.parse(fs.readFileSync('docs/live-delivery-v-contract/manifest.json'));
|
||||
assert.equal(git(['diff',contract.sourceBaseCommit,'--name-only','--','src','package.json','package-lock.json']),'');
|
||||
const sha=bytes=>createHash('sha256').update(bytes).digest('hex'),files=[];fs.mkdirSync(target);
|
||||
const copy=(name,relative)=>{const bytes=fs.readFileSync(name),destination=path.join(target,relative);fs.mkdirSync(path.dirname(destination),{recursive:true});fs.writeFileSync(destination,bytes,{flag:'wx'});files.push({path:relative.replaceAll('\\','/'),bytes:bytes.length,sha256:sha(bytes)});};
|
||||
const walk=(directory,prefix,relative='')=>{for(const entry of fs.readdirSync(directory,{withFileTypes:true})){assert.equal(entry.isSymbolicLink(),false);const next=path.posix.join(relative,entry.name),name=path.join(directory,entry.name);if(entry.isDirectory())walk(name,prefix,next);else{assert.equal(entry.isFile(),true);copy(name,prefix+'/'+next);}}};
|
||||
walk(source,'run');walk('docs/live-delivery-v-contract','contract');
|
||||
for(const name of ['live-delivery-v-network-audit.mjs','seal-live-delivery-v.mjs'])copy('.qa/'+name,'drivers/'+name+'.txt');
|
||||
copy('scripts/verify-live-delivery-v.mjs','drivers/verify-live-delivery-v.mjs.txt');
|
||||
copy('docs/working-memory-u-release-identity.json','provenance/release-1.24.8.json');copy('docs/LIVE-DELIVERY-V-PLAN.md','provenance/frozen-plan.md');
|
||||
const release=JSON.parse(fs.readFileSync('docs/working-memory-u-release-identity.json'));
|
||||
const manifest={schemaVersion:1,kind:'owned-live-delivery-v-evidence',createdAt:new Date().toISOString(),version:'1.24.8',releaseSourceCommit:release.sourceCommit,experimentPlanCommit:git(['rev-parse','19214ba']),experimentBaseCommit:contract.sourceBaseCommit,branch:git(['branch','--show-current']),
|
||||
references:{initial:'run/current.json',network:'run/network/job.json',networkAudit:'run/network/restoration.json',final:'run/final/result.json',ownership:'run/final/ownership-proof.json',readback:'run/final/host-readback.json'},
|
||||
note:'Exactly one credential-free DNS/TCP/TLS job: auto IPv4 and IPv6 passed, IPv4-only TLS handshake timed out. Plan requires stop on any anomaly. No identity preflight, Node project, model requests, HTTP API calls, credential access, retry or transport changes. Original diagnostic validator failure is preserved; read-only ID-sorted reconciliation passed. No delivery or Purge claim.',files:files.sort((a,b)=>a.path.localeCompare(b.path))};
|
||||
fs.writeFileSync(path.join(target,'manifest.json'),JSON.stringify(manifest,null,2)+'\n',{flag:'wx'});
|
||||
console.log(JSON.stringify({files:files.length,bytes:files.reduce((sum,row)=>sum+row.bytes,0),manifestSha256:sha(fs.readFileSync(path.join(target,'manifest.json'))),modelRequests:0}));
|
||||
@@ -0,0 +1,55 @@
|
||||
import fs from 'node:fs';
|
||||
import path from 'node:path';
|
||||
import assert from 'node:assert/strict';
|
||||
import {createHash} from 'node:crypto';
|
||||
import {execFileSync} from 'node:child_process';
|
||||
const root=path.resolve('docs/live-delivery-v-evidence');
|
||||
const sha=bytes=>createHash('sha256').update(bytes).digest('hex');
|
||||
const canonical=value=>Array.isArray(value)?value.map(canonical):value&&typeof value==='object'?Object.fromEntries(Object.keys(value).sort().map(key=>[key,canonical(value[key])])):value;
|
||||
const digest=value=>sha(JSON.stringify(canonical(value)));
|
||||
const file=name=>{assert.equal(typeof name,'string');assert.ok(!/[\\\x00\r\n]/.test(name)&&!name.split('/').includes('..'));const target=path.resolve(root,name);assert.ok(target.startsWith(root+path.sep));return target;};
|
||||
const bytes=name=>fs.readFileSync(file(name)),read=name=>JSON.parse(bytes(name));
|
||||
const manifest=read('manifest.json');assert.equal(manifest.kind,'owned-live-delivery-v-evidence');
|
||||
const names=new Set();let totalBytes=0;
|
||||
for(const row of manifest.files){assert.ok(!names.has(row.path));names.add(row.path);const value=bytes(row.path);assert.equal(value.length,row.bytes);assert.equal(sha(value),row.sha256,row.path);totalBytes+=value.length;}
|
||||
const list=(directory=root)=>fs.readdirSync(directory,{withFileTypes:true}).flatMap(entry=>{assert.equal(entry.isSymbolicLink(),false);const target=path.join(directory,entry.name);return entry.isDirectory()?list(target):[path.relative(root,target).replaceAll('\\','/')];});
|
||||
assert.deepEqual(list().sort(),['manifest.json',...names].sort());
|
||||
assert.ok([...names].every(name=>!name.startsWith('run/preflight/')&&!name.startsWith('run/node/')));
|
||||
const owned=name=>{assert.ok(names.has(name));return read(name);};
|
||||
const initial=owned(manifest.references.initial),network=owned(manifest.references.network),audit=owned(manifest.references.networkAudit),final=owned(manifest.references.final),proof=owned(manifest.references.ownership),readback=owned(manifest.references.readback),frozen=owned('contract/manifest.json');
|
||||
const gitBytes=(commit,relative)=>execFileSync('git',['show',commit+':'+relative],{maxBuffer:4*1024*1024,windowsHide:true});
|
||||
assert.equal(sha(bytes('run/current.json')),frozen.originalBaselineSha256);assert.equal(sha(bytes('provenance/frozen-plan.md')),frozen.planSha256);
|
||||
assert.deepEqual(bytes('contract/manifest.json'),gitBytes(manifest.experimentPlanCommit,'docs/live-delivery-v-contract/manifest.json'));
|
||||
for(const row of frozen.files){assert.equal(sha(bytes('contract/'+row.path)),row.sha256);assert.deepEqual(bytes('contract/'+row.path),gitBytes(manifest.experimentPlanCommit,'docs/live-delivery-v-contract/'+row.path));}
|
||||
for(const row of frozen.inputs){assert.equal(sha(bytes('contract/'+row.capturedPath)),row.sha256);assert.equal(row.sha256,frozen.originalElevenFileHashes[row.path]);}
|
||||
for(const row of frozen.dependencySources)assert.equal(sha(gitBytes(manifest.experimentBaseCommit,row.path)),row.sha256);
|
||||
assert.equal(sha(bytes('provenance/release-1.24.8.json')),frozen.releaseIdentitySha256);assert.equal(owned('provenance/release-1.24.8.json').sourceCommit,manifest.releaseSourceCommit);
|
||||
assert.equal(frozen.modelRequestsAtFreeze,0);assert.equal(frozen.maxNetworkJobs,1);assert.equal(frozen.maxPreflightRequests,1);assert.equal(frozen.maxNodeRequests,8);assert.equal(frozen.maxNodeTokens,90000);assert.equal(frozen.maxNodeDurationMs,600000);assert.equal(frozen.contextLimit,16000);assert.equal(frozen.maxOutputTokens,2048);assert.equal(frozen.safetyReserveTokens,1600);assert.equal(frozen.goalMatchesTExactly,true);
|
||||
assert.equal(network.status,'partial');assert.equal(network.connectionRevision,9);assert.equal(network.stages.dns.status,'passed');assert.equal(network.httpRequests,0);assert.equal(network.modelRequests,0);assert.equal(network.credentialAccess,false);assert.equal(network.route.modelApiRouteVerified,false);
|
||||
assert.deepEqual(network.trials.map(row=>[row.mode,row.status]),[['auto','passed'],['ipv4','failed'],['ipv6','passed']]);assert.equal(network.trials[1].code,'TLS_HANDSHAKE_TIMEOUT');
|
||||
assert.equal(audit.passed,true);assert.equal(audit.readOnlyReconciliation,true);assert.equal(audit.firstDriverFailurePreserved,true);assert.equal(owned('run/network/driver-error.json').jobId,network.id);
|
||||
const previous=owned('run/network/history-before.json'),next=owned('run/network/history-after.json');
|
||||
const strip=({stale,currentConnectionRevision,...raw})=>raw;
|
||||
const oldRaw=previous.jobs.map(strip).reverse(),newRaw=next.jobs.map(strip).reverse();
|
||||
assert.equal(oldRaw.length,2);assert.deepEqual(newRaw,[...oldRaw,strip(network)]);assert.equal(next.active,0);
|
||||
const snapshot=owned('run/final/snapshot.json'),before=initial.baseline;
|
||||
for(const field of ['pid','version','runtimeRoot','configSha256','projectsSha256','sessionsSha256','eventCursor','modelCenterSha256'])assert.deepEqual(snapshot[field],before[field],field);
|
||||
assert.deepEqual(snapshot.exports,before.exports);assert.deepEqual(snapshot.modelCenter,before.modelCenter);
|
||||
assert.deepEqual(snapshot.persistent.artifacts,before.persistent.artifacts);assert.deepEqual(snapshot.persistent.files,before.persistent.files);
|
||||
for(const [name,table] of Object.entries(before.database.tables)){
|
||||
assert.equal(snapshot.database.tables[name].count,table.count);assert.equal(snapshot.database.tables[name].schemaSha256,table.schemaSha256);
|
||||
const without=rows=>rows.filter(row=>name!=='metadata'||row.id!=='modelNetworkDiagnostics');assert.deepEqual(without(snapshot.database.tables[name].rows),without(table.rows));
|
||||
}
|
||||
for(const [snapshotValue,raw]of[[before,oldRaw],[snapshot,newRaw]])assert.equal(snapshotValue.database.tables.metadata.rows.find(row=>row.id==='modelNetworkDiagnostics').sha256,digest({key:'modelNetworkDiagnostics',value:JSON.stringify(raw)}));
|
||||
const attempts=owned('run/initial-attempts.json');assert.equal(attempts.length,225);assert.equal(snapshot.database.tables.metadata.rows.find(row=>row.id==='modelAttempts').sha256,digest({key:'modelAttempts',value:JSON.stringify(attempts)}));
|
||||
for(const rows of Object.values(proof.additions))assert.deepEqual(rows,[]);assert.equal(proof.projectInsertionOffset,0);assert.ok(proof.projects.every(row=>row.actualSha256===row.originalSha256&&row.normalizedSha256===row.originalSha256));
|
||||
assert.equal(final.passed,true);assert.equal(final.pid,36552);assert.equal(final.version,'1.24.8');assert.equal(final.modelRequests,0);assert.equal(final.reportedTokens,0);assert.equal(final.unknownRequests,0);assert.equal(final.originalProjects,65);assert.equal(final.originalSessions,81);assert.equal(final.originalArtifacts,3720);assert.equal(final.originalAttempts,225);assert.equal(final.nodeDelivered,false);assert.equal(final.purgeBenefitTested,false);assert.equal(final.productSourceChanged,false);assert.equal(final.keyReadOrResaved,false);assert.deepEqual(final.connectionRevision,[9,9]);assert.deepEqual(final.legacyDisplayRevisionFollowsGlobalConfigurationRevision,[73,73]);assert.equal(final.credentialRevision,1);
|
||||
assert.equal(readback.originalIdentityExact,true);assert.equal(readback.inspectorClosed,true);assert.equal(readback.modelCenterExactSinceRestoration,true);
|
||||
let gitIndex;
|
||||
if(process.argv.includes('--index')){
|
||||
const prefix=path.relative(process.cwd(),root).replaceAll('\\','/'),manifestBytes=bytes('manifest.json'),entries=[...manifest.files,{path:'manifest.json',bytes:manifestBytes.length,sha256:sha(manifestBytes)}];
|
||||
const output=execFileSync('git',['cat-file','--batch'],{input:entries.map(row=>':'+prefix+'/'+row.path).join('\n')+'\n',maxBuffer:256*1024*1024,windowsHide:true});let offset=0,indexBytes=0;
|
||||
for(const entry of entries){const end=output.indexOf(10,offset),header=output.subarray(offset,end).toString('utf8'),match=header.match(/^[a-f0-9]{40} blob (\d+)$/);assert.ok(match,header);const size=Number(match[1]);offset=end+1;const value=output.subarray(offset,offset+size);offset+=size;assert.equal(output[offset++],10);assert.equal(size,entry.bytes);assert.equal(sha(value),entry.sha256,entry.path);indexBytes+=size;}
|
||||
assert.equal(offset,output.length);gitIndex={passed:true,files:entries.length,bytes:indexBytes,exactOriginalBytes:true};
|
||||
}
|
||||
console.log(JSON.stringify({success:true,files:manifest.files.length,bytes:totalBytes,manifestSha256:sha(bytes('manifest.json')),diagnosticStatus:'partial',stoppedBeforePreflight:true,modelRequests:0,nodeDelivered:false,purgeBenefitTested:false,allOriginalStateExceptSingleDiagnosticAppendExact:true,...(gitIndex?{gitIndex}:{}),scope:'Offline bytes, frozen contract/source and exact state digests. No network, model calls, credential access or host mutation.'}));
|
||||
@@ -0,0 +1,251 @@
|
||||
{
|
||||
"schemaVersion": 1,
|
||||
"kind": "owned-live-delivery-v-evidence",
|
||||
"createdAt": "2026-11-04T00:58:32.839Z",
|
||||
"version": "1.24.8",
|
||||
"releaseSourceCommit": "7e77fd65c367b711a9a59b30ef216f5fdf7feb11",
|
||||
"experimentPlanCommit": "19214ba3add1389931b508ffd71b6f3f88bc3417",
|
||||
"experimentBaseCommit": "13849d038ff6cf55074697b823c83b980bc7229f",
|
||||
"branch": "feat/live-delivery-v",
|
||||
"references": {
|
||||
"initial": "run/current.json",
|
||||
"network": "run/network/job.json",
|
||||
"networkAudit": "run/network/restoration.json",
|
||||
"final": "run/final/result.json",
|
||||
"ownership": "run/final/ownership-proof.json",
|
||||
"readback": "run/final/host-readback.json"
|
||||
},
|
||||
"note": "Exactly one credential-free DNS/TCP/TLS job: auto IPv4 and IPv6 passed, IPv4-only TLS handshake timed out. Plan requires stop on any anomaly. No identity preflight, Node project, model requests, HTTP API calls, credential access, retry or transport changes. Original diagnostic validator failure is preserved; read-only ID-sorted reconciliation passed. No delivery or Purge claim.",
|
||||
"files": [
|
||||
{
|
||||
"path": "contract/drivers/desktop-f-state.mjs.txt",
|
||||
"bytes": 5932,
|
||||
"sha256": "6cf41ebd2ce55fe6fe3175948e9b964fac99975aca3132420a83b1d122e08b0b"
|
||||
},
|
||||
{
|
||||
"path": "contract/drivers/freeze-live-delivery-v.mjs.txt",
|
||||
"bytes": 4765,
|
||||
"sha256": "2f54f6abda610ef2f7e7de28c1245a327163ab7d87ad10f8322ad093f8ffec2a"
|
||||
},
|
||||
{
|
||||
"path": "contract/drivers/live-delivery-v-analyze.mjs.txt",
|
||||
"bytes": 3063,
|
||||
"sha256": "ffd4e9d267e935bb0f323e8fc3a78b8025e6c5fd38cefb375afbd03b022d94af"
|
||||
},
|
||||
{
|
||||
"path": "contract/drivers/live-delivery-v-capture-artifacts.mjs.txt",
|
||||
"bytes": 2167,
|
||||
"sha256": "04b1b3e8529b96844d02fedbfb4db8354d7c98651e7a1664918520c49a4148f9"
|
||||
},
|
||||
{
|
||||
"path": "contract/drivers/live-delivery-v-common.mjs.txt",
|
||||
"bytes": 3084,
|
||||
"sha256": "b510c56073df9ca51e33445b8f669a128f7f22c7545fe45b5c1752cde3f971bf"
|
||||
},
|
||||
{
|
||||
"path": "contract/drivers/live-delivery-v-context-proof.mjs.txt",
|
||||
"bytes": 9203,
|
||||
"sha256": "c42d34913cb0af9d7ad77b5840ada3f7e4b26bff0369f49137c82c2e4f3969c0"
|
||||
},
|
||||
{
|
||||
"path": "contract/drivers/live-delivery-v-final-audit.mjs.txt",
|
||||
"bytes": 10442,
|
||||
"sha256": "1aad6f7d744aa6e1c6c76d047467b9baaa23b7c68941623f92af256c51e4fefa"
|
||||
},
|
||||
{
|
||||
"path": "contract/drivers/live-delivery-v-final-readback.mjs.txt",
|
||||
"bytes": 1316,
|
||||
"sha256": "20530203eb849f1e987c0ad809d0f52477fd9d931e05170e97db90aaebe639bc"
|
||||
},
|
||||
{
|
||||
"path": "contract/drivers/live-delivery-v-initial.mjs.txt",
|
||||
"bytes": 2535,
|
||||
"sha256": "6197a5119af2350a29ab0d852719582a30081a825f2f306f5ad2c99c79cb6005"
|
||||
},
|
||||
{
|
||||
"path": "contract/drivers/live-delivery-v-inspector.mjs.txt",
|
||||
"bytes": 3329,
|
||||
"sha256": "68b13fd25297d4713871b7c1f56bf22a9a5763a021645ba42b89168e61a3e1b1"
|
||||
},
|
||||
{
|
||||
"path": "contract/drivers/live-delivery-v-network.mjs.txt",
|
||||
"bytes": 5022,
|
||||
"sha256": "bda66b8e0d59d34855686abbe4164480a1e8d69ab24ef93326124cec12bfbecb"
|
||||
},
|
||||
{
|
||||
"path": "contract/drivers/live-delivery-v-node.mjs.txt",
|
||||
"bytes": 24201,
|
||||
"sha256": "934ff55823939c65d8578fb08ea2510dce4a46ec730e96a470a73120c43b61b0"
|
||||
},
|
||||
{
|
||||
"path": "contract/drivers/live-delivery-v-ownership-proof.mjs.txt",
|
||||
"bytes": 3063,
|
||||
"sha256": "0a889ad6152dedc1b424ede9861e72ed705ae8fa532c2ea5644f7dd8eb714c23"
|
||||
},
|
||||
{
|
||||
"path": "contract/drivers/live-delivery-v-payload.mjs.txt",
|
||||
"bytes": 7367,
|
||||
"sha256": "9b80607d500d1bf24619822b6df8daffa5de9e4edf22307186d7045ffb45cae5"
|
||||
},
|
||||
{
|
||||
"path": "contract/drivers/live-delivery-v-preflight-audit.mjs.txt",
|
||||
"bytes": 3090,
|
||||
"sha256": "59f044416895a1e7a8383c1e9233ff65e8e8f84d51dfcb1f9bc0cc1f57eef961"
|
||||
},
|
||||
{
|
||||
"path": "contract/drivers/live-delivery-v-preflight.mjs.txt",
|
||||
"bytes": 6267,
|
||||
"sha256": "b1c01ec5c1a69658e63ed781a77922aed08e77e432e970d19e7711b07ea82764"
|
||||
},
|
||||
{
|
||||
"path": "contract/drivers/live-delivery-v-proof-support.mjs.txt",
|
||||
"bytes": 248,
|
||||
"sha256": "ee614752d80e413940390efb34a77f99a97b97b07f8b65e1a420088ad94a9210"
|
||||
},
|
||||
{
|
||||
"path": "contract/drivers/prepare-live-delivery-v.mjs.txt",
|
||||
"bytes": 6327,
|
||||
"sha256": "2d27febbbcc4c22b1196abeb6dc3b3799bfe8e141f73da4e62a7a3fb6f0aed0d"
|
||||
},
|
||||
{
|
||||
"path": "contract/inputs/package.json",
|
||||
"bytes": 188,
|
||||
"sha256": "6ad63026b2fe9de7513a4f6704c372a86108ee3d018a1f04883dc0a409ea4c24"
|
||||
},
|
||||
{
|
||||
"path": "contract/inputs/scripts/build.mjs",
|
||||
"bytes": 475,
|
||||
"sha256": "7279bc7c707c0f3ccbae63b14f0abed248ad3755be14f9e37128124ae9267526"
|
||||
},
|
||||
{
|
||||
"path": "contract/inputs/src/amount.mjs",
|
||||
"bytes": 51,
|
||||
"sha256": "84cb647328ec52dad27d288f3a6127ff3e1ad87274ae2d227ad44daa49cbb2ed"
|
||||
},
|
||||
{
|
||||
"path": "contract/inputs/src/report.mjs",
|
||||
"bytes": 52,
|
||||
"sha256": "ba0a014e6e9df710d66e255a3a6f970f4e1c8af48accc81f33627029dcded7c0"
|
||||
},
|
||||
{
|
||||
"path": "contract/inputs/src/summary.mjs",
|
||||
"bytes": 93,
|
||||
"sha256": "48829850c11ca0cd0ab5e86bbac69a0c5f90297292168c1ba6dc338e2eae6ee7"
|
||||
},
|
||||
{
|
||||
"path": "contract/inputs/test/expense.test.mjs",
|
||||
"bytes": 2584,
|
||||
"sha256": "0bcda551dbaeafad9a6e3df8024492ab67d7c09956f4676c393b78249ab44839"
|
||||
},
|
||||
{
|
||||
"path": "contract/manifest.json",
|
||||
"bytes": 9558,
|
||||
"sha256": "a8f59534f86ad55de517a688b39bb91f0b73d41ecf8c5bcbbf458461b09cdaee"
|
||||
},
|
||||
{
|
||||
"path": "drivers/live-delivery-v-network-audit.mjs.txt",
|
||||
"bytes": 3236,
|
||||
"sha256": "e8259604d4156ad55c2f207f2e0980514ba1556e6955a061e660ef02f81d1741"
|
||||
},
|
||||
{
|
||||
"path": "drivers/seal-live-delivery-v.mjs.txt",
|
||||
"bytes": 3637,
|
||||
"sha256": "6959a61a2888ae852aeae0983c68ed6b5df512e2b291fec2ba8e7fbcd2509242"
|
||||
},
|
||||
{
|
||||
"path": "drivers/verify-live-delivery-v.mjs.txt",
|
||||
"bytes": 8611,
|
||||
"sha256": "60f573e99b12b089f4ac2c8f66b84b9e13adfb2da298208ef6f3770f9079dcb0"
|
||||
},
|
||||
{
|
||||
"path": "provenance/frozen-plan.md",
|
||||
"bytes": 2752,
|
||||
"sha256": "411b4c1b7077e40010b7c92a5210bd2569def52741d4d3b8e859bf41ac09f4a0"
|
||||
},
|
||||
{
|
||||
"path": "provenance/release-1.24.8.json",
|
||||
"bytes": 1813,
|
||||
"sha256": "68e52ab9d6002cd59fef12abf60be9e10e2863e3c9015be4dd1b820cf714df85"
|
||||
},
|
||||
{
|
||||
"path": "run/current.json",
|
||||
"bytes": 10097780,
|
||||
"sha256": "8f19c55d570f783bcd5a79917137a180acbc0bb1bcd34bb661c916cfa741b78e"
|
||||
},
|
||||
{
|
||||
"path": "run/final/host-readback.json",
|
||||
"bytes": 2668,
|
||||
"sha256": "c4b020d2588aa1167978c4cfdd74e2abecaf82a297a676897c0d9b29673c2621"
|
||||
},
|
||||
{
|
||||
"path": "run/final/ownership-proof.json",
|
||||
"bytes": 23839,
|
||||
"sha256": "fd7d7ab62ba52085f400ecdc2c72833cec713486fc24c0594af28e697887a26f"
|
||||
},
|
||||
{
|
||||
"path": "run/final/result.json",
|
||||
"bytes": 1713,
|
||||
"sha256": "b2110d66e45473c6a944f38c9bbd4760f7b146fbb511551b85c71e28bf64f5b8"
|
||||
},
|
||||
{
|
||||
"path": "run/final/snapshot.json",
|
||||
"bytes": 9308117,
|
||||
"sha256": "dd6add12a59eaad9e41b7c02c116542e3a87a01fbcb06418a66ef42ad9d64a61"
|
||||
},
|
||||
{
|
||||
"path": "run/initial-attempts.json",
|
||||
"bytes": 545590,
|
||||
"sha256": "996451770d74ad6789bb5e14627f74e865c02d11c0af732c13944e2dd9562f76"
|
||||
},
|
||||
{
|
||||
"path": "run/network/after.json",
|
||||
"bytes": 9308117,
|
||||
"sha256": "83d35eebe81a07b348a065cbd3a2d6010b83b5fbf9d17a7526a79fafec6912bd"
|
||||
},
|
||||
{
|
||||
"path": "run/network/before.json",
|
||||
"bytes": 9308117,
|
||||
"sha256": "2f2c765b93d3f470e4672eeef105288a5736ace0abb10083ab0e7902c6cc147a"
|
||||
},
|
||||
{
|
||||
"path": "run/network/contract.json",
|
||||
"bytes": 328,
|
||||
"sha256": "a46dd8e34b8b54f69cb6b4598f04879433656226431e7c61200ef2c89e07ce88"
|
||||
},
|
||||
{
|
||||
"path": "run/network/driver-error.json",
|
||||
"bytes": 17250,
|
||||
"sha256": "3a3b423766987a72c601c72bbadeb0adc7eb17fddac38c320dd20c27e6070c96"
|
||||
},
|
||||
{
|
||||
"path": "run/network/history-after.json",
|
||||
"bytes": 11241,
|
||||
"sha256": "7c6d87cd19f278cde3c66eccffe3fcc8fe601556065ddba481b7bf2d37141f80"
|
||||
},
|
||||
{
|
||||
"path": "run/network/history-before.json",
|
||||
"bytes": 7509,
|
||||
"sha256": "ffa8c0d852b8c95a02f2a4e28283ecc5dd45489d235b3b224b870d245d82e6d3"
|
||||
},
|
||||
{
|
||||
"path": "run/network/job.json",
|
||||
"bytes": 3211,
|
||||
"sha256": "d7a2df6e1a484d1e26f1a28e142705f3b36ccf985af4d631c59d78b888eaa1f2"
|
||||
},
|
||||
{
|
||||
"path": "run/network/restoration.json",
|
||||
"bytes": 1404,
|
||||
"sha256": "fb38af2603ac0dcdf050bdee0371eacb3b3f1d6da0d09ba9f923207259f2bf87"
|
||||
},
|
||||
{
|
||||
"path": "run/network/start.json",
|
||||
"bytes": 1200,
|
||||
"sha256": "f11a98da2cc7740974ee360babed44b15fa526ac90ab1606a4c299e63ce63345"
|
||||
},
|
||||
{
|
||||
"path": "run/pre-freeze-syntax-failure.json",
|
||||
"bytes": 165,
|
||||
"sha256": "d3305b00d9d1f44c8bbc6b6555085a69c82c25a3b0bd7918e14c44d4dcd8a15f"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
# V:工作记忆修复后的新有界真实交付
|
||||
|
||||
U 的 1.24.8 只证明工作记忆修复与发行可靠性,真实模型请求为 0。V 须在 U 独立发行、原状态回核和本地 Git 完成后另冻契约;本计划不允许续跑 T/R/P/O。
|
||||
|
||||
1. 只读确认当前实际版本/source/候选、PID/Provider、公开配置、原表每行/全导出/全部工件 SHA,当前选线和预算以新快照为准。预选启用的 jojocode GPT Chat JSON;不自动启用旧连接,不提取、复制、解密或重存真实 Key。
|
||||
2. 同一连接作一次所属 DNS/TCP/TLS 有界观察,0 HTTP/模型/凭据操作。证书、代理、IP 族和路由策略保持;观察异常即保存结束,不推断唯一根因。
|
||||
3. 新建无工具单次身份预检,固定连接/端点/协议/严格报告身份,最大一次请求,失败停止。完整原请求/响应、URL、报告型号和真实/未知用量封存;不重试、切池或补造别名,不把报告型号当权重认证。
|
||||
4. 通过后,新建隔离 Node 费用报表工程和新 Task,原三源码/九测试、11 文件基线、目标和所有约束不变。16K/2048/1600;最多 8 请求、90000 tokens、600000ms。单连接,所有预留与上游原报告保持,不以本地估算覆盖实际用量。
|
||||
5. 模型独立实现。监督只核对/批准原检查计划、审查应用完整允许文件变更集及确认本地 Git;不提供实现/答案/追加指导,不改测试、配置和 owner 文件/暂存,不扩大预算,不允许 run_command。
|
||||
6. 本次新增观测:逐请求记录累计真实已读范围、实际正文范围和缺失范围;完整四文件何时同时出现;当前失败 job/日志 SHA 是否持续携带;无新工程状态的重复观察次数。只分析原件,不为收集数据重放模型或工具。
|
||||
7. 成功需原九测试和 build 通过、当前源码/检查/变更集/Git计划一致,以及仅三个允许模块的已确认本地提交。读完、口头完成和基线 build 通过都不算交付。错误/暂停/身份拒绝/未知结果即封存,不续跑旧样本。
|
||||
8. 结束后恢复本次明确允许临时修改的公开预算/池/身份策略;逐原行、导出、工件及公开中心精确核对。只对自有新增项目/会话、请求/用量、修订单调增长作事先声明;关闭调试端口,回顾后本地提交,不推送。
|
||||
|
||||
Node 通过后才扩展 React/Python。原版 Purge 使用独立同工程/模型/预算的 AB/BA,锁定 Harness/Purge/profile、真实提示/工具输入,统计交付、请求、时间和全部已报告/未知消费。插件加载或单次工程成功不能证明收益。1.25 任务要求/交付复核和更新重复目录核验性能仍独立排期。
|
||||
@@ -0,0 +1,38 @@
|
||||
{
|
||||
"version": "1.24.8",
|
||||
"sourceCommit": "7e77fd65c367b711a9a59b30ef216f5fdf7feb11",
|
||||
"candidate": "Agent-Workbench-1.24.8-win-x64-20261103235313371",
|
||||
"portableManifestSha256": "66e4f5aa52334affb39abacbbce2d4126e0701e5cf85fff101e9d4d4a2ae7e3c",
|
||||
"sourceManifestSha256": "b8ec4dc720c277aa265509f062b6b06fd50cdbe6d8cbc20b2ec372accd5e35e6",
|
||||
"installer": {
|
||||
"path": "D:\\Ai-project\\REA逆向\\Agent-Workbench\\releases\\Agent-Workbench-1.24.8-win-x64-20261103235313371-Setup.exe",
|
||||
"bytes": 213358969,
|
||||
"sha256": "ed429e0ccd75d06db792f5785c7e4438b4cdd989c8892be938780fc555460fe5",
|
||||
"compiler": {
|
||||
"version": "6.3.1",
|
||||
"sha256": "3b22d36fc7e7c421d8caf780008ecdb42b14b3f0371b9bafe3cad64e6648d9cf"
|
||||
},
|
||||
"source": "D:\\Ai-project\\REA逆向\\Agent-Workbench\\.qa\\installer-build-d96977bd-18ff-4418-ad72-10883bd06df6\\installer.iss",
|
||||
"version": "1.24.8",
|
||||
"candidateDirectory": "Agent-Workbench-1.24.8-win-x64-20261103235313371",
|
||||
"qaFixture": null
|
||||
},
|
||||
"archives": {
|
||||
"portable": {
|
||||
"path": "D:\\Ai-project\\REA逆向\\Agent-Workbench\\releases\\Agent-Workbench-1.24.8-win-x64-20261103235313371.zip",
|
||||
"bytes": 242965056,
|
||||
"sha256": "794fb13c414fb6fce5993a5b97803d1e9a818dbbe54d22700e1a4c46dfa590ec"
|
||||
},
|
||||
"source": {
|
||||
"path": "D:\\Ai-project\\REA逆向\\Agent-Workbench\\releases\\Agent-Workbench-1.24.8-source-20261103235313371.zip",
|
||||
"bytes": 1078515810,
|
||||
"sha256": "066cdceb91204441d40738e87a884a749f21ad9378a0130f33309c77483f1d3d"
|
||||
},
|
||||
"evidence": {
|
||||
"path": "D:\\Ai-project\\REA逆向\\Agent-Workbench\\releases\\Agent-Workbench-1.24.8-evidence-20261103235313371.zip",
|
||||
"bytes": 837283975,
|
||||
"sha256": "996c553c3b92420ae01e0eed4089e1a0f7ccef05e1004a361d79d9393e4bca6c"
|
||||
}
|
||||
},
|
||||
"realModelRequests": 0
|
||||
}
|
||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1,73 @@
|
||||
{
|
||||
"host": {
|
||||
"identity": {
|
||||
"schema": 1,
|
||||
"protocol": "agent-workbench-host-v1",
|
||||
"app": "agent-workbench",
|
||||
"version": "1.24.8",
|
||||
"instanceId": "4c910dd5-82cb-4c8a-92f6-328338ea0662",
|
||||
"pid": 36552,
|
||||
"createdAt": "2026-10-31T06:30:34.359Z",
|
||||
"userSid": "S-1-5-21-3906741337-925321518-3767092861-1001",
|
||||
"ownerId": "b3ae90d3-9aa1-4b40-bd96-a53f01dbb502",
|
||||
"executable": {
|
||||
"path": "D:\\Ai-project\\REA逆向\\Agent-Workbench\\releases\\Agent-Workbench-1.14.0-win-x64-20261030235440461\\runtime\\node.exe",
|
||||
"bytes": 93915464,
|
||||
"sha256": "d702daa815eabbff763c7d3808e235cf031cf2ca70211b56847bc72f51e240e5"
|
||||
},
|
||||
"appRoot": "D:\\Ai-project\\REA逆向\\Agent-Workbench\\releases\\Agent-Workbench-1.14.0-win-x64-20261030235440461",
|
||||
"runtimeRoot": "C:\\Users\\wangy\\AppData\\Local\\Programs\\AgentWorkbench\\versions\\Agent-Workbench-1.24.8-win-x64-20261103235313371",
|
||||
"runtimeIdentity": "6f4b7681e8393fe0c7b7441264b806662741f59c7dc818f2632ad7ceb6e67c99",
|
||||
"dataRoot": "C:\\Users\\wangy\\AppData\\Local\\Packages\\OpenAI.Codex_2p2nqsd0c76g0\\LocalCache\\Local\\AgentWorkbench",
|
||||
"port": 4318
|
||||
},
|
||||
"state": "ready",
|
||||
"activity": {
|
||||
"counts": {
|
||||
"environments": 0,
|
||||
"evaluations": 0,
|
||||
"previews": 0,
|
||||
"browsingActions": 0,
|
||||
"tasks": 0,
|
||||
"approvals": 0,
|
||||
"workers": 0,
|
||||
"controlledEngines": 0,
|
||||
"mcp": 0,
|
||||
"checks": 0,
|
||||
"deliveries": 0,
|
||||
"fileBatches": 0,
|
||||
"workspaces": 0,
|
||||
"research": 0,
|
||||
"engines": 0,
|
||||
"browsers": 0,
|
||||
"plans": 0,
|
||||
"networkDiagnostics": 0,
|
||||
"modelRequests": 0,
|
||||
"modelQueue": 0,
|
||||
"modelLeases": 0
|
||||
},
|
||||
"active": false,
|
||||
"unresolvedTools": 0,
|
||||
"unknownResults": [],
|
||||
"scope": "Current host-owned active managers and saved tool verification flags; no tool/model/repair is executed."
|
||||
},
|
||||
"desktopWindows": {
|
||||
"count": 1,
|
||||
"entries": [
|
||||
{
|
||||
"windowId": "4a774787-ebda-4dbd-bb43-4458d873ec5d",
|
||||
"pid": 3256,
|
||||
"createdAt": "2026-11-04T00:33:08.305Z",
|
||||
"instanceId": "4c910dd5-82cb-4c8a-92f6-328338ea0662",
|
||||
"runtimeIdentity": "6f4b7681e8393fe0c7b7441264b806662741f59c7dc818f2632ad7ceb6e67c99"
|
||||
}
|
||||
],
|
||||
"scope": "Attested Electron main processes; stale or reused PIDs are removed without sending a signal."
|
||||
},
|
||||
"windowClose": "keep-host-running"
|
||||
},
|
||||
"version": "1.24.8",
|
||||
"originalIdentityExact": true,
|
||||
"modelCenterExactSinceRestoration": true,
|
||||
"inspectorClosed": true
|
||||
}
|
||||
@@ -0,0 +1,468 @@
|
||||
{
|
||||
"additions": {
|
||||
"sessions": [],
|
||||
"records": [],
|
||||
"events": [],
|
||||
"outbox": []
|
||||
},
|
||||
"projects": [
|
||||
{
|
||||
"id": "ffb29b87-9b26-4bcc-9337-2ba535301c27",
|
||||
"position": 62,
|
||||
"actualSha256": "80533b97f5825641a0aaecc081b2f3e212c2189e3a2e3ccbf100225702a9b484",
|
||||
"originalSha256": "80533b97f5825641a0aaecc081b2f3e212c2189e3a2e3ccbf100225702a9b484",
|
||||
"normalizedSha256": "80533b97f5825641a0aaecc081b2f3e212c2189e3a2e3ccbf100225702a9b484"
|
||||
},
|
||||
{
|
||||
"id": "9333ee4d-3876-4e1a-beba-c355676a70f1",
|
||||
"position": 63,
|
||||
"actualSha256": "9ae415b45f25d820b22920bdea0d888f8bb63abfdb628ced6fdd11f46b3ad515",
|
||||
"originalSha256": "9ae415b45f25d820b22920bdea0d888f8bb63abfdb628ced6fdd11f46b3ad515",
|
||||
"normalizedSha256": "9ae415b45f25d820b22920bdea0d888f8bb63abfdb628ced6fdd11f46b3ad515"
|
||||
},
|
||||
{
|
||||
"id": "b4de81b1-fe73-48d8-a1c4-7f2aee02cf18",
|
||||
"position": 64,
|
||||
"actualSha256": "b8c895768f336d1f4362b8d8eac58aaaf72bc6d79e5809c9a17a2b5a1d175a7e",
|
||||
"originalSha256": "b8c895768f336d1f4362b8d8eac58aaaf72bc6d79e5809c9a17a2b5a1d175a7e",
|
||||
"normalizedSha256": "b8c895768f336d1f4362b8d8eac58aaaf72bc6d79e5809c9a17a2b5a1d175a7e"
|
||||
},
|
||||
{
|
||||
"id": "3423bff0-d418-4a6d-9cc7-66bd85875a51",
|
||||
"position": 61,
|
||||
"actualSha256": "deb21a2a8badeb8cb359ea862661e4cd294dd2436022bc0f6467a6a1bceff131",
|
||||
"originalSha256": "deb21a2a8badeb8cb359ea862661e4cd294dd2436022bc0f6467a6a1bceff131",
|
||||
"normalizedSha256": "deb21a2a8badeb8cb359ea862661e4cd294dd2436022bc0f6467a6a1bceff131"
|
||||
},
|
||||
{
|
||||
"id": "82850b57-b496-4f1c-912c-9c54d1858917",
|
||||
"position": 60,
|
||||
"actualSha256": "656ad1548ce05515ba65e7f5818df9fcb5cb99f1623b478797dc2e9a0f81bba9",
|
||||
"originalSha256": "656ad1548ce05515ba65e7f5818df9fcb5cb99f1623b478797dc2e9a0f81bba9",
|
||||
"normalizedSha256": "656ad1548ce05515ba65e7f5818df9fcb5cb99f1623b478797dc2e9a0f81bba9"
|
||||
},
|
||||
{
|
||||
"id": "d639fd99-3487-4f4b-b9eb-2d7c32ebb778",
|
||||
"position": 59,
|
||||
"actualSha256": "6a4022745de6c6f2c48ace8b52798f3b2634ae2bb5aea63cfe0bd75502b6b468",
|
||||
"originalSha256": "6a4022745de6c6f2c48ace8b52798f3b2634ae2bb5aea63cfe0bd75502b6b468",
|
||||
"normalizedSha256": "6a4022745de6c6f2c48ace8b52798f3b2634ae2bb5aea63cfe0bd75502b6b468"
|
||||
},
|
||||
{
|
||||
"id": "1d0b1d9a-7058-451c-810a-30186328d607",
|
||||
"position": 58,
|
||||
"actualSha256": "1b0b5c9c4efdbdad8325d6f2eb0573340994cbecd46d2ad60957a2cec5eeac09",
|
||||
"originalSha256": "1b0b5c9c4efdbdad8325d6f2eb0573340994cbecd46d2ad60957a2cec5eeac09",
|
||||
"normalizedSha256": "1b0b5c9c4efdbdad8325d6f2eb0573340994cbecd46d2ad60957a2cec5eeac09"
|
||||
},
|
||||
{
|
||||
"id": "8bc16212-0399-4769-8176-6d80a29503a1",
|
||||
"position": 57,
|
||||
"actualSha256": "7caf021846642b0a737d771c69fce6d91062d25fcbdca1e4cb47072b4fba22c5",
|
||||
"originalSha256": "7caf021846642b0a737d771c69fce6d91062d25fcbdca1e4cb47072b4fba22c5",
|
||||
"normalizedSha256": "7caf021846642b0a737d771c69fce6d91062d25fcbdca1e4cb47072b4fba22c5"
|
||||
},
|
||||
{
|
||||
"id": "084d0745-1cf4-4aff-8e5e-7e94fffd505f",
|
||||
"position": 56,
|
||||
"actualSha256": "30e3de4400049ed45320ccc17e21c7a050f300d7aaf07bc7432b700b7c9de2f1",
|
||||
"originalSha256": "30e3de4400049ed45320ccc17e21c7a050f300d7aaf07bc7432b700b7c9de2f1",
|
||||
"normalizedSha256": "30e3de4400049ed45320ccc17e21c7a050f300d7aaf07bc7432b700b7c9de2f1"
|
||||
},
|
||||
{
|
||||
"id": "99dba857-8050-4125-87e0-5eaf66a02ed6",
|
||||
"position": 55,
|
||||
"actualSha256": "968268c11ce71dffd3bbb878521af03622556d540a236c18fe091a6a129f4653",
|
||||
"originalSha256": "968268c11ce71dffd3bbb878521af03622556d540a236c18fe091a6a129f4653",
|
||||
"normalizedSha256": "968268c11ce71dffd3bbb878521af03622556d540a236c18fe091a6a129f4653"
|
||||
},
|
||||
{
|
||||
"id": "fb86f2ff-d14c-4d16-901e-5383a414dce5",
|
||||
"position": 54,
|
||||
"actualSha256": "08209631f528534546465ddf18f92513f151c51c405393d741ffdfc07a29ac3f",
|
||||
"originalSha256": "08209631f528534546465ddf18f92513f151c51c405393d741ffdfc07a29ac3f",
|
||||
"normalizedSha256": "08209631f528534546465ddf18f92513f151c51c405393d741ffdfc07a29ac3f"
|
||||
},
|
||||
{
|
||||
"id": "336f85d7-9c5b-4fbd-8a17-5115e1f93d9a",
|
||||
"position": 53,
|
||||
"actualSha256": "4d66f78a80ac2a99a1661261840e40add2a07670a3a2cddc9107eb4b9be19529",
|
||||
"originalSha256": "4d66f78a80ac2a99a1661261840e40add2a07670a3a2cddc9107eb4b9be19529",
|
||||
"normalizedSha256": "4d66f78a80ac2a99a1661261840e40add2a07670a3a2cddc9107eb4b9be19529"
|
||||
},
|
||||
{
|
||||
"id": "b515d897-b8ae-4ac6-9b8b-424894355734",
|
||||
"position": 52,
|
||||
"actualSha256": "0045052e96db2d11d4ee55297c930a3454fad982f66745b1e207dac5237d4c3f",
|
||||
"originalSha256": "0045052e96db2d11d4ee55297c930a3454fad982f66745b1e207dac5237d4c3f",
|
||||
"normalizedSha256": "0045052e96db2d11d4ee55297c930a3454fad982f66745b1e207dac5237d4c3f"
|
||||
},
|
||||
{
|
||||
"id": "778f8d02-0bdb-4d69-b052-56b087049019",
|
||||
"position": 51,
|
||||
"actualSha256": "81c40204ff66aabde650df3eb7b594af98aad0acc37762e267193bb420419759",
|
||||
"originalSha256": "81c40204ff66aabde650df3eb7b594af98aad0acc37762e267193bb420419759",
|
||||
"normalizedSha256": "81c40204ff66aabde650df3eb7b594af98aad0acc37762e267193bb420419759"
|
||||
},
|
||||
{
|
||||
"id": "3b9c5bba-8e81-4ad8-a75d-ce7e16c1a02b",
|
||||
"position": 50,
|
||||
"actualSha256": "67db5893ae9235b21ce86cf7693cd2ff31820f41252b50bc2ff52f465714b4ec",
|
||||
"originalSha256": "67db5893ae9235b21ce86cf7693cd2ff31820f41252b50bc2ff52f465714b4ec",
|
||||
"normalizedSha256": "67db5893ae9235b21ce86cf7693cd2ff31820f41252b50bc2ff52f465714b4ec"
|
||||
},
|
||||
{
|
||||
"id": "46d9ba13-b48c-43a2-a726-fc8ad47badb1",
|
||||
"position": 49,
|
||||
"actualSha256": "030f7b5a2f2136be6faf9668be0239d6fad8be3fba3af32fe49141073fd48c31",
|
||||
"originalSha256": "030f7b5a2f2136be6faf9668be0239d6fad8be3fba3af32fe49141073fd48c31",
|
||||
"normalizedSha256": "030f7b5a2f2136be6faf9668be0239d6fad8be3fba3af32fe49141073fd48c31"
|
||||
},
|
||||
{
|
||||
"id": "76621263-4156-4dac-afd9-8b8086ffc5e6",
|
||||
"position": 48,
|
||||
"actualSha256": "7f650df8d4bbde34ea3768c30dc8c931f26e3a40b845033dede3f7d560f2bca1",
|
||||
"originalSha256": "7f650df8d4bbde34ea3768c30dc8c931f26e3a40b845033dede3f7d560f2bca1",
|
||||
"normalizedSha256": "7f650df8d4bbde34ea3768c30dc8c931f26e3a40b845033dede3f7d560f2bca1"
|
||||
},
|
||||
{
|
||||
"id": "7bf8ec92-0fcb-4dc8-aeb0-fb7315e1d134",
|
||||
"position": 47,
|
||||
"actualSha256": "108d5d1598dfd209aebd56d9a9195314f929eacaaf4917ca9d28cdbf7ddea418",
|
||||
"originalSha256": "108d5d1598dfd209aebd56d9a9195314f929eacaaf4917ca9d28cdbf7ddea418",
|
||||
"normalizedSha256": "108d5d1598dfd209aebd56d9a9195314f929eacaaf4917ca9d28cdbf7ddea418"
|
||||
},
|
||||
{
|
||||
"id": "c813c623-0428-4d54-a26b-d53a0f5a3a99",
|
||||
"position": 46,
|
||||
"actualSha256": "ed9077da334ae92328e073da540569fc0cd6818ca63c7264eea0054da6865dfe",
|
||||
"originalSha256": "ed9077da334ae92328e073da540569fc0cd6818ca63c7264eea0054da6865dfe",
|
||||
"normalizedSha256": "ed9077da334ae92328e073da540569fc0cd6818ca63c7264eea0054da6865dfe"
|
||||
},
|
||||
{
|
||||
"id": "29177332-8a72-4dc7-ae7f-fea209dfd424",
|
||||
"position": 45,
|
||||
"actualSha256": "dcd94080260c064b7ccfba697f19ca63c0e6df2cba47e08fcb791f382519a7d3",
|
||||
"originalSha256": "dcd94080260c064b7ccfba697f19ca63c0e6df2cba47e08fcb791f382519a7d3",
|
||||
"normalizedSha256": "dcd94080260c064b7ccfba697f19ca63c0e6df2cba47e08fcb791f382519a7d3"
|
||||
},
|
||||
{
|
||||
"id": "8e080211-1196-4ae2-b732-39455a521037",
|
||||
"position": 44,
|
||||
"actualSha256": "39ea9f68887711c3c4bde41f6076de2f027caffc76f973d8025225ce5fcadd1f",
|
||||
"originalSha256": "39ea9f68887711c3c4bde41f6076de2f027caffc76f973d8025225ce5fcadd1f",
|
||||
"normalizedSha256": "39ea9f68887711c3c4bde41f6076de2f027caffc76f973d8025225ce5fcadd1f"
|
||||
},
|
||||
{
|
||||
"id": "7ad67bcb-d032-46a5-bfe5-f0edff311f10",
|
||||
"position": 43,
|
||||
"actualSha256": "94116368eecae11d228f54874b653fc7c180d0fbe8c4b8fbc56007a79435d29a",
|
||||
"originalSha256": "94116368eecae11d228f54874b653fc7c180d0fbe8c4b8fbc56007a79435d29a",
|
||||
"normalizedSha256": "94116368eecae11d228f54874b653fc7c180d0fbe8c4b8fbc56007a79435d29a"
|
||||
},
|
||||
{
|
||||
"id": "1e3fa098-72a8-4016-b6d4-8be9c2885c1a",
|
||||
"position": 42,
|
||||
"actualSha256": "fc8c6185899f96d6510b44948a13c726a9c78ab057f0e71b12cb07834a1b8acf",
|
||||
"originalSha256": "fc8c6185899f96d6510b44948a13c726a9c78ab057f0e71b12cb07834a1b8acf",
|
||||
"normalizedSha256": "fc8c6185899f96d6510b44948a13c726a9c78ab057f0e71b12cb07834a1b8acf"
|
||||
},
|
||||
{
|
||||
"id": "74223c13-fffc-4f06-8881-c76586918b0c",
|
||||
"position": 41,
|
||||
"actualSha256": "37cdf5572f768106283151c22323ff01ff3df4208b2353d56f838950da0ff915",
|
||||
"originalSha256": "37cdf5572f768106283151c22323ff01ff3df4208b2353d56f838950da0ff915",
|
||||
"normalizedSha256": "37cdf5572f768106283151c22323ff01ff3df4208b2353d56f838950da0ff915"
|
||||
},
|
||||
{
|
||||
"id": "fe412758-9860-406f-b647-6a4f2cf9d77c",
|
||||
"position": 40,
|
||||
"actualSha256": "377ac4725d2326cdd363e2dbaa6b3901f1c1f9787b059d38c681a6a252e0f958",
|
||||
"originalSha256": "377ac4725d2326cdd363e2dbaa6b3901f1c1f9787b059d38c681a6a252e0f958",
|
||||
"normalizedSha256": "377ac4725d2326cdd363e2dbaa6b3901f1c1f9787b059d38c681a6a252e0f958"
|
||||
},
|
||||
{
|
||||
"id": "9a536cdd-a554-4ae1-964b-3cc4940d2f4a",
|
||||
"position": 39,
|
||||
"actualSha256": "031766a0ef30fcd9871b38113015c9db613237646a4d578bc1d94a51787c4725",
|
||||
"originalSha256": "031766a0ef30fcd9871b38113015c9db613237646a4d578bc1d94a51787c4725",
|
||||
"normalizedSha256": "031766a0ef30fcd9871b38113015c9db613237646a4d578bc1d94a51787c4725"
|
||||
},
|
||||
{
|
||||
"id": "214e068d-eac9-4c96-ae6a-75ae286f2f58",
|
||||
"position": 38,
|
||||
"actualSha256": "0fa2e9d818ee694449f7d87d1a2a741e2d92d023d4bee82e53ab7d2094a53189",
|
||||
"originalSha256": "0fa2e9d818ee694449f7d87d1a2a741e2d92d023d4bee82e53ab7d2094a53189",
|
||||
"normalizedSha256": "0fa2e9d818ee694449f7d87d1a2a741e2d92d023d4bee82e53ab7d2094a53189"
|
||||
},
|
||||
{
|
||||
"id": "e94c1431-249f-4651-bb52-99bf56715fcb",
|
||||
"position": 37,
|
||||
"actualSha256": "f295013eb0139193ddcda5aa80e47c592a30e517fe015c3698bf0b369d7bf63e",
|
||||
"originalSha256": "f295013eb0139193ddcda5aa80e47c592a30e517fe015c3698bf0b369d7bf63e",
|
||||
"normalizedSha256": "f295013eb0139193ddcda5aa80e47c592a30e517fe015c3698bf0b369d7bf63e"
|
||||
},
|
||||
{
|
||||
"id": "991c8748-73c9-4735-9605-3367143ad3e0",
|
||||
"position": 36,
|
||||
"actualSha256": "5182e1fe769933022bebdf88f8d4c90e91b7b39e287f65957486c4cf7b51865d",
|
||||
"originalSha256": "5182e1fe769933022bebdf88f8d4c90e91b7b39e287f65957486c4cf7b51865d",
|
||||
"normalizedSha256": "5182e1fe769933022bebdf88f8d4c90e91b7b39e287f65957486c4cf7b51865d"
|
||||
},
|
||||
{
|
||||
"id": "6379e09d-b0ca-4fcd-8c0d-d448375045cd",
|
||||
"position": 35,
|
||||
"actualSha256": "dbf37388c2ef85f8b07e16c79ead69bcf30677acc3d2546b11819c9c3fc0aded",
|
||||
"originalSha256": "dbf37388c2ef85f8b07e16c79ead69bcf30677acc3d2546b11819c9c3fc0aded",
|
||||
"normalizedSha256": "dbf37388c2ef85f8b07e16c79ead69bcf30677acc3d2546b11819c9c3fc0aded"
|
||||
},
|
||||
{
|
||||
"id": "ef38cebd-47ee-4844-a2b6-d0d54375f21c",
|
||||
"position": 34,
|
||||
"actualSha256": "a7900f81e15c2aea4aa8e7eaa69333a09d26a3453b4adcf1e04914aec3f4dfbd",
|
||||
"originalSha256": "a7900f81e15c2aea4aa8e7eaa69333a09d26a3453b4adcf1e04914aec3f4dfbd",
|
||||
"normalizedSha256": "a7900f81e15c2aea4aa8e7eaa69333a09d26a3453b4adcf1e04914aec3f4dfbd"
|
||||
},
|
||||
{
|
||||
"id": "d3f49093-eb3f-4b02-93b1-a374f4f4f06a",
|
||||
"position": 33,
|
||||
"actualSha256": "45e23704c02f005f5bc933e451e2a54c70b7563bf8c75171fe6afdce31321b11",
|
||||
"originalSha256": "45e23704c02f005f5bc933e451e2a54c70b7563bf8c75171fe6afdce31321b11",
|
||||
"normalizedSha256": "45e23704c02f005f5bc933e451e2a54c70b7563bf8c75171fe6afdce31321b11"
|
||||
},
|
||||
{
|
||||
"id": "93734af1-52e2-44ed-a12a-3cbdb6b354a6",
|
||||
"position": 32,
|
||||
"actualSha256": "9b2d712e5cc524c40684d778e219c4cfd541dddca8ff4886ebe37a400aa1ab93",
|
||||
"originalSha256": "9b2d712e5cc524c40684d778e219c4cfd541dddca8ff4886ebe37a400aa1ab93",
|
||||
"normalizedSha256": "9b2d712e5cc524c40684d778e219c4cfd541dddca8ff4886ebe37a400aa1ab93"
|
||||
},
|
||||
{
|
||||
"id": "d601008d-9aab-4781-b710-8f27b9d82675",
|
||||
"position": 31,
|
||||
"actualSha256": "80be3d2be64a1dda0b04a237ce3e0cbf716b5d0e3e328b9c91d7adb81f8ed220",
|
||||
"originalSha256": "80be3d2be64a1dda0b04a237ce3e0cbf716b5d0e3e328b9c91d7adb81f8ed220",
|
||||
"normalizedSha256": "80be3d2be64a1dda0b04a237ce3e0cbf716b5d0e3e328b9c91d7adb81f8ed220"
|
||||
},
|
||||
{
|
||||
"id": "2d085c2b-32a4-4fdc-9b14-cc8ce28dd209",
|
||||
"position": 30,
|
||||
"actualSha256": "1469be4c8ccdd773f0144f8f4409a26c36dd4cdb100eb35e0209cdb5b8afd064",
|
||||
"originalSha256": "1469be4c8ccdd773f0144f8f4409a26c36dd4cdb100eb35e0209cdb5b8afd064",
|
||||
"normalizedSha256": "1469be4c8ccdd773f0144f8f4409a26c36dd4cdb100eb35e0209cdb5b8afd064"
|
||||
},
|
||||
{
|
||||
"id": "b56ba8bc-bb3b-4fd7-b9ae-6df7e956e913",
|
||||
"position": 29,
|
||||
"actualSha256": "f5d57e1c122cfbf3be1922061ab3f23bf36fe82ee8aad5ed60a23498d3e366bc",
|
||||
"originalSha256": "f5d57e1c122cfbf3be1922061ab3f23bf36fe82ee8aad5ed60a23498d3e366bc",
|
||||
"normalizedSha256": "f5d57e1c122cfbf3be1922061ab3f23bf36fe82ee8aad5ed60a23498d3e366bc"
|
||||
},
|
||||
{
|
||||
"id": "b06f5cfa-c8e7-410f-b5fd-e9c17b6c148e",
|
||||
"position": 28,
|
||||
"actualSha256": "916ef5664bc5d43f0b30094363d535619188f9f7dfa93326b282218f257cabf0",
|
||||
"originalSha256": "916ef5664bc5d43f0b30094363d535619188f9f7dfa93326b282218f257cabf0",
|
||||
"normalizedSha256": "916ef5664bc5d43f0b30094363d535619188f9f7dfa93326b282218f257cabf0"
|
||||
},
|
||||
{
|
||||
"id": "1ff62887-7619-43fc-8cba-7213300676e0",
|
||||
"position": 27,
|
||||
"actualSha256": "e954988f780cf8dff09b77b1feadbf9b61849e2225a8d23b5242b4cbf656937d",
|
||||
"originalSha256": "e954988f780cf8dff09b77b1feadbf9b61849e2225a8d23b5242b4cbf656937d",
|
||||
"normalizedSha256": "e954988f780cf8dff09b77b1feadbf9b61849e2225a8d23b5242b4cbf656937d"
|
||||
},
|
||||
{
|
||||
"id": "0c957adc-64a3-4f81-93e0-605fd33910c6",
|
||||
"position": 26,
|
||||
"actualSha256": "6bda5c9ff9ea06da67f2f158ef61cfe3f0c327c3d3d226cf4ad3c7dd2343c9f4",
|
||||
"originalSha256": "6bda5c9ff9ea06da67f2f158ef61cfe3f0c327c3d3d226cf4ad3c7dd2343c9f4",
|
||||
"normalizedSha256": "6bda5c9ff9ea06da67f2f158ef61cfe3f0c327c3d3d226cf4ad3c7dd2343c9f4"
|
||||
},
|
||||
{
|
||||
"id": "f7b14fd1-9a4a-40a3-aaa5-eac0b0e2e49b",
|
||||
"position": 25,
|
||||
"actualSha256": "170ee4d09e41a700bbdcb474b8f62cd43aee8837b3f2336de2dc62273c304f45",
|
||||
"originalSha256": "170ee4d09e41a700bbdcb474b8f62cd43aee8837b3f2336de2dc62273c304f45",
|
||||
"normalizedSha256": "170ee4d09e41a700bbdcb474b8f62cd43aee8837b3f2336de2dc62273c304f45"
|
||||
},
|
||||
{
|
||||
"id": "538a5384-95c5-40ce-9dd4-ce8307c49669",
|
||||
"position": 24,
|
||||
"actualSha256": "42c6acd4412e2778ff40b6655f16d008f2701968817ae7383f07ac5ac017039e",
|
||||
"originalSha256": "42c6acd4412e2778ff40b6655f16d008f2701968817ae7383f07ac5ac017039e",
|
||||
"normalizedSha256": "42c6acd4412e2778ff40b6655f16d008f2701968817ae7383f07ac5ac017039e"
|
||||
},
|
||||
{
|
||||
"id": "e74795a0-e631-458d-8f0c-511d0f047a31",
|
||||
"position": 23,
|
||||
"actualSha256": "2218f25495752c5d09c820484cbdfc1245f7c4c67553cebfe2dcf7ca403ef16f",
|
||||
"originalSha256": "2218f25495752c5d09c820484cbdfc1245f7c4c67553cebfe2dcf7ca403ef16f",
|
||||
"normalizedSha256": "2218f25495752c5d09c820484cbdfc1245f7c4c67553cebfe2dcf7ca403ef16f"
|
||||
},
|
||||
{
|
||||
"id": "dd427748-af86-4852-beca-375a1ea60f5a",
|
||||
"position": 22,
|
||||
"actualSha256": "70dde72f26c2f03efd6b75bbee03bcc793a475040e5b134a211eec3fa58274cc",
|
||||
"originalSha256": "70dde72f26c2f03efd6b75bbee03bcc793a475040e5b134a211eec3fa58274cc",
|
||||
"normalizedSha256": "70dde72f26c2f03efd6b75bbee03bcc793a475040e5b134a211eec3fa58274cc"
|
||||
},
|
||||
{
|
||||
"id": "d39735be-3dfe-4bb3-8953-a6e48f2411d0",
|
||||
"position": 21,
|
||||
"actualSha256": "9c7ef3b75e6284b86e1308b32eeee1ddfd8ed783e896080d306168267ad2d5f8",
|
||||
"originalSha256": "9c7ef3b75e6284b86e1308b32eeee1ddfd8ed783e896080d306168267ad2d5f8",
|
||||
"normalizedSha256": "9c7ef3b75e6284b86e1308b32eeee1ddfd8ed783e896080d306168267ad2d5f8"
|
||||
},
|
||||
{
|
||||
"id": "d5325b98-c89b-4495-a2f3-21be76e72b12",
|
||||
"position": 20,
|
||||
"actualSha256": "daaf5feddf869be97022c10b938a12575e8401575a59b6b0c5dfc6f0159dcd53",
|
||||
"originalSha256": "daaf5feddf869be97022c10b938a12575e8401575a59b6b0c5dfc6f0159dcd53",
|
||||
"normalizedSha256": "daaf5feddf869be97022c10b938a12575e8401575a59b6b0c5dfc6f0159dcd53"
|
||||
},
|
||||
{
|
||||
"id": "9c091fd2-299d-484d-b33e-1ba049b36d9c",
|
||||
"position": 19,
|
||||
"actualSha256": "7244a2906861441730ac1ed8fc1d1913618941e53e34463e23edc70c72f54cae",
|
||||
"originalSha256": "7244a2906861441730ac1ed8fc1d1913618941e53e34463e23edc70c72f54cae",
|
||||
"normalizedSha256": "7244a2906861441730ac1ed8fc1d1913618941e53e34463e23edc70c72f54cae"
|
||||
},
|
||||
{
|
||||
"id": "3fe452c6-89bb-45db-bef8-d58b85988081",
|
||||
"position": 18,
|
||||
"actualSha256": "e2e0d0d1e25d68f7a9718aa329f6c8348c569fa2368ead65fe83c889fb607df2",
|
||||
"originalSha256": "e2e0d0d1e25d68f7a9718aa329f6c8348c569fa2368ead65fe83c889fb607df2",
|
||||
"normalizedSha256": "e2e0d0d1e25d68f7a9718aa329f6c8348c569fa2368ead65fe83c889fb607df2"
|
||||
},
|
||||
{
|
||||
"id": "d74ba0cd-43dd-4883-ad9d-890a04cabbf3",
|
||||
"position": 17,
|
||||
"actualSha256": "ecd888c063c58937afa19b3bf38e6d3b1fbaa5bf7e1a1baa81911059503c4a6f",
|
||||
"originalSha256": "ecd888c063c58937afa19b3bf38e6d3b1fbaa5bf7e1a1baa81911059503c4a6f",
|
||||
"normalizedSha256": "ecd888c063c58937afa19b3bf38e6d3b1fbaa5bf7e1a1baa81911059503c4a6f"
|
||||
},
|
||||
{
|
||||
"id": "49285cf4-4fdb-4611-9cf3-52436e2e0362",
|
||||
"position": 16,
|
||||
"actualSha256": "d9e278a996319556745a68cf9f1fbf005b86e2155c81a0396d0b7e731b600d5f",
|
||||
"originalSha256": "d9e278a996319556745a68cf9f1fbf005b86e2155c81a0396d0b7e731b600d5f",
|
||||
"normalizedSha256": "d9e278a996319556745a68cf9f1fbf005b86e2155c81a0396d0b7e731b600d5f"
|
||||
},
|
||||
{
|
||||
"id": "181fe5dd-244a-45fe-868a-5dc4a5ba71c5",
|
||||
"position": 15,
|
||||
"actualSha256": "df110cf765648cda9544d93f1f59b67fe22e0c15815e7ca49b248d902e25ddb7",
|
||||
"originalSha256": "df110cf765648cda9544d93f1f59b67fe22e0c15815e7ca49b248d902e25ddb7",
|
||||
"normalizedSha256": "df110cf765648cda9544d93f1f59b67fe22e0c15815e7ca49b248d902e25ddb7"
|
||||
},
|
||||
{
|
||||
"id": "c1e4f224-75d7-49bc-a299-282315dfe743",
|
||||
"position": 14,
|
||||
"actualSha256": "c41783a6f1c8a44901e835e0b528b75a889581d5251e8c5b2a40cf00ed8b8188",
|
||||
"originalSha256": "c41783a6f1c8a44901e835e0b528b75a889581d5251e8c5b2a40cf00ed8b8188",
|
||||
"normalizedSha256": "c41783a6f1c8a44901e835e0b528b75a889581d5251e8c5b2a40cf00ed8b8188"
|
||||
},
|
||||
{
|
||||
"id": "f71f2704-1e48-4404-90b9-06f6eaa5214e",
|
||||
"position": 13,
|
||||
"actualSha256": "11fac524655df32cb742e911b91bac79bc928601f1b530fb8970d251a0ef77f1",
|
||||
"originalSha256": "11fac524655df32cb742e911b91bac79bc928601f1b530fb8970d251a0ef77f1",
|
||||
"normalizedSha256": "11fac524655df32cb742e911b91bac79bc928601f1b530fb8970d251a0ef77f1"
|
||||
},
|
||||
{
|
||||
"id": "d178e70a-1255-491f-b791-e83d60923263",
|
||||
"position": 12,
|
||||
"actualSha256": "15ffbc46077fb674e3be937788d3f214c5a5318d268ac2fa28252fddc3313314",
|
||||
"originalSha256": "15ffbc46077fb674e3be937788d3f214c5a5318d268ac2fa28252fddc3313314",
|
||||
"normalizedSha256": "15ffbc46077fb674e3be937788d3f214c5a5318d268ac2fa28252fddc3313314"
|
||||
},
|
||||
{
|
||||
"id": "0f220ead-eb05-4983-b018-1b988dca7e8d",
|
||||
"position": 11,
|
||||
"actualSha256": "1d72ca230ebe7628f533b10a2f1e4eed30718ed30b5ba45efee92e643658c34c",
|
||||
"originalSha256": "1d72ca230ebe7628f533b10a2f1e4eed30718ed30b5ba45efee92e643658c34c",
|
||||
"normalizedSha256": "1d72ca230ebe7628f533b10a2f1e4eed30718ed30b5ba45efee92e643658c34c"
|
||||
},
|
||||
{
|
||||
"id": "f2a2b315-ef15-47d5-8cc5-b7ab55421d7e",
|
||||
"position": 10,
|
||||
"actualSha256": "6e515cda553be408447c5fcdeca1c52d08b065240b8c893aa6686dc74a9bef1e",
|
||||
"originalSha256": "6e515cda553be408447c5fcdeca1c52d08b065240b8c893aa6686dc74a9bef1e",
|
||||
"normalizedSha256": "6e515cda553be408447c5fcdeca1c52d08b065240b8c893aa6686dc74a9bef1e"
|
||||
},
|
||||
{
|
||||
"id": "cff9670c-f188-4187-833e-e552b2725b8c",
|
||||
"position": 9,
|
||||
"actualSha256": "7d12b87c954890e422da876f5a416c22c7c7e6a96839bdd14717868fc66db344",
|
||||
"originalSha256": "7d12b87c954890e422da876f5a416c22c7c7e6a96839bdd14717868fc66db344",
|
||||
"normalizedSha256": "7d12b87c954890e422da876f5a416c22c7c7e6a96839bdd14717868fc66db344"
|
||||
},
|
||||
{
|
||||
"id": "e1738d67-2f4e-4325-ba89-ccaee0fcc5e8",
|
||||
"position": 8,
|
||||
"actualSha256": "629d119173d7c3ac389f179392f5f5f205981fed815da15ca53fd8c5e94a30dd",
|
||||
"originalSha256": "629d119173d7c3ac389f179392f5f5f205981fed815da15ca53fd8c5e94a30dd",
|
||||
"normalizedSha256": "629d119173d7c3ac389f179392f5f5f205981fed815da15ca53fd8c5e94a30dd"
|
||||
},
|
||||
{
|
||||
"id": "016a70ef-4279-4d21-8a64-8d42c2d96d31",
|
||||
"position": 7,
|
||||
"actualSha256": "8421daa119f86f0c40da849ff080248a4897c93fc92828b3550df3a414e4e4ee",
|
||||
"originalSha256": "8421daa119f86f0c40da849ff080248a4897c93fc92828b3550df3a414e4e4ee",
|
||||
"normalizedSha256": "8421daa119f86f0c40da849ff080248a4897c93fc92828b3550df3a414e4e4ee"
|
||||
},
|
||||
{
|
||||
"id": "ed15f9c9-3547-4194-932b-923aee0f5874",
|
||||
"position": 6,
|
||||
"actualSha256": "2abce4572d6cbe45ad1b71e7f7fa11f06452121c23a353991ccd02b7200dcd16",
|
||||
"originalSha256": "2abce4572d6cbe45ad1b71e7f7fa11f06452121c23a353991ccd02b7200dcd16",
|
||||
"normalizedSha256": "2abce4572d6cbe45ad1b71e7f7fa11f06452121c23a353991ccd02b7200dcd16"
|
||||
},
|
||||
{
|
||||
"id": "3f4d91e0-e9d4-4338-bece-b3211507888c",
|
||||
"position": 5,
|
||||
"actualSha256": "f78094b60f77e592686dabd02eedbbc8bb37ba4ec7cfa19354bfcf4db3784a08",
|
||||
"originalSha256": "f78094b60f77e592686dabd02eedbbc8bb37ba4ec7cfa19354bfcf4db3784a08",
|
||||
"normalizedSha256": "f78094b60f77e592686dabd02eedbbc8bb37ba4ec7cfa19354bfcf4db3784a08"
|
||||
},
|
||||
{
|
||||
"id": "2732b99f-fc5b-47dc-8b07-0b8993b8761c",
|
||||
"position": 4,
|
||||
"actualSha256": "93f1f5265e786bccc9489e6f4c559c37eb9712288778b905842d16895ede5258",
|
||||
"originalSha256": "93f1f5265e786bccc9489e6f4c559c37eb9712288778b905842d16895ede5258",
|
||||
"normalizedSha256": "93f1f5265e786bccc9489e6f4c559c37eb9712288778b905842d16895ede5258"
|
||||
},
|
||||
{
|
||||
"id": "5ca4d319-8ff7-4d8c-a49f-94641a16b777",
|
||||
"position": 3,
|
||||
"actualSha256": "7b61a00786b804d9af885c119756deaf3dc39576549c652c574ef5c335297078",
|
||||
"originalSha256": "7b61a00786b804d9af885c119756deaf3dc39576549c652c574ef5c335297078",
|
||||
"normalizedSha256": "7b61a00786b804d9af885c119756deaf3dc39576549c652c574ef5c335297078"
|
||||
},
|
||||
{
|
||||
"id": "45aa4368-bd4f-4a43-8785-3853fe0c9eb1",
|
||||
"position": 2,
|
||||
"actualSha256": "03fdfb3da63de88438341d74c279e81477de11e6a0d0cd3659838cd48ee47b5c",
|
||||
"originalSha256": "03fdfb3da63de88438341d74c279e81477de11e6a0d0cd3659838cd48ee47b5c",
|
||||
"normalizedSha256": "03fdfb3da63de88438341d74c279e81477de11e6a0d0cd3659838cd48ee47b5c"
|
||||
},
|
||||
{
|
||||
"id": "a7c44ef8-d487-426c-8228-8dce9dcc7665",
|
||||
"position": 1,
|
||||
"actualSha256": "97879f97d6d182d2ed024be3fa297b14d4261842e734391577d36bbaad22bdd8",
|
||||
"originalSha256": "97879f97d6d182d2ed024be3fa297b14d4261842e734391577d36bbaad22bdd8",
|
||||
"normalizedSha256": "97879f97d6d182d2ed024be3fa297b14d4261842e734391577d36bbaad22bdd8"
|
||||
},
|
||||
{
|
||||
"id": "5e353edf-99cb-4fbd-aade-9d2c69caa7e9",
|
||||
"position": 0,
|
||||
"actualSha256": "cad36007b093cc1ed96a4fa0eeac5f7a15daeac3184db9c07df2d8bcbb562e52",
|
||||
"originalSha256": "cad36007b093cc1ed96a4fa0eeac5f7a15daeac3184db9c07df2d8bcbb562e52",
|
||||
"normalizedSha256": "cad36007b093cc1ed96a4fa0eeac5f7a15daeac3184db9c07df2d8bcbb562e52"
|
||||
}
|
||||
],
|
||||
"projectInsertionOffset": 0,
|
||||
"sequence": 13484,
|
||||
"scope": "Only IDs, owner fields and full-row hashes of additions; original project payloads are not exported. No key or user content returned."
|
||||
}
|
||||
@@ -0,0 +1,60 @@
|
||||
{
|
||||
"passed": true,
|
||||
"pid": 36552,
|
||||
"version": "1.24.8",
|
||||
"runtimeRoot": "C:\\Users\\wangy\\AppData\\Local\\Programs\\AgentWorkbench\\versions\\Agent-Workbench-1.24.8-win-x64-20261103235313371",
|
||||
"originalProjects": 65,
|
||||
"originalSessions": 81,
|
||||
"originalArtifacts": 3720,
|
||||
"originalAttempts": 225,
|
||||
"finalProjects": 65,
|
||||
"finalSessions": 81,
|
||||
"finalArtifacts": 3720,
|
||||
"finalCounts": {
|
||||
"events": 13484,
|
||||
"metadata": 7,
|
||||
"outbox": 13484,
|
||||
"projects": 65,
|
||||
"records": 6377,
|
||||
"sessions": 81,
|
||||
"sqlite_sequence": 1
|
||||
},
|
||||
"ownedProjects": [],
|
||||
"ownedSessions": [],
|
||||
"addedAttempts": 0,
|
||||
"originalRowsExportsAndArtifactsExact": true,
|
||||
"originalRawProjectRowsExceptOwnedInsertionOffsetExact": true,
|
||||
"ownedProjectInsertionOffset": 0,
|
||||
"allAppendedRowsBelongToOwnedSamples": true,
|
||||
"originalPublicProjectsExact": true,
|
||||
"originalAttemptsExact": true,
|
||||
"originalBudgetsSelectionAndPoolRestored": true,
|
||||
"connectionRevision": [
|
||||
9,
|
||||
9
|
||||
],
|
||||
"credentialRevision": 1,
|
||||
"observedHealthAndStatusExcludedFromConfigurationEquality": true,
|
||||
"legacyDisplayRevisionFollowsGlobalConfigurationRevision": [
|
||||
73,
|
||||
73
|
||||
],
|
||||
"diagnosticHistoryOnlyDeclaredAppend": true,
|
||||
"diagnosticJobIds": [
|
||||
"bfa3c359-5235-4f1e-979b-9540828238ae",
|
||||
"486ed76c-9dca-4016-9b58-7ea4962c2c2b",
|
||||
"0c78eca9-c3cc-436b-ad98-fe2bc714aa7f"
|
||||
],
|
||||
"inspectorClosed": true,
|
||||
"modelRequests": 0,
|
||||
"reportedTokens": 0,
|
||||
"unknownRequests": 0,
|
||||
"estimatedUnknownTokens": 0,
|
||||
"nodeDelivered": false,
|
||||
"preflightPassed": false,
|
||||
"exactSinceLastRestoration": true,
|
||||
"previousDriversUnchanged": true,
|
||||
"purgeBenefitTested": false,
|
||||
"keyReadOrResaved": false,
|
||||
"productSourceChanged": false
|
||||
}
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -0,0 +1,13 @@
|
||||
{
|
||||
"connectionId": "5b4daed9-b2f7-4de0-b949-573eba70c7b3",
|
||||
"revision": 9,
|
||||
"target": "https://jojocode.com/v1",
|
||||
"maxJobs": 1,
|
||||
"budgetMs": 12000,
|
||||
"credentialAccess": false,
|
||||
"httpRequests": 0,
|
||||
"modelRequests": 0,
|
||||
"directEndpointOnly": true,
|
||||
"modelApiRouteVerified": false,
|
||||
"defaultOrTransportChanges": false
|
||||
}
|
||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1,386 @@
|
||||
{
|
||||
"jobs": [
|
||||
{
|
||||
"schemaVersion": 1,
|
||||
"id": "0c78eca9-c3cc-436b-ad98-fe2bc714aa7f",
|
||||
"connectionId": "5b4daed9-b2f7-4de0-b949-573eba70c7b3",
|
||||
"connectionRevision": 9,
|
||||
"connectionName": "jojocode",
|
||||
"status": "partial",
|
||||
"startedAt": "2026-11-04T00:54:36.447Z",
|
||||
"finishedAt": "2026-11-04T00:54:46.542Z",
|
||||
"target": {
|
||||
"endpoint": "https://jojocode.com/v1",
|
||||
"origin": "https://jojocode.com",
|
||||
"host": "jojocode.com",
|
||||
"port": 443,
|
||||
"scheme": "https:"
|
||||
},
|
||||
"transport": {
|
||||
"schemaVersion": 1,
|
||||
"implementation": "undici-7.30.1",
|
||||
"autoSelectFamily": true,
|
||||
"familyAttemptTimeoutMs": 250,
|
||||
"connectTimeoutMs": 10000,
|
||||
"httpProxyConfigured": false,
|
||||
"httpsProxyConfigured": false,
|
||||
"noProxyConfigured": false
|
||||
},
|
||||
"route": {
|
||||
"kind": "direct-endpoint-only",
|
||||
"proxyConfigured": false,
|
||||
"noProxyConfigured": false,
|
||||
"customTransport": false,
|
||||
"modelApiRouteVerified": false
|
||||
},
|
||||
"budgetMs": 12000,
|
||||
"stages": {
|
||||
"dns": {
|
||||
"status": "passed",
|
||||
"startedAt": "2026-11-04T00:54:36.450Z",
|
||||
"elapsedMs": 78,
|
||||
"addresses": [
|
||||
{
|
||||
"address": "2606:4700:3030::6815:2f68",
|
||||
"family": 6
|
||||
},
|
||||
{
|
||||
"address": "2606:4700:3035::ac43:928c",
|
||||
"family": 6
|
||||
},
|
||||
{
|
||||
"address": "104.21.47.104",
|
||||
"family": 4
|
||||
},
|
||||
{
|
||||
"address": "172.67.146.140",
|
||||
"family": 4
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"trials": [
|
||||
{
|
||||
"mode": "auto",
|
||||
"status": "passed",
|
||||
"stage": "tls",
|
||||
"attempts": [
|
||||
{
|
||||
"address": "104.21.47.104",
|
||||
"port": 443,
|
||||
"family": 4
|
||||
},
|
||||
{
|
||||
"address": "2606:4700:3035::ac43:928c",
|
||||
"port": 443,
|
||||
"family": 6
|
||||
},
|
||||
{
|
||||
"address": "172.67.146.140",
|
||||
"port": 443,
|
||||
"family": 4
|
||||
}
|
||||
],
|
||||
"tcpMs": 1092,
|
||||
"address": "172.67.146.140",
|
||||
"family": "IPv4",
|
||||
"certificateAuthorized": true,
|
||||
"tlsProtocol": "TLSv1.3",
|
||||
"certificateFingerprint256": "6A:8C:B7:ED:21:64:5F:38:90:5B:3B:CF:AA:6D:C6:76:A6:82:92:3F:35:4D:49:15:17:A4:74:46:4C:7F:93:33",
|
||||
"tlsMs": 8364,
|
||||
"elapsedMs": 9456
|
||||
},
|
||||
{
|
||||
"mode": "ipv4",
|
||||
"status": "failed",
|
||||
"stage": "tls",
|
||||
"attempts": [
|
||||
{
|
||||
"address": "172.67.146.140",
|
||||
"port": 443,
|
||||
"family": 4
|
||||
}
|
||||
],
|
||||
"tcpMs": 599,
|
||||
"address": "172.67.146.140",
|
||||
"family": "IPv4",
|
||||
"tlsMs": 9407,
|
||||
"elapsedMs": 10006,
|
||||
"code": "TLS_HANDSHAKE_TIMEOUT"
|
||||
},
|
||||
{
|
||||
"mode": "ipv6",
|
||||
"status": "passed",
|
||||
"stage": "tls",
|
||||
"attempts": [],
|
||||
"tcpMs": 260,
|
||||
"address": "2606:4700:3030::6815:2f68",
|
||||
"family": "IPv6",
|
||||
"certificateAuthorized": true,
|
||||
"tlsProtocol": "TLSv1.3",
|
||||
"certificateFingerprint256": "6A:8C:B7:ED:21:64:5F:38:90:5B:3B:CF:AA:6D:C6:76:A6:82:92:3F:35:4D:49:15:17:A4:74:46:4C:7F:93:33",
|
||||
"tlsMs": 376,
|
||||
"elapsedMs": 636
|
||||
}
|
||||
],
|
||||
"elapsedMs": 10092,
|
||||
"httpRequests": 0,
|
||||
"modelRequests": 0,
|
||||
"credentialAccess": false,
|
||||
"stale": false,
|
||||
"currentConnectionRevision": 9
|
||||
},
|
||||
{
|
||||
"schemaVersion": 1,
|
||||
"id": "486ed76c-9dca-4016-9b58-7ea4962c2c2b",
|
||||
"connectionId": "5b4daed9-b2f7-4de0-b949-573eba70c7b3",
|
||||
"connectionRevision": 7,
|
||||
"connectionName": "jojocode",
|
||||
"status": "passed",
|
||||
"startedAt": "2026-11-03T22:53:32.291Z",
|
||||
"finishedAt": "2026-11-03T22:53:32.756Z",
|
||||
"target": {
|
||||
"endpoint": "https://jojocode.com/v1",
|
||||
"origin": "https://jojocode.com",
|
||||
"host": "jojocode.com",
|
||||
"port": 443,
|
||||
"scheme": "https:"
|
||||
},
|
||||
"transport": {
|
||||
"schemaVersion": 1,
|
||||
"implementation": "undici-7.30.1",
|
||||
"autoSelectFamily": true,
|
||||
"familyAttemptTimeoutMs": 250,
|
||||
"connectTimeoutMs": 10000,
|
||||
"httpProxyConfigured": false,
|
||||
"httpsProxyConfigured": false,
|
||||
"noProxyConfigured": false
|
||||
},
|
||||
"route": {
|
||||
"kind": "direct-endpoint-only",
|
||||
"proxyConfigured": false,
|
||||
"noProxyConfigured": false,
|
||||
"customTransport": false,
|
||||
"modelApiRouteVerified": false
|
||||
},
|
||||
"budgetMs": 12000,
|
||||
"stages": {
|
||||
"dns": {
|
||||
"status": "passed",
|
||||
"startedAt": "2026-11-03T22:53:32.295Z",
|
||||
"elapsedMs": 20,
|
||||
"addresses": [
|
||||
{
|
||||
"address": "2606:4700:3030::6815:2f68",
|
||||
"family": 6
|
||||
},
|
||||
{
|
||||
"address": "2606:4700:3035::ac43:928c",
|
||||
"family": 6
|
||||
},
|
||||
{
|
||||
"address": "104.21.47.104",
|
||||
"family": 4
|
||||
},
|
||||
{
|
||||
"address": "172.67.146.140",
|
||||
"family": 4
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"trials": [
|
||||
{
|
||||
"mode": "auto",
|
||||
"status": "passed",
|
||||
"stage": "tls",
|
||||
"attempts": [],
|
||||
"tcpMs": 209,
|
||||
"address": "2606:4700:3030::6815:2f68",
|
||||
"family": "IPv6",
|
||||
"certificateAuthorized": true,
|
||||
"tlsProtocol": "TLSv1.3",
|
||||
"certificateFingerprint256": "6A:8C:B7:ED:21:64:5F:38:90:5B:3B:CF:AA:6D:C6:76:A6:82:92:3F:35:4D:49:15:17:A4:74:46:4C:7F:93:33",
|
||||
"tlsMs": 225,
|
||||
"elapsedMs": 435
|
||||
},
|
||||
{
|
||||
"mode": "ipv4",
|
||||
"status": "passed",
|
||||
"stage": "tls",
|
||||
"attempts": [],
|
||||
"tcpMs": 215,
|
||||
"address": "104.21.47.104",
|
||||
"family": "IPv4",
|
||||
"certificateAuthorized": true,
|
||||
"tlsProtocol": "TLSv1.3",
|
||||
"certificateFingerprint256": "6A:8C:B7:ED:21:64:5F:38:90:5B:3B:CF:AA:6D:C6:76:A6:82:92:3F:35:4D:49:15:17:A4:74:46:4C:7F:93:33",
|
||||
"tlsMs": 223,
|
||||
"elapsedMs": 438
|
||||
},
|
||||
{
|
||||
"mode": "ipv6",
|
||||
"status": "passed",
|
||||
"stage": "tls",
|
||||
"attempts": [],
|
||||
"tcpMs": 202,
|
||||
"address": "2606:4700:3030::6815:2f68",
|
||||
"family": "IPv6",
|
||||
"certificateAuthorized": true,
|
||||
"tlsProtocol": "TLSv1.3",
|
||||
"certificateFingerprint256": "6A:8C:B7:ED:21:64:5F:38:90:5B:3B:CF:AA:6D:C6:76:A6:82:92:3F:35:4D:49:15:17:A4:74:46:4C:7F:93:33",
|
||||
"tlsMs": 223,
|
||||
"elapsedMs": 426
|
||||
}
|
||||
],
|
||||
"elapsedMs": 462,
|
||||
"httpRequests": 0,
|
||||
"modelRequests": 0,
|
||||
"credentialAccess": false,
|
||||
"stale": true,
|
||||
"currentConnectionRevision": 9
|
||||
},
|
||||
{
|
||||
"schemaVersion": 1,
|
||||
"id": "bfa3c359-5235-4f1e-979b-9540828238ae",
|
||||
"connectionId": "5b4daed9-b2f7-4de0-b949-573eba70c7b3",
|
||||
"connectionRevision": 5,
|
||||
"connectionName": "jojocode",
|
||||
"status": "passed",
|
||||
"startedAt": "2026-11-03T16:01:08.504Z",
|
||||
"finishedAt": "2026-11-03T16:01:10.086Z",
|
||||
"target": {
|
||||
"endpoint": "https://jojocode.com/v1",
|
||||
"origin": "https://jojocode.com",
|
||||
"host": "jojocode.com",
|
||||
"port": 443,
|
||||
"scheme": "https:"
|
||||
},
|
||||
"transport": {
|
||||
"schemaVersion": 1,
|
||||
"implementation": "undici-7.30.1",
|
||||
"autoSelectFamily": true,
|
||||
"familyAttemptTimeoutMs": 250,
|
||||
"connectTimeoutMs": 10000,
|
||||
"httpProxyConfigured": false,
|
||||
"httpsProxyConfigured": false,
|
||||
"noProxyConfigured": false
|
||||
},
|
||||
"route": {
|
||||
"kind": "direct-endpoint-only",
|
||||
"proxyConfigured": false,
|
||||
"noProxyConfigured": false,
|
||||
"customTransport": false,
|
||||
"modelApiRouteVerified": false
|
||||
},
|
||||
"budgetMs": 12000,
|
||||
"stages": {
|
||||
"dns": {
|
||||
"status": "passed",
|
||||
"startedAt": "2026-11-03T16:01:08.508Z",
|
||||
"elapsedMs": 72,
|
||||
"addresses": [
|
||||
{
|
||||
"address": "2606:4700:3035::ac43:928c",
|
||||
"family": 6
|
||||
},
|
||||
{
|
||||
"address": "2606:4700:3030::6815:2f68",
|
||||
"family": 6
|
||||
},
|
||||
{
|
||||
"address": "172.67.146.140",
|
||||
"family": 4
|
||||
},
|
||||
{
|
||||
"address": "104.21.47.104",
|
||||
"family": 4
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"trials": [
|
||||
{
|
||||
"mode": "auto",
|
||||
"status": "passed",
|
||||
"stage": "tls",
|
||||
"attempts": [
|
||||
{
|
||||
"address": "172.67.146.140",
|
||||
"port": 443,
|
||||
"family": 4
|
||||
},
|
||||
{
|
||||
"address": "2606:4700:3030::6815:2f68",
|
||||
"port": 443,
|
||||
"family": 6
|
||||
},
|
||||
{
|
||||
"address": "104.21.47.104",
|
||||
"port": 443,
|
||||
"family": 4
|
||||
}
|
||||
],
|
||||
"tcpMs": 1145,
|
||||
"address": "104.21.47.104",
|
||||
"family": "IPv4",
|
||||
"certificateAuthorized": true,
|
||||
"tlsProtocol": "TLSv1.3",
|
||||
"certificateFingerprint256": "6A:8C:B7:ED:21:64:5F:38:90:5B:3B:CF:AA:6D:C6:76:A6:82:92:3F:35:4D:49:15:17:A4:74:46:4C:7F:93:33",
|
||||
"tlsMs": 357,
|
||||
"elapsedMs": 1501
|
||||
},
|
||||
{
|
||||
"mode": "ipv4",
|
||||
"status": "passed",
|
||||
"stage": "tls",
|
||||
"attempts": [
|
||||
{
|
||||
"address": "104.21.47.104",
|
||||
"port": 443,
|
||||
"family": 4
|
||||
}
|
||||
],
|
||||
"tcpMs": 555,
|
||||
"address": "104.21.47.104",
|
||||
"family": "IPv4",
|
||||
"certificateAuthorized": true,
|
||||
"tlsProtocol": "TLSv1.3",
|
||||
"certificateFingerprint256": "6A:8C:B7:ED:21:64:5F:38:90:5B:3B:CF:AA:6D:C6:76:A6:82:92:3F:35:4D:49:15:17:A4:74:46:4C:7F:93:33",
|
||||
"tlsMs": 306,
|
||||
"elapsedMs": 861
|
||||
},
|
||||
{
|
||||
"mode": "ipv6",
|
||||
"status": "passed",
|
||||
"stage": "tls",
|
||||
"attempts": [
|
||||
{
|
||||
"address": "2606:4700:3030::6815:2f68",
|
||||
"port": 443,
|
||||
"family": 6
|
||||
}
|
||||
],
|
||||
"tcpMs": 506,
|
||||
"address": "2606:4700:3030::6815:2f68",
|
||||
"family": "IPv6",
|
||||
"certificateAuthorized": true,
|
||||
"tlsProtocol": "TLSv1.3",
|
||||
"certificateFingerprint256": "6A:8C:B7:ED:21:64:5F:38:90:5B:3B:CF:AA:6D:C6:76:A6:82:92:3F:35:4D:49:15:17:A4:74:46:4C:7F:93:33",
|
||||
"tlsMs": 264,
|
||||
"elapsedMs": 770
|
||||
}
|
||||
],
|
||||
"elapsedMs": 1579,
|
||||
"httpRequests": 0,
|
||||
"modelRequests": 0,
|
||||
"credentialAccess": false,
|
||||
"stale": true,
|
||||
"currentConnectionRevision": 9
|
||||
}
|
||||
],
|
||||
"active": 0,
|
||||
"retained": 30,
|
||||
"httpRequests": 0,
|
||||
"modelRequests": 0
|
||||
}
|
||||
@@ -0,0 +1,256 @@
|
||||
{
|
||||
"jobs": [
|
||||
{
|
||||
"schemaVersion": 1,
|
||||
"id": "486ed76c-9dca-4016-9b58-7ea4962c2c2b",
|
||||
"connectionId": "5b4daed9-b2f7-4de0-b949-573eba70c7b3",
|
||||
"connectionRevision": 7,
|
||||
"connectionName": "jojocode",
|
||||
"status": "passed",
|
||||
"startedAt": "2026-11-03T22:53:32.291Z",
|
||||
"finishedAt": "2026-11-03T22:53:32.756Z",
|
||||
"target": {
|
||||
"endpoint": "https://jojocode.com/v1",
|
||||
"origin": "https://jojocode.com",
|
||||
"host": "jojocode.com",
|
||||
"port": 443,
|
||||
"scheme": "https:"
|
||||
},
|
||||
"transport": {
|
||||
"schemaVersion": 1,
|
||||
"implementation": "undici-7.30.1",
|
||||
"autoSelectFamily": true,
|
||||
"familyAttemptTimeoutMs": 250,
|
||||
"connectTimeoutMs": 10000,
|
||||
"httpProxyConfigured": false,
|
||||
"httpsProxyConfigured": false,
|
||||
"noProxyConfigured": false
|
||||
},
|
||||
"route": {
|
||||
"kind": "direct-endpoint-only",
|
||||
"proxyConfigured": false,
|
||||
"noProxyConfigured": false,
|
||||
"customTransport": false,
|
||||
"modelApiRouteVerified": false
|
||||
},
|
||||
"budgetMs": 12000,
|
||||
"stages": {
|
||||
"dns": {
|
||||
"status": "passed",
|
||||
"startedAt": "2026-11-03T22:53:32.295Z",
|
||||
"elapsedMs": 20,
|
||||
"addresses": [
|
||||
{
|
||||
"address": "2606:4700:3030::6815:2f68",
|
||||
"family": 6
|
||||
},
|
||||
{
|
||||
"address": "2606:4700:3035::ac43:928c",
|
||||
"family": 6
|
||||
},
|
||||
{
|
||||
"address": "104.21.47.104",
|
||||
"family": 4
|
||||
},
|
||||
{
|
||||
"address": "172.67.146.140",
|
||||
"family": 4
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"trials": [
|
||||
{
|
||||
"mode": "auto",
|
||||
"status": "passed",
|
||||
"stage": "tls",
|
||||
"attempts": [],
|
||||
"tcpMs": 209,
|
||||
"address": "2606:4700:3030::6815:2f68",
|
||||
"family": "IPv6",
|
||||
"certificateAuthorized": true,
|
||||
"tlsProtocol": "TLSv1.3",
|
||||
"certificateFingerprint256": "6A:8C:B7:ED:21:64:5F:38:90:5B:3B:CF:AA:6D:C6:76:A6:82:92:3F:35:4D:49:15:17:A4:74:46:4C:7F:93:33",
|
||||
"tlsMs": 225,
|
||||
"elapsedMs": 435
|
||||
},
|
||||
{
|
||||
"mode": "ipv4",
|
||||
"status": "passed",
|
||||
"stage": "tls",
|
||||
"attempts": [],
|
||||
"tcpMs": 215,
|
||||
"address": "104.21.47.104",
|
||||
"family": "IPv4",
|
||||
"certificateAuthorized": true,
|
||||
"tlsProtocol": "TLSv1.3",
|
||||
"certificateFingerprint256": "6A:8C:B7:ED:21:64:5F:38:90:5B:3B:CF:AA:6D:C6:76:A6:82:92:3F:35:4D:49:15:17:A4:74:46:4C:7F:93:33",
|
||||
"tlsMs": 223,
|
||||
"elapsedMs": 438
|
||||
},
|
||||
{
|
||||
"mode": "ipv6",
|
||||
"status": "passed",
|
||||
"stage": "tls",
|
||||
"attempts": [],
|
||||
"tcpMs": 202,
|
||||
"address": "2606:4700:3030::6815:2f68",
|
||||
"family": "IPv6",
|
||||
"certificateAuthorized": true,
|
||||
"tlsProtocol": "TLSv1.3",
|
||||
"certificateFingerprint256": "6A:8C:B7:ED:21:64:5F:38:90:5B:3B:CF:AA:6D:C6:76:A6:82:92:3F:35:4D:49:15:17:A4:74:46:4C:7F:93:33",
|
||||
"tlsMs": 223,
|
||||
"elapsedMs": 426
|
||||
}
|
||||
],
|
||||
"elapsedMs": 462,
|
||||
"httpRequests": 0,
|
||||
"modelRequests": 0,
|
||||
"credentialAccess": false,
|
||||
"stale": true,
|
||||
"currentConnectionRevision": 9
|
||||
},
|
||||
{
|
||||
"schemaVersion": 1,
|
||||
"id": "bfa3c359-5235-4f1e-979b-9540828238ae",
|
||||
"connectionId": "5b4daed9-b2f7-4de0-b949-573eba70c7b3",
|
||||
"connectionRevision": 5,
|
||||
"connectionName": "jojocode",
|
||||
"status": "passed",
|
||||
"startedAt": "2026-11-03T16:01:08.504Z",
|
||||
"finishedAt": "2026-11-03T16:01:10.086Z",
|
||||
"target": {
|
||||
"endpoint": "https://jojocode.com/v1",
|
||||
"origin": "https://jojocode.com",
|
||||
"host": "jojocode.com",
|
||||
"port": 443,
|
||||
"scheme": "https:"
|
||||
},
|
||||
"transport": {
|
||||
"schemaVersion": 1,
|
||||
"implementation": "undici-7.30.1",
|
||||
"autoSelectFamily": true,
|
||||
"familyAttemptTimeoutMs": 250,
|
||||
"connectTimeoutMs": 10000,
|
||||
"httpProxyConfigured": false,
|
||||
"httpsProxyConfigured": false,
|
||||
"noProxyConfigured": false
|
||||
},
|
||||
"route": {
|
||||
"kind": "direct-endpoint-only",
|
||||
"proxyConfigured": false,
|
||||
"noProxyConfigured": false,
|
||||
"customTransport": false,
|
||||
"modelApiRouteVerified": false
|
||||
},
|
||||
"budgetMs": 12000,
|
||||
"stages": {
|
||||
"dns": {
|
||||
"status": "passed",
|
||||
"startedAt": "2026-11-03T16:01:08.508Z",
|
||||
"elapsedMs": 72,
|
||||
"addresses": [
|
||||
{
|
||||
"address": "2606:4700:3035::ac43:928c",
|
||||
"family": 6
|
||||
},
|
||||
{
|
||||
"address": "2606:4700:3030::6815:2f68",
|
||||
"family": 6
|
||||
},
|
||||
{
|
||||
"address": "172.67.146.140",
|
||||
"family": 4
|
||||
},
|
||||
{
|
||||
"address": "104.21.47.104",
|
||||
"family": 4
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"trials": [
|
||||
{
|
||||
"mode": "auto",
|
||||
"status": "passed",
|
||||
"stage": "tls",
|
||||
"attempts": [
|
||||
{
|
||||
"address": "172.67.146.140",
|
||||
"port": 443,
|
||||
"family": 4
|
||||
},
|
||||
{
|
||||
"address": "2606:4700:3030::6815:2f68",
|
||||
"port": 443,
|
||||
"family": 6
|
||||
},
|
||||
{
|
||||
"address": "104.21.47.104",
|
||||
"port": 443,
|
||||
"family": 4
|
||||
}
|
||||
],
|
||||
"tcpMs": 1145,
|
||||
"address": "104.21.47.104",
|
||||
"family": "IPv4",
|
||||
"certificateAuthorized": true,
|
||||
"tlsProtocol": "TLSv1.3",
|
||||
"certificateFingerprint256": "6A:8C:B7:ED:21:64:5F:38:90:5B:3B:CF:AA:6D:C6:76:A6:82:92:3F:35:4D:49:15:17:A4:74:46:4C:7F:93:33",
|
||||
"tlsMs": 357,
|
||||
"elapsedMs": 1501
|
||||
},
|
||||
{
|
||||
"mode": "ipv4",
|
||||
"status": "passed",
|
||||
"stage": "tls",
|
||||
"attempts": [
|
||||
{
|
||||
"address": "104.21.47.104",
|
||||
"port": 443,
|
||||
"family": 4
|
||||
}
|
||||
],
|
||||
"tcpMs": 555,
|
||||
"address": "104.21.47.104",
|
||||
"family": "IPv4",
|
||||
"certificateAuthorized": true,
|
||||
"tlsProtocol": "TLSv1.3",
|
||||
"certificateFingerprint256": "6A:8C:B7:ED:21:64:5F:38:90:5B:3B:CF:AA:6D:C6:76:A6:82:92:3F:35:4D:49:15:17:A4:74:46:4C:7F:93:33",
|
||||
"tlsMs": 306,
|
||||
"elapsedMs": 861
|
||||
},
|
||||
{
|
||||
"mode": "ipv6",
|
||||
"status": "passed",
|
||||
"stage": "tls",
|
||||
"attempts": [
|
||||
{
|
||||
"address": "2606:4700:3030::6815:2f68",
|
||||
"port": 443,
|
||||
"family": 6
|
||||
}
|
||||
],
|
||||
"tcpMs": 506,
|
||||
"address": "2606:4700:3030::6815:2f68",
|
||||
"family": "IPv6",
|
||||
"certificateAuthorized": true,
|
||||
"tlsProtocol": "TLSv1.3",
|
||||
"certificateFingerprint256": "6A:8C:B7:ED:21:64:5F:38:90:5B:3B:CF:AA:6D:C6:76:A6:82:92:3F:35:4D:49:15:17:A4:74:46:4C:7F:93:33",
|
||||
"tlsMs": 264,
|
||||
"elapsedMs": 770
|
||||
}
|
||||
],
|
||||
"elapsedMs": 1579,
|
||||
"httpRequests": 0,
|
||||
"modelRequests": 0,
|
||||
"credentialAccess": false,
|
||||
"stale": true,
|
||||
"currentConnectionRevision": 9
|
||||
}
|
||||
],
|
||||
"active": 0,
|
||||
"retained": 30,
|
||||
"httpRequests": 0,
|
||||
"modelRequests": 0
|
||||
}
|
||||
@@ -0,0 +1,130 @@
|
||||
{
|
||||
"schemaVersion": 1,
|
||||
"id": "0c78eca9-c3cc-436b-ad98-fe2bc714aa7f",
|
||||
"connectionId": "5b4daed9-b2f7-4de0-b949-573eba70c7b3",
|
||||
"connectionRevision": 9,
|
||||
"connectionName": "jojocode",
|
||||
"status": "partial",
|
||||
"startedAt": "2026-11-04T00:54:36.447Z",
|
||||
"finishedAt": "2026-11-04T00:54:46.542Z",
|
||||
"target": {
|
||||
"endpoint": "https://jojocode.com/v1",
|
||||
"origin": "https://jojocode.com",
|
||||
"host": "jojocode.com",
|
||||
"port": 443,
|
||||
"scheme": "https:"
|
||||
},
|
||||
"transport": {
|
||||
"schemaVersion": 1,
|
||||
"implementation": "undici-7.30.1",
|
||||
"autoSelectFamily": true,
|
||||
"familyAttemptTimeoutMs": 250,
|
||||
"connectTimeoutMs": 10000,
|
||||
"httpProxyConfigured": false,
|
||||
"httpsProxyConfigured": false,
|
||||
"noProxyConfigured": false
|
||||
},
|
||||
"route": {
|
||||
"kind": "direct-endpoint-only",
|
||||
"proxyConfigured": false,
|
||||
"noProxyConfigured": false,
|
||||
"customTransport": false,
|
||||
"modelApiRouteVerified": false
|
||||
},
|
||||
"budgetMs": 12000,
|
||||
"stages": {
|
||||
"dns": {
|
||||
"status": "passed",
|
||||
"startedAt": "2026-11-04T00:54:36.450Z",
|
||||
"elapsedMs": 78,
|
||||
"addresses": [
|
||||
{
|
||||
"address": "2606:4700:3030::6815:2f68",
|
||||
"family": 6
|
||||
},
|
||||
{
|
||||
"address": "2606:4700:3035::ac43:928c",
|
||||
"family": 6
|
||||
},
|
||||
{
|
||||
"address": "104.21.47.104",
|
||||
"family": 4
|
||||
},
|
||||
{
|
||||
"address": "172.67.146.140",
|
||||
"family": 4
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"trials": [
|
||||
{
|
||||
"mode": "auto",
|
||||
"status": "passed",
|
||||
"stage": "tls",
|
||||
"attempts": [
|
||||
{
|
||||
"address": "104.21.47.104",
|
||||
"port": 443,
|
||||
"family": 4
|
||||
},
|
||||
{
|
||||
"address": "2606:4700:3035::ac43:928c",
|
||||
"port": 443,
|
||||
"family": 6
|
||||
},
|
||||
{
|
||||
"address": "172.67.146.140",
|
||||
"port": 443,
|
||||
"family": 4
|
||||
}
|
||||
],
|
||||
"tcpMs": 1092,
|
||||
"address": "172.67.146.140",
|
||||
"family": "IPv4",
|
||||
"certificateAuthorized": true,
|
||||
"tlsProtocol": "TLSv1.3",
|
||||
"certificateFingerprint256": "6A:8C:B7:ED:21:64:5F:38:90:5B:3B:CF:AA:6D:C6:76:A6:82:92:3F:35:4D:49:15:17:A4:74:46:4C:7F:93:33",
|
||||
"tlsMs": 8364,
|
||||
"elapsedMs": 9456
|
||||
},
|
||||
{
|
||||
"mode": "ipv4",
|
||||
"status": "failed",
|
||||
"stage": "tls",
|
||||
"attempts": [
|
||||
{
|
||||
"address": "172.67.146.140",
|
||||
"port": 443,
|
||||
"family": 4
|
||||
}
|
||||
],
|
||||
"tcpMs": 599,
|
||||
"address": "172.67.146.140",
|
||||
"family": "IPv4",
|
||||
"tlsMs": 9407,
|
||||
"elapsedMs": 10006,
|
||||
"code": "TLS_HANDSHAKE_TIMEOUT"
|
||||
},
|
||||
{
|
||||
"mode": "ipv6",
|
||||
"status": "passed",
|
||||
"stage": "tls",
|
||||
"attempts": [],
|
||||
"tcpMs": 260,
|
||||
"address": "2606:4700:3030::6815:2f68",
|
||||
"family": "IPv6",
|
||||
"certificateAuthorized": true,
|
||||
"tlsProtocol": "TLSv1.3",
|
||||
"certificateFingerprint256": "6A:8C:B7:ED:21:64:5F:38:90:5B:3B:CF:AA:6D:C6:76:A6:82:92:3F:35:4D:49:15:17:A4:74:46:4C:7F:93:33",
|
||||
"tlsMs": 376,
|
||||
"elapsedMs": 636
|
||||
}
|
||||
],
|
||||
"elapsedMs": 10092,
|
||||
"httpRequests": 0,
|
||||
"modelRequests": 0,
|
||||
"credentialAccess": false,
|
||||
"stale": false,
|
||||
"currentConnectionRevision": 9
|
||||
}
|
||||
@@ -0,0 +1,61 @@
|
||||
{
|
||||
"passed": true,
|
||||
"jobId": "0c78eca9-c3cc-436b-ad98-fe2bc714aa7f",
|
||||
"diagnosticStatus": "partial",
|
||||
"elapsedMs": 10092,
|
||||
"dns": {
|
||||
"status": "passed",
|
||||
"startedAt": "2026-11-04T00:54:36.450Z",
|
||||
"elapsedMs": 78,
|
||||
"addresses": [
|
||||
{
|
||||
"address": "2606:4700:3030::6815:2f68",
|
||||
"family": 6
|
||||
},
|
||||
{
|
||||
"address": "2606:4700:3035::ac43:928c",
|
||||
"family": 6
|
||||
},
|
||||
{
|
||||
"address": "104.21.47.104",
|
||||
"family": 4
|
||||
},
|
||||
{
|
||||
"address": "172.67.146.140",
|
||||
"family": 4
|
||||
}
|
||||
]
|
||||
},
|
||||
"trials": [
|
||||
{
|
||||
"mode": "auto",
|
||||
"family": "IPv4",
|
||||
"status": "passed"
|
||||
},
|
||||
{
|
||||
"mode": "ipv4",
|
||||
"family": "IPv4",
|
||||
"status": "failed",
|
||||
"code": "TLS_HANDSHAKE_TIMEOUT"
|
||||
},
|
||||
{
|
||||
"mode": "ipv6",
|
||||
"family": "IPv6",
|
||||
"status": "passed"
|
||||
}
|
||||
],
|
||||
"route": {
|
||||
"kind": "direct-endpoint-only",
|
||||
"proxyConfigured": false,
|
||||
"noProxyConfigured": false,
|
||||
"customTransport": false,
|
||||
"modelApiRouteVerified": false
|
||||
},
|
||||
"originalStateExactExceptNewDiagnosticHistory": true,
|
||||
"credentialAccess": false,
|
||||
"httpRequests": 0,
|
||||
"modelRequests": 0,
|
||||
"firstDriverFailurePreserved": true,
|
||||
"readOnlyReconciliation": true,
|
||||
"comparison": "Remove API-derived stale/currentConnectionRevision and sort by immutable ID before exact equality; no diagnostic replay"
|
||||
}
|
||||
@@ -0,0 +1,45 @@
|
||||
{
|
||||
"job": {
|
||||
"schemaVersion": 1,
|
||||
"id": "0c78eca9-c3cc-436b-ad98-fe2bc714aa7f",
|
||||
"connectionId": "5b4daed9-b2f7-4de0-b949-573eba70c7b3",
|
||||
"connectionRevision": 9,
|
||||
"connectionName": "jojocode",
|
||||
"status": "running",
|
||||
"startedAt": "2026-11-04T00:54:36.447Z",
|
||||
"finishedAt": null,
|
||||
"target": {
|
||||
"endpoint": "https://jojocode.com/v1",
|
||||
"origin": "https://jojocode.com",
|
||||
"host": "jojocode.com",
|
||||
"port": 443,
|
||||
"scheme": "https:"
|
||||
},
|
||||
"transport": {
|
||||
"schemaVersion": 1,
|
||||
"implementation": "undici-7.30.1",
|
||||
"autoSelectFamily": true,
|
||||
"familyAttemptTimeoutMs": 250,
|
||||
"connectTimeoutMs": 10000,
|
||||
"httpProxyConfigured": false,
|
||||
"httpsProxyConfigured": false,
|
||||
"noProxyConfigured": false
|
||||
},
|
||||
"route": {
|
||||
"kind": "direct-endpoint-only",
|
||||
"proxyConfigured": false,
|
||||
"noProxyConfigured": false,
|
||||
"customTransport": false,
|
||||
"modelApiRouteVerified": false
|
||||
},
|
||||
"budgetMs": 12000,
|
||||
"stages": {},
|
||||
"trials": [],
|
||||
"elapsedMs": 0,
|
||||
"httpRequests": 0,
|
||||
"modelRequests": 0,
|
||||
"credentialAccess": false,
|
||||
"stale": false,
|
||||
"currentConnectionRevision": 9
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"stage": "before-freeze",
|
||||
"error": "SyntaxError: Unexpected token ')' at node driver line 91",
|
||||
"corrected": true,
|
||||
"networkJobs": 0,
|
||||
"modelRequests": 0
|
||||
}
|
||||
@@ -1,5 +1,12 @@
|
||||
# 汇总发现
|
||||
|
||||
## 当前:V已封存,Tianshu-harness源码研究
|
||||
|
||||
V唯一诊断partial:auto/IPv6 TLS通过,独立IPv4握手超时;按冻结计划在身份预检前结束,模型/HTTP请求0。65项目81会话6377记录13484事件/outbox、3720工件和225尝试、原PID36552/Provider及公开配置保持,9/1/73修订均未变,9229关闭。46份/38772720字节证据离线通过,见docs/QA-LIVE-DELIVERY-V.md及回顾。多历史诊断的显示排序误比已用只读ID核对更正,首失败保留、不重跑。
|
||||
|
||||
用户明确要求深度分析 https://github.com/huiliyi37/Tianshu-harness.git;源码固定2d0b22e0b3554686e1e4131f8bdc568ef768e060,位于仓库外research/Tianshu-harness-2d0b22e。下一只读源码/机制/实证与本产品差异分析,形成采用优先级及验收计划。不执行第三方安装/服务、不导入配置、不改正式Provider、不委派、不推送。
|
||||
|
||||
|
||||
## V:新的真实模型验收进行中
|
||||
|
||||
已创建 feat/live-delivery-v,正式仍1.24.8/source7e77fd65/原PID36552/Provider。先冻结公开基线、当前驱动与原11文件/原目标,再一次所属诊断、单次无工具身份预检,通过后新Node。16K/2048/1600、8请求/90000tokens/600000ms不变。原T/R/P/O不续跑,不提供实现/附加指导,不提取/复制/解密/重存Key,不委派、不推送。当前尚未发真实模型请求;调用前契约和本地Git待完成。
|
||||
|
||||
@@ -1,5 +1,12 @@
|
||||
# 统一执行进度
|
||||
|
||||
## 当前:V已封存,Tianshu-harness源码研究
|
||||
|
||||
V唯一诊断partial:auto/IPv6 TLS通过,独立IPv4握手超时;按冻结计划在身份预检前结束,模型/HTTP请求0。65项目81会话6377记录13484事件/outbox、3720工件和225尝试、原PID36552/Provider及公开配置保持,9/1/73修订均未变,9229关闭。46份/38772720字节证据离线通过,见docs/QA-LIVE-DELIVERY-V.md及回顾。多历史诊断的显示排序误比已用只读ID核对更正,首失败保留、不重跑。
|
||||
|
||||
用户明确要求深度分析 https://github.com/huiliyi37/Tianshu-harness.git;源码固定2d0b22e0b3554686e1e4131f8bdc568ef768e060,位于仓库外research/Tianshu-harness-2d0b22e。下一只读源码/机制/实证与本产品差异分析,形成采用优先级及验收计划。不执行第三方安装/服务、不导入配置、不改正式Provider、不委派、不推送。
|
||||
|
||||
|
||||
## V:新的真实模型验收进行中
|
||||
|
||||
已创建 feat/live-delivery-v,正式仍1.24.8/source7e77fd65/原PID36552/Provider。先冻结公开基线、当前驱动与原11文件/原目标,再一次所属诊断、单次无工具身份预检,通过后新Node。16K/2048/1600、8请求/90000tokens/600000ms不变。原T/R/P/O不续跑,不提供实现/附加指导,不提取/复制/解密/重存Key,不委派、不推送。当前尚未发真实模型请求;调用前契约和本地Git待完成。
|
||||
|
||||
@@ -0,0 +1,55 @@
|
||||
import fs from 'node:fs';
|
||||
import path from 'node:path';
|
||||
import assert from 'node:assert/strict';
|
||||
import {createHash} from 'node:crypto';
|
||||
import {execFileSync} from 'node:child_process';
|
||||
const root=path.resolve('docs/live-delivery-v-evidence');
|
||||
const sha=bytes=>createHash('sha256').update(bytes).digest('hex');
|
||||
const canonical=value=>Array.isArray(value)?value.map(canonical):value&&typeof value==='object'?Object.fromEntries(Object.keys(value).sort().map(key=>[key,canonical(value[key])])):value;
|
||||
const digest=value=>sha(JSON.stringify(canonical(value)));
|
||||
const file=name=>{assert.equal(typeof name,'string');assert.ok(!/[\\\x00\r\n]/.test(name)&&!name.split('/').includes('..'));const target=path.resolve(root,name);assert.ok(target.startsWith(root+path.sep));return target;};
|
||||
const bytes=name=>fs.readFileSync(file(name)),read=name=>JSON.parse(bytes(name));
|
||||
const manifest=read('manifest.json');assert.equal(manifest.kind,'owned-live-delivery-v-evidence');
|
||||
const names=new Set();let totalBytes=0;
|
||||
for(const row of manifest.files){assert.ok(!names.has(row.path));names.add(row.path);const value=bytes(row.path);assert.equal(value.length,row.bytes);assert.equal(sha(value),row.sha256,row.path);totalBytes+=value.length;}
|
||||
const list=(directory=root)=>fs.readdirSync(directory,{withFileTypes:true}).flatMap(entry=>{assert.equal(entry.isSymbolicLink(),false);const target=path.join(directory,entry.name);return entry.isDirectory()?list(target):[path.relative(root,target).replaceAll('\\','/')];});
|
||||
assert.deepEqual(list().sort(),['manifest.json',...names].sort());
|
||||
assert.ok([...names].every(name=>!name.startsWith('run/preflight/')&&!name.startsWith('run/node/')));
|
||||
const owned=name=>{assert.ok(names.has(name));return read(name);};
|
||||
const initial=owned(manifest.references.initial),network=owned(manifest.references.network),audit=owned(manifest.references.networkAudit),final=owned(manifest.references.final),proof=owned(manifest.references.ownership),readback=owned(manifest.references.readback),frozen=owned('contract/manifest.json');
|
||||
const gitBytes=(commit,relative)=>execFileSync('git',['show',commit+':'+relative],{maxBuffer:4*1024*1024,windowsHide:true});
|
||||
assert.equal(sha(bytes('run/current.json')),frozen.originalBaselineSha256);assert.equal(sha(bytes('provenance/frozen-plan.md')),frozen.planSha256);
|
||||
assert.deepEqual(bytes('contract/manifest.json'),gitBytes(manifest.experimentPlanCommit,'docs/live-delivery-v-contract/manifest.json'));
|
||||
for(const row of frozen.files){assert.equal(sha(bytes('contract/'+row.path)),row.sha256);assert.deepEqual(bytes('contract/'+row.path),gitBytes(manifest.experimentPlanCommit,'docs/live-delivery-v-contract/'+row.path));}
|
||||
for(const row of frozen.inputs){assert.equal(sha(bytes('contract/'+row.capturedPath)),row.sha256);assert.equal(row.sha256,frozen.originalElevenFileHashes[row.path]);}
|
||||
for(const row of frozen.dependencySources)assert.equal(sha(gitBytes(manifest.experimentBaseCommit,row.path)),row.sha256);
|
||||
assert.equal(sha(bytes('provenance/release-1.24.8.json')),frozen.releaseIdentitySha256);assert.equal(owned('provenance/release-1.24.8.json').sourceCommit,manifest.releaseSourceCommit);
|
||||
assert.equal(frozen.modelRequestsAtFreeze,0);assert.equal(frozen.maxNetworkJobs,1);assert.equal(frozen.maxPreflightRequests,1);assert.equal(frozen.maxNodeRequests,8);assert.equal(frozen.maxNodeTokens,90000);assert.equal(frozen.maxNodeDurationMs,600000);assert.equal(frozen.contextLimit,16000);assert.equal(frozen.maxOutputTokens,2048);assert.equal(frozen.safetyReserveTokens,1600);assert.equal(frozen.goalMatchesTExactly,true);
|
||||
assert.equal(network.status,'partial');assert.equal(network.connectionRevision,9);assert.equal(network.stages.dns.status,'passed');assert.equal(network.httpRequests,0);assert.equal(network.modelRequests,0);assert.equal(network.credentialAccess,false);assert.equal(network.route.modelApiRouteVerified,false);
|
||||
assert.deepEqual(network.trials.map(row=>[row.mode,row.status]),[['auto','passed'],['ipv4','failed'],['ipv6','passed']]);assert.equal(network.trials[1].code,'TLS_HANDSHAKE_TIMEOUT');
|
||||
assert.equal(audit.passed,true);assert.equal(audit.readOnlyReconciliation,true);assert.equal(audit.firstDriverFailurePreserved,true);assert.equal(owned('run/network/driver-error.json').jobId,network.id);
|
||||
const previous=owned('run/network/history-before.json'),next=owned('run/network/history-after.json');
|
||||
const strip=({stale,currentConnectionRevision,...raw})=>raw;
|
||||
const oldRaw=previous.jobs.map(strip).reverse(),newRaw=next.jobs.map(strip).reverse();
|
||||
assert.equal(oldRaw.length,2);assert.deepEqual(newRaw,[...oldRaw,strip(network)]);assert.equal(next.active,0);
|
||||
const snapshot=owned('run/final/snapshot.json'),before=initial.baseline;
|
||||
for(const field of ['pid','version','runtimeRoot','configSha256','projectsSha256','sessionsSha256','eventCursor','modelCenterSha256'])assert.deepEqual(snapshot[field],before[field],field);
|
||||
assert.deepEqual(snapshot.exports,before.exports);assert.deepEqual(snapshot.modelCenter,before.modelCenter);
|
||||
assert.deepEqual(snapshot.persistent.artifacts,before.persistent.artifacts);assert.deepEqual(snapshot.persistent.files,before.persistent.files);
|
||||
for(const [name,table] of Object.entries(before.database.tables)){
|
||||
assert.equal(snapshot.database.tables[name].count,table.count);assert.equal(snapshot.database.tables[name].schemaSha256,table.schemaSha256);
|
||||
const without=rows=>rows.filter(row=>name!=='metadata'||row.id!=='modelNetworkDiagnostics');assert.deepEqual(without(snapshot.database.tables[name].rows),without(table.rows));
|
||||
}
|
||||
for(const [snapshotValue,raw]of[[before,oldRaw],[snapshot,newRaw]])assert.equal(snapshotValue.database.tables.metadata.rows.find(row=>row.id==='modelNetworkDiagnostics').sha256,digest({key:'modelNetworkDiagnostics',value:JSON.stringify(raw)}));
|
||||
const attempts=owned('run/initial-attempts.json');assert.equal(attempts.length,225);assert.equal(snapshot.database.tables.metadata.rows.find(row=>row.id==='modelAttempts').sha256,digest({key:'modelAttempts',value:JSON.stringify(attempts)}));
|
||||
for(const rows of Object.values(proof.additions))assert.deepEqual(rows,[]);assert.equal(proof.projectInsertionOffset,0);assert.ok(proof.projects.every(row=>row.actualSha256===row.originalSha256&&row.normalizedSha256===row.originalSha256));
|
||||
assert.equal(final.passed,true);assert.equal(final.pid,36552);assert.equal(final.version,'1.24.8');assert.equal(final.modelRequests,0);assert.equal(final.reportedTokens,0);assert.equal(final.unknownRequests,0);assert.equal(final.originalProjects,65);assert.equal(final.originalSessions,81);assert.equal(final.originalArtifacts,3720);assert.equal(final.originalAttempts,225);assert.equal(final.nodeDelivered,false);assert.equal(final.purgeBenefitTested,false);assert.equal(final.productSourceChanged,false);assert.equal(final.keyReadOrResaved,false);assert.deepEqual(final.connectionRevision,[9,9]);assert.deepEqual(final.legacyDisplayRevisionFollowsGlobalConfigurationRevision,[73,73]);assert.equal(final.credentialRevision,1);
|
||||
assert.equal(readback.originalIdentityExact,true);assert.equal(readback.inspectorClosed,true);assert.equal(readback.modelCenterExactSinceRestoration,true);
|
||||
let gitIndex;
|
||||
if(process.argv.includes('--index')){
|
||||
const prefix=path.relative(process.cwd(),root).replaceAll('\\','/'),manifestBytes=bytes('manifest.json'),entries=[...manifest.files,{path:'manifest.json',bytes:manifestBytes.length,sha256:sha(manifestBytes)}];
|
||||
const output=execFileSync('git',['cat-file','--batch'],{input:entries.map(row=>':'+prefix+'/'+row.path).join('\n')+'\n',maxBuffer:256*1024*1024,windowsHide:true});let offset=0,indexBytes=0;
|
||||
for(const entry of entries){const end=output.indexOf(10,offset),header=output.subarray(offset,end).toString('utf8'),match=header.match(/^[a-f0-9]{40} blob (\d+)$/);assert.ok(match,header);const size=Number(match[1]);offset=end+1;const value=output.subarray(offset,offset+size);offset+=size;assert.equal(output[offset++],10);assert.equal(size,entry.bytes);assert.equal(sha(value),entry.sha256,entry.path);indexBytes+=size;}
|
||||
assert.equal(offset,output.length);gitIndex={passed:true,files:entries.length,bytes:indexBytes,exactOriginalBytes:true};
|
||||
}
|
||||
console.log(JSON.stringify({success:true,files:manifest.files.length,bytes:totalBytes,manifestSha256:sha(bytes('manifest.json')),diagnosticStatus:'partial',stoppedBeforePreflight:true,modelRequests:0,nodeDelivered:false,purgeBenefitTested:false,allOriginalStateExceptSingleDiagnosticAppendExact:true,...(gitIndex?{gitIndex}:{}),scope:'Offline bytes, frozen contract/source and exact state digests. No network, model calls, credential access or host mutation.'}));
|
||||
@@ -1,5 +1,12 @@
|
||||
# Agent Workbench:核心代理能力研究与产品计划
|
||||
|
||||
## 当前:V已封存,Tianshu-harness源码研究
|
||||
|
||||
V唯一诊断partial:auto/IPv6 TLS通过,独立IPv4握手超时;按冻结计划在身份预检前结束,模型/HTTP请求0。65项目81会话6377记录13484事件/outbox、3720工件和225尝试、原PID36552/Provider及公开配置保持,9/1/73修订均未变,9229关闭。46份/38772720字节证据离线通过,见docs/QA-LIVE-DELIVERY-V.md及回顾。多历史诊断的显示排序误比已用只读ID核对更正,首失败保留、不重跑。
|
||||
|
||||
用户明确要求深度分析 https://github.com/huiliyi37/Tianshu-harness.git;源码固定2d0b22e0b3554686e1e4131f8bdc568ef768e060,位于仓库外research/Tianshu-harness-2d0b22e。下一只读源码/机制/实证与本产品差异分析,形成采用优先级及验收计划。不执行第三方安装/服务、不导入配置、不改正式Provider、不委派、不推送。
|
||||
|
||||
|
||||
## V:新的真实模型验收进行中
|
||||
|
||||
已创建 feat/live-delivery-v,正式仍1.24.8/source7e77fd65/原PID36552/Provider。先冻结公开基线、当前驱动与原11文件/原目标,再一次所属诊断、单次无工具身份预检,通过后新Node。16K/2048/1600、8请求/90000tokens/600000ms不变。原T/R/P/O不续跑,不提供实现/附加指导,不提取/复制/解密/重存Key,不委派、不推送。当前尚未发真实模型请求;调用前契约和本地Git待完成。
|
||||
|
||||
Reference in New Issue
Block a user