sneakoscope 6.0.2 → 6.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -3
- package/config/codex-releases/{rust-v0.142.0.json → rust-v0.144.1.json} +6 -6
- package/crates/sks-core/Cargo.lock +1 -1
- package/crates/sks-core/Cargo.toml +1 -1
- package/dist/cli/install-helpers.js +255 -440
- package/dist/cli/router.js +53 -4
- package/dist/commands/codex-app.js +8 -3
- package/dist/commands/codex-lb.js +169 -40
- package/dist/commands/codex.js +6 -5
- package/dist/commands/doctor.js +60 -26
- package/dist/commands/versioning.js +7 -0
- package/dist/config/skills-manifest.json +57 -57
- package/dist/core/agents/agent-central-ledger.js +9 -0
- package/dist/core/agents/agent-cleanup-executor.js +334 -41
- package/dist/core/agents/agent-cleanup.js +20 -1
- package/dist/core/agents/agent-command-surface.js +2 -1
- package/dist/core/agents/agent-effort-policy.js +46 -33
- package/dist/core/agents/agent-janitor.js +9 -10
- package/dist/core/agents/agent-namespace-safety.js +56 -0
- package/dist/core/agents/agent-orchestrator.js +26 -4
- package/dist/core/agents/agent-output-validator.js +1 -1
- package/dist/core/agents/agent-proof-evidence.js +16 -2
- package/dist/core/agents/agent-role-config.js +3 -6
- package/dist/core/agents/agent-roster.js +2 -2
- package/dist/core/agents/agent-runner-codex-exec.js +2 -0
- package/dist/core/agents/agent-runner-process.js +1 -0
- package/dist/core/agents/fast-mode-policy.js +3 -5
- package/dist/core/agents/native-cli-session-swarm.js +18 -1
- package/dist/core/agents/native-worker-backend-router.js +180 -108
- package/dist/core/agents/parallel-write-fixture.js +15 -10
- package/dist/core/agents/runtime-proof-summary.js +21 -3
- package/dist/core/agents/work-partition/repo-inventory.js +68 -7
- package/dist/core/code-structure.js +5 -4
- package/dist/core/codex/codex-config-guard.js +31 -9
- package/dist/core/codex-app/codex-app-fast-ui-repair.js +51 -20
- package/dist/core/codex-app/codex-app-restart.js +38 -8
- package/dist/core/codex-app/codex-app-ui-state-snapshot.js +11 -3
- package/dist/core/codex-app/sks-menubar.js +100 -40
- package/dist/core/codex-app.js +60 -17
- package/dist/core/codex-compat/codex-hook-warning-detector.js +10 -1
- package/dist/core/codex-compat/codex-release-manifest.js +6 -6
- package/dist/core/codex-control/codex-0139-doctor-real-probe.js +7 -1
- package/dist/core/codex-control/codex-0139-image-path-real-probe.js +14 -8
- package/dist/core/codex-control/codex-0139-probe-runner.js +103 -28
- package/dist/core/codex-control/codex-0139-real-probe-summary.js +7 -3
- package/dist/core/codex-control/codex-0139-real-probes.js +21 -6
- package/dist/core/codex-control/codex-0139-sandbox-real-probe.js +39 -13
- package/dist/core/codex-control/codex-0139-web-search-probe.js +11 -8
- package/dist/core/codex-control/{codex-0142-capability.js → codex-0144-capability.js} +22 -22
- package/dist/core/codex-control/codex-0144-collab-agent-real-probe.js +63 -0
- package/dist/core/codex-control/codex-model-metadata.js +8 -4
- package/dist/core/codex-control/codex-multi-agent-event-normalizer.js +5 -1
- package/dist/core/codex-control/codex-reliability-shield.js +4 -1
- package/dist/core/codex-control/codex-sdk-adapter.js +53 -6
- package/dist/core/codex-control/codex-sdk-config-policy.js +2 -1
- package/dist/core/codex-control/codex-sdk-sandbox-policy.js +6 -3
- package/dist/core/codex-lb/codex-lb-env.js +107 -0
- package/dist/core/codex-lb/codex-lb-tool-catalog.js +478 -0
- package/dist/core/codex-native/codex-native-feature-broker.js +22 -22
- package/dist/core/codex-native/codex-native-feature-matrix.js +2 -2
- package/dist/core/codex-native/native-capability-postcheck.js +16 -8
- package/dist/core/codex-native/native-capability-repair-matrix.js +76 -27
- package/dist/core/codex-plugins/codex-plugin-json.js +67 -21
- package/dist/core/codex-plugins/codex-plugin-repair.js +118 -0
- package/dist/core/codex-runtime/codex-desktop-config-policy.js +306 -0
- package/dist/core/commands/agent-command.js +19 -0
- package/dist/core/commands/basic-cli.js +45 -24
- package/dist/core/commands/gc-command.js +27 -4
- package/dist/core/commands/image-ux-review-command.js +55 -24
- package/dist/core/commands/mad-sks-command.js +152 -132
- package/dist/core/commands/naruto-command.js +41 -10
- package/dist/core/commands/pipeline-command.js +1 -0
- package/dist/core/commands/wiki-command.js +179 -83
- package/dist/core/computer-use-live-evidence.js +166 -3
- package/dist/core/computer-use-status.js +5 -2
- package/dist/core/daemon/sksd-hook-daemon-entrypoint.js +2 -2
- package/dist/core/daemon/sksd-hook-daemon.js +171 -28
- package/dist/core/daemon/sksd-hook-dispatch.js +2 -2
- package/dist/core/dfix/verification-selector.js +6 -4
- package/dist/core/doctor/browser-use-repair.js +54 -13
- package/dist/core/doctor/codex-0139-doctor.js +3 -2
- package/dist/core/doctor/computer-use-repair.js +28 -39
- package/dist/core/doctor/doctor-codex-startup-repair.js +19 -9
- package/dist/core/doctor/doctor-context7-repair.js +1 -1
- package/dist/core/doctor/doctor-dirty-planner.js +1 -1
- package/dist/core/doctor/doctor-native-capability-repair.js +74 -3
- package/dist/core/doctor/imagegen-repair.js +47 -12
- package/dist/core/doctor/legacy-global-hook-cleanup.js +179 -0
- package/dist/core/feature-registry.js +25 -31
- package/dist/core/fsx.js +54 -6
- package/dist/core/harness-conflicts.js +1 -1
- package/dist/core/hooks-runtime/code-pack-freshness-preflight.js +5 -4
- package/dist/core/hooks-runtime/hook-invocation-dedupe.js +147 -0
- package/dist/core/hooks-runtime/hook-io.js +6 -0
- package/dist/core/hooks-runtime.js +17 -2
- package/dist/core/image/image-artifact-path-contract.js +8 -6
- package/dist/core/image/image-artifact-registry.js +5 -1
- package/dist/core/image-ux-review/imagegen-adapter.js +5 -2
- package/dist/core/imagegen/imagegen-capability.js +10 -13
- package/dist/core/imagegen/require-imagegen.js +37 -11
- package/dist/core/managed-assets/managed-assets-manifest.js +1 -5
- package/dist/core/naruto/naruto-work-graph.js +70 -4
- package/dist/core/naruto/naruto-write-e2e.js +3 -4
- package/dist/core/ops/reporting.js +3 -0
- package/dist/core/pipeline-internals/runtime-core.js +12 -7
- package/dist/core/pipeline-internals/runtime-gates.js +17 -1
- package/dist/core/ppt/style-tokens.js +1 -1
- package/dist/core/ppt-review/index.js +1 -1
- package/dist/core/ppt-review/slide-exporter.js +23 -17
- package/dist/core/ppt-review/slide-imagegen-review.js +1 -1
- package/dist/core/ppt-review/slide-issue-extraction.js +4 -2
- package/dist/core/product-design-plugin.js +2 -2
- package/dist/core/proof/route-finalizer.js +1 -1
- package/dist/core/proof-field.js +3 -3
- package/dist/core/provider/model-router.js +68 -3
- package/dist/core/release/gate-manifest.js +18 -12
- package/dist/core/release/gate-pack-manifest.js +1 -1
- package/dist/core/release/package-size-budget.js +2 -0
- package/dist/core/release/release-gate-affected-selector.js +1 -1
- package/dist/core/release/release-gate-dag.js +43 -3
- package/dist/core/release/release-gate-hermetic-env.js +28 -17
- package/dist/core/release/release-real-contract.js +416 -0
- package/dist/core/retention/retention-budget.js +25 -6
- package/dist/core/retention.js +980 -101
- package/dist/core/routes/constants.js +1 -1
- package/dist/core/routes/evidence.js +4 -4
- package/dist/core/routes/model-mode-router.js +3 -0
- package/dist/core/routes/ppt-policy.js +1 -1
- package/dist/core/routes.js +11 -12
- package/dist/core/secret-redaction.js +4 -0
- package/dist/core/triwiki/code-pack.js +8 -2
- package/dist/core/triwiki/triwiki-cache-key.js +108 -29
- package/dist/core/triwiki-attention.js +13 -6
- package/dist/core/triwiki-provenance.js +274 -0
- package/dist/core/triwiki-runtime.js +21 -7
- package/dist/core/triwiki-wrongness/wrongness-ledger.js +178 -59
- package/dist/core/triwiki-wrongness/wrongness-retrieval.js +11 -2
- package/dist/core/triwiki-wrongness/wrongness-trust-policy.js +2 -0
- package/dist/core/update/update-migration-state.js +1 -1
- package/dist/core/update/update-notice.js +23 -0
- package/dist/core/update-check.js +69 -25
- package/dist/core/version.js +1 -1
- package/dist/core/wiki-coordinate.js +128 -12
- package/dist/core/work-order-ledger.js +168 -9
- package/dist/core/zellij/zellij-command.js +12 -1
- package/dist/core/zellij/zellij-dashboard-pane.js +3 -3
- package/dist/core/zellij/zellij-launcher.js +15 -14
- package/dist/core/zellij/zellij-pane-proof.js +32 -6
- package/dist/core/zellij/zellij-worker-pane-manager.js +5 -3
- package/dist/scripts/agent-fast-mode-default-check.js +48 -29
- package/dist/scripts/agent-role-config-repair-check.js +25 -4
- package/dist/scripts/agent-wiki-context-proof-check.js +16 -2
- package/dist/scripts/all-feature-deep-completion-check.js +14 -4
- package/dist/scripts/build-dist.js +17 -5
- package/dist/scripts/canonical-test-runner.js +188 -0
- package/dist/scripts/check-command-module-budget.js +38 -16
- package/dist/scripts/check-legacy-free.js +1 -1
- package/dist/scripts/codex-0139-interrupt-agent-check.js +5 -1
- package/dist/scripts/{codex-0142-app-server-v2-check.js → codex-0144-app-server-v2-check.js} +11 -10
- package/dist/scripts/{codex-0142-binary-identity-check.js → codex-0144-binary-identity-check.js} +4 -4
- package/dist/scripts/codex-0144-capability-check.js +21 -0
- package/dist/scripts/{codex-0139-real-probes-check.js → codex-0144-core-real-probes-check.js} +19 -5
- package/dist/scripts/{codex-0142-doctor-wiring-check.js → codex-0144-doctor-wiring-check.js} +6 -6
- package/dist/scripts/{codex-0142-manifest-check.js → codex-0144-manifest-check.js} +11 -3
- package/dist/scripts/{codex-0142-policy-check.js → codex-0144-policy-check.js} +2 -2
- package/dist/scripts/{codex-0142-thread-store-check.js → codex-0144-thread-store-check.js} +3 -3
- package/dist/scripts/codex-app-provider-model-ui-check.js +57 -8
- package/dist/scripts/codex-app-ui-preservation-check.js +35 -4
- package/dist/scripts/codex-control-side-effect-scope-check.js +2 -2
- package/dist/scripts/codex-effort-auto-discovery-check.js +1 -1
- package/dist/scripts/codex-lb-fast-mode-truth-check.js +1 -0
- package/dist/scripts/{codex-lb-gpt55-fast-profile-check.js → codex-lb-gpt56-fast-profile-check.js} +56 -5
- package/dist/scripts/codex-model-metadata-check.js +1 -1
- package/dist/scripts/codex-sdk-sandbox-policy-check.js +5 -1
- package/dist/scripts/codex-sdk-version-compat-check.js +2 -1
- package/dist/scripts/dfix-fixture-check.js +1 -1
- package/dist/scripts/docs-truthfulness-check.js +1 -1
- package/dist/scripts/doctor-codex-startup-repair-check.js +35 -10
- package/dist/scripts/doctor-context7-repair-check.js +2 -1
- package/dist/scripts/doctor-fix-proves-codex-read-check.js +1 -1
- package/dist/scripts/doctor-fixes-codex-app-fast-ui-check.js +34 -7
- package/dist/scripts/doctor-imagegen-repair-check.js +14 -4
- package/dist/scripts/doctor-startup-config-repair-blackbox.js +1 -1
- package/dist/scripts/doctor-startup-config-repair-check.js +1 -1
- package/dist/scripts/gate-policy-audit-check.js +2 -2
- package/dist/scripts/install-update-preserves-config-check.js +1 -1
- package/dist/scripts/legacy-gate-inventory-check.js +7 -5
- package/dist/scripts/legacy-strong-inventory-check.js +7 -5
- package/dist/scripts/legacy-upgrade-matrix-check.js +5 -5
- package/dist/scripts/lib/native-cli-session-swarm-check-lib.js +175 -14
- package/dist/scripts/mad-sks-app-ui-no-mutation-check.js +166 -6
- package/dist/scripts/mutation-callsite-coverage-check.js +0 -11
- package/dist/scripts/naruto-shadow-clone-swarm-check.js +88 -50
- package/dist/scripts/npm-publish-performance-check.js +2 -1
- package/dist/scripts/package-published-contract-check.js +9 -0
- package/dist/scripts/packlist-performance-check.js +5 -2
- package/dist/scripts/postinstall-safe-side-effects-check.js +8 -3
- package/dist/scripts/ppt-no-mock-as-real-check.js +3 -1
- package/dist/scripts/product-design-plugin-routing-check.js +1 -1
- package/dist/scripts/release-check-stamp.js +182 -2
- package/dist/scripts/release-dag-full-coverage-check.js +7 -7
- package/dist/scripts/release-dynamic-presets-check.js +8 -0
- package/dist/scripts/release-gate-dag-runner-check.js +3 -2
- package/dist/scripts/release-gate-dag-runner.js +24 -11
- package/dist/scripts/release-gate-existence-audit.js +8 -9
- package/dist/scripts/release-gate-script-parity-check.js +1 -1
- package/dist/scripts/release-real-check.js +368 -157
- package/dist/scripts/release-runtime-truth-matrix-check.js +22 -0
- package/dist/scripts/route-proof-artifact-structure-check.js +1 -0
- package/dist/scripts/scheduler-batch-dispatch-check.js +1 -1
- package/dist/scripts/search-visibility-gate-lib.js +1 -1
- package/dist/scripts/seo-geo-route-identity-check.js +30 -4
- package/dist/scripts/sizecheck.js +7 -2
- package/dist/scripts/sks-1-11-gate-lib.js +53 -6
- package/dist/scripts/sks-menubar-install-check.js +7 -0
- package/dist/scripts/sks-uninstall-regression-check.js +1 -1
- package/dist/scripts/sksd-daemon-check.js +16 -6
- package/dist/scripts/update-default-command-check.js +4 -2
- package/dist/scripts/write-build-manifest.js +2 -1
- package/dist/scripts/zellij-layout-valid-check.js +31 -6
- package/dist/scripts/zellij-pane-proof-check.js +33 -2
- package/dist/scripts/zellij-real-session-cleanup-check.js +122 -2
- package/dist/scripts/zellij-real-session-launch-check.js +76 -5
- package/dist/scripts/zellij-slot-pane-renderer-check.js +4 -4
- package/package.json +27 -30
- package/schemas/codex/{app-server-0.142 → app-server-0.144}/codex_app_server_protocol.v2.schemas.json +1146 -781
- package/schemas/codex/codex-0139-real-probe-result.schema.json +39 -5
- package/schemas/codex/ppt-slide-issue-ledger.schema.json +2 -1
- package/dist/core/codex-control/codex-0139-multi-agent-real-probe.js +0 -107
- package/dist/scripts/agent-native-release-gate.js +0 -274
- package/dist/scripts/codex-0142-capability-check.js +0 -21
- package/dist/scripts/command-performance-scorecard-check.js +0 -204
- package/dist/scripts/config-managed-merge-callsite-coverage-check.js +0 -212
- package/dist/scripts/dollar-performance-scorecard-check.js +0 -257
- package/dist/scripts/gate-timing-check.js +0 -16
- package/dist/scripts/ops-maturity-scorecard-check.js +0 -12
- package/dist/scripts/performance-baseline-check.js +0 -12
- package/dist/scripts/performance-improvement-report-check.js +0 -58
- package/dist/scripts/release-parallel-check.js +0 -389
- package/dist/scripts/release-runner-efficiency-check.js +0 -15
- package/dist/scripts/retention-long-run-smoke-check.js +0 -299
- package/docs/assets/sneakoscope-architecture-pipeline.jpg +0 -0
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
// @ts-nocheck
|
|
3
3
|
import fs from 'node:fs/promises';
|
|
4
|
+
import { createHash } from 'node:crypto';
|
|
4
5
|
import path from 'node:path';
|
|
5
6
|
import { pathToFileURL } from 'node:url';
|
|
6
7
|
import { ensureDistFresh, root } from './lib/ensure-dist-fresh.js';
|
|
@@ -8,15 +9,47 @@ const freshness = ensureDistFresh({ rebuild: true });
|
|
|
8
9
|
if (!freshness.ok)
|
|
9
10
|
fail('dist_not_fresh', { freshness });
|
|
10
11
|
const args = process.argv.slice(2);
|
|
11
|
-
const
|
|
12
|
-
const
|
|
12
|
+
const runSuffix = `${process.pid}-${Date.now().toString(36)}`;
|
|
13
|
+
const missionId = readArg(args, '--mission') || `M-zellij-real-check-${runSuffix}`;
|
|
14
|
+
const sessionName = readArg(args, '--session') || `sks-real-${runSuffix}`;
|
|
13
15
|
const requireReal = process.env.SKS_REQUIRE_ZELLIJ === '1' || args.includes('--require-real');
|
|
14
16
|
const mainOnly = args.includes('--main-only') || process.env.SKS_ZELLIJ_MAIN_ONLY === '1';
|
|
17
|
+
const ownedSession = args.includes('--owned-session');
|
|
18
|
+
const ownerToken = String(process.env.SKS_ZELLIJ_CHECK_OWNER_TOKEN || '');
|
|
15
19
|
const launcher = await import(pathToFileURL(path.join(root, 'dist', 'core', 'zellij', 'zellij-launcher.js')).href);
|
|
16
20
|
const command = await import(pathToFileURL(path.join(root, 'dist', 'core', 'zellij', 'zellij-command.js')).href);
|
|
17
21
|
const screenProof = await import(pathToFileURL(path.join(root, 'dist', 'core', 'zellij', 'zellij-screen-proof.js')).href);
|
|
18
|
-
|
|
19
|
-
|
|
22
|
+
const socketDir = command.resolveZellijProcessEnvMeta().zellij_socket_dir;
|
|
23
|
+
const missionRoot = path.join(root, '.sneakoscope', 'missions', missionId);
|
|
24
|
+
const ownershipPath = path.join(missionRoot, 'zellij-real-session-ownership.json');
|
|
25
|
+
const expectedLayoutPath = path.join(root, '.sneakoscope', 'layouts', `mad-${missionId}.kdl`);
|
|
26
|
+
let ownership = null;
|
|
27
|
+
if (ownedSession) {
|
|
28
|
+
if (!isSafeOwnedSocketDir(socketDir))
|
|
29
|
+
fail('zellij_owned_socket_dir_invalid', { socket_dir: socketDir });
|
|
30
|
+
if (ownerToken.length < 32)
|
|
31
|
+
fail('zellij_owner_token_missing', { owner_token_present: ownerToken.length > 0 });
|
|
32
|
+
const [markerExists, socketExists] = await Promise.all([exists(ownershipPath), exists(socketDir)]);
|
|
33
|
+
if (markerExists)
|
|
34
|
+
fail('zellij_ownership_marker_collision', { ownership_path: ownershipPath });
|
|
35
|
+
if (socketExists)
|
|
36
|
+
fail('zellij_owned_socket_dir_collision', { socket_dir: socketDir });
|
|
37
|
+
ownership = {
|
|
38
|
+
schema: 'sks.zellij-real-session-ownership.v1',
|
|
39
|
+
mission_id: missionId,
|
|
40
|
+
session_name: sessionName,
|
|
41
|
+
socket_dir: socketDir,
|
|
42
|
+
owner_token_sha256: hashOwnerToken(ownerToken),
|
|
43
|
+
cleanup_authorized: true,
|
|
44
|
+
layout_cleanup_authorized: true,
|
|
45
|
+
layout_path: expectedLayoutPath,
|
|
46
|
+
layout_sha256: null,
|
|
47
|
+
state: 'prepared',
|
|
48
|
+
session_created: false
|
|
49
|
+
};
|
|
50
|
+
await fs.mkdir(missionRoot, { recursive: true });
|
|
51
|
+
await fs.writeFile(ownershipPath, `${JSON.stringify(ownership, null, 2)}\n`, { flag: 'wx', mode: 0o600 });
|
|
52
|
+
}
|
|
20
53
|
const report = await launcher.launchMadZellijUi(['--session', sessionName], {
|
|
21
54
|
root,
|
|
22
55
|
missionId,
|
|
@@ -25,21 +58,42 @@ const report = await launcher.launchMadZellijUi(['--session', sessionName], {
|
|
|
25
58
|
requireZellij: requireReal,
|
|
26
59
|
slotCount: 1
|
|
27
60
|
});
|
|
61
|
+
const sessionCollision = Array.isArray(report?.launch?.create_background?.warnings)
|
|
62
|
+
&& report.launch.create_background.warnings.some((warning) => String(warning).startsWith('zellij_session_already_exists:'));
|
|
63
|
+
const layoutPathValid = !ownedSession || path.resolve(String(report?.layout_path || '')) === path.resolve(expectedLayoutPath);
|
|
64
|
+
const layoutSha256 = ownedSession && layoutPathValid ? await sha256File(expectedLayoutPath) : null;
|
|
65
|
+
if (ownership) {
|
|
66
|
+
ownership = {
|
|
67
|
+
...ownership,
|
|
68
|
+
state: report?.launch?.create_background?.ok === true && !sessionCollision ? 'launched' : 'launch_failed',
|
|
69
|
+
session_created: report?.launch?.create_background?.ok === true && !sessionCollision,
|
|
70
|
+
layout_path_valid: layoutPathValid,
|
|
71
|
+
layout_sha256: layoutSha256,
|
|
72
|
+
launch_exit_code: report?.launch?.create_background?.exit_code ?? null
|
|
73
|
+
};
|
|
74
|
+
await fs.writeFile(ownershipPath, `${JSON.stringify(ownership, null, 2)}\n`, { mode: 0o600 });
|
|
75
|
+
}
|
|
28
76
|
const heartbeatPath = path.join(root, '.sneakoscope', 'missions', missionId, 'zellij-lane-renderer-heartbeat.jsonl');
|
|
29
77
|
const heartbeat = mainOnly
|
|
30
78
|
? { ok: true, heartbeat_present: false, waited_ms: 0, timeout_ms: 0, blocker: null, skipped: true }
|
|
31
79
|
: await screenProof.waitForLaneHeartbeat(heartbeatPath, { timeoutMs: 5000 });
|
|
32
80
|
const blockers = [
|
|
81
|
+
...(sessionCollision ? ['zellij_session_name_collision'] : []),
|
|
82
|
+
...(ownedSession && !layoutPathValid ? ['zellij_owned_layout_path_invalid'] : []),
|
|
83
|
+
...(ownedSession && !layoutSha256 ? ['zellij_owned_layout_hash_missing'] : []),
|
|
33
84
|
...(requireReal && report.ok !== true ? ['zellij_real_session_launch_failed'] : []),
|
|
34
85
|
...(requireReal && heartbeat.blocker ? [heartbeat.blocker] : [])
|
|
35
86
|
];
|
|
36
87
|
const gate = {
|
|
37
88
|
schema: 'sks.zellij-real-session-launch-check.v1',
|
|
38
|
-
ok: requireReal ? (report.ok === true && heartbeat.ok === true && blockers.length === 0) : report.ok === true,
|
|
89
|
+
ok: requireReal ? (report.ok === true && heartbeat.ok === true && blockers.length === 0) : (report.ok === true && blockers.length === 0),
|
|
39
90
|
integration_optional: !requireReal,
|
|
40
91
|
main_only: mainOnly,
|
|
41
92
|
mission_id: missionId,
|
|
42
93
|
session_name: sessionName,
|
|
94
|
+
owned_session: ownedSession,
|
|
95
|
+
ownership_path: ownership ? ownershipPath : null,
|
|
96
|
+
socket_dir: socketDir,
|
|
43
97
|
heartbeat: { path: heartbeatPath, present: heartbeat.heartbeat_present, waited_ms: heartbeat.waited_ms, timeout_ms: heartbeat.timeout_ms },
|
|
44
98
|
blockers,
|
|
45
99
|
report
|
|
@@ -54,4 +108,21 @@ function readArg(args, name) {
|
|
|
54
108
|
const index = args.indexOf(name);
|
|
55
109
|
return index >= 0 ? args[index + 1] || null : null;
|
|
56
110
|
}
|
|
111
|
+
function hashOwnerToken(value) {
|
|
112
|
+
return createHash('sha256').update(String(value)).digest('hex');
|
|
113
|
+
}
|
|
114
|
+
async function sha256File(file) {
|
|
115
|
+
return fs.readFile(file).then((data) => createHash('sha256').update(data).digest('hex')).catch(() => null);
|
|
116
|
+
}
|
|
117
|
+
function isSafeOwnedSocketDir(value) {
|
|
118
|
+
if (!value)
|
|
119
|
+
return false;
|
|
120
|
+
const resolved = path.resolve(String(value));
|
|
121
|
+
return path.dirname(resolved) === '/tmp' && /^sks-zj-rr-[A-Za-z0-9-]+$/.test(path.basename(resolved));
|
|
122
|
+
}
|
|
123
|
+
async function exists(value) {
|
|
124
|
+
if (!value)
|
|
125
|
+
return false;
|
|
126
|
+
return fs.access(value).then(() => true).catch(() => false);
|
|
127
|
+
}
|
|
57
128
|
//# sourceMappingURL=zellij-real-session-launch-check.js.map
|
|
@@ -15,7 +15,7 @@ const text = renderer.renderZellijSlotPane({
|
|
|
15
15
|
serviceTier: 'fast',
|
|
16
16
|
provider: 'codex-lb',
|
|
17
17
|
authMode: 'codex_lb_key',
|
|
18
|
-
model: 'gpt-5.
|
|
18
|
+
model: 'gpt-5.6-terra',
|
|
19
19
|
reasoningEffort: 'medium',
|
|
20
20
|
currentFile: 'src/core/foo.ts',
|
|
21
21
|
currentTask: 'Editing Zellij slot pane renderer',
|
|
@@ -56,7 +56,7 @@ await fs.writeFile(path.join(artifactDir, 'zellij-worker-pane.json'), JSON.strin
|
|
|
56
56
|
}, null, 2));
|
|
57
57
|
await fs.writeFile(path.join(artifactDir, 'codex-control-proof.json'), JSON.stringify({
|
|
58
58
|
config: {
|
|
59
|
-
model: 'gpt-5.
|
|
59
|
+
model: 'gpt-5.6-terra',
|
|
60
60
|
model_provider: 'codex-lb',
|
|
61
61
|
service_tier: 'fast',
|
|
62
62
|
model_reasoning_effort: 'medium'
|
|
@@ -134,10 +134,10 @@ const report = {
|
|
|
134
134
|
max_compact_lines: 14,
|
|
135
135
|
contains_slot: /┌─ slot-003/.test(text) && /slot-003/.test(text),
|
|
136
136
|
contains_status: /coding/.test(text),
|
|
137
|
-
contains_runtime: /gpt-5\.
|
|
137
|
+
contains_runtime: /gpt-5\.6-terra·fast/.test(text),
|
|
138
138
|
contains_files: /src\/core\/foo\.ts/.test(text),
|
|
139
139
|
contains_live_event: /renderer updated live pane output/.test(text),
|
|
140
|
-
artifact_hydrates_runtime: /gpt-5\.
|
|
140
|
+
artifact_hydrates_runtime: /gpt-5\.6-terra·fast/.test(hydrated),
|
|
141
141
|
artifact_hydrates_live_event: /renderer stdout tail/.test(hydrated),
|
|
142
142
|
artifact_hydrates_planned_file: /zellij-slot-pane-renderer\.ts/.test(hydrated),
|
|
143
143
|
mission_live_telemetry_wins: /mission telemetry stale fixture/.test(missionHydrated) && /renderer stdout tail/.test(missionHydrated),
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "sneakoscope",
|
|
3
3
|
"displayName": "ㅅㅋㅅ",
|
|
4
|
-
"version": "6.0
|
|
4
|
+
"version": "6.1.0",
|
|
5
5
|
"description": "Proof-first Codex trust layer for bounded agent workflows, search visibility evidence, and release integrity gates.",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"homepage": "https://github.com/mandarange/Sneakoscope-Codex#readme",
|
|
@@ -45,6 +45,17 @@
|
|
|
45
45
|
"!dist/scripts/check-source-runtime.js",
|
|
46
46
|
"!dist/scripts/loop-*-check.js",
|
|
47
47
|
"!dist/scripts/uninstall-inventory-check.js",
|
|
48
|
+
"!dist/scripts/performance-baseline-check.js",
|
|
49
|
+
"!dist/scripts/performance-improvement-report-check.js",
|
|
50
|
+
"!dist/scripts/gate-timing-check.js",
|
|
51
|
+
"!dist/scripts/release-runner-efficiency-check.js",
|
|
52
|
+
"!dist/scripts/command-performance-scorecard-check.js",
|
|
53
|
+
"!dist/scripts/dollar-performance-scorecard-check.js",
|
|
54
|
+
"!dist/scripts/retention-long-run-smoke-check.js",
|
|
55
|
+
"!dist/scripts/ops-maturity-scorecard-check.js",
|
|
56
|
+
"!dist/scripts/naruto-real-parallelism-blackbox.js",
|
|
57
|
+
"!dist/scripts/agent-native-release-gate.js",
|
|
58
|
+
"!dist/scripts/release-parallel-check.js",
|
|
48
59
|
"dist/scripts/doctor-context7-mcp-repair-blackbox.js",
|
|
49
60
|
"dist/scripts/doctor-fix-production-blackbox.js",
|
|
50
61
|
"dist/scripts/doctor-startup-config-repair-blackbox.js",
|
|
@@ -53,19 +64,18 @@
|
|
|
53
64
|
"dist/scripts/supabase-secret-preservation-blackbox.js",
|
|
54
65
|
"dist/scripts/update-preserves-supabase-keys-blackbox.js",
|
|
55
66
|
"!dist/vendor/openai-codex/rust-v0.131.0",
|
|
56
|
-
"config/codex-releases/rust-v0.
|
|
67
|
+
"config/codex-releases/rust-v0.144.1.json",
|
|
57
68
|
"config/bench-baseline.json",
|
|
58
69
|
"config/competitor-scorecard-baseline.json",
|
|
59
70
|
"config/perf-budgets.v1.json",
|
|
60
71
|
"schemas",
|
|
61
|
-
"!schemas/codex/app-server-0.
|
|
62
|
-
"schemas/codex/app-server-0.
|
|
63
|
-
"!schemas/codex/app-server-0.
|
|
72
|
+
"!schemas/codex/app-server-0.144/**",
|
|
73
|
+
"schemas/codex/app-server-0.144/codex_app_server_protocol.v2.schemas.json",
|
|
74
|
+
"!schemas/codex/app-server-0.144-ts/**",
|
|
64
75
|
"crates/sks-core/Cargo.lock",
|
|
65
76
|
"crates/sks-core/Cargo.toml",
|
|
66
77
|
"crates/sks-core/src",
|
|
67
78
|
"docs/demo.tape",
|
|
68
|
-
"docs/assets/sneakoscope-architecture-pipeline.jpg",
|
|
69
79
|
"README.md",
|
|
70
80
|
"LICENSE"
|
|
71
81
|
],
|
|
@@ -77,7 +87,7 @@
|
|
|
77
87
|
"prepack": "npm run build",
|
|
78
88
|
"build:clean": "node -e \"const fs=require('fs'); fs.rmSync('dist',{recursive:true,force:true}); fs.rmSync('.sneakoscope/cache/tsbuildinfo',{recursive:true,force:true})\" && tsc -p tsconfig.json && node ./dist/scripts/ensure-bin-executable.js && node ./dist/scripts/build-dist.js",
|
|
79
89
|
"build:incremental": "tsc -p tsconfig.json && node ./dist/scripts/ensure-bin-executable.js && node ./dist/scripts/build-dist.js",
|
|
80
|
-
"test": "node
|
|
90
|
+
"test": "node ./dist/scripts/canonical-test-runner.js",
|
|
81
91
|
"prepublishOnly": "node ./dist/scripts/prepublish-release-check-or-fast.js && node ./dist/scripts/release-check-stamp.js verify && node ./dist/scripts/package-published-contract-check.js && node ./dist/scripts/release-registry-check.js --require-unpublished --require-publish-auth",
|
|
82
92
|
"runtime:no-src-mjs": "node ./dist/scripts/runtime-no-src-mjs-check.js",
|
|
83
93
|
"runtime:ts-source-of-truth": "node ./dist/scripts/runtime-ts-source-of-truth-check.js",
|
|
@@ -111,7 +121,7 @@
|
|
|
111
121
|
"zellij:layout-valid": "node ./dist/scripts/zellij-layout-valid-check.js",
|
|
112
122
|
"zellij:doctor-readiness": "node ./dist/scripts/zellij-doctor-readiness-check.js",
|
|
113
123
|
"codex:project-config-policy-splitter": "node ./dist/scripts/codex-project-config-policy-splitter-check.js",
|
|
114
|
-
"
|
|
124
|
+
"migration:upgrade-safety": "node ./dist/scripts/legacy-upgrade-matrix-check.js",
|
|
115
125
|
"secret:supabase-preservation-blackbox": "node ./dist/scripts/supabase-secret-preservation-blackbox.js",
|
|
116
126
|
"update:preserves-supabase-keys": "node ./dist/scripts/update-preserves-supabase-keys-blackbox.js",
|
|
117
127
|
"packcheck": "for d in bin test; do [ -d \"$d\" ] && find \"$d\" -name '*.mjs' -print0; done | xargs -0 -n1 node --check && npm run runtime:no-src-mjs",
|
|
@@ -124,23 +134,22 @@
|
|
|
124
134
|
"pipeline-budget:check": "node ./dist/scripts/check-pipeline-budget.js",
|
|
125
135
|
"pipeline-runtime:check": "node ./dist/scripts/check-pipeline-runtime.js",
|
|
126
136
|
"sizecheck": "node ./dist/scripts/sizecheck.js",
|
|
127
|
-
"registry:check": "node ./dist/scripts/release-registry-check.js",
|
|
128
137
|
"publish-tag:check": "node ./dist/scripts/check-publish-tag.js",
|
|
129
138
|
"feature:check": "node ./dist/bin/sks.js features check --json",
|
|
130
139
|
"feature-quality:check": "node ./dist/scripts/check-feature-quality.js --release",
|
|
131
|
-
"all-features:selftest": "node ./dist/bin/sks.js all-features selftest --mock --json",
|
|
132
140
|
"naruto:sim-active-pool-runtime": "node ./dist/scripts/naruto-real-active-pool-runtime-check.js",
|
|
133
141
|
"core-skill:no-drift": "node ./dist/scripts/core-skill-no-drift-check.js",
|
|
134
142
|
"skill:dedupe-blackbox": "node ./dist/scripts/project-skill-dedupe-blackbox.js",
|
|
135
|
-
"release:check:affected": "npm run build:incremental --silent && node ./dist/scripts/release-gate-dag-runner.js --preset affected --changed-since auto --sla 5m
|
|
136
|
-
"release:check
|
|
137
|
-
"release:check:fast": "npm run build:incremental --silent && node ./dist/scripts/release-gate-dag-runner.js --preset fast --changed-since auto --sla 5m
|
|
138
|
-
"release:check:confidence": "npm run build:incremental --silent && node ./dist/scripts/release-gate-dag-runner.js --preset confidence --changed-since auto --sla 5m
|
|
139
|
-
"release:check:full": "npm run build:clean --silent && node ./dist/bin/sks.js doctor --fix --yes --json
|
|
143
|
+
"release:check:affected": "npm run build:incremental --silent && node ./dist/scripts/release-gate-dag-runner.js --preset affected --changed-since auto --sla 5m",
|
|
144
|
+
"release:real-check": "node ./dist/scripts/release-real-check.js",
|
|
145
|
+
"release:check:fast": "npm run build:incremental --silent && node ./dist/scripts/release-gate-dag-runner.js --preset fast --changed-since auto --sla 5m",
|
|
146
|
+
"release:check:confidence": "npm run build:incremental --silent && node ./dist/scripts/release-gate-dag-runner.js --preset confidence --changed-since auto --sla 5m",
|
|
147
|
+
"release:check:full": "npm run build:clean --silent && node ./dist/bin/sks.js doctor --fix --yes --json --report-file .sneakoscope/reports/release-check-full-doctor.json >/dev/null && node ./dist/scripts/release-gate-dag-runner.js --preset release --full && node ./dist/scripts/release-real-check.js --skip-release-check && npm run build:clean --silent && npm run release:dist-freshness --silent && node ./dist/scripts/release-check-stamp.js write --preset release --full",
|
|
140
148
|
"publish:packlist-performance": "node ./dist/scripts/packlist-performance-check.js",
|
|
149
|
+
"publish:dry-run-performance": "node ./dist/scripts/npm-publish-performance-check.js",
|
|
141
150
|
"publish:dry": "npm run publish:prep-ignore-scripts && npm publish --dry-run --ignore-scripts --json",
|
|
142
151
|
"publish:verify-ignore-scripts": "npm run build:clean --silent && npm run typecheck --silent && npm test --silent && npm run release:version-truth --silent && npm run release:dist-freshness --silent && npm run publish:packlist-performance --silent && node ./dist/scripts/package-published-contract-check.js && npm run publish-tag:check --silent && npm pack --dry-run --ignore-scripts --json",
|
|
143
|
-
"publish:prep-ignore-scripts": "npm run publish:verify-ignore-scripts --silent && node ./dist/scripts/release-registry-check.js --require-unpublished --require-publish-auth",
|
|
152
|
+
"publish:prep-ignore-scripts": "npm run publish:verify-ignore-scripts --silent && node ./dist/scripts/release-check-stamp.js verify && node ./dist/scripts/release-registry-check.js --require-unpublished --require-publish-auth",
|
|
144
153
|
"publish:ignore-scripts": "npm run publish:prep-ignore-scripts && npm publish --ignore-scripts",
|
|
145
154
|
"gates:run": "node ./dist/scripts/release-gate-dag-runner.js",
|
|
146
155
|
"policy:gate-audit": "node ./dist/scripts/gate-policy-audit-check.js",
|
|
@@ -149,8 +158,6 @@
|
|
|
149
158
|
"competitor:scorecard": "node ./dist/scripts/competitor-scorecard-check.js",
|
|
150
159
|
"runtime:installed-smoke": "node ./dist/scripts/installed-package-smoke-check.js",
|
|
151
160
|
"perf:budgets": "node ./dist/scripts/perf-budget-check.js",
|
|
152
|
-
"perf:baseline": "node ./dist/scripts/performance-baseline-check.js",
|
|
153
|
-
"perf:improvement-report": "node ./dist/scripts/performance-improvement-report-check.js",
|
|
154
161
|
"runtime:import-budget": "node ./dist/scripts/import-graph-budget-check.js",
|
|
155
162
|
"fsx:hotpath": "node ./dist/scripts/fsx-hotpath-check.js",
|
|
156
163
|
"hook:latency-quantum": "node ./dist/scripts/hook-latency-quantum-check.js",
|
|
@@ -167,25 +174,15 @@
|
|
|
167
174
|
"super-search:live-smoke": "node ./dist/scripts/super-search-live-smoke-check.js",
|
|
168
175
|
"seo:metadata-sync": "node ./dist/scripts/seo-metadata-sync-check.js",
|
|
169
176
|
"seo:marketing-truthfulness": "node ./dist/scripts/seo-marketing-truthfulness-check.js",
|
|
170
|
-
"release:gate-timing": "node ./dist/scripts/gate-timing-check.js",
|
|
171
|
-
"release:runner-efficiency": "node ./dist/scripts/release-runner-efficiency-check.js",
|
|
172
177
|
"doctor:idempotence": "node ./dist/scripts/doctor-idempotence-check.js",
|
|
173
178
|
"retention:budget": "node ./dist/scripts/retention-budget-check.js",
|
|
174
179
|
"retention:dry-run": "node ./dist/scripts/retention-dry-run-check.js",
|
|
175
180
|
"retention:apply-smoke": "node ./dist/scripts/retention-apply-smoke-check.js",
|
|
176
|
-
"retention:long-run-smoke": "node ./dist/scripts/retention-long-run-smoke-check.js",
|
|
177
181
|
"upgrade:migration-matrix": "node ./dist/scripts/upgrade-migration-matrix-check.js",
|
|
178
182
|
"recovery:rollback-smoke": "node ./dist/scripts/rollback-recovery-smoke-check.js",
|
|
179
|
-
"critical:real-smoke": "node ./dist/scripts/high-risk-contracts-check.js",
|
|
180
183
|
"ops:diagnostics-bundle": "node ./dist/scripts/ops-diagnostics-bundle-check.js",
|
|
181
|
-
"ops:maturity-scorecard": "node ./dist/scripts/ops-maturity-scorecard-check.js",
|
|
182
|
-
"command:performance-scorecard": "node ./dist/scripts/command-performance-scorecard-check.js",
|
|
183
|
-
"dollar:performance-scorecard": "node ./dist/scripts/dollar-performance-scorecard-check.js",
|
|
184
184
|
"security:high-risk-contracts": "node ./dist/scripts/high-risk-contracts-check.js",
|
|
185
|
-
"route:intent-regression": "node ./dist/scripts/route-intent-regression-check.js"
|
|
186
|
-
"release:check:integrity": "npm run build:clean --silent && npm run typecheck --silent && npm test --silent && npm run route:intent-regression --silent && npm run seo:metadata-sync --silent && npm run seo:marketing-truthfulness --silent && npm run perf:budgets --silent && npm run hook:latency-quantum --silent && npm run super-search:offline-contract --silent && npm run super-search:local-http-smoke --silent && npm run naruto:e2e-hermetic-write --silent && npm run security:high-risk-contracts --silent && npm run command:performance-scorecard --silent && npm run dollar:performance-scorecard --silent && npm run doctor:ops-semantics --silent && npm run doctor:idempotence --silent && npm run update:fastpath --silent && npm run upgrade:migration-matrix --silent && npm run recovery:rollback-smoke --silent && npm run retention:budget --silent && npm run retention:dry-run --silent && npm run retention:apply-smoke --silent && npm run retention:long-run-smoke --silent && npm run runtime:installed-smoke --silent && npm run ops:diagnostics-bundle --silent && npm run ops:maturity-scorecard --silent && npm run publish:packlist-performance --silent",
|
|
187
|
-
"release:check:quantum": "npm run build:clean --silent && npm run typecheck --silent && npm test --silent && npm run route:intent-regression --silent && npm run perf:budgets --silent && npm run hook:latency-quantum --silent && npm run parallel:production-smoke --silent && npm run super-search:offline-contract --silent && npm run doctor:idempotence --silent && npm run runtime:installed-smoke --silent && npm run retention:budget --silent && npm run competitor:scorecard --silent && npm run release:check:full --silent",
|
|
188
|
-
"release:check:dominance": "npm run build:clean --silent && npm run typecheck --silent && npm test --silent && npm run runtime:import-budget --silent && npm run fsx:hotpath --silent && npm run route:intent-regression --silent && npm run perf:budgets --silent && npm run hook:latency-quantum --silent && npm run parallel:production-smoke --silent && npm run naruto:e2e-hermetic --silent && npm run super-search:offline-contract --silent && npm run super-search:local-http-smoke --silent && npm run doctor:fastpath --silent && npm run doctor:idempotence --silent && npm run update:fastpath --silent && npm run runtime:installed-smoke --silent && npm run retention:budget --silent && npm run retention:dry-run --silent && npm run retention:apply-smoke --silent && npm run command:performance-scorecard --silent && npm run dollar:performance-scorecard --silent && npm run security:high-risk-contracts --silent && npm run release:runner-efficiency --silent && npm run perf:improvement-report --silent"
|
|
185
|
+
"route:intent-regression": "node ./dist/scripts/route-intent-regression-check.js"
|
|
189
186
|
},
|
|
190
187
|
"keywords": [
|
|
191
188
|
"sneakoscope",
|
|
@@ -205,7 +202,7 @@
|
|
|
205
202
|
"license": "MIT",
|
|
206
203
|
"dependencies": {
|
|
207
204
|
"@modelcontextprotocol/sdk": "1.29.0",
|
|
208
|
-
"@openai/codex-sdk": "0.
|
|
205
|
+
"@openai/codex-sdk": "0.144.1",
|
|
209
206
|
"figlet": "^1.11.0",
|
|
210
207
|
"smol-toml": "^1.7.0",
|
|
211
208
|
"typescript": "^5.9.3"
|