sneakoscope 4.0.13 → 4.0.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (101) hide show
  1. package/README.md +10 -2
  2. package/crates/sks-core/Cargo.lock +1 -1
  3. package/crates/sks-core/Cargo.toml +1 -1
  4. package/crates/sks-core/src/main.rs +1 -1
  5. package/dist/bin/sks.js +1 -1
  6. package/dist/cli/global-mode-router.js +2 -1
  7. package/dist/core/commands/mad-sks-command.js +3 -0
  8. package/dist/core/fsx.js +1 -1
  9. package/dist/core/providers/glm/bench/glm-bench-model-lock-proof.js +32 -3
  10. package/dist/core/providers/glm/bench/glm-benchmark-runner.js +29 -5
  11. package/dist/core/providers/glm/bench/glm-benchmark-types.js +1 -1
  12. package/dist/core/providers/glm/naruto/glm-naruto-critical-path.js +51 -0
  13. package/dist/core/providers/glm/naruto/glm-naruto-final-seal.js +9 -2
  14. package/dist/core/providers/glm/naruto/glm-naruto-orchestrator.js +101 -15
  15. package/dist/core/providers/glm/naruto/glm-naruto-parallelism-summary.js +55 -0
  16. package/dist/core/providers/glm/naruto/glm-naruto-requirement-coverage.js +92 -0
  17. package/dist/core/providers/glm/naruto/glm-naruto-requirement-ledger.js +42 -0
  18. package/dist/core/providers/glm/naruto/glm-naruto-stage-scheduler.js +85 -0
  19. package/dist/core/providers/glm/naruto/glm-naruto-task-size-classifier.js +12 -0
  20. package/dist/core/providers/glm/naruto/glm-naruto-trace.js +4 -0
  21. package/dist/core/providers/glm/naruto/glm-naruto-verifier-output.js +5 -0
  22. package/dist/core/providers/glm/naruto/glm-naruto-worker-pool.js +130 -44
  23. package/dist/core/providers/glm/naruto/glm-naruto-worker-runtime.js +6 -2
  24. package/dist/core/routes/model-mode-router.js +44 -0
  25. package/dist/core/version.js +1 -1
  26. package/package.json +24 -1
  27. package/dist/scripts/agent-dynamic-pool-fixture.js +0 -80
  28. package/dist/scripts/agent-native-release-gate.js +0 -274
  29. package/dist/scripts/agent-patch-swarm-gate-lib.js +0 -113
  30. package/dist/scripts/agent-real-codex-patch-envelope-smoke.js +0 -126
  31. package/dist/scripts/agent-route-blackbox-lib.js +0 -132
  32. package/dist/scripts/blackbox-command-import-smoke.js +0 -143
  33. package/dist/scripts/blackbox-global-shim.js +0 -77
  34. package/dist/scripts/blackbox-matrix.js +0 -70
  35. package/dist/scripts/blackbox-npx-one-shot.js +0 -69
  36. package/dist/scripts/blackbox-pack-install.js +0 -174
  37. package/dist/scripts/build-dist.js +0 -64
  38. package/dist/scripts/check-architecture.js +0 -135
  39. package/dist/scripts/check-cli-entrypoint.js +0 -43
  40. package/dist/scripts/check-command-module-budget.js +0 -25
  41. package/dist/scripts/check-dist-runtime.js +0 -100
  42. package/dist/scripts/check-feature-quality.js +0 -53
  43. package/dist/scripts/check-legacy-free.js +0 -66
  44. package/dist/scripts/check-package-boundary.js +0 -108
  45. package/dist/scripts/check-pipeline-budget.js +0 -69
  46. package/dist/scripts/check-pipeline-runtime.js +0 -25
  47. package/dist/scripts/check-publish-tag.js +0 -30
  48. package/dist/scripts/check-route-modularity.js +0 -82
  49. package/dist/scripts/check-runtime-schemas.js +0 -87
  50. package/dist/scripts/check-source-runtime.js +0 -4
  51. package/dist/scripts/check-ts-contracts.js +0 -69
  52. package/dist/scripts/check-ts-suppressions.js +0 -58
  53. package/dist/scripts/clean-dist.js +0 -8
  54. package/dist/scripts/codex-0140-feature-gate-lib.js +0 -14
  55. package/dist/scripts/codex-config-eperm-fixture.js +0 -32
  56. package/dist/scripts/codex-lb-missing-env-regression.js +0 -40
  57. package/dist/scripts/codex-native-runtime-e2e-fixture.js +0 -75
  58. package/dist/scripts/codex-project-config-policy-merge-regression.js +0 -92
  59. package/dist/scripts/core-skill-legacy-promotion-api-audit.js +0 -54
  60. package/dist/scripts/ensure-bin-executable.js +0 -10
  61. package/dist/scripts/fixtures/fake-codex-config-loader.js +0 -51
  62. package/dist/scripts/github-release-body-helper.js +0 -65
  63. package/dist/scripts/gpt-image-2-real-file-smoke.js +0 -448
  64. package/dist/scripts/hooks-no-unsupported-handlers.js +0 -15
  65. package/dist/scripts/hooks-runtime-replay-warning-zero-v2.js +0 -26
  66. package/dist/scripts/hooks-runtime-replay-warning-zero.js +0 -10
  67. package/dist/scripts/hooks-trust-warning-zero.js +0 -14
  68. package/dist/scripts/lib/codex-sdk-gate-lib.js +0 -92
  69. package/dist/scripts/lib/ensure-dist-fresh.js +0 -142
  70. package/dist/scripts/lib/git-worktree-fixture.js +0 -33
  71. package/dist/scripts/lib/mad-sks-actual-executor-check-lib.js +0 -255
  72. package/dist/scripts/lib/native-cli-session-swarm-check-lib.js +0 -79
  73. package/dist/scripts/lib/real-codex-parallel-gate.js +0 -94
  74. package/dist/scripts/lib/real-codex-parallel-proof-fixture.js +0 -55
  75. package/dist/scripts/lib/valid-png-fixture.js +0 -25
  76. package/dist/scripts/mad-sks-live-protected-core-smoke.js +0 -5
  77. package/dist/scripts/naruto-real-local-gpt-final-smoke.js +0 -25
  78. package/dist/scripts/perf-gate.js +0 -39
  79. package/dist/scripts/prepublish-release-check-or-fast.js +0 -121
  80. package/dist/scripts/release-3112-required-gates.js +0 -30
  81. package/dist/scripts/release-3113-required-gates.js +0 -25
  82. package/dist/scripts/release-4000-required-gates.js +0 -36
  83. package/dist/scripts/release-4001-required-gates.js +0 -13
  84. package/dist/scripts/release-4002-required-gates.js +0 -14
  85. package/dist/scripts/release-check-dynamic-execute.js +0 -259
  86. package/dist/scripts/release-check-dynamic.js +0 -107
  87. package/dist/scripts/release-check-stamp.js +0 -261
  88. package/dist/scripts/release-gate-dag-runner.js +0 -56
  89. package/dist/scripts/release-gate-existence-audit.js +0 -111
  90. package/dist/scripts/release-gate-planner.js +0 -34
  91. package/dist/scripts/release-gate-worker.js +0 -10
  92. package/dist/scripts/release-speed-summary.js +0 -67
  93. package/dist/scripts/repo-audit.js +0 -83
  94. package/dist/scripts/rust-smoke.js +0 -5
  95. package/dist/scripts/sizecheck.js +0 -146
  96. package/dist/scripts/sks-1-11-gate-lib.js +0 -78
  97. package/dist/scripts/sks-1-18-gate-lib.js +0 -55
  98. package/dist/scripts/tmux-removal-inventory.js +0 -36
  99. package/dist/scripts/write-build-manifest.js +0 -71
  100. package/dist/scripts/zellij-dashboard-watch.js +0 -41
  101. package/dist/scripts/zellij-right-column-geometry-proof.js +0 -162
@@ -1,94 +0,0 @@
1
- // @ts-nocheck
2
- import fs from 'node:fs';
3
- import os from 'node:os';
4
- import path from 'node:path';
5
- import { spawnSync } from 'node:child_process';
6
- import { emitGate, importDist, root } from '../sks-1-18-gate-lib.js';
7
- export async function runRealCodexParallelGate({ workers, gate }) {
8
- const reportPath = path.join(root, '.sneakoscope', 'reports', `${gate.replace(/[:]/g, '-')}.json`);
9
- fs.mkdirSync(path.dirname(reportPath), { recursive: true });
10
- const required = process.env.SKS_REQUIRE_REAL_CODEX_PARALLEL === '1';
11
- if (process.env.SKS_TEST_REAL_CODEX_PARALLEL !== '1') {
12
- const report = {
13
- schema: 'sks.real-codex-parallel-gate.v1',
14
- ok: !required,
15
- status: required ? 'blocked' : 'integration_optional',
16
- proof_level: required ? 'real_required_missing' : 'integration_optional',
17
- requested_workers: workers,
18
- required,
19
- blockers: required ? ['real_codex_parallel_not_requested'] : []
20
- };
21
- fs.writeFileSync(reportPath, `${JSON.stringify(report, null, 2)}\n`);
22
- emitGate(gate, { status: report.status, requested_workers: workers });
23
- process.exit(required ? 1 : 0);
24
- }
25
- const fixture = fs.mkdtempSync(path.join(os.tmpdir(), 'sks-real-codex-parallel-'));
26
- const targetFiles = Array.from({ length: workers }, (_, index) => `target-${String(index + 1).padStart(3, '0')}.txt`);
27
- for (const file of targetFiles)
28
- fs.writeFileSync(path.join(fixture, file), `before ${file}\n`);
29
- const prompt = [
30
- 'Real Codex parallel worker proof.',
31
- `Each worker has an independent write target: ${targetFiles.map((file) => `\`${file}\``).join(', ')}.`,
32
- 'Return valid SKS agent result JSON.',
33
- 'For write-capable slices, emit model_authored patch_envelopes with lease proof, verification hints, and rollback hints.'
34
- ].join(' ');
35
- const run = spawnSync(process.execPath, [
36
- path.join(root, 'dist', 'bin', 'sks.js'),
37
- 'agent',
38
- 'run',
39
- prompt,
40
- '--backend',
41
- 'codex-sdk',
42
- '--real',
43
- '--agents',
44
- String(workers),
45
- '--target-active-slots',
46
- String(workers),
47
- '--minimum-work-items',
48
- String(workers),
49
- '--work-items',
50
- String(workers),
51
- '--write-mode',
52
- 'parallel',
53
- '--json'
54
- ], {
55
- cwd: fixture,
56
- encoding: 'utf8',
57
- env: { ...process.env, SKS_SKIP_NPM_FRESHNESS_CHECK: '1', SKS_TEST_REAL_CODEX_PARALLEL: '1' },
58
- timeout: Number(process.env.SKS_REAL_CODEX_PARALLEL_TIMEOUT_MS || 15 * 60 * 1000),
59
- maxBuffer: 1024 * 1024 * 32
60
- });
61
- if (run.status !== 0) {
62
- const report = {
63
- schema: 'sks.real-codex-parallel-gate.v1',
64
- ok: false,
65
- status: 'blocked',
66
- proof_level: 'blocked',
67
- requested_workers: workers,
68
- required,
69
- fixture_root: fixture,
70
- blockers: [`real_codex_parallel_command_exit_${run.status}`],
71
- stdout_tail: run.stdout.slice(-4000),
72
- stderr_tail: run.stderr.slice(-4000)
73
- };
74
- fs.writeFileSync(reportPath, `${JSON.stringify(report, null, 2)}\n`);
75
- console.error(JSON.stringify(report, null, 2));
76
- process.exit(1);
77
- }
78
- const json = parseJson(run.stdout);
79
- const ledgerRoot = path.join(fixture, json.ledger_root || '');
80
- const mod = await importDist('core/agents/real-codex-parallel-proof.js');
81
- const proof = await mod.writeRealCodexParallelProof(ledgerRoot, { requestedWorkers: workers, required: true });
82
- fs.writeFileSync(reportPath, `${JSON.stringify(proof, null, 2)}\n`);
83
- if (!proof.ok) {
84
- console.error(JSON.stringify({ ok: false, proof }, null, 2));
85
- process.exit(1);
86
- }
87
- emitGate(gate, { status: proof.status, requested_workers: workers, overlap: proof.max_observed_codex_child_process_overlap });
88
- }
89
- function parseJson(stdout) {
90
- const start = stdout.indexOf('{');
91
- const end = stdout.lastIndexOf('}');
92
- return JSON.parse(stdout.slice(start, end + 1));
93
- }
94
- //# sourceMappingURL=real-codex-parallel-gate.js.map
@@ -1,55 +0,0 @@
1
- // @ts-nocheck
2
- import fs from 'node:fs/promises';
3
- import os from 'node:os';
4
- import path from 'node:path';
5
- import { importDist } from '../sks-1-18-gate-lib.js';
6
- export async function buildFixtureProof({ workers, required }) {
7
- const root = await fs.mkdtemp(path.join(os.tmpdir(), 'sks-real-codex-proof-'));
8
- const dirs = [];
9
- const base = Date.now();
10
- for (let index = 0; index < workers; index += 1) {
11
- const dir = path.join('sessions', `slot-${String(index + 1).padStart(3, '0')}`, 'gen-1', 'worker');
12
- dirs.push(dir);
13
- await fs.mkdir(path.join(root, dir), { recursive: true });
14
- await fs.writeFile(path.join(root, dir, 'worker-backend-router-report.json'), JSON.stringify({
15
- schema: 'sks.native-worker-backend-router.v1',
16
- ok: true,
17
- selected_backend: 'codex-sdk',
18
- worker_process_id: 3000 + index,
19
- child_process_ids: [],
20
- sdk_thread_id: `sdk-thread-${index}`,
21
- stream_event_count: 4,
22
- structured_output_valid: true,
23
- patch_envelope_count: 1,
24
- model_authored_patch_envelopes: true,
25
- fixture_patch_envelopes: false,
26
- proof_level: 'model_authored',
27
- fast_mode: true,
28
- service_tier: 'fast',
29
- blockers: []
30
- }, null, 2));
31
- await fs.writeFile(path.join(root, dir, 'codex-control-proof.json'), JSON.stringify({
32
- schema: 'sks.codex-control-proof.v1',
33
- ok: true,
34
- backend: 'codex-sdk',
35
- sdk_thread_id: `sdk-thread-${index}`,
36
- sdk_run_id: `sdk-run-${index}`,
37
- stream_event_count: 4,
38
- structured_output_valid: true,
39
- output_schema_id: 'sks.agent-worker-result.v1',
40
- fast_mode: true,
41
- service_tier: 'fast'
42
- }, null, 2));
43
- await fs.writeFile(path.join(root, dir, 'codex-worker-output-truth.json'), JSON.stringify({ ok: true, patch_envelope_count: 1 }, null, 2));
44
- }
45
- await fs.writeFile(path.join(root, 'agent-native-cli-session-swarm.json'), JSON.stringify({
46
- schema: 'sks.agent-native-cli-session-swarm.v1',
47
- requested_agents: workers,
48
- target_active_slots: workers,
49
- process_ids: dirs.map((_, index) => 3000 + index),
50
- worker_artifact_dirs: dirs
51
- }, null, 2));
52
- const mod = await importDist('core/agents/real-codex-parallel-proof.js');
53
- return mod.writeRealCodexParallelProof(root, { requestedWorkers: workers, required });
54
- }
55
- //# sourceMappingURL=real-codex-parallel-proof-fixture.js.map
@@ -1,25 +0,0 @@
1
- // @ts-nocheck
2
- import fs from 'node:fs';
3
- import os from 'node:os';
4
- import path from 'node:path';
5
- export const ONE_BY_ONE_PNG_BASE64 = 'iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mP8/x8AAwMB/axX7V8AAAAASUVORK5CYII=';
6
- export function validPngBuffer() {
7
- return Buffer.from(ONE_BY_ONE_PNG_BASE64, 'base64');
8
- }
9
- export function writeValidPngFixture(file) {
10
- fs.mkdirSync(path.dirname(file), { recursive: true });
11
- fs.writeFileSync(file, validPngBuffer());
12
- return file;
13
- }
14
- export function writeRepoTempPngFixture(name, root = process.cwd()) {
15
- return writeValidPngFixture(path.join(root, '.sneakoscope', 'tmp', 'fixtures', name));
16
- }
17
- export function repoTempPngFixtureArg(name, root = process.cwd()) {
18
- const file = writeRepoTempPngFixture(name, root);
19
- return path.relative(root, file).split(path.sep).join('/');
20
- }
21
- export function osTempPngFixtureArg(name) {
22
- const dir = fs.mkdtempSync(path.join(os.tmpdir(), 'sks-png-fixture-'));
23
- return writeValidPngFixture(path.join(dir, name));
24
- }
25
- //# sourceMappingURL=valid-png-fixture.js.map
@@ -1,5 +0,0 @@
1
- #!/usr/bin/env node
2
- // @ts-nocheck
3
- import { runMadSksExecutorCheck } from './lib/mad-sks-actual-executor-check-lib.js';
4
- await runMadSksExecutorCheck('live-protected-core-smoke');
5
- //# sourceMappingURL=mad-sks-live-protected-core-smoke.js.map
@@ -1,25 +0,0 @@
1
- #!/usr/bin/env node
2
- // @ts-nocheck
3
- import fs from 'node:fs/promises';
4
- import path from 'node:path';
5
- import { assertGate, emitGate, importDist } from './sks-1-18-gate-lib.js';
6
- const finalizer = await importDist('core/naruto/naruto-finalizer.js');
7
- const draft = finalizer.evaluateNarutoFinalizer({ localParticipated: true, gptFinalStatus: null, applyPatches: true });
8
- const approved = finalizer.evaluateNarutoFinalizer({ localParticipated: true, gptFinalStatus: 'approved', applyPatches: true });
9
- const deterministic = finalizer.evaluateNarutoFinalizer({ localParticipated: false, applyPatches: true });
10
- const deterministicDraft = finalizer.evaluateNarutoFinalizer({ localParticipated: false, applyPatches: false });
11
- const narutoCommandSource = await fs.readFile(path.join(process.cwd(), 'src/core/commands/naruto-command.ts'), 'utf8');
12
- assertGate(draft.ok === false && draft.blockers.includes('naruto_local_worker_output_needs_gpt_final_arbiter'), 'local worker patch must be blocked until GPT final arbiter', draft);
13
- assertGate(approved.ok === true && approved.final_patch_source === 'gpt_final_arbiter', 'GPT-approved local output must become final patch source', approved);
14
- assertGate(deterministic.ok === true && deterministic.gpt_final_required === false, 'no-local deterministic run must not require GPT final', deterministic);
15
- assertGate(deterministicDraft.final_status === 'draft', 'no-apply Naruto run must remain draft even when writes were possible', deterministicDraft);
16
- assertGate(deterministicDraft.ok === false && deterministicDraft.run_ok === true && deterministicDraft.release_proof_allowed === false, 'no-apply Naruto draft must not masquerade as an accepted finalizer', deterministicDraft);
17
- assertGate(narutoCommandSource.includes('applyPatches: parsed.applyPatches') && !narutoCommandSource.includes('applyPatches: writeCapable'), 'Naruto command finalizer must use explicit apply-patches flag, not write capability');
18
- assertGate(narutoCommandSource.includes('parsed.applyPatches === true ? finalizer.ok === true : finalizer.run_ok === true') && narutoCommandSource.includes('ok: summaryOk'), 'Naruto command top-level ok must separate patch finality from readonly/no-apply run success');
19
- emitGate('naruto:real-local-gpt-final-smoke', {
20
- require_real_env: process.env.SKS_REQUIRE_LOCAL_LLM === '1' || process.env.SKS_REQUIRE_GPT_FINAL === '1',
21
- draft_status: draft.final_status,
22
- approved_status: approved.final_status,
23
- deterministic_no_apply_status: deterministicDraft.final_status
24
- });
25
- //# sourceMappingURL=naruto-real-local-gpt-final-smoke.js.map
@@ -1,39 +0,0 @@
1
- #!/usr/bin/env node
2
- // @ts-nocheck
3
- import { DEFAULT_COLD_START_ITERATIONS, resolveColdStartIterations, runColdStart } from '../commands/perf.js';
4
- const requestedIterations = resolveColdStartIterations(process.env.SKS_COLD_START_ITERATIONS);
5
- const tier = process.env.SKS_PERF_TIER || (process.env.CI === 'true' ? 'source-ci' : 'source-local');
6
- let result = runColdStart({ root: process.cwd(), iterations: requestedIterations, tier });
7
- if (!result.ok && process.env.SKS_PERF_GATE_RETRY !== '0' && isBudgetOnlyMiss(result)) {
8
- const retryIterations = Math.max(requestedIterations, DEFAULT_COLD_START_ITERATIONS);
9
- const retry = runColdStart({ root: process.cwd(), iterations: retryIterations, tier });
10
- result = {
11
- ...retry,
12
- gate_retry: {
13
- attempted: true,
14
- reason: 'initial_budget_miss_without_process_failures',
15
- initial: summarizeInitial(result)
16
- }
17
- };
18
- }
19
- console.log(JSON.stringify(result, null, 2));
20
- if (!result.ok)
21
- process.exitCode = 1;
22
- function isBudgetOnlyMiss(result) {
23
- if (!result || result.ok)
24
- return false;
25
- return (result.commands || []).every((row) => !row.failures?.length);
26
- }
27
- function summarizeInitial(result) {
28
- return {
29
- iterations: result.commands?.[0]?.iterations || requestedIterations,
30
- commands: (result.commands || []).map((row) => ({
31
- cmd: row.cmd,
32
- p50_ms: row.p50_ms,
33
- p95_ms: row.p95_ms,
34
- budget_p95_ms: row.budget_p95_ms,
35
- ok: row.ok
36
- }))
37
- };
38
- }
39
- //# sourceMappingURL=perf-gate.js.map
@@ -1,121 +0,0 @@
1
- #!/usr/bin/env node
2
- // @ts-nocheck
3
- // Publish-time release check coordinator.
4
- //
5
- // Fast path: accept a current release-check stamp.
6
- // Repair path: if the stamp is missing/stale, run the authoritative full
7
- // `release:check:full` once, then require both the fast check and the
8
- // authoritative stamp verifier to pass.
9
- //
10
- // This keeps direct `npm publish` usable without weakening the publish gate:
11
- // stale stamp repair is the full release gate, not a synthetic stamp write.
12
- import { spawnSync } from 'node:child_process';
13
- import process from 'node:process';
14
- const npmCmd = process.platform === 'win32' ? 'npm.cmd' : 'npm';
15
- function runFastCheck() {
16
- const result = spawnSync(process.execPath, ['./dist/scripts/prepublish-fast-check.js'], {
17
- cwd: process.cwd(),
18
- encoding: 'utf8',
19
- env: process.env
20
- });
21
- if (result.stdout)
22
- process.stdout.write(result.stdout);
23
- if (result.stderr)
24
- process.stderr.write(result.stderr);
25
- return {
26
- ...result,
27
- report: parseLastJsonLine(result.stdout)
28
- };
29
- }
30
- function runStampVerify() {
31
- const result = spawnSync(process.execPath, ['./dist/scripts/release-check-stamp.js', 'verify'], {
32
- cwd: process.cwd(),
33
- encoding: 'utf8',
34
- env: process.env
35
- });
36
- if (result.stdout)
37
- process.stdout.write(result.stdout);
38
- if (result.stderr)
39
- process.stderr.write(result.stderr);
40
- return result;
41
- }
42
- function runReleaseCheck() {
43
- const override = process.env.SKS_PREPUBLISH_RELEASE_CHECK_CMD;
44
- if (override) {
45
- return spawnSync(override, {
46
- cwd: process.cwd(),
47
- encoding: 'utf8',
48
- env: process.env,
49
- shell: true,
50
- stdio: 'inherit'
51
- });
52
- }
53
- return spawnSync(npmCmd, ['run', 'release:check:full'], {
54
- cwd: process.cwd(),
55
- encoding: 'utf8',
56
- env: process.env,
57
- stdio: 'inherit'
58
- });
59
- }
60
- function parseLastJsonLine(text = '') {
61
- const lines = String(text).trim().split(/\n/).filter(Boolean).reverse();
62
- for (const line of lines) {
63
- try {
64
- return JSON.parse(line);
65
- }
66
- catch {
67
- // Keep looking; child processes may print non-JSON context.
68
- }
69
- }
70
- return null;
71
- }
72
- function isStaleOrMissingStamp(report) {
73
- if (!report)
74
- return false;
75
- if (report.reason === 'no_release_stamp')
76
- return true;
77
- const mismatched = Array.isArray(report.mismatched) ? report.mismatched : [];
78
- return mismatched.some((name) => [
79
- 'package_version',
80
- 'package_json_sha256',
81
- 'package_files_list_sha256',
82
- 'package_files_sha256',
83
- 'dist_build_sha256',
84
- 'dist_file_count',
85
- 'release_gate_sha256',
86
- 'release_check_sha256',
87
- 'source_digest',
88
- 'source_file_count',
89
- 'stamp_unreadable'
90
- ].includes(name));
91
- }
92
- function repairAndVerify() {
93
- if (process.env.SKS_PREPUBLISH_RUN_RELEASE_CHECK_ON_STALE === '0') {
94
- console.error('Prepublish release-check auto-repair disabled by SKS_PREPUBLISH_RUN_RELEASE_CHECK_ON_STALE=0.');
95
- process.exit(1);
96
- }
97
- console.error('Prepublish release stamp is stale or missing; running full `npm run release:check:full` before publish.');
98
- const releaseCheck = runReleaseCheck();
99
- if (releaseCheck.status !== 0)
100
- process.exit(releaseCheck.status || 1);
101
- const second = runFastCheck();
102
- if (second.status !== 0)
103
- process.exit(second.status || 1);
104
- const secondStamp = runStampVerify();
105
- process.exit(secondStamp.status === 0 ? 0 : (secondStamp.status || 1));
106
- }
107
- function main() {
108
- const first = runFastCheck();
109
- if (first.status === 0) {
110
- const stamp = runStampVerify();
111
- if (stamp.status === 0)
112
- process.exit(0);
113
- repairAndVerify();
114
- }
115
- if (!isStaleOrMissingStamp(first.report)) {
116
- process.exit(first.status || 1);
117
- }
118
- repairAndVerify();
119
- }
120
- main();
121
- //# sourceMappingURL=prepublish-release-check-or-fast.js.map
@@ -1,30 +0,0 @@
1
- export const REQUIRED_3112_RELEASE_IDS = [
2
- 'release:gate-script-parity',
3
- 'release:wiring-3112-blackbox',
4
- 'codex:0140-capability',
5
- 'codex:0140-feature-probes',
6
- 'codex:0140-usage',
7
- 'codex:0140-goal-attachment-preservation',
8
- 'codex:0140-session-delete',
9
- 'codex:0140-import',
10
- 'codex:0140-unified-mentions',
11
- 'codex:0140-bedrock-managed-auth',
12
- 'codex:0140-mcp-reliability',
13
- 'codex:0140-sqlite-recovery',
14
- 'codex:0140-non-tty-interrupt',
15
- 'codex:0140-large-repo-performance',
16
- 'pipeline:codex-0140-integration',
17
- 'codex:0140-integration-blackbox',
18
- 'doctor:fix-production-blackbox',
19
- 'doctor:startup-config-repair',
20
- 'doctor:startup-config-repair-blackbox',
21
- 'doctor:context7-mcp-repair',
22
- 'doctor:context7-mcp-repair-blackbox',
23
- 'doctor:supabase-mcp-repair',
24
- 'doctor:supabase-mcp-repair-blackbox',
25
- 'sks:3112-all-feature-regression'
26
- ];
27
- export const REQUIRED_3112_REAL_CHECK_IDS = [
28
- 'codex:0140-real-probes:require-real'
29
- ];
30
- //# sourceMappingURL=release-3112-required-gates.js.map
@@ -1,25 +0,0 @@
1
- export const REQUIRED_3113_RELEASE_IDS = [
2
- 'release:gate-script-parity',
3
- 'release:wiring-3113-blackbox',
4
- 'codex:0140-deep-probes',
5
- 'codex:0140-goal-attachment-roundtrip',
6
- 'codex:0140-usage-real-parser',
7
- 'pipeline:codex-0140-integration',
8
- 'doctor:transaction-engine',
9
- 'doctor:transaction-engine-blackbox',
10
- 'doctor:fix-production-blackbox',
11
- 'doctor:startup-config-repair',
12
- 'doctor:startup-config-repair-blackbox',
13
- 'doctor:context7-mcp-repair',
14
- 'doctor:context7-mcp-repair-blackbox',
15
- 'doctor:supabase-mcp-repair',
16
- 'doctor:supabase-mcp-repair-blackbox',
17
- 'native-capability:postcheck',
18
- 'secret:line-rollback',
19
- 'secret:preservation-guard',
20
- 'sks:3113-all-feature-regression'
21
- ];
22
- export const REQUIRED_3113_REAL_CHECK_IDS = [
23
- 'codex:0140-real-probes:require-real'
24
- ];
25
- //# sourceMappingURL=release-3113-required-gates.js.map
@@ -1,36 +0,0 @@
1
- export const REQUIRED_4000_RELEASE_IDS = [
2
- 'triwiki:proof-card',
3
- 'triwiki:proof-bank',
4
- 'triwiki:proof-bank-blackbox',
5
- 'triwiki:cache-key',
6
- 'triwiki:module-card',
7
- 'triwiki:gate-impact-map',
8
- 'triwiki:affected-graph',
9
- 'triwiki:affected-graph-blackbox',
10
- 'gate-pack:manifest',
11
- 'gate-pack:runner',
12
- 'gate-pack:runner-blackbox',
13
- 'scheduler:resource-budget',
14
- 'scheduler:extreme-parallel',
15
- 'scheduler:critical-path',
16
- 'pipeline:five-minute-sla',
17
- 'scheduler:extreme-parallel-blackbox',
18
- 'pipeline:five-minute-triwiki-blackbox',
19
- 'build-once:runner',
20
- 'sksd:daemon',
21
- 'sksd:warm-cache-blackbox',
22
- 'probes:memoization',
23
- 'doctor:dirty-plan',
24
- 'doctor:dirty-repair',
25
- 'doctor:dirty-repair-blackbox',
26
- 'legacy:gate-inventory',
27
- 'legacy:gate-purge',
28
- 'orphan:gate-detection',
29
- 'legacy:purge-blackbox',
30
- 'cli:check-tiers',
31
- 'cli:five-minute-task',
32
- 'certificate:sla',
33
- 'sks:400-all-feature-regression'
34
- ];
35
- export const REQUIRED_4000_REAL_CHECK_IDS = [];
36
- //# sourceMappingURL=release-4000-required-gates.js.map
@@ -1,13 +0,0 @@
1
- export const REQUIRED_4001_RELEASE_IDS = [
2
- 'triwiki:stale-proof-rejection',
3
- 'gate-pack:fixture-cache',
4
- 'release:triwiki-first-runner',
5
- 'release:cache-bridge',
6
- 'doctor:dirty-semantic',
7
- 'legacy:strong-inventory',
8
- 'orphan:strong-detection',
9
- 'sks:401-five-minute-actual-blackbox',
10
- 'sks:401-all-feature-regression'
11
- ];
12
- export const REQUIRED_4001_REAL_CHECK_IDS = [];
13
- //# sourceMappingURL=release-4001-required-gates.js.map
@@ -1,14 +0,0 @@
1
- export const REQUIRED_4002_RELEASE_IDS = [
2
- 'build-once:runner-blackbox',
3
- 'release:triwiki-first-runner-blackbox',
4
- 'triwiki:proof-bank-lock-blackbox',
5
- 'gate-pack:v2-blackbox',
6
- 'scheduler:resource-claim-blackbox',
7
- 'doctor:dirty-semantic-blackbox',
8
- 'legacy:purge-final',
9
- 'orphan:purge-final',
10
- 'sks:402-five-minute-real-blackbox',
11
- 'sks:402-all-feature-regression'
12
- ];
13
- export const REQUIRED_4002_REAL_CHECK_IDS = [];
14
- //# sourceMappingURL=release-4002-required-gates.js.map