From 43c8fd16b05128e49fb44d00d7e28d3d7ae4963c Mon Sep 17 00:00:00 2001 From: Efra Espada Date: Thu, 19 Nov 2026 18:36:51 +0100 Subject: [PATCH 1/9] bugfix-970-bind-bugbot-qualification-execution-to-the-pinned-source-and-sanitized-git-environment: bind qualification execution to physical pinned source (#970) --- docs/development/testing.mdx | 50 +++++++ .../evidence/issue-950/ev07-shadow/corpus.cjs | 25 ++-- .../issue-950/ev07-shadow/full-review.cjs | 7 +- .../issue-950/ev07-shadow/implementation.cjs | 45 +++--- .../ev07-shadow/launch-full-review.cjs | 5 +- .../ev07-shadow/launch-full-review.test.cjs | 11 +- .../evidence/issue-950/ev07-shadow/review.cjs | 36 ++--- .../issue-950/execution-provenance.cjs | 127 +++++++++++++++++ .../normal-flow-shadow/paths.test.cjs | 130 +++++++++++++++++- .../issue-950/normal-flow-shadow/run.cjs | 87 ++++++++---- 10 files changed, 428 insertions(+), 95 deletions(-) create mode 100644 quality/bugbot/evidence/issue-950/execution-provenance.cjs diff --git a/docs/development/testing.mdx b/docs/development/testing.mdx index caf417cb1..c1c072152 100644 --- a/docs/development/testing.mdx +++ b/docs/development/testing.mdx @@ -57,6 +57,56 @@ Tests MUST isolate environment variables such as `AGENT_PROVIDER`, `AGENT_MODEL_ `copilot bugbot-analytics` aggregates content-free telemetry exported by the Action. Do not add prompt, diff, source, comment, response, credential, or rule content to the telemetry schema. +## Qualification source and runtime admission + +New Bugbot qualification runs use an explicit committed implementation pin. +Before loading application modules, the corpus and review entrypoints compare +the physical `src/`, lockfile, compiler configuration and package manifest with +that commit's regular Git blobs. Ignored files, JavaScript shadows, symlinks, +staged differences and Git's assume-unchanged hints cannot conceal another +executed source. The reusable check strips inherited `GIT_*` variables, anchors +the Git directory and worktree explicitly, disables replacement objects and +fsmonitor, and excludes global/system configuration. It also supports linked +local worktrees. + +```text +Committed plan -> physical source proof -> driver/runtime proof -> import -> dispatch +``` + +Text equivalent: prove the actual source, evaluation drivers, Node executable +and TypeScript compiler before importing the application; prove the prepared +model executable and any launcher again before dispatch. The start record +retains the implementation commit/tree, source inventory digest, lockfile and +compiler digests, driver hashes and runtime identities. A version string alone +does not establish executable identity. + +Preregister a **new** plan after reviewing the corrections. Include the current +`qualificationDrivers` inventory exported by `ev07-shadow/implementation.cjs`, +including the shared `execution-provenance.cjs`. Record the `node`, +`nodeSha256`, `typescript` and `typescriptSha256` observations returned by +`runtimeIdentity(root)` alongside the existing exact CLI/launcher identities. +Commit the completed plan before measurement. The normal-flow diagnostic's +selected subject manifest similarly requires `implementation`, `runtime` and +`drivers` from its exported `normalFlowDrivers` inventory; its direct runtime +uses an absolute `runtime.executable` and optional absolute `runtime.launcher`. +These are local evaluation artifacts, with no new public Action setting. + +Run `pnpm run test:bugbot-shadow-verification` for the deterministic admission +controls. They use temporary Git repositories and blocked model/write paths. +An admission error means no application/model work was admitted. Inspect the +named source, staged inventory, driver or runtime mismatch, then restore the +selected bytes or prepare a separately reviewed and committed preregistration. +Do not regenerate expected hashes merely to suppress a failure. + +Historical manifests, ledgers, scores and unsuccessful campaigns retain their +original bytes and reproduce through their frozen commits. Their old plans +cannot admit a run through the corrected drivers. Passing deterministic +admission neither passes the 174-case corpus nor admits the 42 paired reviews. +Keep `BUGBOT_VERIFICATION_MODE=disabled`, evaluated-PR write attempts at zero, +explicit cancellation, optional usage telemetry and the existing score floors. +Latency is measured after investigation; admission introduces no research +deadline, turn count or token budget. + Workflow queue tests inject a clock, random source, and scheduler/delay port. They cover workflow-scoped active-status traversals and later-page matches, strict lower-ID/workflow-file filtering, malformed responses, fail-closed provider errors, 429 and diff --git a/quality/bugbot/evidence/issue-950/ev07-shadow/corpus.cjs b/quality/bugbot/evidence/issue-950/ev07-shadow/corpus.cjs index 657899ce0..1620d25ed 100644 --- a/quality/bugbot/evidence/issue-950/ev07-shadow/corpus.cjs +++ b/quality/bugbot/evidence/issue-950/ev07-shadow/corpus.cjs @@ -6,23 +6,24 @@ const { execFileSync } = require('node:child_process'); const fs = require('node:fs'); const path = require('node:path'); const { tmpdir } = require('node:os'); -const { requirePinnedImplementation, requirePinnedRuntime, requirePinnedExecution, requirePinnedDrivers, selectedPlanProvenance } = require('./implementation.cjs'); -require('./load.cjs'); - -const { runBugbotBenchmarkAgent } = require('../../../../../src/tooling/bugbot_benchmark_runner'); -const { evaluateBugbotBenchmark, loadBugbotBenchmark } = require('../../../../../src/tooling/bugbot_benchmark'); -const { createFindingsQueryPort } = require('../../../../../src/infrastructure/composition/agent_capability_composition_root'); -const { AgentCliClient } = require('../../../../../src/data/repository/agent_cli_client'); -const { AgentExecutionPlanner } = require('../../../../../src/infrastructure/agents/agent_execution_planner'); -const { codexInvocation } = require('../../../../../src/infrastructure/bugbot/shadow/session.cjs'); +const { qualificationProvenance, requirePinnedRuntime, requirePinnedExecution, selectedPlanProvenance } = require('./implementation.cjs'); const plan = require('./configuration.cjs'); const root = path.resolve(__dirname, '../../../../..'); const hash = input => createHash('sha256').update(input).digest('hex'); async function run(destination, preflight = false) { - requirePinnedDrivers(plan); - const implementation = requirePinnedImplementation(); + const provenance = qualificationProvenance(plan); + const implementation = provenance.implementation; + require('./load.cjs'); + + const { runBugbotBenchmarkAgent } = require('../../../../../src/tooling/bugbot_benchmark_runner'); + const { evaluateBugbotBenchmark, loadBugbotBenchmark } = require('../../../../../src/tooling/bugbot_benchmark'); + const { createFindingsQueryPort } = require('../../../../../src/infrastructure/composition/agent_capability_composition_root'); + const { AgentCliClient } = require('../../../../../src/data/repository/agent_cli_client'); + const { AgentExecutionPlanner } = require('../../../../../src/infrastructure/agents/agent_execution_planner'); + const { codexInvocation } = require('../../../../../src/infrastructure/bugbot/shadow/session.cjs'); + assert.equal(hash(fs.readFileSync(__filename)), plan.inspectedArtifacts?.['corpus.cjs'], 'corpus runner differs from the preregistered implementation'); assert(destination, 'usage: node corpus.cjs '); @@ -41,7 +42,7 @@ async function run(destination, preflight = false) { const record = row => fs.appendFileSync(ledger, JSON.stringify(row) + '\n', { mode: 0o600 }); record({ event: 'start', at: new Date().toISOString(), cli, configuration, plan: preregistration.sha256, preregistration, runner: hash(fs.readFileSync(__filename)), - implementation, corpus: plan.corpus.sha256, gitHubMutationPorts: 0 }); + implementation, provenance, corpus: plan.corpus.sha256, gitHubMutationPorts: 0 }); const cwd = fs.mkdtempSync(path.join(tmpdir(), 'copilot-ev07-corpus-')); const oldCwd = process.cwd(); const cancel = new AbortController(); diff --git a/quality/bugbot/evidence/issue-950/ev07-shadow/full-review.cjs b/quality/bugbot/evidence/issue-950/ev07-shadow/full-review.cjs index 4fb6c1b0d..4d1f3258c 100644 --- a/quality/bugbot/evidence/issue-950/ev07-shadow/full-review.cjs +++ b/quality/bugbot/evidence/issue-950/ev07-shadow/full-review.cjs @@ -4,14 +4,15 @@ const { spawn } = require('node:child_process'); const fs = require('node:fs'); const path = require('node:path'); const { requirePassingCorpus } = require('./launch-full-review.cjs'); -const { requirePinnedImplementation, selectedPlanProvenance } = require('./implementation.cjs'); +const { qualificationProvenance, selectedPlanProvenance } = require('./implementation.cjs'); const plan = require('./configuration.cjs'); const concurrency = 3; async function run(campaign) { campaign = requirePassingCorpus(campaign); - const implementation = requirePinnedImplementation(); + const provenance = qualificationProvenance(plan); + const implementation = provenance.implementation; const preregistration = selectedPlanProvenance(); const output = path.join(campaign, 'full-review'); const score = path.join(campaign, 'corpus-v3/corpus-score.json'); @@ -31,7 +32,7 @@ async function run(campaign) { }; process.once('SIGINT', cancel); process.once('SIGTERM', cancel); - record({ event: 'start', at: new Date().toISOString(), planned: slots.length, concurrency, implementation, + record({ event: 'start', at: new Date().toISOString(), planned: slots.length, concurrency, implementation, provenance, plan: preregistration.sha256, preregistration }); try { async function worker() { diff --git a/quality/bugbot/evidence/issue-950/ev07-shadow/implementation.cjs b/quality/bugbot/evidence/issue-950/ev07-shadow/implementation.cjs index 17836cd11..0bf54907f 100644 --- a/quality/bugbot/evidence/issue-950/ev07-shadow/implementation.cjs +++ b/quality/bugbot/evidence/issue-950/ev07-shadow/implementation.cjs @@ -4,24 +4,22 @@ const assert = require('node:assert/strict'); const { execFileSync } = require('node:child_process'); const { createHash } = require('node:crypto'); const { readFileSync, lstatSync, realpathSync } = require('node:fs'); -const { devNull } = require('node:os'); const { isDeepStrictEqual } = require('node:util'); const path = require('node:path'); const { implementation } = require('./configuration.cjs'); +const { attestSource, attestRuntime, attestDrivers, pinnedGit } = require('../execution-provenance.cjs'); + function requirePinnedImplementation(root = path.resolve(__dirname, '../../../../..'), pin = implementation) { - assert.match(pin, /^[a-f0-9]{40}$/u, 'invalid implementation pin'); - const git = (...args) => execFileSync('git', ['-C', root, ...args], { encoding: 'utf8' }).trim(); - assert.equal(git('rev-parse', '--verify', pin + '^{commit}'), pin, - 'preregistered implementation commit unavailable'); - const source = ['src', 'pnpm-lock.yaml', 'tsconfig.json']; - assert.equal(git('diff', '--no-ext-diff', '--no-textconv', '--name-only', pin, '--', ...source), '', - 'application source or lockfile does not match the preregistered implementation'); - assert.equal(git('diff', '--cached', '--no-ext-diff', '--no-textconv', '--name-only', pin, '--', ...source), '', - 'staged application source or lockfile differs from the preregistered implementation'); - assert.equal(git('ls-files', '--others', '--', ...source), '', - 'untracked application source or lockfile'); - return pin; + return attestSource(root, pin).implementation; +} + +function qualificationProvenance(selected = require('./configuration.cjs')) { + const root = path.resolve(__dirname, '../../../../..'); + const source = attestSource(root, selected.implementation); + const drivers = requirePinnedDrivers(selected); + const runtime = attestRuntime(root, selected.runtime); + return { ...source, drivers, runtime }; } function requirePinnedRuntime(cli, runtime = require('./configuration.cjs').runtime) { @@ -55,16 +53,12 @@ function requirePinnedExecution(execution, runtime = require('./configuration.cj } const qualificationDrivers = Object.freeze(['configuration.cjs', 'implementation.cjs', 'load.cjs', 'corpus.cjs', - 'review.cjs', 'full-review.cjs', 'launch-full-review.cjs', 'score-review.py']); + 'review.cjs', 'full-review.cjs', 'launch-full-review.cjs', 'score-review.py', '../execution-provenance.cjs']); function requirePinnedDrivers(selected = require('./configuration.cjs')) { - for (const file of qualificationDrivers) { - const expected = selected.inspectedArtifacts?.[file]; - assert.match(expected ?? '', /^[a-f0-9]{64}$/u, 'preregistered driver hash unavailable: ' + file); - assert.equal(createHash('sha256').update(readFileSync(path.join(__dirname, file))).digest('hex'), expected, - 'qualification driver differs from the preregistration: ' + file); - } + const drivers = attestDrivers(__dirname, selected.inspectedArtifacts, qualificationDrivers); selectedPlanProvenance(undefined, selected); + return drivers; } function selectedPlanProvenance(file, selected = require('./configuration.cjs')) { @@ -74,13 +68,12 @@ function selectedPlanProvenance(file, selected = require('./configuration.cjs')) requireQualificationPolicy(selected); assert(!lstatSync(file).isSymbolicLink(), 'preregistered plan must be a committed regular file'); file = realpathSync(file); - const env = Object.fromEntries(Object.entries(process.env).filter(([key]) => !key.startsWith('GIT_'))); - Object.assign(env, { GIT_CONFIG_GLOBAL: devNull, GIT_CONFIG_NOSYSTEM: '1' }); let directory = path.dirname(file); - const git = (...args) => execFileSync('git', ['--no-pager', '--literal-pathspecs', '-C', directory, - '-c', 'log.showSignature=false', '-c', 'core.fsmonitor=false', ...args], - { env, stdio: ['ignore', 'pipe', 'ignore'], maxBuffer: 1024 * 1024 }); + while (!require('node:fs').existsSync(path.join(directory, '.git')) && path.dirname(directory) !== directory) { + directory = path.dirname(directory); + } try { + const git = pinnedGit(directory); const text = (...args) => git(...args).toString('utf8').replace(/\r?\n$/u, ''); const root = text('rev-parse', '--show-toplevel'); const relative = path.relative(root, file).split(path.sep).join('/'); @@ -128,7 +121,7 @@ function requireQualificationPolicy(selected) { function selectedPlanSha256() { return selectedPlanProvenance().sha256; } -module.exports = { requirePinnedImplementation, requirePinnedRuntime, requirePinnedExecution, requirePinnedDrivers, selectedPlanSha256, selectedPlanProvenance }; +module.exports = { requirePinnedImplementation, requirePinnedRuntime, requirePinnedExecution, requirePinnedDrivers, qualificationProvenance, qualificationDrivers, selectedPlanSha256, selectedPlanProvenance }; if (require.main === module) { assert.equal(process.argv[2], '--plan-provenance'); diff --git a/quality/bugbot/evidence/issue-950/ev07-shadow/launch-full-review.cjs b/quality/bugbot/evidence/issue-950/ev07-shadow/launch-full-review.cjs index f23a4f9a6..ed682e771 100644 --- a/quality/bugbot/evidence/issue-950/ev07-shadow/launch-full-review.cjs +++ b/quality/bugbot/evidence/issue-950/ev07-shadow/launch-full-review.cjs @@ -7,10 +7,10 @@ const assert = require('node:assert/strict'); const { createHash } = require('node:crypto'); const { corpus } = require('./configuration.cjs'); const plan = require('./configuration.cjs'); -const { requirePinnedRuntime, requirePinnedDrivers, selectedPlanProvenance } = require('./implementation.cjs'); +const { requirePinnedRuntime, qualificationProvenance, selectedPlanProvenance } = require('./implementation.cjs'); function validateCorpusProvenance(directory, result) { - requirePinnedDrivers(plan); + const provenance = qualificationProvenance(plan); const hash = input => createHash('sha256').update(input).digest('hex'); const root = path.resolve(__dirname, '../../../../..'); const planFile = process.env.COPILOT_EV07_PLAN ? path.resolve(process.env.COPILOT_EV07_PLAN) : path.join(__dirname, 'plan.json'); @@ -27,6 +27,7 @@ function validateCorpusProvenance(directory, result) { assert.equal(start.runner, hash(readFileSync(path.join(__dirname, 'corpus.cjs')))); assert.equal(start.runner, plan.inspectedArtifacts?.['corpus.cjs']); assert.equal(start.implementation, plan.implementation); + assert.deepEqual(start.provenance, provenance); assert.equal(start.corpus, corpus.sha256); assert.equal(start.gitHubMutationPorts, 0); assert.deepEqual(start.configuration, plan.detector); diff --git a/quality/bugbot/evidence/issue-950/ev07-shadow/launch-full-review.test.cjs b/quality/bugbot/evidence/issue-950/ev07-shadow/launch-full-review.test.cjs index 0b4712bc4..280f5a436 100644 --- a/quality/bugbot/evidence/issue-950/ev07-shadow/launch-full-review.test.cjs +++ b/quality/bugbot/evidence/issue-950/ev07-shadow/launch-full-review.test.cjs @@ -67,9 +67,11 @@ function boundCorpusFixture(t) { const { evaluateBugbotBenchmark } = require(path.join(root, 'src/tooling/bugbot_benchmark')); const directory = fixture(t); const hash = value => createHash('sha256').update(value).digest('hex'); - const plan = { ...require('./configuration.cjs'), runtime: { codex: 'codex-cli 0.169.1', codexSha256: 'a'.repeat(64) }, - inspectedArtifacts: Object.fromEntries(['configuration.cjs', 'implementation.cjs', 'load.cjs', 'corpus.cjs', - 'review.cjs', 'full-review.cjs', 'launch-full-review.cjs', 'score-review.py'] + const sourceProof = require('../execution-provenance.cjs'); + const implementation = execFileSync('git', ['-C', root, 'rev-parse', 'HEAD'], { encoding: 'utf8' }).trim(); + const plan = { ...require('./configuration.cjs'), implementation, + runtime: { ...sourceProof.runtimeIdentity(root), codex: 'codex-cli 0.169.1', codexSha256: 'a'.repeat(64) }, + inspectedArtifacts: Object.fromEntries(require('./implementation.cjs').qualificationDrivers .map(file => [file, hash(readFileSync(path.join(__dirname, file)))])) }; const planFile = path.join(directory, 'plan.json'); writeFileSync(planFile, JSON.stringify(plan)); @@ -78,7 +80,8 @@ function boundCorpusFixture(t) { const predictions = { schemaVersion: 1, predictions: Object.fromEntries(corpus.cases.map(item => [item.id, item.expected.map(finding => ({ ...finding, confidence: 1 }))])) }; const rows = [{ event: 'start', cli: plan.runtime.codex, configuration: plan.detector, plan: hash(readFileSync(planFile)), - preregistration, + preregistration, provenance: { ...sourceProof.attestSource(root, implementation), drivers: plan.inspectedArtifacts, + runtime: sourceProof.runtimeIdentity(root) }, runner: hash(readFileSync(path.join(__dirname, 'corpus.cjs'))), implementation: plan.implementation, corpus: plan.corpus.sha256, gitHubMutationPorts: 0 }, ...corpus.cases.map((item, index) => ({ event: 'case', index, id: item.id, status: 'completed', predictions: predictions.predictions[item.id], runtimeProofs: [{ executableSha256: plan.runtime.codexSha256 }], calls: [{ model: plan.detector.model, diff --git a/quality/bugbot/evidence/issue-950/ev07-shadow/review.cjs b/quality/bugbot/evidence/issue-950/ev07-shadow/review.cjs index f6aa3426e..ee8772140 100644 --- a/quality/bugbot/evidence/issue-950/ev07-shadow/review.cjs +++ b/quality/bugbot/evidence/issue-950/ev07-shadow/review.cjs @@ -6,20 +6,7 @@ const { createHash } = require('node:crypto'); const fs = require('node:fs'); const path = require('node:path'); const { getOctokit } = require('@actions/github'); -const { requirePinnedImplementation, requirePinnedExecution, requirePinnedDrivers, selectedPlanProvenance } = require('./implementation.cjs'); -require('./load.cjs'); - -const { Ai } = require('../../../../../src/data/model/ai'); -const { AgentCliClient } = require('../../../../../src/data/repository/agent_cli_client'); -const { AgentExecutionPlanner } = require('../../../../../src/infrastructure/agents/agent_execution_planner'); -const { codexInvocation } = require('../../../../../src/infrastructure/bugbot/shadow/session.cjs'); -const { composeBugbotReview } = require('../../../../../src/infrastructure/composition/bugbot_review_composition'); -const { createFindingsQueryPort } = require('../../../../../src/infrastructure/composition/agent_capability_composition_root'); -const { readGithubActionAiInputs } = require('../../../../../src/actions/github_action_ai_inputs'); -const { projectBugbotReviewOperationContext } = require('../../../../../src/application/usecases/steps/commit/bugbot/bugbot_review_operation_context'); -const { createInstalledBugbotShadowVerifier } = require('../../../../../src/infrastructure/bugbot/installed_bugbot_shadow_adapter'); -const { createGitHubBugbotCiReader } = require('../../../../../src/infrastructure/bugbot/github_bugbot_ci_reader'); -const { askManagedBugbotShadowTurn } = require('../../../../../src/infrastructure/bugbot/shadow_verification_adapter'); +const { qualificationProvenance, requirePinnedExecution, selectedPlanProvenance } = require('./implementation.cjs'); const plan = require('./configuration.cjs'); const hash = input => createHash('sha256').update(input).digest('hex'); @@ -37,6 +24,7 @@ function prepareDetector(planner, request, log, selected = plan) { const execution = planner.prepare(request); try { const runtimeProof = requirePinnedExecution(execution, selected.runtime); + const { codexInvocation } = require('../../../../../src/infrastructure/bugbot/shadow/session.cjs'); const flags = codexInvocation(execution.argv); assert.deepEqual(flags, { model: selected.detector.model, modelProvider: selected.detector.modelProvider, reasoningEffort: selected.detector.effort, sandbox: 'read-only' }); @@ -90,8 +78,22 @@ function readSubject(id, checkout) { } async function run(checkout, id, repetition, output, preflight = false) { - requirePinnedDrivers(plan); - const implementation = requirePinnedImplementation(); + const provenance = qualificationProvenance(plan); + const implementation = provenance.implementation; + require('./load.cjs'); + + const { Ai } = require('../../../../../src/data/model/ai'); + const { AgentCliClient } = require('../../../../../src/data/repository/agent_cli_client'); + const { AgentExecutionPlanner } = require('../../../../../src/infrastructure/agents/agent_execution_planner'); + const { codexInvocation } = require('../../../../../src/infrastructure/bugbot/shadow/session.cjs'); + const { composeBugbotReview } = require('../../../../../src/infrastructure/composition/bugbot_review_composition'); + const { createFindingsQueryPort } = require('../../../../../src/infrastructure/composition/agent_capability_composition_root'); + const { readGithubActionAiInputs } = require('../../../../../src/actions/github_action_ai_inputs'); + const { projectBugbotReviewOperationContext } = require('../../../../../src/application/usecases/steps/commit/bugbot/bugbot_review_operation_context'); + const { createInstalledBugbotShadowVerifier } = require('../../../../../src/infrastructure/bugbot/installed_bugbot_shadow_adapter'); + const { createGitHubBugbotCiReader } = require('../../../../../src/infrastructure/bugbot/github_bugbot_ci_reader'); + const { askManagedBugbotShadowTurn } = require('../../../../../src/infrastructure/bugbot/shadow_verification_adapter'); + assert(checkout && plan.repositoryCohort.order.includes(id) && [1, 2, 3].includes(repetition) && output); checkout = fs.realpathSync(checkout); output = path.resolve(output); @@ -100,7 +102,7 @@ async function run(checkout, id, repetition, output, preflight = false) { fs.writeFileSync(output, '', { flag: 'wx', mode: 0o600 }); const log = row => fs.appendFileSync(output, JSON.stringify(row) + '\n'); const preregistration = selectedPlanProvenance(); - log({ event: 'start', subject, repetition, implementation, plan: preregistration.sha256, preregistration, startedAt: new Date().toISOString() }); + log({ event: 'start', subject, repetition, implementation, provenance, plan: preregistration.sha256, preregistration, startedAt: new Date().toISOString() }); const repository = { owner: 'vypdev', name: id.startsWith('U') ? 'ha-ui' : 'domus' }; const number = originalPullNumbers[id] ?? 1; const branch = 'feature/reviewed-source'; diff --git a/quality/bugbot/evidence/issue-950/execution-provenance.cjs b/quality/bugbot/evidence/issue-950/execution-provenance.cjs new file mode 100644 index 000000000..f5c960ccf --- /dev/null +++ b/quality/bugbot/evidence/issue-950/execution-provenance.cjs @@ -0,0 +1,127 @@ +'use strict'; + +const assert = require('node:assert/strict'); +const { execFileSync } = require('node:child_process'); +const { createHash } = require('node:crypto'); +const fs = require('node:fs'); +const { devNull } = require('node:os'); +const path = require('node:path'); + +const hash = bytes => createHash('sha256').update(bytes).digest('hex'); +const sourcePaths = Object.freeze(['src', 'pnpm-lock.yaml', 'tsconfig.json', 'package.json']); + +function gitEnvironment() { + const env = Object.fromEntries(Object.entries(process.env).filter(([key]) => !key.toUpperCase().startsWith('GIT_'))); + return { ...env, GIT_CONFIG_GLOBAL: devNull, GIT_CONFIG_NOSYSTEM: '1', GIT_NO_REPLACE_OBJECTS: '1' }; +} + +function pinnedGit(root) { + root = fs.realpathSync(root); + const marker = path.join(root, '.git'); + const stat = fs.lstatSync(fs.existsSync(marker) ? marker : root); + assert(!stat.isSymbolicLink(), 'repository Git identity must not be a symlink'); + let directory = fs.existsSync(marker) ? marker : root; + if (stat.isFile()) { + const match = /^gitdir: (.+)\r?\n?$/u.exec(fs.readFileSync(marker, 'utf8')); + assert(match, 'invalid worktree Git identity'); + directory = path.resolve(root, match[1]); + } else assert(stat.isDirectory(), 'repository Git identity unavailable'); + const env = gitEnvironment(); + return (...args) => execFileSync('git', ['--no-pager', '--no-replace-objects', '--literal-pathspecs', + '--git-dir=' + directory, '--work-tree=' + root, '-C', root, + '-c', 'core.fsmonitor=false', '-c', 'core.hooksPath=' + devNull, '-c', 'core.quotePath=false', '-c', 'log.showSignature=false', ...args], + { env, stdio: ['pipe', 'pipe', 'pipe'], maxBuffer: 256 * 1024 * 1024 }); +} + +function attestSource(root, implementation) { + assert.match(implementation ?? '', /^[a-f0-9]{40}$/u, 'invalid implementation pin'); + root = fs.realpathSync(root); + const git = pinnedGit(root); + const text = (...args) => git(...args).toString('utf8').trim(); + assert.equal(text('rev-parse', '--verify', implementation + '^{commit}'), implementation, + 'preregistered implementation commit unavailable'); + const rows = git('ls-tree', '-r', '-z', '--full-tree', implementation, '--', ...sourcePaths) + .toString('utf8').split('\0').filter(Boolean).map(row => { + const tab = row.indexOf('\t'); + const [mode, type, blob] = row.slice(0, tab).split(' '); + const name = row.slice(tab + 1); + assert(['100644', '100755'].includes(mode) && type === 'blob', 'source must be a regular committed file'); + assert(!path.isAbsolute(name) && !name.split('/').some(part => ['..', '.git'].includes(part)), 'unsafe source path'); + return { path: name, blob }; + }); + const expected = new Map(rows.map(row => [row.path, row])); + assert(expected.has('pnpm-lock.yaml') && expected.has('tsconfig.json') && rows.some(row => row.path.startsWith('src/')), + 'preregistered source inventory unavailable'); + // Compare the physical inventory, including ignored files and symlinked parents. + // Git's assume-unchanged, sparse/skip-worktree and stat cache are not byte evidence. + const actual = []; + function visit(relative) { + const file = path.join(root, relative); + let stat; + try { stat = fs.lstatSync(file); } + catch (error) { + if (error.code !== 'ENOENT') throw error; + assert(!expected.has(relative), 'application source or lockfile does not match the preregistered implementation'); + return; + } + assert(!stat.isSymbolicLink(), 'application source symlink is not admitted'); + if (stat.isDirectory()) { + for (const name of fs.readdirSync(file)) visit(relative + '/' + name); + } else { + assert(stat.isFile() && expected.has(relative), 'untracked application source or lockfile'); + actual.push(relative); + } + } + for (const name of sourcePaths) visit(name); + assert.equal(actual.length, expected.size, 'application source or lockfile does not match the preregistered implementation'); + assert.equal(text('diff', '--cached', '--no-ext-diff', '--no-textconv', '--name-only', implementation, '--', ...sourcePaths), '', + 'staged application source or lockfile does not match the preregistered implementation'); + // One batch reads immutable blobs without filters, attributes, textconv or a checkout. + const contents = execFileSync('git', ['--no-replace-objects', '--git-dir=' + text('rev-parse', '--absolute-git-dir'), + '-c', 'core.fsmonitor=false', 'cat-file', '--batch'], { + env: gitEnvironment(), input: rows.map(row => row.blob).join('\n') + '\n', maxBuffer: 256 * 1024 * 1024, + }); + let offset = 0; + for (const row of rows) { + const end = contents.indexOf(10, offset); + const [blob, type, length] = contents.subarray(offset, end).toString('utf8').split(' '); + const size = Number(length); + assert(blob === row.blob && type === 'blob' && Number.isSafeInteger(size) && size >= 0, 'invalid pinned source blob'); + const bytes = contents.subarray(end + 1, end + 1 + size); + const local = fs.readFileSync(path.join(root, row.path)); + assert(bytes.equals(local), 'application source or lockfile does not match the preregistered implementation: ' + row.path); + row.sha256 = hash(local); + offset = end + size + 2; + } + assert.equal(offset, contents.length, 'invalid pinned source stream'); + return { implementation, tree: text('rev-parse', implementation + '^{tree}'), + sourceSha256: hash(JSON.stringify(rows)), dependencyLockSha256: expected.get('pnpm-lock.yaml').sha256, + compilerConfigurationSha256: expected.get('tsconfig.json').sha256 }; +} + +function runtimeIdentity(root) { + const typescript = require.resolve('typescript', { paths: [root] }); + return { node: process.version, nodeSha256: hash(fs.readFileSync(process.execPath)), + typescript: JSON.parse(fs.readFileSync(require.resolve('typescript/package.json', { paths: [root] }))).version, + typescriptSha256: hash(fs.readFileSync(typescript)) }; +} + +function attestRuntime(root, selected) { + const actual = runtimeIdentity(root); + for (const [name, value] of Object.entries(actual)) { + assert.equal(value, selected?.[name], 'preregistered runtime differs: ' + name); + } + return actual; +} + +function attestDrivers(directory, expected, files) { + return Object.fromEntries(files.map(file => { + const target = path.join(directory, file); + assert(fs.lstatSync(target).isFile(), 'qualification driver must be a regular file: ' + file); + const actual = hash(fs.readFileSync(target)); + assert.equal(actual, expected?.[file], 'qualification driver differs from the preregistration: ' + file); + return [file, actual]; + })); +} + +module.exports = { attestSource, attestRuntime, attestDrivers, runtimeIdentity, pinnedGit, gitEnvironment }; diff --git a/quality/bugbot/evidence/issue-950/normal-flow-shadow/paths.test.cjs b/quality/bugbot/evidence/issue-950/normal-flow-shadow/paths.test.cjs index d97a18dd5..94afa5968 100644 --- a/quality/bugbot/evidence/issue-950/normal-flow-shadow/paths.test.cjs +++ b/quality/bugbot/evidence/issue-950/normal-flow-shadow/paths.test.cjs @@ -3,9 +3,126 @@ const assert = require('node:assert/strict'); const { execFileSync, spawnSync } = require('node:child_process'); const { mkdtempSync, mkdirSync, writeFileSync, readFileSync, existsSync, rmSync } = require('node:fs'); +const { createHash } = require('node:crypto'); const { tmpdir } = require('node:os'); const path = require('node:path'); const { test } = require('node:test'); +const { attestSource, attestRuntime, attestDrivers, runtimeIdentity } = require('../execution-provenance.cjs'); + +function sourceFixture(t) { + const directory = mkdtempSync(path.join(tmpdir(), 'bugbot-source-proof-')); + t.after(() => rmSync(directory, { recursive: true, force: true })); + const root = path.join(directory, 'actual'), clean = path.join(directory, 'clean'); + mkdirSync(path.join(root, 'src'), { recursive: true }); + const git = (...args) => execFileSync('git', ['-C', root, ...args], { encoding: 'utf8', + env: { ...process.env, GIT_CONFIG_GLOBAL: '/dev/null', GIT_CONFIG_NOSYSTEM: '1' } }).trim(); + git('init', '--quiet', '--template='); + writeFileSync(path.join(root, 'src/app.ts'), 'export const value = 1;\n'); + writeFileSync(path.join(root, 'pnpm-lock.yaml'), 'lockfileVersion: 9\n'); + writeFileSync(path.join(root, 'tsconfig.json'), '{}\n'); + git('add', '.'); + git('-c', 'user.name=Fixture', '-c', 'user.email=fixture@example.invalid', 'commit', '--quiet', '-m', 'Pinned fixture'); + const pin = git('rev-parse', 'HEAD'); + execFileSync('git', ['clone', '--quiet', '--template=', root, clean]); + return { directory, root, clean, pin, git, file: path.join(root, 'src/app.ts') }; +} + +test('clean admission records the actual tree, source inventory and lockfile bytes', t => { + const f = sourceFixture(t), proof = attestSource(f.root, f.pin); + assert.equal(proof.implementation, f.pin); + assert.equal(proof.tree, f.git('rev-parse', f.pin + '^{tree}')); + assert.equal(proof.dependencyLockSha256, createHash('sha256').update(readFileSync(path.join(f.root, 'pnpm-lock.yaml'))).digest('hex')); + assert.match(proof.sourceSha256, /^[a-f0-9]{64}$/u); +}); + +for (const mode of ['dirty', 'staged', 'untracked', 'ignored', 'lockfile', 'compiler', 'assume-unchanged', 'symlink']) { + test('physical source admission refuses ' + mode + ' bytes', t => { + const f = sourceFixture(t); + if (mode === 'staged') { + writeFileSync(f.file, 'staged'); f.git('add', 'src'); writeFileSync(f.file, 'export const value = 1;\n'); + } else if (mode === 'untracked' || mode === 'ignored') { + if (mode === 'ignored') { mkdirSync(path.join(f.root, '.git/info')); writeFileSync(path.join(f.root, '.git/info/exclude'), '*.js\n'); } + writeFileSync(path.join(f.root, 'src/app.js'), 'untracked runtime shadow'); + } else if (mode === 'symlink') { + rmSync(f.file); require('node:fs').symlinkSync(path.join(f.clean, 'src/app.ts'), f.file); + } else { + if (mode === 'assume-unchanged') f.git('update-index', '--assume-unchanged', 'src/app.ts'); + const file = mode === 'lockfile' ? 'pnpm-lock.yaml' : mode === 'compiler' ? 'tsconfig.json' : 'src/app.ts'; + writeFileSync(path.join(f.root, file), 'changed bytes'); + } + assert.throws(() => attestSource(f.root, f.pin), /does not match|untracked|symlink/u); + }); +} + +for (const mode of ['GIT_DIR', 'GIT_WORK_TREE', 'GIT_INDEX_FILE', 'GIT_CONFIG_COUNT', 'local-core-worktree']) { + test('sanitized admission defeats redirection through ' + mode, t => { + const f = sourceFixture(t); + const env = { ...process.env }; + writeFileSync(f.file, 'dirty actual source'); + if (mode === 'GIT_DIR') env.GIT_DIR = path.join(f.clean, '.git'); + if (mode === 'GIT_WORK_TREE') env.GIT_WORK_TREE = f.clean; + if (mode === 'GIT_INDEX_FILE') { + writeFileSync(f.file, 'staged dirty source'); f.git('add', 'src'); writeFileSync(f.file, 'export const value = 1;\n'); + env.GIT_INDEX_FILE = path.join(f.clean, '.git/index'); + } + if (mode === 'GIT_CONFIG_COUNT') Object.assign(env, { GIT_CONFIG_COUNT: '1', GIT_CONFIG_KEY_0: 'core.worktree', GIT_CONFIG_VALUE_0: f.clean }); + if (mode === 'local-core-worktree') f.git('config', 'core.worktree', f.clean); + const child = spawnSync(process.execPath, ['-e', + 'require(process.argv[1]).attestSource(process.argv[2],process.argv[3])', + path.resolve(__dirname, '../execution-provenance.cjs'), f.root, f.pin], { env, encoding: 'utf8' }); + assert.notEqual(child.status, 0); + assert.match(child.stderr, /does not match/u); + }); +} + +test('local fsmonitor configuration cannot execute during source admission', t => { + const f = sourceFixture(t), marker = path.join(f.directory, 'hook-ran'), hook = path.join(f.directory, 'monitor'); + writeFileSync(hook, '#!/bin/sh\ntouch "' + marker + '"\n', { mode: 0o700 }); + f.git('config', 'core.fsmonitor', hook); + assert.equal(attestSource(f.root, f.pin).implementation, f.pin); + assert.equal(existsSync(marker), false); +}); + +test('a missing committed source pin cannot admit work', t => { + const f = sourceFixture(t); + assert.throws(() => attestSource(f.root, 'f'.repeat(40))); +}); + +test('driver proof records actual bytes and rejects a modified driver', t => { + const f = sourceFixture(t), file = path.join(f.directory, 'driver.cjs'); + writeFileSync(file, 'original'); + const expected = { 'driver.cjs': createHash('sha256').update(readFileSync(file)).digest('hex') }; + assert.deepEqual(attestDrivers(f.directory, expected, ['driver.cjs']), expected); + writeFileSync(file, 'changed'); + assert.throws(() => attestDrivers(f.directory, expected, ['driver.cjs']), /driver differs/u); +}); + +test('runtime proof binds Node and TypeScript versions and actual executable bytes', () => { + const root = path.resolve(__dirname, '../../../../..'), runtime = runtimeIdentity(root); + assert.deepEqual(attestRuntime(root, runtime), runtime); + assert.throws(() => attestRuntime(root, { ...runtime, nodeSha256: 'f'.repeat(64) }), /runtime differs/u); + assert.throws(() => attestRuntime(root, { ...runtime, typescriptSha256: 'f'.repeat(64) }), /runtime differs/u); +}); + +for (const runner of ['normal-flow-shadow/run.cjs', 'ev07-shadow/corpus.cjs', 'ev07-shadow/review.cjs']) { + test('the real ' + runner + ' refuses a foreign pin before application imports or model work', t => { + const directory = mkdtempSync(path.join(tmpdir(), 'bugbot-before-import-')); + t.after(() => rmSync(directory, { recursive: true, force: true })); + const marker = path.join(directory, 'application-imported'), preload = path.join(directory, 'preload.cjs'); + const plan = path.join(directory, 'plan.json'); + writeFileSync(plan, JSON.stringify({ implementation: 'f'.repeat(40) })); + writeFileSync(preload, `const Module=require('node:module'),fs=require('node:fs'),load=Module._load; +Module._load=function(name,...args){if(name.includes('/src/')||name.endsWith('/typescript')){ +fs.writeFileSync(process.env.IMPORT_MARKER,name);throw Error('unexpected application import');}return load.call(this,name,...args);};`); + const child = spawnSync(process.execPath, ['--require', preload, path.resolve(__dirname, '..', runner), + directory, '1', path.join(directory, 'result.jsonl'), plan], { encoding: 'utf8', + env: { ...process.env, COPILOT_EV07_PLAN: plan, IMPORT_MARKER: marker } }); + assert.notEqual(child.status, 0); + assert.equal(existsSync(marker), false, child.stderr); + assert.equal(existsSync(path.join(directory, 'result.jsonl')), false); + assert.match(child.stderr, /rev-parse|commit|pin/u); + }); +} test('the actual runner resolves a relative lab before entering its private checkout, without model calls', t => { const directory = mkdtempSync(path.join(tmpdir(), 'bugbot-relative-lab-')); @@ -19,12 +136,19 @@ test('the actual runner resolves a relative lab before entering its private chec git('add', '.'); git('-c', 'user.name=Test', '-c', 'user.email=fixture@example.invalid', 'commit', '--quiet', '-m', 'fixed source'); const head = git('rev-parse', 'HEAD'), tree = git('rev-parse', 'HEAD^{tree}'); - writeFileSync(path.join(directory, 'subjects.json'), JSON.stringify({ publication: 'dry-run', effort: 'xhigh', - subjects: [{ repository: 'owner/project', number: 1, baseRef: 'master', headRef: 'review', head, base: head, - tree, baseTree: tree, model: 'gpt-6-luna' }] })); + const manifest = { publication: 'dry-run', effort: 'xhigh', subjects: [{ repository: 'owner/project', number: 1, baseRef: 'master', headRef: 'review', head, base: head, + tree, baseTree: tree, model: 'gpt-6-luna' }] }; const forbidden = path.join(directory, 'model-invoked'); writeFileSync(path.join(bin, 'codex'), '#!/bin/sh\nif [ "$1" = "--version" ]; then echo "codex-cli fixture"; exit 0; fi\n' + 'touch "$MODEL_FORBIDDEN"\nexit 91\n', { mode: 0o700 }); + const root = path.resolve(__dirname, '../../../../..'); + const proof = require('../execution-provenance.cjs'); + const hash = file => createHash('sha256').update(readFileSync(file)).digest('hex'); + manifest.implementation = execFileSync('git', ['-C', root, 'rev-parse', 'HEAD'], { encoding: 'utf8' }).trim(); + manifest.runtime = { ...proof.runtimeIdentity(root), executable: path.join(bin, 'codex'), + codex: 'codex-cli fixture', codexSha256: hash(path.join(bin, 'codex')) }; + manifest.drivers = Object.fromEntries(require('./run.cjs').normalFlowDrivers.map(file => [file, hash(path.join(__dirname, file))])); + writeFileSync(path.join(directory, 'subjects.json'), JSON.stringify(manifest)); const run = spawnSync(process.execPath, [path.join(__dirname, 'run.cjs'), 'lab', '1', 'result.jsonl', 'subjects.json'], { cwd: directory, encoding: 'utf8', env: { ...process.env, PATH: bin + path.delimiter + process.env.PATH, MODEL_FORBIDDEN: forbidden }, diff --git a/quality/bugbot/evidence/issue-950/normal-flow-shadow/run.cjs b/quality/bugbot/evidence/issue-950/normal-flow-shadow/run.cjs index 8f22d29cc..9cb640d2d 100644 --- a/quality/bugbot/evidence/issue-950/normal-flow-shadow/run.cjs +++ b/quality/bugbot/evidence/issue-950/normal-flow-shadow/run.cjs @@ -9,26 +9,33 @@ const path = require('node:path'); const official = require('../shadow-real-prs/official.json'); const shadowPlan = require('../shadow-verification/plan.json'); const root = path.resolve(__dirname, '../../../../..'); -const ts = require(path.join(root, 'node_modules/typescript')); -require.extensions['.ts'] = (module, filename) => module._compile(ts.transpileModule(fs.readFileSync(filename, 'utf8'), { - compilerOptions: { module: ts.ModuleKind.CommonJS, target: ts.ScriptTarget.ES2022, esModuleInterop: true }, -}).outputText, filename); - -const load = file => require(path.join(root, 'src', file)); -const { composeBugbotReview } = load('infrastructure/composition/bugbot_review_composition'); -const { createPinnedBugbotShadowVerifier } = load('infrastructure/bugbot/shadow_verification_adapter'); -const { ask, codexInvocation } = load('infrastructure/bugbot/shadow/session.cjs'); -const { projectBugbotReviewOperationContext } = load('application/usecases/steps/commit/bugbot/bugbot_review_operation_context'); -const { buildAgentTasksFromValues } = load('actions/agent_input_builder'); -const { Ai } = load('data/model/ai'); -const { createFindingsQueryPort } = load('infrastructure/composition/agent_capability_composition_root'); -const { AgentCliClient } = load('data/repository/agent_cli_client'); -const { AgentExecutionPlanner } = load('infrastructure/agents/agent_execution_planner'); -const { resolveBugbotReviewEffort } = load('domain/bugbot/review_configuration'); +const { attestSource, attestRuntime, attestDrivers, pinnedGit } = require('../execution-provenance.cjs'); +const { requirePinnedExecution, requirePinnedRuntime } = require('../ev07-shadow/implementation.cjs'); +const normalFlowDrivers = Object.freeze(['run.cjs', '../execution-provenance.cjs', '../ev07-shadow/load.cjs', + '../ev07-shadow/implementation.cjs', '../ev07-shadow/configuration.cjs']); +let application; +function loadApplication() { + if (application) return application; + require('../ev07-shadow/load.cjs'); + const load = file => require(path.join(root, 'src', file)); + const { composeBugbotReview } = load('infrastructure/composition/bugbot_review_composition'); + const { createPinnedBugbotShadowVerifier } = load('infrastructure/bugbot/shadow_verification_adapter'); + const { ask, codexInvocation } = load('infrastructure/bugbot/shadow/session.cjs'); + const { projectBugbotReviewOperationContext } = load('application/usecases/steps/commit/bugbot/bugbot_review_operation_context'); + const { buildAgentTasksFromValues } = load('actions/agent_input_builder'); + const { Ai } = load('data/model/ai'); + const { createFindingsQueryPort } = load('infrastructure/composition/agent_capability_composition_root'); + const { AgentCliClient } = load('data/repository/agent_cli_client'); + const { AgentExecutionPlanner } = load('infrastructure/agents/agent_execution_planner'); + const { resolveBugbotReviewEffort } = load('domain/bugbot/review_configuration'); + application = { composeBugbotReview, createPinnedBugbotShadowVerifier, ask, codexInvocation, + projectBugbotReviewOperationContext, buildAgentTasksFromValues, Ai, createFindingsQueryPort, + AgentCliClient, AgentExecutionPlanner, resolveBugbotReviewEffort }; + return application; +} const hash = text => createHash('sha256').update(text).digest('hex'); -const git = (cwd, ...args) => execFileSync('git', ['-C', cwd, '-c', 'core.hooksPath=/dev/null', ...args], - { encoding: 'utf8', maxBuffer: 16 * 1024 * 1024 }); +const git = (cwd, ...args) => pinnedGit(cwd)(...args).toString('utf8'); const snapshot = (source, value, count = 0) => ({ value, coverage: { source, status: 'complete', pagesFetched: 1, itemsFetched: count, itemsRetained: count, omittedItems: 0, truncatedItems: 0, limitReached: false }, @@ -70,6 +77,7 @@ function selectVerifierProfiles(subject, detector) { assert(!subject.compareInheritedVerifier, 'matched comparison requires an experimental verifier'); return { primary: detector }; } + const { buildAgentTasksFromValues } = loadApplication(); const { model, effort } = subject.experimentalVerifier; assert(typeof model === 'string' && model.trim(), 'experimental verifier model required'); const { reviewer } = buildAgentTasksFromValues({ 'reviewer-model': model, 'reviewer-effort': effort }); @@ -100,6 +108,19 @@ async function run(lab, number, destination, manifestPath = path.join(__dirname, lab = path.resolve(lab); const manifest = fs.readFileSync(manifestPath); const frozen = JSON.parse(manifest); + const provenance = { ...attestSource(root, frozen.implementation), + drivers: attestDrivers(__dirname, frozen.drivers, normalFlowDrivers), runtime: attestRuntime(root, frozen.runtime) }; + const directRuntime = { executable: frozen.runtime.executable, prefixArgs: frozen.runtime.launcher ? [frozen.runtime.launcher] : [] }; + const attestDirect = () => requirePinnedExecution({ executable: directRuntime.executable, launcherArgv: directRuntime.prefixArgs, + ...(frozen.runtime.launcher && { launcherSha256: hash(fs.readFileSync(frozen.runtime.launcher)) }), + runtimeContract: { version: frozen.runtime.codex } }, frozen.runtime); + attestDirect(); + const cli = execFileSync(directRuntime.executable, [...directRuntime.prefixArgs, '--version'], { encoding: 'utf8' }).trim(); + requirePinnedRuntime(cli, frozen.runtime); + provenance.cli = { ...attestDirect(), version: cli }; + const { composeBugbotReview, createPinnedBugbotShadowVerifier, ask, codexInvocation, + projectBugbotReviewOperationContext, buildAgentTasksFromValues, Ai, createFindingsQueryPort, + AgentCliClient, AgentExecutionPlanner, resolveBugbotReviewEffort } = loadApplication(); const { workflowInputs } = frozen; assert.equal(frozen.publication, 'dry-run'); const subject = frozen.subjects.find(item => item.number === Number(number)); @@ -129,7 +150,8 @@ async function run(lab, number, destination, manifestPath = path.join(__dirname, throw new Error('forbidden GitHub mutation'); } }); try { - git(scratch, 'clone', '-q', '--shared', '--no-checkout', source, checkout); + execFileSync('git', ['clone', '-q', '--shared', '--no-checkout', source, checkout], + { cwd: scratch, env: require('../execution-provenance.cjs').gitEnvironment() }); git(checkout, 'remote', 'remove', 'origin'); git(checkout, 'checkout', '-q', '--detach', subject.head); assert.equal(git(checkout, 'remote'), ''); @@ -189,10 +211,16 @@ async function run(lab, number, destination, manifestPath = path.join(__dirname, const standardDetector = createFindingsQueryPort({ cli: new AgentCliClient({ prepare(request) { const plan = planner.prepare(request); - const flags = codexInvocation(plan.argv); - attest(flags); - log({ event: 'detector-invocation', invocation: flags, capability: plan.capability, atMs: sinceStart() }); - return plan; + try { + const runtimeProof = requirePinnedExecution(plan, frozen.runtime); + const flags = codexInvocation(plan.argv); + attest(flags); + log({ event: 'detector-invocation', invocation: flags, capability: plan.capability, runtimeProof, atMs: sinceStart() }); + return plan; + } catch (error) { + fs.rmSync(plan.runtimeDirectory, { recursive: true, force: true }); + throw error; + } }, }, { observe(observation) { if (observation.state === 'failed') log({ event: 'detector-provider-failure', observation, atMs: sinceStart() }); @@ -209,8 +237,8 @@ async function run(lab, number, destination, manifestPath = path.join(__dirname, }); log({ event: 'plan', subject, files: diff.changes.length, comparisonSha256: hash(JSON.stringify(diff)), configuration: selected, verifierConfiguration, workflowInputs, reviewEffort, effectiveDepth, subjectsSha256: hash(manifest), - cli: execFileSync('codex', ['--version'], { encoding: 'utf8', stdio: ['ignore', 'pipe', 'ignore'] }).trim(), - implementation: git(root, 'rev-parse', 'HEAD').trim(), runnerSha256: hash(fs.readFileSync(__filename)) }); + cli, + implementation: provenance.implementation, provenance, runnerSha256: hash(fs.readFileSync(__filename)) }); let invocation = 0; const detector = { async query(request) { const turn = ++invocation; @@ -239,13 +267,16 @@ async function run(lab, number, destination, manifestPath = path.join(__dirname, && input.headSha === subject.head && input.baseSha === subject.base ? { repo: source, officialDirectory: lab, catalog: official, ...(workflowInputs && { localRuntime: shadowPlan.localRuntime }) } : undefined, - transport: turn => ask({ ...turn, + transport: turn => { + attestDirect(); + return ask({ ...turn, runtime: directRuntime, onInvocation(flags) { attest(flags, expected); log(label(arm, { event: 'verifier-invocation', id: turn.candidateId, invocation: flags, continuation: Boolean(turn.threadId), atMs: sinceStart() })); }, - }), + }); + }, }); const primaryArm = profiles.experimental ? 'experimental' : 'inherited'; const adapters = { [primaryArm]: makeAdapter(primaryArm, profiles.primary) }; @@ -294,4 +325,4 @@ if (require.main === module) { }); } -module.exports = { selectVerifierProfiles, verifyMatchedCandidate }; +module.exports = { selectVerifierProfiles, verifyMatchedCandidate, normalFlowDrivers }; From bdf9b505214f5a17be46a6af15f1d2fd5721c431 Mon Sep 17 00:00:00 2001 From: Efra Espada Date: Thu, 19 Nov 2026 19:25:41 +0100 Subject: [PATCH 2/9] bugfix-970-bind-bugbot-qualification-execution-to-the-pinned-source-and-sanitized-git-environment: bind provenance to the operating-system Git executable (#970) --- docs/development/testing.mdx | 7 ++- .../evidence/issue-950/ev07-shadow/corpus.cjs | 3 +- .../evidence/issue-950/ev07-shadow/review.cjs | 5 +- .../issue-950/execution-provenance.cjs | 26 +++++++-- .../normal-flow-shadow/paths.test.cjs | 54 ++++++++++++++++++- .../issue-950/normal-flow-shadow/run.cjs | 4 +- 6 files changed, 88 insertions(+), 11 deletions(-) diff --git a/docs/development/testing.mdx b/docs/development/testing.mdx index c1c072152..478b9676e 100644 --- a/docs/development/testing.mdx +++ b/docs/development/testing.mdx @@ -83,8 +83,13 @@ does not establish executable identity. Preregister a **new** plan after reviewing the corrections. Include the current `qualificationDrivers` inventory exported by `ev07-shadow/implementation.cjs`, including the shared `execution-provenance.cjs`. Record the `node`, -`nodeSha256`, `typescript` and `typescriptSha256` observations returned by +`nodeSha256`, `typescript`, `typescriptSha256`, `git`, `gitExecutable` and +`gitSha256` observations returned by `runtimeIdentity(root)` alongside the existing exact CLI/launcher identities. +Git proof commands use the trusted operating-system executable, never `PATH`. +Linux uses `/usr/bin/git`; macOS resolves the actual developer-tools Git with +`/usr/bin/xcrun` in a clean environment. The supported qualification bootstrap +is Linux/macOS and does not claim Windows qualification or Setup acceptance. Commit the completed plan before measurement. The normal-flow diagnostic's selected subject manifest similarly requires `implementation`, `runtime` and `drivers` from its exported `normalFlowDrivers` inventory; its direct runtime diff --git a/quality/bugbot/evidence/issue-950/ev07-shadow/corpus.cjs b/quality/bugbot/evidence/issue-950/ev07-shadow/corpus.cjs index 1620d25ed..265edcf8d 100644 --- a/quality/bugbot/evidence/issue-950/ev07-shadow/corpus.cjs +++ b/quality/bugbot/evidence/issue-950/ev07-shadow/corpus.cjs @@ -5,6 +5,7 @@ const { createHash } = require('node:crypto'); const { execFileSync } = require('node:child_process'); const fs = require('node:fs'); const path = require('node:path'); +const { trustedGitExecutable, gitEnvironment } = require('../execution-provenance.cjs'); const { tmpdir } = require('node:os'); const { qualificationProvenance, requirePinnedRuntime, requirePinnedExecution, selectedPlanProvenance } = require('./implementation.cjs'); @@ -69,7 +70,7 @@ async function run(destination, preflight = false) { } let next = 0; try { - execFileSync('git', ['init', '--quiet', '--template='], { cwd }); + execFileSync(trustedGitExecutable(), ['init', '--quiet', '--template='], { cwd, env: gitEnvironment() }); process.chdir(cwd); const flags = [], runtimeProofs = []; const canary = createFindingsQueryPort({ cli: { async execute(request) { diff --git a/quality/bugbot/evidence/issue-950/ev07-shadow/review.cjs b/quality/bugbot/evidence/issue-950/ev07-shadow/review.cjs index ee8772140..1f20bf561 100644 --- a/quality/bugbot/evidence/issue-950/ev07-shadow/review.cjs +++ b/quality/bugbot/evidence/issue-950/ev07-shadow/review.cjs @@ -5,14 +5,13 @@ const { execFileSync } = require('node:child_process'); const { createHash } = require('node:crypto'); const fs = require('node:fs'); const path = require('node:path'); +const { pinnedGit } = require('../execution-provenance.cjs'); const { getOctokit } = require('@actions/github'); const { qualificationProvenance, requirePinnedExecution, selectedPlanProvenance } = require('./implementation.cjs'); const plan = require('./configuration.cjs'); const hash = input => createHash('sha256').update(input).digest('hex'); -const git = (cwd, ...args) => execFileSync('git', ['-C', cwd, '-c', 'core.quotePath=true', ...args], { - encoding: 'utf8', maxBuffer: 16 * 1024 * 1024, -}); +const git = (cwd, ...args) => pinnedGit(cwd)('-c', 'core.quotePath=true', ...args).toString('utf8'); const snapshot = (source, value, count = 0) => ({ value, coverage: { source, status: 'complete', pagesFetched: 1, itemsFetched: count, itemsRetained: count, omittedItems: 0, truncatedItems: 0, limitReached: false }, diff --git a/quality/bugbot/evidence/issue-950/execution-provenance.cjs b/quality/bugbot/evidence/issue-950/execution-provenance.cjs index f5c960ccf..628b3fdc7 100644 --- a/quality/bugbot/evidence/issue-950/execution-provenance.cjs +++ b/quality/bugbot/evidence/issue-950/execution-provenance.cjs @@ -15,6 +15,20 @@ function gitEnvironment() { return { ...env, GIT_CONFIG_GLOBAL: devNull, GIT_CONFIG_NOSYSTEM: '1', GIT_NO_REPLACE_OBJECTS: '1' }; } +function trustedGitExecutable() { + // Bootstrap from the operating system, never PATH or a campaign-provided binary. + // On macOS resolve the actual developer-tools Git rather than hashing its shim. + const file = process.platform === 'darwin' + ? execFileSync('/usr/bin/xcrun', ['--find', 'git'], { + env: { PATH: '/usr/bin:/bin' }, encoding: 'utf8', stdio: ['ignore', 'pipe', 'pipe'], + }).trim() + : process.platform === 'linux' ? '/usr/bin/git' : undefined; + assert(file && path.isAbsolute(file), 'qualification Git bootstrap supports Linux and macOS only'); + const executable = fs.realpathSync(file); + assert(fs.lstatSync(executable).isFile(), 'trusted Git executable unavailable'); + return executable; +} + function pinnedGit(root) { root = fs.realpathSync(root); const marker = path.join(root, '.git'); @@ -27,10 +41,13 @@ function pinnedGit(root) { directory = path.resolve(root, match[1]); } else assert(stat.isDirectory(), 'repository Git identity unavailable'); const env = gitEnvironment(); - return (...args) => execFileSync('git', ['--no-pager', '--no-replace-objects', '--literal-pathspecs', + const executable = trustedGitExecutable(); + const command = (...args) => execFileSync(executable, ['--no-pager', '--no-replace-objects', '--literal-pathspecs', '--git-dir=' + directory, '--work-tree=' + root, '-C', root, '-c', 'core.fsmonitor=false', '-c', 'core.hooksPath=' + devNull, '-c', 'core.quotePath=false', '-c', 'log.showSignature=false', ...args], { env, stdio: ['pipe', 'pipe', 'pipe'], maxBuffer: 256 * 1024 * 1024 }); + command.executable = executable; + return command; } function attestSource(root, implementation) { @@ -77,7 +94,7 @@ function attestSource(root, implementation) { assert.equal(text('diff', '--cached', '--no-ext-diff', '--no-textconv', '--name-only', implementation, '--', ...sourcePaths), '', 'staged application source or lockfile does not match the preregistered implementation'); // One batch reads immutable blobs without filters, attributes, textconv or a checkout. - const contents = execFileSync('git', ['--no-replace-objects', '--git-dir=' + text('rev-parse', '--absolute-git-dir'), + const contents = execFileSync(git.executable, ['--no-replace-objects', '--git-dir=' + text('rev-parse', '--absolute-git-dir'), '-c', 'core.fsmonitor=false', 'cat-file', '--batch'], { env: gitEnvironment(), input: rows.map(row => row.blob).join('\n') + '\n', maxBuffer: 256 * 1024 * 1024, }); @@ -101,7 +118,10 @@ function attestSource(root, implementation) { function runtimeIdentity(root) { const typescript = require.resolve('typescript', { paths: [root] }); + const gitExecutable = trustedGitExecutable(); return { node: process.version, nodeSha256: hash(fs.readFileSync(process.execPath)), + gitExecutable, gitSha256: hash(fs.readFileSync(gitExecutable)), + git: execFileSync(gitExecutable, ['--version'], { env: gitEnvironment(), encoding: 'utf8' }).trim(), typescript: JSON.parse(fs.readFileSync(require.resolve('typescript/package.json', { paths: [root] }))).version, typescriptSha256: hash(fs.readFileSync(typescript)) }; } @@ -124,4 +144,4 @@ function attestDrivers(directory, expected, files) { })); } -module.exports = { attestSource, attestRuntime, attestDrivers, runtimeIdentity, pinnedGit, gitEnvironment }; +module.exports = { attestSource, attestRuntime, attestDrivers, runtimeIdentity, pinnedGit, gitEnvironment, trustedGitExecutable }; diff --git a/quality/bugbot/evidence/issue-950/normal-flow-shadow/paths.test.cjs b/quality/bugbot/evidence/issue-950/normal-flow-shadow/paths.test.cjs index 94afa5968..ee20aac74 100644 --- a/quality/bugbot/evidence/issue-950/normal-flow-shadow/paths.test.cjs +++ b/quality/bugbot/evidence/issue-950/normal-flow-shadow/paths.test.cjs @@ -7,7 +7,7 @@ const { createHash } = require('node:crypto'); const { tmpdir } = require('node:os'); const path = require('node:path'); const { test } = require('node:test'); -const { attestSource, attestRuntime, attestDrivers, runtimeIdentity } = require('../execution-provenance.cjs'); +const { attestSource, attestRuntime, attestDrivers, runtimeIdentity, trustedGitExecutable } = require('../execution-provenance.cjs'); function sourceFixture(t) { const directory = mkdtempSync(path.join(tmpdir(), 'bugbot-source-proof-')); @@ -102,6 +102,58 @@ test('runtime proof binds Node and TypeScript versions and actual executable byt assert.deepEqual(attestRuntime(root, runtime), runtime); assert.throws(() => attestRuntime(root, { ...runtime, nodeSha256: 'f'.repeat(64) }), /runtime differs/u); assert.throws(() => attestRuntime(root, { ...runtime, typescriptSha256: 'f'.repeat(64) }), /runtime differs/u); + assert.throws(() => attestRuntime(root, { ...runtime, gitSha256: 'f'.repeat(64) }), /runtime differs/u); +}); + +test('clean admission never executes an inherited PATH Git shim', t => { + const f = sourceFixture(t), bin = path.join(f.directory, 'bin'), marker = path.join(f.directory, 'shim-ran'); + mkdirSync(bin); + writeFileSync(path.join(bin, 'git'), '#!' + process.execPath + '\nrequire("node:fs").writeFileSync(' + + JSON.stringify(marker) + ', "unexpected");process.exit(91);\n', { mode: 0o700 }); + const child = spawnSync(process.execPath, ['-e', + 'require(process.argv[1]).attestSource(process.argv[2],process.argv[3])', + path.resolve(__dirname, '../execution-provenance.cjs'), f.root, f.pin], { + encoding: 'utf8', env: { ...process.env, PATH: bin + path.delimiter + process.env.PATH }, + }); + assert.equal(child.status, 0, child.stderr); + assert.equal(existsSync(marker), false); +}); + +test('a Git shim can forge the old proof but cannot admit changed physical source now', t => { + const f = sourceFixture(t), bin = path.join(f.directory, 'bin'), marker = path.join(f.directory, 'shim-ran'); + mkdirSync(bin); + writeFileSync(f.file, 'export const value = 2;\n'); f.git('add', 'src'); + f.git('-c', 'user.name=Fixture', '-c', 'user.email=fixture@example.invalid', 'commit', '--quiet', '-m', 'different source'); + const alternate = f.git('rev-parse', 'HEAD'); + const shim = `#!${process.execPath} +const fs=require('node:fs'),cp=require('node:child_process'); +fs.appendFileSync(${JSON.stringify(marker)},'called\\n'); +let args=process.argv.slice(2); +if(args.includes('diff'))process.exit(0); +if(args.includes('ls-tree'))args=args.map(x=>x===${JSON.stringify(f.pin)}?${JSON.stringify(alternate)}:x); +if(args.includes('rev-parse'))args=args.map(x=>x===${JSON.stringify(f.pin + '^{tree}')}?${JSON.stringify(alternate + '^{tree}')}:x); +const child=cp.spawnSync(${JSON.stringify(trustedGitExecutable())},args,{input:fs.readFileSync(0)}); +if(child.stdout)process.stdout.write(child.stdout);if(child.stderr)process.stderr.write(child.stderr);process.exit(child.status??1); +`; + writeFileSync(path.join(bin, 'git'), shim, { mode: 0o700 }); + const current = path.resolve(__dirname, '../execution-provenance.cjs'), legacy = path.join(f.directory, 'bare-git.cjs'); + const source = readFileSync(current, 'utf8'); + assert(source.includes('const executable = trustedGitExecutable();')); + // Counter-control: change only the original PATH-resolution choice. + writeFileSync(legacy, source.replace('const executable = trustedGitExecutable();', "const executable = 'git';")); + const launch = file => spawnSync(process.execPath, ['-e', + 'process.stdout.write(JSON.stringify(require(process.argv[1]).attestSource(process.argv[2],process.argv[3])))', + file, f.root, f.pin], { encoding: 'utf8', env: { ...process.env, PATH: bin + path.delimiter + process.env.PATH } }); + const bypass = launch(legacy); + assert.equal(bypass.status, 0, bypass.stderr); + assert.equal(JSON.parse(bypass.stdout).implementation, f.pin); + assert.equal(JSON.parse(bypass.stdout).tree, f.git('rev-parse', alternate + '^{tree}')); + assert.equal(existsSync(marker), true); + rmSync(marker); + const refused = launch(current); + assert.notEqual(refused.status, 0); + assert.match(refused.stderr, /does not match/u); + assert.equal(existsSync(marker), false); }); for (const runner of ['normal-flow-shadow/run.cjs', 'ev07-shadow/corpus.cjs', 'ev07-shadow/review.cjs']) { diff --git a/quality/bugbot/evidence/issue-950/normal-flow-shadow/run.cjs b/quality/bugbot/evidence/issue-950/normal-flow-shadow/run.cjs index 9cb640d2d..41f23060b 100644 --- a/quality/bugbot/evidence/issue-950/normal-flow-shadow/run.cjs +++ b/quality/bugbot/evidence/issue-950/normal-flow-shadow/run.cjs @@ -9,7 +9,7 @@ const path = require('node:path'); const official = require('../shadow-real-prs/official.json'); const shadowPlan = require('../shadow-verification/plan.json'); const root = path.resolve(__dirname, '../../../../..'); -const { attestSource, attestRuntime, attestDrivers, pinnedGit } = require('../execution-provenance.cjs'); +const { attestSource, attestRuntime, attestDrivers, pinnedGit, trustedGitExecutable } = require('../execution-provenance.cjs'); const { requirePinnedExecution, requirePinnedRuntime } = require('../ev07-shadow/implementation.cjs'); const normalFlowDrivers = Object.freeze(['run.cjs', '../execution-provenance.cjs', '../ev07-shadow/load.cjs', '../ev07-shadow/implementation.cjs', '../ev07-shadow/configuration.cjs']); @@ -150,7 +150,7 @@ async function run(lab, number, destination, manifestPath = path.join(__dirname, throw new Error('forbidden GitHub mutation'); } }); try { - execFileSync('git', ['clone', '-q', '--shared', '--no-checkout', source, checkout], + execFileSync(trustedGitExecutable(), ['clone', '-q', '--shared', '--no-checkout', source, checkout], { cwd: scratch, env: require('../execution-provenance.cjs').gitEnvironment() }); git(checkout, 'remote', 'remove', 'origin'); git(checkout, 'checkout', '-q', '--detach', subject.head); From a1d4a63daf04836e9fc774c428f506ca9d613acc Mon Sep 17 00:00:00 2001 From: Efra Espada Date: Thu, 19 Nov 2026 20:28:35 +0100 Subject: [PATCH 3/9] bugfix-970-bind-bugbot-qualification-execution-to-the-pinned-source-and-sanitized-git-environment: admit installed dependencies and CLI probes before execution (#970) --- docs/development/testing.mdx | 25 ++++++ .../evidence/issue-950/ev07-shadow/corpus.cjs | 11 +-- .../issue-950/ev07-shadow/implementation.cjs | 17 +++- .../ev07-shadow/review-runtime.test.cjs | 48 +++++++++++- .../evidence/issue-950/ev07-shadow/review.cjs | 9 ++- .../issue-950/execution-provenance.cjs | 71 ++++++++++++++++- .../normal-flow-shadow/paths.test.cjs | 73 +++++++++++++++++- .../issue-950/normal-flow-shadow/run.cjs | 14 ++-- quality/bugbot/evidence/issue-970/README.md | 62 +++++++++++++++ .../issue-970/all-admission-controls.log.gz | Bin 0 -> 5252 bytes .../explicit-verified-install.log.gz | Bin 0 -> 448 bytes .../evidence/issue-970/final-shadow.log.gz | Bin 0 -> 5293 bytes .../issue-970/loader-fence-controls.log.gz | Bin 0 -> 924 bytes .../issue-970/public-loader-controls.log.gz | Bin 0 -> 978 bytes .../runtime-dependencies-controls-2.log.gz | Bin 0 -> 1138 bytes .../runtime-dependencies-controls.log.gz | Bin 0 -> 1494 bytes .../verified-dependency-install.log.gz | Bin 0 -> 443 bytes 17 files changed, 308 insertions(+), 22 deletions(-) create mode 100644 quality/bugbot/evidence/issue-970/README.md create mode 100644 quality/bugbot/evidence/issue-970/all-admission-controls.log.gz create mode 100644 quality/bugbot/evidence/issue-970/explicit-verified-install.log.gz create mode 100644 quality/bugbot/evidence/issue-970/final-shadow.log.gz create mode 100644 quality/bugbot/evidence/issue-970/loader-fence-controls.log.gz create mode 100644 quality/bugbot/evidence/issue-970/public-loader-controls.log.gz create mode 100644 quality/bugbot/evidence/issue-970/runtime-dependencies-controls-2.log.gz create mode 100644 quality/bugbot/evidence/issue-970/runtime-dependencies-controls.log.gz create mode 100644 quality/bugbot/evidence/issue-970/verified-dependency-install.log.gz diff --git a/docs/development/testing.mdx b/docs/development/testing.mdx index 478b9676e..5c7a2edd9 100644 --- a/docs/development/testing.mdx +++ b/docs/development/testing.mdx @@ -329,3 +329,28 @@ Inspect the run's individual platform jobs before claiming full success. A queued, canceled or failed job is missing evidence, even if other jobs passed. The platform fixtures exercise local paths. Authenticated agent tool execution has separate acceptance. + +Qualification runtime admission also pins `dependencyTreeSha256` and +`dependencyEntries` for the physical installed dependency closure. Capture the +expected identity only from a reviewed isolated frozen-lockfile installation +with package integrity checked and lifecycle scripts disabled, before committing +the new preregistration. At launch compare every file/mode and internal link, +including absent platform-optional targets. External dependency links and +nested driver dependency shadows are not admitted. The normal unused portal to +this repository browser-extension workspace is inventoried as unadmitted; the +entrypoint registers synchronous Node hooks that block its real path for both +require and import. Use a separate lab rather than changing a contributor's +working dependency tree. The reviewed Node/package +manager/OS bootstrap remains a trust prerequisite, not an independently attested +claim derived from the lockfile or an inventory alone. + +External package imports wait for admission. The corpus version probe additionally +requires `runtime.executable` and optional `runtime.launcher`, validates their +existing digest pins before executing `--version`, uses the absolute invocation +under a clean environment, then compares the version. PATH cannot select this +probe. These are integrity checks, not model research time/turn/read/token caps. + +Supply read-only GitHub evidence credentials through `COPILOT_EVIDENCE_TOKEN`, +`GH_TOKEN` or `GITHUB_TOKEN` as appropriate for the private fixtures; the review +driver does not launch a PATH-resolved credential helper. Do not persist tokens +in a plan or evidence record. An absent credential blocks the required CI reader. diff --git a/quality/bugbot/evidence/issue-950/ev07-shadow/corpus.cjs b/quality/bugbot/evidence/issue-950/ev07-shadow/corpus.cjs index 265edcf8d..c6d9823db 100644 --- a/quality/bugbot/evidence/issue-950/ev07-shadow/corpus.cjs +++ b/quality/bugbot/evidence/issue-950/ev07-shadow/corpus.cjs @@ -5,9 +5,9 @@ const { createHash } = require('node:crypto'); const { execFileSync } = require('node:child_process'); const fs = require('node:fs'); const path = require('node:path'); -const { trustedGitExecutable, gitEnvironment } = require('../execution-provenance.cjs'); +const { trustedGitExecutable, gitEnvironment, admitQualificationModules } = require('../execution-provenance.cjs'); const { tmpdir } = require('node:os'); -const { qualificationProvenance, requirePinnedRuntime, requirePinnedExecution, selectedPlanProvenance } = require('./implementation.cjs'); +const { qualificationProvenance, requirePinnedCliProbe, requirePinnedExecution, selectedPlanProvenance } = require('./implementation.cjs'); const plan = require('./configuration.cjs'); const root = path.resolve(__dirname, '../../../../..'); @@ -16,6 +16,8 @@ const hash = input => createHash('sha256').update(input).digest('hex'); async function run(destination, preflight = false) { const provenance = qualificationProvenance(plan); const implementation = provenance.implementation; + admitQualificationModules(root); + const cliProbe = requirePinnedCliProbe(plan.runtime); require('./load.cjs'); const { runBugbotBenchmarkAgent } = require('../../../../../src/tooling/bugbot_benchmark_runner'); @@ -36,12 +38,11 @@ async function run(destination, preflight = false) { const configuration = plan.detector; const preregistration = selectedPlanProvenance(); const planner = new AgentExecutionPlanner(); - const cli = execFileSync('codex', ['--version'], { encoding: 'utf8', stdio: ['ignore', 'pipe', 'ignore'] }).trim(); - requirePinnedRuntime(cli); + const cli = cliProbe.version; fs.mkdirSync(destination); const ledger = path.join(destination, 'corpus.jsonl'); const record = row => fs.appendFileSync(ledger, JSON.stringify(row) + '\n', { mode: 0o600 }); - record({ event: 'start', at: new Date().toISOString(), cli, configuration, + record({ event: 'start', at: new Date().toISOString(), cli, cliProbe, configuration, plan: preregistration.sha256, preregistration, runner: hash(fs.readFileSync(__filename)), implementation, provenance, corpus: plan.corpus.sha256, gitHubMutationPorts: 0 }); const cwd = fs.mkdtempSync(path.join(tmpdir(), 'copilot-ev07-corpus-')); diff --git a/quality/bugbot/evidence/issue-950/ev07-shadow/implementation.cjs b/quality/bugbot/evidence/issue-950/ev07-shadow/implementation.cjs index 0bf54907f..1368454e0 100644 --- a/quality/bugbot/evidence/issue-950/ev07-shadow/implementation.cjs +++ b/quality/bugbot/evidence/issue-950/ev07-shadow/implementation.cjs @@ -52,6 +52,21 @@ function requirePinnedExecution(execution, runtime = require('./configuration.cj return { executableSha256 }; } +function requirePinnedCliProbe(runtime = require('./configuration.cjs').runtime) { + const launcher = runtime?.launcher ? [runtime.launcher] : []; + const execution = { executable: runtime?.executable, launcherArgv: launcher, + ...(launcher.length && { launcherSha256: runtime.launcherSha256 }), + runtimeContract: { version: runtime?.codex } }; + const proof = requirePinnedExecution(execution, runtime); + // Never resolve through PATH, or run even --version before byte admission. + const version = execFileSync(execution.executable, [...launcher, '--version'], { + encoding: 'utf8', stdio: ['ignore', 'pipe', 'pipe'], + env: { PATH: '/usr/bin:/bin' }, + }).trim(); + requirePinnedRuntime(version, runtime); + return { version, proof }; +} + const qualificationDrivers = Object.freeze(['configuration.cjs', 'implementation.cjs', 'load.cjs', 'corpus.cjs', 'review.cjs', 'full-review.cjs', 'launch-full-review.cjs', 'score-review.py', '../execution-provenance.cjs']); @@ -121,7 +136,7 @@ function requireQualificationPolicy(selected) { function selectedPlanSha256() { return selectedPlanProvenance().sha256; } -module.exports = { requirePinnedImplementation, requirePinnedRuntime, requirePinnedExecution, requirePinnedDrivers, qualificationProvenance, qualificationDrivers, selectedPlanSha256, selectedPlanProvenance }; +module.exports = { requirePinnedImplementation, requirePinnedRuntime, requirePinnedExecution, requirePinnedCliProbe, requirePinnedDrivers, qualificationProvenance, qualificationDrivers, selectedPlanSha256, selectedPlanProvenance }; if (require.main === module) { assert.equal(process.argv[2], '--plan-provenance'); diff --git a/quality/bugbot/evidence/issue-950/ev07-shadow/review-runtime.test.cjs b/quality/bugbot/evidence/issue-950/ev07-shadow/review-runtime.test.cjs index 16af4aaac..4028afe8c 100644 --- a/quality/bugbot/evidence/issue-950/ev07-shadow/review-runtime.test.cjs +++ b/quality/bugbot/evidence/issue-950/ev07-shadow/review-runtime.test.cjs @@ -1,12 +1,14 @@ 'use strict'; const assert = require('node:assert/strict'); -const { mkdtempSync, existsSync, rmSync, writeFileSync } = require('node:fs'); +const { mkdtempSync, existsSync, rmSync, writeFileSync, mkdirSync, readFileSync } = require('node:fs'); +const { execFileSync, spawnSync } = require('node:child_process'); const { createHash } = require('node:crypto'); const { tmpdir } = require('node:os'); const path = require('node:path'); const { test } = require('node:test'); const { prepareDetector } = require('./review.cjs'); +const { requirePinnedCliProbe } = require('./implementation.cjs'); const plan = { ...require('./configuration.cjs'), runtime: { codex: 'codex-cli 0.169.1' } }; for (const mode of ['pinned', 'foreign', 'missing', 'wrong-executable', 'missing-digest', 'launcher', 'wrong-launcher', 'missing-launcher']) { @@ -45,3 +47,47 @@ for (const mode of ['pinned', 'foreign', 'missing', 'wrong-executable', 'missing } }); } + +for (const mode of ['direct', 'changed-direct', 'launcher', 'changed-launcher']) { + test('CLI version probe admits bytes before executing ' + mode, t => { + const directory = mkdtempSync(path.join(tmpdir(), 'ev07-probe-proof-')); + t.after(() => rmSync(directory, { recursive: true, force: true })); + const marker = path.join(directory, 'executed'), file = path.join(directory, 'codex'); + const usesLauncher = mode.includes('launcher'); + const program = usesLauncher + ? 'require("node:fs").writeFileSync(' + JSON.stringify(marker) + ', "version");console.log("codex-cli fixture");\n' + : '#!/bin/sh\nprintf version > "' + marker + '"\nprintf "codex-cli fixture\\n"\n'; + writeFileSync(file, program, { mode: 0o700 }); + const hashFile = filename => createHash('sha256').update(require('node:fs').readFileSync(filename)).digest('hex'); + const runtime = { codex: 'codex-cli fixture', executable: usesLauncher ? process.execPath : file, + codexSha256: hashFile(usesLauncher ? process.execPath : file), + ...(usesLauncher && { launcher: file, launcherSha256: hashFile(file) }) }; + if (mode.startsWith('changed')) writeFileSync(file, program + '\n'); + if (mode.startsWith('changed')) { + assert.throws(() => requirePinnedCliProbe(runtime), /digest/u); + assert.equal(existsSync(marker), false); + } else { + assert.equal(requirePinnedCliProbe(runtime).version, runtime.codex); + assert.equal(existsSync(marker), true); + } + }); +} + +test('the old PATH version probe executes a shim, while the pinned probe invokes only the admitted CLI', t => { + const directory = mkdtempSync(path.join(tmpdir(), 'ev07-path-probe-')); + t.after(() => rmSync(directory, { recursive: true, force: true })); + const bin = path.join(directory, 'bin'), shimMarker = path.join(directory, 'shim-ran'), admitted = path.join(directory, 'admitted'); + mkdirSync(bin); + writeFileSync(path.join(bin, 'codex'), '#!/bin/sh\ntouch "' + shimMarker + '"\nprintf "codex-cli fixture\\n"\n', { mode: 0o700 }); + writeFileSync(admitted, '#!/bin/sh\nprintf "codex-cli fixture\\n"\n', { mode: 0o700 }); + const env = { ...process.env, PATH: bin + path.delimiter + process.env.PATH }; + assert.equal(execFileSync('codex', ['--version'], { env, encoding: 'utf8' }).trim(), 'codex-cli fixture'); + assert.equal(existsSync(shimMarker), true); + rmSync(shimMarker); + const runtime = { codex: 'codex-cli fixture', executable: admitted, + codexSha256: createHash('sha256').update(readFileSync(admitted)).digest('hex') }; + const result = spawnSync(process.execPath, ['-e', 'require(process.argv[1]).requirePinnedCliProbe(JSON.parse(process.argv[2]))', + path.resolve(__dirname, 'implementation.cjs'), JSON.stringify(runtime)], { env, encoding: 'utf8' }); + assert.equal(result.status, 0, result.stderr); + assert.equal(existsSync(shimMarker), false); +}); diff --git a/quality/bugbot/evidence/issue-950/ev07-shadow/review.cjs b/quality/bugbot/evidence/issue-950/ev07-shadow/review.cjs index 1f20bf561..79faf8bfe 100644 --- a/quality/bugbot/evidence/issue-950/ev07-shadow/review.cjs +++ b/quality/bugbot/evidence/issue-950/ev07-shadow/review.cjs @@ -5,8 +5,7 @@ const { execFileSync } = require('node:child_process'); const { createHash } = require('node:crypto'); const fs = require('node:fs'); const path = require('node:path'); -const { pinnedGit } = require('../execution-provenance.cjs'); -const { getOctokit } = require('@actions/github'); +const { pinnedGit, admitQualificationModules } = require('../execution-provenance.cjs'); const { qualificationProvenance, requirePinnedExecution, selectedPlanProvenance } = require('./implementation.cjs'); const plan = require('./configuration.cjs'); @@ -79,6 +78,8 @@ function readSubject(id, checkout) { async function run(checkout, id, repetition, output, preflight = false) { const provenance = qualificationProvenance(plan); const implementation = provenance.implementation; + admitQualificationModules(path.resolve(__dirname, '../../../../..')); + const { getOctokit } = require('@actions/github'); require('./load.cjs'); const { Ai } = require('../../../../../src/data/model/ai'); @@ -157,8 +158,10 @@ async function run(checkout, id, repetition, output, preflight = false) { const cancel = new AbortController(); process.once('SIGINT', () => cancel.abort()); process.once('SIGTERM', () => cancel.abort()); + const evidenceToken = process.env.COPILOT_EVIDENCE_TOKEN || process.env.GH_TOKEN || process.env.GITHUB_TOKEN; + assert(preflight || evidenceToken, 'read-only GitHub evidence credential unavailable'); const ci = preflight ? undefined : createGitHubBugbotCiReader({ owner: repository.owner, repo: repository.name }, - getOctokit(execFileSync('gh', ['auth', 'token', '--hostname', 'github.com'], { encoding: 'utf8' }).trim()).rest.actions); + getOctokit(evidenceToken).rest.actions); const verifier = createInstalledBugbotShadowVerifier(repository, checkout, async turn => { assert.deepEqual(turn.configuration, plan.verifier); const result = await askManagedBugbotShadowTurn(turn); diff --git a/quality/bugbot/evidence/issue-950/execution-provenance.cjs b/quality/bugbot/evidence/issue-950/execution-provenance.cjs index 628b3fdc7..98d491718 100644 --- a/quality/bugbot/evidence/issue-950/execution-provenance.cjs +++ b/quality/bugbot/evidence/issue-950/execution-provenance.cjs @@ -116,10 +116,77 @@ function attestSource(root, implementation) { compilerConfigurationSha256: expected.get('tsconfig.json').sha256 }; } +function dependencyIdentity(root) { + root = fs.realpathSync(root); + const directory = path.join(root, 'node_modules'); + assert(fs.lstatSync(directory).isDirectory() && !fs.lstatSync(directory).isSymbolicLink(), + 'qualification dependencies must have a physical installation'); + const rows = []; + function visit(relative) { + const file = path.join(directory, relative), stat = fs.lstatSync(file); + if (stat.isSymbolicLink()) { + const link = fs.readlinkSync(file), lexical = path.relative(directory, path.resolve(path.dirname(file), link)); + if (relative === path.join('.pnpm', 'node_modules', '@vypdev', 'copilot-browser-extension') + && fs.realpathSync(file) === path.join(root, 'extension')) { + // Normal pnpm workspaces expose this unused portal. Its code is + // outside admission and the entrypoint loader fence forbids it. + rows.push([relative, 'unadmitted-workspace', link, 'extension']); + return; + } + assert(lexical && !path.isAbsolute(lexical) && !lexical.split(path.sep).includes('..'), + 'dependency symlink escapes the admitted installation'); + let target; + try { target = path.relative(directory, fs.realpathSync(file)); } + catch (error) { if (error.code !== 'ENOENT') throw error; } + assert(target === undefined || target && !path.isAbsolute(target) && !target.split(path.sep).includes('..'), + 'dependency symlink escapes the admitted installation'); + // pnpm can retain links to platform-excluded optional packages. + // Bind the missing target as well; materializing it changes this proof. + rows.push([relative, 'link', link, target ?? 'missing:' + lexical]); + } else if (stat.isDirectory()) { + for (const name of fs.readdirSync(file).sort()) visit(path.join(relative, name)); + } else { + assert(stat.isFile(), 'dependency must be a regular file or internal symlink'); + rows.push([relative, 'file', stat.mode & 0o777, hash(fs.readFileSync(file))]); + } + } + visit(''); + // These ancestors could otherwise shadow the admitted root dependencies. + for (const relative of ['quality', 'quality/bugbot', 'quality/bugbot/evidence', + 'quality/bugbot/evidence/issue-950', 'quality/bugbot/evidence/issue-950/ev07-shadow', + 'quality/bugbot/evidence/issue-950/normal-flow-shadow']) { + assert(!fs.existsSync(path.join(root, relative, 'node_modules')), 'unadmitted qualification dependency shadow'); + } + assert(!process.env.NODE_PATH && !process.env.NODE_OPTIONS, 'qualification requires a clean Node loader environment'); + assert(!process.execArgv.some(arg => /^(?:--require|--import|--loader|--experimental-loader)(?:=|$)|^-r/u.test(arg)), + 'qualification Node preload is not admitted'); + return { dependencyTreeSha256: hash(JSON.stringify(rows)), dependencyEntries: rows.length }; +} + +function admitQualificationModules(root) { + root = fs.realpathSync(root); + const { registerHooks } = require('node:module'), { fileURLToPath } = require('node:url'); + assert.equal(typeof registerHooks, 'function', 'qualification requires synchronous Node module hooks'); + const admitted = ['src', 'node_modules', 'quality/bugbot/evidence/issue-950'] + .map(relative => path.join(root, relative) + path.sep); + return registerHooks({ resolve(specifier, context, nextResolve) { + const result = nextResolve(specifier, context); + if (!result.url.startsWith('node:')) { + assert(result.url.startsWith('file:'), 'qualification module must have a physical admitted path'); + const file = fs.realpathSync(fileURLToPath(result.url)); + assert(admitted.some(prefix => file.startsWith(prefix)), 'module is outside the admitted qualification closure'); + } + return result; + } }); +} + function runtimeIdentity(root) { + const dependencies = dependencyIdentity(root); const typescript = require.resolve('typescript', { paths: [root] }); + assert(fs.realpathSync(typescript).startsWith(fs.realpathSync(path.join(root, 'node_modules')) + path.sep), + 'compiler is outside the admitted dependency tree'); const gitExecutable = trustedGitExecutable(); - return { node: process.version, nodeSha256: hash(fs.readFileSync(process.execPath)), + return { ...dependencies, node: process.version, nodeSha256: hash(fs.readFileSync(process.execPath)), gitExecutable, gitSha256: hash(fs.readFileSync(gitExecutable)), git: execFileSync(gitExecutable, ['--version'], { env: gitEnvironment(), encoding: 'utf8' }).trim(), typescript: JSON.parse(fs.readFileSync(require.resolve('typescript/package.json', { paths: [root] }))).version, @@ -144,4 +211,4 @@ function attestDrivers(directory, expected, files) { })); } -module.exports = { attestSource, attestRuntime, attestDrivers, runtimeIdentity, pinnedGit, gitEnvironment, trustedGitExecutable }; +module.exports = { attestSource, attestRuntime, attestDrivers, runtimeIdentity, dependencyIdentity, admitQualificationModules, pinnedGit, gitEnvironment, trustedGitExecutable }; diff --git a/quality/bugbot/evidence/issue-950/normal-flow-shadow/paths.test.cjs b/quality/bugbot/evidence/issue-950/normal-flow-shadow/paths.test.cjs index ee20aac74..861926236 100644 --- a/quality/bugbot/evidence/issue-950/normal-flow-shadow/paths.test.cjs +++ b/quality/bugbot/evidence/issue-950/normal-flow-shadow/paths.test.cjs @@ -2,12 +2,12 @@ const assert = require('node:assert/strict'); const { execFileSync, spawnSync } = require('node:child_process'); -const { mkdtempSync, mkdirSync, writeFileSync, readFileSync, existsSync, rmSync } = require('node:fs'); +const { mkdtempSync, mkdirSync, writeFileSync, readFileSync, existsSync, rmSync, symlinkSync } = require('node:fs'); const { createHash } = require('node:crypto'); const { tmpdir } = require('node:os'); const path = require('node:path'); const { test } = require('node:test'); -const { attestSource, attestRuntime, attestDrivers, runtimeIdentity, trustedGitExecutable } = require('../execution-provenance.cjs'); +const { attestSource, attestRuntime, attestDrivers, runtimeIdentity, dependencyIdentity, trustedGitExecutable } = require('../execution-provenance.cjs'); function sourceFixture(t) { const directory = mkdtempSync(path.join(tmpdir(), 'bugbot-source-proof-')); @@ -164,7 +164,7 @@ for (const runner of ['normal-flow-shadow/run.cjs', 'ev07-shadow/corpus.cjs', 'e const plan = path.join(directory, 'plan.json'); writeFileSync(plan, JSON.stringify({ implementation: 'f'.repeat(40) })); writeFileSync(preload, `const Module=require('node:module'),fs=require('node:fs'),load=Module._load; -Module._load=function(name,...args){if(name.includes('/src/')||name.endsWith('/typescript')){ +Module._load=function(name,...args){if(name.includes('/src/')||name.endsWith('/typescript')||name==='@actions/github'){ fs.writeFileSync(process.env.IMPORT_MARKER,name);throw Error('unexpected application import');}return load.call(this,name,...args);};`); const child = spawnSync(process.execPath, ['--require', preload, path.resolve(__dirname, '..', runner), directory, '1', path.join(directory, 'result.jsonl'), plan], { encoding: 'utf8', @@ -176,6 +176,73 @@ fs.writeFileSync(process.env.IMPORT_MARKER,name);throw Error('unexpected applica }); } +function dependencyFixture(t) { + const directory = mkdtempSync(path.join(tmpdir(), 'qualification-dependency-proof-')); + t.after(() => rmSync(directory, { recursive: true, force: true })); + const modules = path.join(directory, 'node_modules'); + mkdirSync(path.join(modules, 'typescript'), { recursive: true }); + writeFileSync(path.join(modules, 'typescript/package.json'), JSON.stringify({ name: 'typescript', version: 'fixture', main: 'index.js' })); + writeFileSync(path.join(modules, 'typescript/index.js'), 'module.exports = {};\n'); + mkdirSync(path.join(modules, '@actions/github'), { recursive: true }); + const file = path.join(modules, '@actions/github/index.js'); + writeFileSync(file, 'module.exports = {};\n'); + return { directory, modules, file }; +} + +test('dependency admission binds actual files and refuses additions, loader shadows and escaping symlinks', t => { + const f = dependencyFixture(t), original = dependencyIdentity(f.directory); + assert.match(original.dependencyTreeSha256, /^[a-f0-9]{64}$/u); + writeFileSync(path.join(f.modules, 'extra.js'), 'unadmitted'); + assert.notEqual(dependencyIdentity(f.directory).dependencyTreeSha256, original.dependencyTreeSha256); + symlinkSync('platform-optional.js', path.join(f.modules, 'optional')); + const missingOptional = dependencyIdentity(f.directory); + writeFileSync(path.join(f.modules, 'platform-optional.js'), 'materialized'); + assert.notEqual(dependencyIdentity(f.directory).dependencyTreeSha256, missingOptional.dependencyTreeSha256); + symlinkSync(f.directory, path.join(f.modules, 'outside')); + assert.throws(() => dependencyIdentity(f.directory), /symlink escapes/u); + rmSync(path.join(f.modules, 'outside')); + mkdirSync(path.join(f.directory, 'quality/node_modules'), { recursive: true }); + assert.throws(() => dependencyIdentity(f.directory), /dependency shadow/u); +}); + +test('a modified dependency executes with the old proof but is refused before import by the new proof', t => { + const f = dependencyFixture(t), runtime = runtimeIdentity(f.directory), marker = path.join(f.directory, 'dependency-executed'); + writeFileSync(f.file, 'require("node:fs").writeFileSync(' + JSON.stringify(marker) + ', "executed");\n'); + const helper = path.resolve(__dirname, '../execution-provenance.cjs'), old = path.join(f.directory, 'old-proof.cjs'); + const source = readFileSync(helper, 'utf8'); + assert(source.includes('return { ...dependencies, node:')); + writeFileSync(old, source.replace('return { ...dependencies, node:', 'return { node:')); + const run = file => spawnSync(process.execPath, ['-e', + 'require(process.argv[1]).attestRuntime(process.argv[2],JSON.parse(process.argv[3]));require(process.argv[2]+"/node_modules/@actions/github")', + file, f.directory, JSON.stringify(runtime)], { encoding: 'utf8' }); + const bypass = run(old); + assert.equal(bypass.status, 0, bypass.stderr); + assert.equal(existsSync(marker), true); + rmSync(marker); + const refused = run(helper); + assert.notEqual(refused.status, 0); + assert.match(refused.stderr, /runtime differs: dependencyTreeSha256/u); + assert.equal(existsSync(marker), false); +}); + +for (const mode of ['require', 'import']) { + test('the normal workspace portal is inventoried but cannot execute through ' + mode, t => { + const f = dependencyFixture(t), portal = path.join(f.modules, '.pnpm/node_modules/@vypdev'); + mkdirSync(portal, { recursive: true }); + mkdirSync(path.join(f.directory, 'extension')); + const marker = path.join(f.directory, 'portal-executed'), external = path.join(f.directory, 'extension/index.cjs'); + writeFileSync(external, 'require("node:fs").writeFileSync(' + JSON.stringify(marker) + ', "executed");\n'); + symlinkSync('../../../../extension', path.join(portal, 'copilot-browser-extension')); + assert.match(dependencyIdentity(f.directory).dependencyTreeSha256, /^[a-f0-9]{64}$/u); + const program = 'require(process.argv[1]).admitQualificationModules(process.argv[2]);' + + (mode === 'require' ? 'require(process.argv[3]);' : 'import(require("node:url").pathToFileURL(process.argv[3])).catch(e=>{console.error(e);process.exitCode=1;});'); + const child = spawnSync(process.execPath, ['-e', program, path.resolve(__dirname, '../execution-provenance.cjs'), f.directory, external], { encoding: 'utf8' }); + assert.notEqual(child.status, 0); + assert.match(child.stderr, /outside the admitted qualification closure/u); + assert.equal(existsSync(marker), false); + }); +} + test('the actual runner resolves a relative lab before entering its private checkout, without model calls', t => { const directory = mkdtempSync(path.join(tmpdir(), 'bugbot-relative-lab-')); t.after(() => rmSync(directory, { recursive: true, force: true })); diff --git a/quality/bugbot/evidence/issue-950/normal-flow-shadow/run.cjs b/quality/bugbot/evidence/issue-950/normal-flow-shadow/run.cjs index 41f23060b..f3eabd2e1 100644 --- a/quality/bugbot/evidence/issue-950/normal-flow-shadow/run.cjs +++ b/quality/bugbot/evidence/issue-950/normal-flow-shadow/run.cjs @@ -9,8 +9,8 @@ const path = require('node:path'); const official = require('../shadow-real-prs/official.json'); const shadowPlan = require('../shadow-verification/plan.json'); const root = path.resolve(__dirname, '../../../../..'); -const { attestSource, attestRuntime, attestDrivers, pinnedGit, trustedGitExecutable } = require('../execution-provenance.cjs'); -const { requirePinnedExecution, requirePinnedRuntime } = require('../ev07-shadow/implementation.cjs'); +const { attestSource, attestRuntime, admitQualificationModules, attestDrivers, pinnedGit, trustedGitExecutable } = require('../execution-provenance.cjs'); +const { requirePinnedExecution, requirePinnedCliProbe } = require('../ev07-shadow/implementation.cjs'); const normalFlowDrivers = Object.freeze(['run.cjs', '../execution-provenance.cjs', '../ev07-shadow/load.cjs', '../ev07-shadow/implementation.cjs', '../ev07-shadow/configuration.cjs']); let application; @@ -110,14 +110,14 @@ async function run(lab, number, destination, manifestPath = path.join(__dirname, const frozen = JSON.parse(manifest); const provenance = { ...attestSource(root, frozen.implementation), drivers: attestDrivers(__dirname, frozen.drivers, normalFlowDrivers), runtime: attestRuntime(root, frozen.runtime) }; + admitQualificationModules(root); const directRuntime = { executable: frozen.runtime.executable, prefixArgs: frozen.runtime.launcher ? [frozen.runtime.launcher] : [] }; const attestDirect = () => requirePinnedExecution({ executable: directRuntime.executable, launcherArgv: directRuntime.prefixArgs, - ...(frozen.runtime.launcher && { launcherSha256: hash(fs.readFileSync(frozen.runtime.launcher)) }), + ...(frozen.runtime.launcher && { launcherSha256: frozen.runtime.launcherSha256 }), runtimeContract: { version: frozen.runtime.codex } }, frozen.runtime); - attestDirect(); - const cli = execFileSync(directRuntime.executable, [...directRuntime.prefixArgs, '--version'], { encoding: 'utf8' }).trim(); - requirePinnedRuntime(cli, frozen.runtime); - provenance.cli = { ...attestDirect(), version: cli }; + const cliProbe = requirePinnedCliProbe(frozen.runtime); + const cli = cliProbe.version; + provenance.cli = { ...cliProbe.proof, version: cli }; const { composeBugbotReview, createPinnedBugbotShadowVerifier, ask, codexInvocation, projectBugbotReviewOperationContext, buildAgentTasksFromValues, Ai, createFindingsQueryPort, AgentCliClient, AgentExecutionPlanner, resolveBugbotReviewEffort } = loadApplication(); diff --git a/quality/bugbot/evidence/issue-970/README.md b/quality/bugbot/evidence/issue-970/README.md new file mode 100644 index 000000000..ad1da4bc4 --- /dev/null +++ b/quality/bugbot/evidence/issue-970/README.md @@ -0,0 +1,62 @@ +# Admission follow-up controls — #970 + +The second native review correctly identified two remaining gaps: installed +package bytes were outside the runtime proof, and the corpus version probe used +PATH before binary admission. Both have deterministic counter-controls. + +The complete installed dependency inventory now binds every regular file's +bytes/mode and every internal symlink/target, including absent platform-optional +targets. Materializing an absent optional target changes the proof. External +links and nested dependency shadows along qualification-driver ancestors are +rejected. The one normal pnpm portal to this repository browser-extension +workspace is recorded as unadmitted; synchronous Node resolve hooks refuse its +physical path for both require and import before application modules load. Node preload/search overrides are not admitted. The expected inventory +hash and entry count must come from the exact reviewed committed runtime plan; +launching never silently snapshots a new expected tree. + +Use an isolated lab installed from its pinned package/lockfile with the reviewed +Node/Corepack/pnpm bootstrap, frozen lockfile, ignored lifecycle/pnpm hooks and +verified store integrity. The final explicit pnpm 10.12.4 installation uses +`--frozen-lockfile --ignore-scripts --ignore-pnpmfile --verify-store-integrity +--package-import-method=copy --offline --force`; command/output is retained. +An earlier isolated control removed the unused workspace portal; the final +implementation preserves normal workspace installation and proves that portal +cannot execute through require or import. Do not mutate a user's working tree. +The trusted bootstrap/install procedure is a required operator trust anchor; +this inventory does not independently authenticate npm or attest a compromised +host. A lockfile hash alone is insufficient. + +The first dependency control run passed 36 of 38 tests and refused two actual +runtime fixtures because pnpm retains dangling links to platform-excluded +optional packages. The correction binds those absent internal targets rather +than silently ignoring them. That failed control and the subsequent 38/38 pass +are preserved. The intermediate full suite then passed **170/170** controls. Two further +workspace-portal controls cover require and dynamic import, including the normal +installed workspace layout; the final complete suite passes **172/172** controls. In the causal +negative control, removing only the new dependency fields from the old proof +lets a modified package execute; the corrected proof rejects it before import. +The real entrypoint controls now also detect an early @actions/github import; +that import was moved behind source/driver/runtime admission. + +The CLI version probe validates the preregistered absolute executable and optional +launcher bytes before running either. It uses that exact invocation with a clean +environment and then verifies the returned version. Controls cover direct and +launcher execution, changes refused before execution, and an actual PATH shim +that runs under the old bare-name probe but never under the admitted probe. +The normal-flow runner shares the admitted probe. GitHub evidence credentials +are supplied through existing read-only token environment bindings; the runner +no longer invokes a PATH-resolved gh auth subprocess. Prepared runtime checks +still run before model turns. No control calls models or +writes to an evaluated PR. No profile is qualified and production stays disabled. + +Future plans need installed-tree identity and the version-probe executable / +optional launcher paths in addition to the existing Node/Git/TypeScript and +prepared-runtime hashes. Old plans and campaigns remain immutable and must be +reproduced only at their frozen drivers. #974 remains blocked until reviewed +prerequisites merge and a new exact preregistration is committed. + +The loader fence uses the official synchronous module hook contract from the +[pinned Node v24.20.0 documentation](https://github.com/nodejs/node/blob/v24.20.0/doc/api/module.md#customization-hooks). +It rejects non-physical module URLs and real paths outside admitted source, +dependencies and qualification drivers; the workspace portal is never treated +as verified executable dependency bytes. diff --git a/quality/bugbot/evidence/issue-970/all-admission-controls.log.gz b/quality/bugbot/evidence/issue-970/all-admission-controls.log.gz new file mode 100644 index 0000000000000000000000000000000000000000..2d60af07f8d133926b327d62a0c4805a3779232f GIT binary patch literal 5252 zcmV-~6npC*iwFP!00002|Fv7$j@w9V45?fB==^*z@Qoly?s^Ubu|wBvf%i?Y34-^jk&R)rX=wsD?yeRU&7`D{FNX7PI0 zih7-=-jhE$O`>*LmzcyJv@I_6L{fxWzw* zub|bm{Q<|=)*z_p;(X1v+I=IDPK^8EAvENTmzu@3n3`h0-cEJB?(wX=eJmxldfiXW zSRLeJsS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F#Rq0U&Q3+codowU0PO6@U1`SxyK4(~h;#W;v!_wt;qwNhf zHZsYqB5!6h=#^Na9{RbJy{js%o^2_5sjWfITdZ~Xz~UuI9_bbhwB#WAYyJL-VaMsA zh;^PD!Fw)=2HV9fP>z?{5znn0wor<~rlvx#n3_7H(@n#kR1)q(mPRk8rm+zRZF-t? z7?Yh_@f4L2<|w0-6^Atv87K}l-;Q8*y z@7F<`=x8`r#sxVAY>Ub}Jdn-8iR{`fdl7pEhs$!jc9sAxz!kfRQ6K$_UV+vK(9(^* z(lu^=$(3+2joze-)yx`eG_kcJEpA{6fiS?Tmj)XV*2g!BoS!dAk_NRrM@AA|@{&^J z4a`_}F;7W&4$n655R4ecyS7P8r#FDYGvr0>U}|Akt(6xs9?=R(o9otuQ9O%%5S+nNO{a*G*dIetlC{fHImfv^AIUAiX5ZpDxN?MkhS^BkeniC4r(8@z738+ied{>%d zG2{f~7;$Kd2h(0)lia|k-x|YCA`4vEZ>6{WoQE{3sy}mzxvoho^XKYfr)I%sr{M>7 z*+Ubt7)-?how!gdy_ckpJS5DoRL|_TFG)v^BfFBgbcYR7Oc4Bv6NWSV`>+3X)cavb zZ}`(NaV<%G=m7fXU+B>KdtJ!|yY!;#s_W)YV_UZRpQX+rJ{&;DOA;Dr4QRmZ$^Qde K_c;vfLI40_p&O_G literal 0 HcmV?d00001 diff --git a/quality/bugbot/evidence/issue-970/explicit-verified-install.log.gz b/quality/bugbot/evidence/issue-970/explicit-verified-install.log.gz new file mode 100644 index 0000000000000000000000000000000000000000..85c953a65b20acd7100c5a80eea02138a83e3df7 GIT binary patch literal 448 zcmV;x0YCm9iwFP!00002|E*KOY8x>Sz3VIHXp>m%nvK`?&D5a{gksXBK7@jm)x@jr zMiLsWm-LiteluUvk+(EZa&oJSM$A0DH}Kx;^UHR1^ZE7p1v)Zz50lA*3l+i@P!|wt z=MkP<2aR<-^tFn|m*SRoJTJafJh24TwlIa>g@(LhxDW0JR*}TDtC|PXA{c_sLv)~3 z#B&HpuI-|67AT@mZEB47sKq9@J-2B&3>{EIo&X(jm7OzjZ(FDI@KX9%h>fZmwMRys zm9x1x`_Jb+Rm}58SD9VBuWXT@44oG9ld(mohKltSska zxLaRtvV6Aq4r}xQE0tWcRl&0VmaywWE4>PYqwx;zu~rA;Lh_S!k-ep?RzaJe{6Ck; zm===_F$5O~VzM-25D2R-nD_+d(YIz`Aqls{<2Aze)9UN?Bi!Cx!)kK{#!^NbRD|ZVo>*{HPIkRF-rgL(wZE(7&tQ%{k9!QDR)UF)yLRj7)12L q)_fCG0Xa!}EW|pkWGr0B8U2p2xBd|hc_#CzEW|H(3nobB0{{SO$J+1! literal 0 HcmV?d00001 diff --git a/quality/bugbot/evidence/issue-970/final-shadow.log.gz b/quality/bugbot/evidence/issue-970/final-shadow.log.gz new file mode 100644 index 0000000000000000000000000000000000000000..8576cf770592644028ce739b14b1c4992cad0382 GIT binary patch literal 5293 zcmV;e6jJLSiwFP!00002|Fv7|j@!tw{_m$C@+S%~qItg<*dPmEb_ZvVcVl~#0Kvkb z$d<$mMKWx1#>($JLVlhXIj?h`gJoTRZ(P_I%IO{c$asD|KO+6l;DsoT7ZC#1B6i;g@C$Y|B@96^^p4uN=qT`nT zke@)S?S=!kv28$5(Z&ASZM}OWk-ixB@^fg2TQ4<>n__Cq{dzk!&3eGI;_gc+snzRY zYRCE@zLbhAyFom1Cw)_VmSW^sjFViK#ZayLY10@*^S|X@3^TDOPyX+J{^M+#uDp>> z;T%AtZg&p$+)vWk!R(x3bgEiHC*|H*`BC7;ejcXrLH^<1+M?M)m!kT}>M(M%$PdHl zY<1n1-Jx#;mi+qi)OV9K_OkQkW7j!bap#nU6!K#m@ZC5Gaz8nvur2E5V|$M?H_0C4 zU5ukR^dlDE4fXgj_NnK3q3;Lh!YlVhyCVwSaD%7Ik4YiGPSQLJ!*eQKI}Sxvmt!{^ z9k#q*r<2ESl6cV~ib4ECl%sUUy>O;>(@kyV>}v^Hu%AYgyQ{~2H;rn;WGXdQ3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>yr)8DLj4iO^HB!6IAiS}tDP610 zVEG6pxYouK_zlG1fylusz4=lE7dgu)OS2*>7hF!phj<%R+9~fb@j0$nN8kYANyv{} zWEG=%fH*Fqv}%Xy?yWKP(X3{pnsgR?$-*Zr-33M?RjrU{4jdh(NLYS?w7CDOgBf$J zG$P&^2_w?#(8JHds@@X}50y;}Gv(9;zCJB&oF^=%QB|EWJT+MjA(gp<0S|4p0joko ze)@LxJ-NXSxJGq2^faa{dECY0Q|uV2jorX#*QS+A4TFE&&1IFJ?yNR@%s9&;n#W~% z5^I37fcMbTI+RS^n*Eh)xHS8>*e)tQxszXn6aejS9O4?niSWK}k!Tc*>Uv{w7^ozi z2DI~RiwZrKB~|VEEGr5#1khn|SOD<72Q=-!?aDw;a{!LyRe43_7e6}&?J8<|+jlw+u literal 0 HcmV?d00001 diff --git a/quality/bugbot/evidence/issue-970/public-loader-controls.log.gz b/quality/bugbot/evidence/issue-970/public-loader-controls.log.gz new file mode 100644 index 0000000000000000000000000000000000000000..eb6e3ddc04fee3498cf2cf7557b3fce6b3691647 GIT binary patch literal 978 zcmV;@11<{#@F!+w7ItiIB#`LW=-00w`SI_+NYQ{$M3k+xR%%5I6xx)Q zxEhEkTrV2p48S$9x;F(7sg9tWHfJJKNg7=oD%k+pogG+m#p8emJk43!+OOVxMEtHk zTUj8=6u-_?^%jFlY20}RNO(e7l*UQ^bO7tb9?AtFPG}N75207ih~lsYNhyywNceLgKBJSRG-VN9Psb>9+aZKm&XI&zN}8p~(=mj#eG50eDr%wD+-51w zqCAS?XLRS>Hc}lH2o}*i4OqAw#|kB#`~$OGf=j4CIEx^t4k(rv+mZ`F@N1%NM&1%@Ydd zf;7n%jMB&>D!emVSBqm!ZZ+!6o0EYLSi1EYbtx-}iKf7-m~)!u@e0zQ2gnvC%$-z- zc&|$skhbRzekzRY9Kmp3*_dHUIkF&jm%(LWjH41J!D{S2by@}fC=-Jo552VpBRwHM zezX0K+#v(DmaS(oMpxu%kX=|@o+4wU(q<2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Mi3>>H>9(v=mcFJ8ZpHE^S>% zlu&w?gp?+Mdr$bkA{@+k4!;e+-YR>X_#^VpQ0{`+rwIv0)MsFCk0coWYlFW|g%rC| z*7}>zzrx2Ds+)xF1N3Wi8>W8d~Kbt`_h6Ycj=O@(v500F_0r<8fyLTD@0D4;1XaE2J literal 0 HcmV?d00001 diff --git a/quality/bugbot/evidence/issue-970/verified-dependency-install.log.gz b/quality/bugbot/evidence/issue-970/verified-dependency-install.log.gz new file mode 100644 index 0000000000000000000000000000000000000000..88a589707bf296a9be9481ca121357ce327a8fd8 GIT binary patch literal 443 zcmV;s0Yv^EiwFP!00002|E-h3Zrd;nhVOa`9uu???4*s`+=8Xp3KT=owaZ}`5Y=L1 z&8{SfQjG4@YhSZZGAbT6VCX5BFQP#H;!p7N+so@_dHeb8zXEce0vz&et+adrD>Is`+IJVXat zMLdOoj4t>S*nZ2RT+dpIsiUt%@oqEQ*nJ8W+>^`NeDu-&R-a zqMToThZXvOwaV+;s9+g{1#DC3q*sA(G~U7kHfnEN$cwcu@{*O+DrobQ-{&wBVlnf8 zA-F&gGh3`dAgog`@fpmM@66DJB-|61Hwc?g%e&1-xWB!D<@y?oWqy>F@Zswf9l*@( z3{m1n%<@0J_NlWN)Pw0vG)Pj6^1ItSCbJ&{!#mM`rvoYFHoK(ez(0n;L_bW;CqW&M lk=A1&R(T|2;Y?2H_y6Rre}a8k$Z{&r#4is|C)95P005Z0;dB51 literal 0 HcmV?d00001 From 7cf80aff0f82df0555e148427905710524e8a606 Mon Sep 17 00:00:00 2001 From: Efra Espada Date: Thu, 19 Nov 2026 21:27:01 +0100 Subject: [PATCH 4/9] bugfix-970-bind-bugbot-qualification-execution-to-the-pinned-source-and-sanitized-git-environment: admit immutable drivers before loading the verifier (#970) --- docs/development/testing.mdx | 27 +++ package.json | 2 +- .../evidence/issue-950/ev07-shadow/corpus.cjs | 1 + .../issue-950/ev07-shadow/full-review.cjs | 1 + .../issue-950/ev07-shadow/implementation.cjs | 6 +- .../ev07-shadow/launch-full-review.cjs | 1 + .../ev07-shadow/launch-full-review.test.cjs | 2 +- .../evidence/issue-950/ev07-shadow/review.cjs | 1 + .../issue-950/execution-provenance.cjs | 39 ++++- .../normal-flow-shadow/paths.test.cjs | 20 ++- .../issue-950/normal-flow-shadow/run.cjs | 16 +- .../issue-950/qualification-bootstrap.cjs | 157 ++++++++++++++++++ .../qualification-bootstrap.test.cjs | 133 +++++++++++++++ quality/bugbot/evidence/issue-970/README.md | 48 ++++++ ...bootstrap-integration-before-commit.log.gz | Bin 0 -> 3081 bytes .../issue-970/bootstrap-tests-1.log.gz | Bin 0 -> 941 bytes .../issue-970/bootstrap-tests-2.log.gz | Bin 0 -> 515 bytes specs/CATALOG.md | 8 +- specs/bugbot-review-state-reconciliation.md | 50 ++++++ specs/catalog.json | 13 +- 20 files changed, 503 insertions(+), 22 deletions(-) create mode 100644 quality/bugbot/evidence/issue-950/qualification-bootstrap.cjs create mode 100644 quality/bugbot/evidence/issue-950/qualification-bootstrap.test.cjs create mode 100644 quality/bugbot/evidence/issue-970/bootstrap-integration-before-commit.log.gz create mode 100644 quality/bugbot/evidence/issue-970/bootstrap-tests-1.log.gz create mode 100644 quality/bugbot/evidence/issue-970/bootstrap-tests-2.log.gz diff --git a/docs/development/testing.mdx b/docs/development/testing.mdx index 5c7a2edd9..b7f371a55 100644 --- a/docs/development/testing.mdx +++ b/docs/development/testing.mdx @@ -354,3 +354,30 @@ Supply read-only GitHub evidence credentials through `COPILOT_EVIDENCE_TOKEN`, `GH_TOKEN` or `GITHUB_TOKEN` as appropriate for the private fixtures; the review driver does not launch a PATH-resolved credential helper. Do not persist tokens in a plan or evidence record. An absent credential blocks the required CI reader. + + +### Start qualification from a reviewed bootstrap + +Extract `quality/bugbot/evidence/issue-950/qualification-bootstrap.cjs` from an +independently reviewed commit using trusted operating-system Git into a private +file outside the checkout. Verify its independently reviewed SHA-256 before +launching trusted Node with NODE_OPTIONS and NODE_PATH unset. Do not run the +working-tree corpus, normal-flow or full-review entrypoint directly for measured +qualification; those entrypoints require private bootstrap admission. + +The positional arguments are repository, reviewed plan commit, relative plan +path, reviewed plan SHA-256, reviewed bootstrap SHA-256, mode, then mode arguments. +`corpus` takes a new output directory and optional `--preflight`; `full-review` +takes the campaign directory; `normal-flow` takes lab, PR number and a new ledger +path. The selected plan must be a committed regular blob containing the complete +current driver/runtime pins. Its revision must contain the exact reviewed +bootstrap. Treat the reviewed digests and trusted Node/Git/package installation +as operator trust anchors; a checkout's own receipt is insufficient. + +The launcher authenticates and materializes drivers before loading its verifier, +checks original and private source/dependency/runtime bytes, forwards explicit +signals and removes its private source after exit. It records stable bootstrap +and plan identities without private temporary paths. Normal-flow authenticates +the manifest before selecting even a `--version` executable. Production stays +disabled and publication stays dry-run. Existing frozen campaigns replay with +their frozen historical drivers; this route needs a new reviewed preregistration. diff --git a/package.json b/package.json index 4c7247b20..29e456314 100644 --- a/package.json +++ b/package.json @@ -69,7 +69,7 @@ "test": "jest", "test:watch": "jest --watch", "test:coverage": "jest --coverage --json --outputFile=coverage/setup-acceptance-jest.json && node scripts/validate-coverage-budgets.cjs && node scripts/validate-setup-assistant-acceptance.cjs coverage/setup-acceptance-jest.json && pnpm run test:extension", - "test:bugbot-shadow-verification": "node --test quality/bugbot/evidence/issue-950/shadow-verification/verification.test.cjs quality/bugbot/evidence/issue-950/normal-flow-shadow/config.test.cjs quality/bugbot/evidence/issue-950/normal-flow-shadow/paths.test.cjs quality/bugbot/evidence/issue-950/ev07-shadow/launch-full-review.test.cjs quality/bugbot/evidence/issue-950/ev07-shadow/review-runtime.test.cjs quality/bugbot/evidence/issue-950/ev07-shadow/score-review.test.cjs quality/bugbot/evidence/issue-950/ev07-shadow/plan.test.cjs quality/bugbot/evidence/issue-950/status-card-publication/publisher.test.cjs", + "test:bugbot-shadow-verification": "node --test quality/bugbot/evidence/issue-950/qualification-bootstrap.test.cjs quality/bugbot/evidence/issue-950/shadow-verification/verification.test.cjs quality/bugbot/evidence/issue-950/normal-flow-shadow/config.test.cjs quality/bugbot/evidence/issue-950/normal-flow-shadow/paths.test.cjs quality/bugbot/evidence/issue-950/ev07-shadow/launch-full-review.test.cjs quality/bugbot/evidence/issue-950/ev07-shadow/review-runtime.test.cjs quality/bugbot/evidence/issue-950/ev07-shadow/score-review.test.cjs quality/bugbot/evidence/issue-950/ev07-shadow/plan.test.cjs quality/bugbot/evidence/issue-950/status-card-publication/publisher.test.cjs", "eval:bugbot": "jest src/tooling/__tests__/bugbot_quality_eval.test.ts src/tooling/__tests__/bugbot_benchmark.test.ts src/tooling/__tests__/bugbot_request_transform_evidence.test.ts --runInBand", "typecheck": "tsc --noEmit && pnpm run typecheck:extension", "metrics:architecture": "node scripts/collect-architecture-metrics.cjs", diff --git a/quality/bugbot/evidence/issue-950/ev07-shadow/corpus.cjs b/quality/bugbot/evidence/issue-950/ev07-shadow/corpus.cjs index c6d9823db..0487312eb 100644 --- a/quality/bugbot/evidence/issue-950/ev07-shadow/corpus.cjs +++ b/quality/bugbot/evidence/issue-950/ev07-shadow/corpus.cjs @@ -14,6 +14,7 @@ const root = path.resolve(__dirname, '../../../../..'); const hash = input => createHash('sha256').update(input).digest('hex'); async function run(destination, preflight = false) { + require('../execution-provenance.cjs').requireBootstrapAdmission(root); const provenance = qualificationProvenance(plan); const implementation = provenance.implementation; admitQualificationModules(root); diff --git a/quality/bugbot/evidence/issue-950/ev07-shadow/full-review.cjs b/quality/bugbot/evidence/issue-950/ev07-shadow/full-review.cjs index 4d1f3258c..35a0089eb 100644 --- a/quality/bugbot/evidence/issue-950/ev07-shadow/full-review.cjs +++ b/quality/bugbot/evidence/issue-950/ev07-shadow/full-review.cjs @@ -10,6 +10,7 @@ const plan = require('./configuration.cjs'); const concurrency = 3; async function run(campaign) { + require('../execution-provenance.cjs').requireBootstrapAdmission(path.resolve(__dirname, '../../../../..')); campaign = requirePassingCorpus(campaign); const provenance = qualificationProvenance(plan); const implementation = provenance.implementation; diff --git a/quality/bugbot/evidence/issue-950/ev07-shadow/implementation.cjs b/quality/bugbot/evidence/issue-950/ev07-shadow/implementation.cjs index 1368454e0..0742d0acf 100644 --- a/quality/bugbot/evidence/issue-950/ev07-shadow/implementation.cjs +++ b/quality/bugbot/evidence/issue-950/ev07-shadow/implementation.cjs @@ -19,7 +19,9 @@ function qualificationProvenance(selected = require('./configuration.cjs')) { const source = attestSource(root, selected.implementation); const drivers = requirePinnedDrivers(selected); const runtime = attestRuntime(root, selected.runtime); - return { ...source, drivers, runtime }; + const admission = path.join(root, '.qualification-admission.json'); + return { ...source, drivers, runtime, ...(require('node:fs').existsSync(admission) + && { bootstrap: require('../execution-provenance.cjs').requireBootstrapAdmission(root) }) }; } function requirePinnedRuntime(cli, runtime = require('./configuration.cjs').runtime) { @@ -68,7 +70,7 @@ function requirePinnedCliProbe(runtime = require('./configuration.cjs').runtime) } const qualificationDrivers = Object.freeze(['configuration.cjs', 'implementation.cjs', 'load.cjs', 'corpus.cjs', - 'review.cjs', 'full-review.cjs', 'launch-full-review.cjs', 'score-review.py', '../execution-provenance.cjs']); + 'review.cjs', 'full-review.cjs', 'launch-full-review.cjs', 'score-review.py', '../execution-provenance.cjs', '../qualification-bootstrap.cjs']); function requirePinnedDrivers(selected = require('./configuration.cjs')) { const drivers = attestDrivers(__dirname, selected.inspectedArtifacts, qualificationDrivers); diff --git a/quality/bugbot/evidence/issue-950/ev07-shadow/launch-full-review.cjs b/quality/bugbot/evidence/issue-950/ev07-shadow/launch-full-review.cjs index ed682e771..9e2763763 100644 --- a/quality/bugbot/evidence/issue-950/ev07-shadow/launch-full-review.cjs +++ b/quality/bugbot/evidence/issue-950/ev07-shadow/launch-full-review.cjs @@ -86,6 +86,7 @@ function launchFullReview(campaign, launch = spawn) { if (require.main === module) { try { + require('../execution-provenance.cjs').requireBootstrapAdmission(path.resolve(__dirname, '../../../../..')); const child = launchFullReview(process.argv[2]); const interrupt = () => child.kill('SIGINT'); const terminate = () => child.kill('SIGTERM'); diff --git a/quality/bugbot/evidence/issue-950/ev07-shadow/launch-full-review.test.cjs b/quality/bugbot/evidence/issue-950/ev07-shadow/launch-full-review.test.cjs index 280f5a436..64321987e 100644 --- a/quality/bugbot/evidence/issue-950/ev07-shadow/launch-full-review.test.cjs +++ b/quality/bugbot/evidence/issue-950/ev07-shadow/launch-full-review.test.cjs @@ -50,7 +50,7 @@ for (const [name, data] of [ assert.throws(() => launchFullReview(directory, launch), /independent corpus/); const direct = spawnSync(process.execPath, [path.join(__dirname, 'full-review.cjs'), directory], { encoding: 'utf8' }); assert.equal(direct.status, 1); - assert.match(direct.stderr, /independent corpus/u); + assert.match(direct.stderr, /immutable bootstrap/u); assert.equal(existsSync(path.join(directory, 'full-review')), false); }); } diff --git a/quality/bugbot/evidence/issue-950/ev07-shadow/review.cjs b/quality/bugbot/evidence/issue-950/ev07-shadow/review.cjs index 79faf8bfe..3e91727f8 100644 --- a/quality/bugbot/evidence/issue-950/ev07-shadow/review.cjs +++ b/quality/bugbot/evidence/issue-950/ev07-shadow/review.cjs @@ -76,6 +76,7 @@ function readSubject(id, checkout) { } async function run(checkout, id, repetition, output, preflight = false) { + require('../execution-provenance.cjs').requireBootstrapAdmission(path.resolve(__dirname, '../../../../..')); const provenance = qualificationProvenance(plan); const implementation = provenance.implementation; admitQualificationModules(path.resolve(__dirname, '../../../../..')); diff --git a/quality/bugbot/evidence/issue-950/execution-provenance.cjs b/quality/bugbot/evidence/issue-950/execution-provenance.cjs index 98d491718..2a27eefce 100644 --- a/quality/bugbot/evidence/issue-950/execution-provenance.cjs +++ b/quality/bugbot/evidence/issue-950/execution-provenance.cjs @@ -211,4 +211,41 @@ function attestDrivers(directory, expected, files) { })); } -module.exports = { attestSource, attestRuntime, attestDrivers, runtimeIdentity, dependencyIdentity, admitQualificationModules, pinnedGit, gitEnvironment, trustedGitExecutable }; +function attestCommittedArtifact(root, file, expectedSha256, commit) { + assert.match(expectedSha256 ?? '', /^[a-f0-9]{64}$/u, 'reviewed committed artifact digest required'); + assert.match(commit ?? '', /^[a-f0-9]{40}$/u, 'reviewed artifact commit required'); + root = fs.realpathSync(root); + const relative = path.relative(root, path.resolve(file)).split(path.sep).join('/'); + assert(relative && !path.isAbsolute(relative) && !relative.split('/').some(part => ['', '..', '.git'].includes(part)), + 'committed artifact must be inside the reviewed repository'); + let current = root; + for (const part of relative.split('/')) { + current = path.join(current, part); + assert(!fs.lstatSync(current).isSymbolicLink(), 'committed artifact symlink refused'); + } + assert(fs.lstatSync(current).isFile(), 'committed artifact must be regular'); + const git = pinnedGit(root), rows = git('ls-tree', '-z', commit, '--', relative).toString('utf8').split('\0').filter(Boolean); + assert.equal(rows.length, 1, 'reviewed committed artifact unavailable'); + const [header, name] = rows[0].split('\t'), [mode, type, blob] = header.split(' '); + assert(['100644', '100755'].includes(mode) && type === 'blob' && name === relative, + 'reviewed committed artifact must be a regular blob'); + const bytes = fs.readFileSync(current); + assert.equal(hash(bytes), expectedSha256, 'reviewed committed artifact digest differs'); + assert(git('cat-file', 'blob', blob).equals(bytes), 'reviewed committed artifact bytes differ'); + return { bytes, provenance: { commit, path: relative, blob, sha256: expectedSha256 } }; +} + +function requireBootstrapAdmission(root) { + const file = path.join(root, '.qualification-admission.json'); + assert(fs.existsSync(file), 'qualification requires the independently reviewed immutable bootstrap'); + assert(fs.lstatSync(file).isFile() && !fs.lstatSync(file).isSymbolicLink(), 'invalid bootstrap admission'); + const proof = JSON.parse(fs.readFileSync(file)); + assert.match(proof.bootstrapSha256 ?? '', /^[a-f0-9]{64}$/u); + assert.equal(hash(fs.readFileSync(path.join(root, 'quality/bugbot/evidence/issue-950/qualification-bootstrap.cjs'))), + proof.bootstrapSha256, 'bootstrap admission identity differs'); + attestCommittedArtifact(root, path.join(root, proof.planPath), proof.planSha256, proof.planCommit); + return proof; +} + +module.exports = { attestSource, attestRuntime, attestDrivers, runtimeIdentity, dependencyIdentity, admitQualificationModules, + pinnedGit, gitEnvironment, trustedGitExecutable, attestCommittedArtifact, requireBootstrapAdmission }; diff --git a/quality/bugbot/evidence/issue-950/normal-flow-shadow/paths.test.cjs b/quality/bugbot/evidence/issue-950/normal-flow-shadow/paths.test.cjs index 861926236..d2d5aa643 100644 --- a/quality/bugbot/evidence/issue-950/normal-flow-shadow/paths.test.cjs +++ b/quality/bugbot/evidence/issue-950/normal-flow-shadow/paths.test.cjs @@ -2,7 +2,7 @@ const assert = require('node:assert/strict'); const { execFileSync, spawnSync } = require('node:child_process'); -const { mkdtempSync, mkdirSync, writeFileSync, readFileSync, existsSync, rmSync, symlinkSync } = require('node:fs'); +const { mkdtempSync, mkdirSync, writeFileSync, readFileSync, existsSync, rmSync, symlinkSync, cpSync, constants } = require('node:fs'); const { createHash } = require('node:crypto'); const { tmpdir } = require('node:os'); const path = require('node:path'); @@ -172,7 +172,7 @@ fs.writeFileSync(process.env.IMPORT_MARKER,name);throw Error('unexpected applica assert.notEqual(child.status, 0); assert.equal(existsSync(marker), false, child.stderr); assert.equal(existsSync(path.join(directory, 'result.jsonl')), false); - assert.match(child.stderr, /rev-parse|commit|pin/u); + assert.match(child.stderr, /rev-parse|commit|pin|immutable bootstrap/u); }); } @@ -267,8 +267,20 @@ test('the actual runner resolves a relative lab before entering its private chec manifest.runtime = { ...proof.runtimeIdentity(root), executable: path.join(bin, 'codex'), codex: 'codex-cli fixture', codexSha256: hash(path.join(bin, 'codex')) }; manifest.drivers = Object.fromEntries(require('./run.cjs').normalFlowDrivers.map(file => [file, hash(path.join(__dirname, file))])); - writeFileSync(path.join(directory, 'subjects.json'), JSON.stringify(manifest)); - const run = spawnSync(process.execPath, [path.join(__dirname, 'run.cjs'), 'lab', '1', 'result.jsonl', 'subjects.json'], { + const checkout = path.join(directory, 'implementation'); + execFileSync('git', ['clone', '--quiet', '--shared', '--template=', root, checkout]); + cpSync(path.join(root, 'node_modules'), path.join(checkout, 'node_modules'), + { recursive: true, verbatimSymlinks: true, mode: constants.COPYFILE_FICLONE }); + const relative = 'quality/bugbot/evidence/issue-950/normal-flow-shadow/relative-lab.fixture.json'; + writeFileSync(path.join(checkout, relative), JSON.stringify(manifest)); + execFileSync('git', ['-C', checkout, 'add', relative]); + execFileSync('git', ['-C', checkout, '-c', 'user.name=Fixture', '-c', 'user.email=fixture@example.invalid', + '-c', 'core.hooksPath=/dev/null', 'commit', '--quiet', '-m', 'Commit synthetic fixture manifest']); + const revision = execFileSync('git', ['-C', checkout, 'rev-parse', 'HEAD'], { encoding: 'utf8' }).trim(); + const bootstrap = path.join(directory, 'reviewed-bootstrap.cjs'); + writeFileSync(bootstrap, execFileSync('git', ['-C', checkout, 'show', revision + ':quality/bugbot/evidence/issue-950/qualification-bootstrap.cjs'])); + const run = spawnSync(process.execPath, [bootstrap, checkout, revision, relative, + hash(path.join(checkout, relative)), hash(bootstrap), 'normal-flow', 'lab', '1', 'result.jsonl'], { cwd: directory, encoding: 'utf8', env: { ...process.env, PATH: bin + path.delimiter + process.env.PATH, MODEL_FORBIDDEN: forbidden }, }); diff --git a/quality/bugbot/evidence/issue-950/normal-flow-shadow/run.cjs b/quality/bugbot/evidence/issue-950/normal-flow-shadow/run.cjs index f3eabd2e1..eba514c96 100644 --- a/quality/bugbot/evidence/issue-950/normal-flow-shadow/run.cjs +++ b/quality/bugbot/evidence/issue-950/normal-flow-shadow/run.cjs @@ -9,10 +9,11 @@ const path = require('node:path'); const official = require('../shadow-real-prs/official.json'); const shadowPlan = require('../shadow-verification/plan.json'); const root = path.resolve(__dirname, '../../../../..'); -const { attestSource, attestRuntime, admitQualificationModules, attestDrivers, pinnedGit, trustedGitExecutable } = require('../execution-provenance.cjs'); +const { attestSource, attestRuntime, admitQualificationModules, attestDrivers, pinnedGit, trustedGitExecutable, + attestCommittedArtifact, requireBootstrapAdmission } = require('../execution-provenance.cjs'); const { requirePinnedExecution, requirePinnedCliProbe } = require('../ev07-shadow/implementation.cjs'); const normalFlowDrivers = Object.freeze(['run.cjs', '../execution-provenance.cjs', '../ev07-shadow/load.cjs', - '../ev07-shadow/implementation.cjs', '../ev07-shadow/configuration.cjs']); + '../ev07-shadow/implementation.cjs', '../ev07-shadow/configuration.cjs', '../qualification-bootstrap.cjs']); let application; function loadApplication() { if (application) return application; @@ -106,9 +107,11 @@ async function verifyMatchedCandidate(request, profiles, verifyArm, recordCompar async function run(lab, number, destination, manifestPath = path.join(__dirname, 'subjects.json')) { lab = path.resolve(lab); - const manifest = fs.readFileSync(manifestPath); + const admission = requireBootstrapAdmission(root); + const authenticated = attestCommittedArtifact(root, manifestPath, admission.planSha256, admission.planCommit); + const manifest = authenticated.bytes; const frozen = JSON.parse(manifest); - const provenance = { ...attestSource(root, frozen.implementation), + const provenance = { bootstrap: admission, manifest: authenticated.provenance, ...attestSource(root, frozen.implementation), drivers: attestDrivers(__dirname, frozen.drivers, normalFlowDrivers), runtime: attestRuntime(root, frozen.runtime) }; admitQualificationModules(root); const directRuntime = { executable: frozen.runtime.executable, prefixArgs: frozen.runtime.launcher ? [frozen.runtime.launcher] : [] }; @@ -181,8 +184,9 @@ async function run(lab, number, destination, manifestPath = path.join(__dirname, if (workflowInputs) { assert.equal(process.env.REVIEWER_EFFORT, workflowInputs.REVIEWER_EFFORT); assert.equal(process.env.BUGBOT_EFFORT, workflowInputs.BUGBOT_EFFORT); - const runtime = execFileSync(process.env.PILOT_LOCAL_PYTHON, ['-c', - 'import platform,sqlite3; print(platform.python_version(), sqlite3.sqlite_version)'], { encoding: 'utf8' }).trim(); + const runtime = execFileSync(process.env.PILOT_LOCAL_PYTHON, ['-I', '-S', '-c', + 'import platform,sqlite3; print(platform.python_version(), sqlite3.sqlite_version)'], + { encoding: 'utf8', env: { PATH: '/usr/bin:/bin' } }).trim(); assert.equal(runtime, shadowPlan.localRuntime.python + ' ' + shadowPlan.localRuntime.sqlite); log({ event: 'local-runtime', runtime, scope: shadowPlan.localRuntime.scope }); } diff --git a/quality/bugbot/evidence/issue-950/qualification-bootstrap.cjs b/quality/bugbot/evidence/issue-950/qualification-bootstrap.cjs new file mode 100644 index 000000000..62e4ef44c --- /dev/null +++ b/quality/bugbot/evidence/issue-950/qualification-bootstrap.cjs @@ -0,0 +1,157 @@ +'use strict'; + +// Trust begins OUTSIDE the checkout: materialize this file from an independently +// reviewed Git revision, compare its reviewed SHA-256, then start trusted Node +// with NODE_OPTIONS/NODE_PATH unset. See issue-970/README.md. This file uses only +// Node core until the immutable verifier and every driver have been admitted. +const assert = require('node:assert/strict'); +const fs = require('node:fs'); +const path = require('node:path'); +const os = require('node:os'); +const { createHash } = require('node:crypto'); +const { execFileSync, spawn } = require('node:child_process'); +const sha256 = bytes => createHash('sha256').update(bytes).digest('hex'); +const prefix = 'quality/bugbot/evidence/issue-950/'; +const ev07 = ['configuration.cjs', 'implementation.cjs', 'load.cjs', 'corpus.cjs', 'review.cjs', + 'full-review.cjs', 'launch-full-review.cjs', 'score-review.py', '../execution-provenance.cjs', '../qualification-bootstrap.cjs']; +const normal = ['run.cjs', '../execution-provenance.cjs', '../ev07-shadow/load.cjs', + '../ev07-shadow/implementation.cjs', '../ev07-shadow/configuration.cjs', '../qualification-bootstrap.cjs']; +const entries = Object.freeze({ corpus: 'ev07-shadow/corpus.cjs', + 'full-review': 'ev07-shadow/launch-full-review.cjs', 'normal-flow': 'normal-flow-shadow/run.cjs' }); + +function safePath(value) { + assert(typeof value === 'string' && value.length && !path.isAbsolute(value) + && !value.includes('\\') && !value.split('/').some(part => ['', '.', '..', '.git'].includes(part)), + 'unsafe committed artifact path'); + return value; +} + +function physical(root, relative) { + let file = root; + for (const part of safePath(relative).split('/')) { + file = path.join(file, part); + assert(!fs.lstatSync(file).isSymbolicLink(), 'qualification artifact symlink refused'); + } + assert(fs.lstatSync(file).isFile(), 'qualification artifact must be a regular file'); + return file; +} + +function gitFor(root) { + const file = process.platform === 'darwin' ? execFileSync('/usr/bin/xcrun', ['--find', 'git'], + { env: { PATH: '/usr/bin:/bin' }, encoding: 'utf8' }).trim() + : process.platform === 'linux' ? '/usr/bin/git' : undefined; + assert(file && path.isAbsolute(file), 'trusted Git requires Linux or macOS'); + const executable = fs.realpathSync(file), marker = path.join(root, '.git'); + assert(!fs.lstatSync(marker).isSymbolicLink(), 'Git identity symlink refused'); + let directory = marker; + if (fs.lstatSync(marker).isFile()) { + const match = /^gitdir: (.+)\r?\n?$/u.exec(fs.readFileSync(marker, 'utf8')); + assert(match, 'invalid worktree Git identity'); + directory = path.resolve(root, match[1]); + } + const env = Object.fromEntries(Object.entries(process.env).filter(([key]) => !key.toUpperCase().startsWith('GIT_'))); + Object.assign(env, { GIT_CONFIG_GLOBAL: os.devNull, GIT_CONFIG_NOSYSTEM: '1', GIT_NO_REPLACE_OBJECTS: '1' }); + const git = (...args) => execFileSync(executable, ['--no-pager', '--no-replace-objects', '--literal-pathspecs', + '--git-dir=' + directory, '--work-tree=' + root, '-C', root, + '-c', 'core.hooksPath=' + os.devNull, '-c', 'core.fsmonitor=false', ...args], + { env, maxBuffer: 256 * 1024 * 1024, stdio: ['pipe', 'pipe', 'pipe'] }); + return { git, executable, env, directory }; +} + +function committed(git, revision, relative) { + safePath(relative); + const rows = git('ls-tree', '-z', revision, '--', relative).toString('utf8').split('\0').filter(Boolean); + assert.equal(rows.length, 1, 'committed artifact unavailable'); + const [header, name] = rows[0].split('\t'), [mode, type, blob] = header.split(' '); + assert(['100644', '100755'].includes(mode) && type === 'blob' && name === relative, + 'committed artifact must be a regular blob'); + return git('cat-file', 'blob', blob); +} + +async function launch(repository, revision, planPath, planSha256, bootstrapSha256, mode, ...args) { + assert(!process.env.NODE_OPTIONS && !process.env.NODE_PATH && process.execArgv.length === 0, + 'bootstrap requires trusted Node without preloads or loader overrides'); + assert.match(revision ?? '', /^[a-f0-9]{40}$/u, 'reviewed plan commit required'); + assert.match(planSha256 ?? '', /^[a-f0-9]{64}$/u, 'independently reviewed plan digest required'); + assert.match(bootstrapSha256 ?? '', /^[a-f0-9]{64}$/u, 'independently reviewed bootstrap digest required'); + assert.equal(sha256(fs.readFileSync(__filename)), bootstrapSha256, 'reviewed bootstrap differs'); + assert(Object.hasOwn(entries, mode), 'unsupported qualification entrypoint'); + assert(mode === 'normal-flow' ? args.length === 3 : mode === 'full-review' ? args.length === 1 + : args.length === 1 || args.length === 2 && args[1] === '--preflight', 'invalid qualification arguments'); + const root = fs.realpathSync(repository), trust = gitFor(root), { git } = trust; + assert.equal(git('rev-parse', '--verify', revision + '^{commit}').toString('utf8').trim(), revision); + assert.equal(sha256(committed(git, revision, prefix + 'qualification-bootstrap.cjs')), bootstrapSha256, + 'plan revision does not contain the independently reviewed bootstrap'); + const bytes = committed(git, revision, planPath); + assert.equal(sha256(bytes), planSha256, 'reviewed committed plan differs'); + assert(fs.readFileSync(physical(root, planPath)).equals(bytes), 'working plan differs from reviewed commit'); + const plan = JSON.parse(bytes); + assert.equal(plan.publication, 'dry-run', 'qualification must remain dry-run'); + assert.match(plan.implementation ?? '', /^[a-f0-9]{40}$/u); + git('merge-base', '--is-ancestor', plan.implementation, revision); + const base = prefix + (mode === 'normal-flow' ? 'normal-flow-shadow/' : 'ev07-shadow/'); + const inventory = mode === 'normal-flow' ? normal : ev07; + const expected = mode === 'normal-flow' ? plan.drivers : plan.inspectedArtifacts; + for (const driver of inventory) { + const relative = path.posix.normalize(base + driver), trusted = committed(git, revision, relative); + assert.equal(sha256(trusted), expected?.[driver], 'committed driver differs from reviewed plan: ' + driver); + assert(fs.readFileSync(physical(root, relative)).equals(trusted), 'working driver differs: ' + driver); + } + const scratch = fs.mkdtempSync(path.join(os.tmpdir(), 'bugbot-qualified-source-')); + fs.chmodSync(scratch, 0o700); + const isolated = path.join(scratch, 'source'); + try { + // A fresh local clone does not copy source repository hooks/configuration. + execFileSync(trust.executable, ['-c', 'core.hooksPath=' + os.devNull, 'clone', '--quiet', '--shared', + '--no-checkout', '--template=', trust.directory, isolated], { env: trust.env }); + const isolatedGit = gitFor(isolated).git; + isolatedGit('checkout', '--quiet', '--detach', revision); + isolatedGit('remote', 'remove', 'origin'); + // The helper is now the immutable blob already checked above, not a + // working-tree verifier asked to authenticate itself after execution. + const verifier = require(path.join(isolated, prefix, 'execution-provenance.cjs')); + verifier.attestSource(root, plan.implementation); + verifier.attestRuntime(root, plan.runtime); + assert(!fs.existsSync(path.join(isolated, 'node_modules')), 'tracked dependency installation refused'); + fs.cpSync(path.join(root, 'node_modules'), path.join(isolated, 'node_modules'), + { recursive: true, verbatimSymlinks: true, dereference: false, mode: fs.constants.COPYFILE_FICLONE }); + verifier.attestSource(isolated, plan.implementation); + verifier.attestRuntime(isolated, plan.runtime); + const proof = { bootstrapSha256, planCommit: revision, planPath, planSha256 }; + fs.writeFileSync(path.join(isolated, '.qualification-admission.json'), JSON.stringify(proof), + { flag: 'wx', mode: 0o600 }); + const env = { ...trust.env, COPILOT_EV07_PLAN: path.join(isolated, planPath), + BUGBOT_VERIFICATION_MODE: 'disabled', + COPILOT_QUALIFICATION_MANIFEST_SHA256: planSha256, + COPILOT_QUALIFICATION_PLAN_COMMIT: revision }; + delete env.NODE_OPTIONS; + delete env.NODE_PATH; + // Old diagnostic plans may select an auxiliary executable from the + // environment. A future reviewed plan must bind it before any probe. + if (plan.workflowInputs) { + assert(path.isAbsolute(plan.runtime.pythonExecutable ?? ''), 'pinned auxiliary Python required'); + assert.equal(sha256(fs.readFileSync(plan.runtime.pythonExecutable)), plan.runtime.pythonSha256, + 'auxiliary Python differs from reviewed runtime'); + env.PILOT_LOCAL_PYTHON = plan.runtime.pythonExecutable; + } + const childArgs = mode === 'normal-flow' ? [...args, path.join(isolated, planPath)] : args; + const child = spawn(process.execPath, [path.join(isolated, prefix, entries[mode]), ...childArgs], + { env, stdio: 'inherit', cwd: process.cwd() }); + const interrupt = () => child.kill('SIGINT'), terminate = () => child.kill('SIGTERM'); + process.once('SIGINT', interrupt); + process.once('SIGTERM', terminate); + try { + return await new Promise((resolve, reject) => { + child.once('error', reject); + child.once('close', (code, signal) => resolve(code ?? (signal === 'SIGINT' ? 130 : signal === 'SIGTERM' ? 143 : 1))); + }); + } finally { + process.removeListener('SIGINT', interrupt); + process.removeListener('SIGTERM', terminate); + } + } finally { fs.rmSync(scratch, { recursive: true, force: true }); } +} + +module.exports = { launch }; +if (require.main === module) launch(...process.argv.slice(2)).then(code => { process.exitCode = code; }) + .catch(error => { console.error(error.message); process.exitCode = 1; }); diff --git a/quality/bugbot/evidence/issue-950/qualification-bootstrap.test.cjs b/quality/bugbot/evidence/issue-950/qualification-bootstrap.test.cjs new file mode 100644 index 000000000..150094630 --- /dev/null +++ b/quality/bugbot/evidence/issue-950/qualification-bootstrap.test.cjs @@ -0,0 +1,133 @@ +'use strict'; + +const assert = require('node:assert/strict'); +const fs = require('node:fs'); +const path = require('node:path'); +const os = require('node:os'); +const { createHash } = require('node:crypto'); +const { execFileSync, spawnSync } = require('node:child_process'); +const { test } = require('node:test'); +const proof = require('./execution-provenance.cjs'); +const hash = bytes => createHash('sha256').update(bytes).digest('hex'); +const prefix = 'quality/bugbot/evidence/issue-950/'; + +function fixture(t) { + const directory = fs.mkdtempSync(path.join(os.tmpdir(), 'qualified-bootstrap-control-')); + t.after(() => fs.rmSync(directory, { recursive: true, force: true })); + const root = path.join(directory, 'project'); + fs.mkdirSync(root); + const write = (file, bytes) => { + fs.mkdirSync(path.dirname(path.join(root, file)), { recursive: true }); + fs.writeFileSync(path.join(root, file), bytes); + }; + const env = { ...process.env, GIT_CONFIG_GLOBAL: os.devNull, GIT_CONFIG_NOSYSTEM: '1' }; + const git = (...args) => execFileSync(proof.trustedGitExecutable(), ['-C', root, ...args], { env, encoding: 'utf8' }).trim(); + git('init', '--quiet', '--template='); + write('.gitignore', 'node_modules/\n'); + write('src/app.ts', 'export const answer = 42;\n'); + write('package.json', '{}\n'); + write('tsconfig.json', '{}\n'); + write('pnpm-lock.yaml', 'lockfileVersion: 9\n'); + write('node_modules/typescript/package.json', JSON.stringify({ name: 'typescript', version: 'fixture', main: 'index.js' })); + write('node_modules/typescript/index.js', 'module.exports = {};\n'); + const marker = path.join(directory, 'tampered-code-executed'), output = path.join(directory, 'result.json'); + const drivers = ['run.cjs', '../execution-provenance.cjs', '../ev07-shadow/load.cjs', + '../ev07-shadow/implementation.cjs', '../ev07-shadow/configuration.cjs', '../qualification-bootstrap.cjs']; + for (const file of drivers) write(path.posix.normalize(prefix + 'normal-flow-shadow/' + file), 'module.exports = {};\n'); + write(prefix + 'execution-provenance.cjs', fs.readFileSync(path.join(__dirname, 'execution-provenance.cjs'))); + write(prefix + 'qualification-bootstrap.cjs', fs.readFileSync(path.join(__dirname, 'qualification-bootstrap.cjs'))); + write(prefix + 'normal-flow-shadow/run.cjs', 'const fs=require("node:fs");fs.writeFileSync(process.argv[4],JSON.stringify({cwd:process.cwd(),isolated:__dirname,mode:process.env.BUGBOT_VERIFICATION_MODE}));\n'); + git('add', '.'); + git('-c', 'user.name=Fixture', '-c', 'user.email=fixture@example.invalid', 'commit', '--quiet', '-m', 'Trusted fixture implementation'); + const implementation = git('rev-parse', 'HEAD'); + const plan = { implementation, publication: 'dry-run', runtime: proof.runtimeIdentity(root), + drivers: Object.fromEntries(drivers.map(file => [file, hash(fs.readFileSync(path.join(root, prefix, 'normal-flow-shadow', file)))])) }; + const planPath = prefix + 'normal-flow-shadow/fixture-plan.json'; + write(planPath, JSON.stringify(plan)); + git('add', planPath); + git('-c', 'user.name=Fixture', '-c', 'user.email=fixture@example.invalid', 'commit', '--quiet', '-m', 'Reviewed synthetic preregistration'); + const revision = git('rev-parse', 'HEAD'), planSha256 = hash(fs.readFileSync(path.join(root, planPath))); + const bootstrap = path.join(directory, 'reviewed-bootstrap.cjs'); + fs.writeFileSync(bootstrap, execFileSync(proof.trustedGitExecutable(), ['-C', root, 'show', revision + ':' + prefix + 'qualification-bootstrap.cjs'], { env })); + const bootstrapSha256 = hash(fs.readFileSync(bootstrap)); + const launch = (extra = {}) => spawnSync(process.execPath, [bootstrap, root, revision, planPath, + planSha256, bootstrapSha256, 'normal-flow', 'relative-lab', '1', output], + { cwd: directory, env: { ...env, ...extra }, encoding: 'utf8' }); + return { directory, root, marker, output, write, git, plan, planPath, revision, planSha256, launch, bootstrap }; +} + +test('the reviewed external bootstrap runs immutable drivers in a disposable private source tree', t => { + const f = fixture(t), run = f.launch(); + assert.equal(run.status, 0, run.stderr); + const result = JSON.parse(fs.readFileSync(f.output)); + assert.equal(result.cwd, fs.realpathSync(f.directory)); + assert.equal(result.mode, 'disabled'); + assert.notEqual(result.isolated, path.join(f.root, prefix, 'normal-flow-shadow')); + assert.equal(fs.existsSync(result.isolated), false, 'private source is removed after execution'); + assert.equal(fs.existsSync(f.marker), false); +}); + +for (const driver of ['execution-provenance.cjs', 'normal-flow-shadow/run.cjs']) { + test('a changed ' + driver + ' cannot execute before immutable admission', t => { + const f = fixture(t), file = prefix + driver; + f.write(file, 'require("node:fs").writeFileSync(' + JSON.stringify(f.marker) + ',"executed");\n' + fs.readFileSync(path.join(f.root, file))); + // Causal counter-control: directly loading that working-tree file runs it. + const old = spawnSync(process.execPath, ['-e', 'require(process.argv[1])', path.join(f.root, file)], { encoding: 'utf8' }); + assert.equal(fs.existsSync(f.marker), true, old.stderr); + fs.rmSync(f.marker); + const run = f.launch(); + assert.notEqual(run.status, 0); + assert.match(run.stderr, /working driver differs/u); + assert.equal(fs.existsSync(f.marker), false); + assert.equal(fs.existsSync(f.output), false); + }); +} + +test('an invented matching executable digest in a modified manifest cannot run even its version probe', t => { + const f = fixture(t), executable = path.join(f.directory, 'untrusted-cli'); + fs.writeFileSync(executable, '#!' + process.execPath + '\nrequire("node:fs").writeFileSync(' + + JSON.stringify(f.marker) + ',"executed");process.stdout.write("fixture-cli");\n', { mode: 0o700 }); + const runtime = { executable, codex: 'fixture-cli', codexSha256: hash(fs.readFileSync(executable)) }; + require('./ev07-shadow/implementation.cjs').requirePinnedCliProbe(runtime); + assert.equal(fs.existsSync(f.marker), true, 'the former self-declared runtime admits the executable'); + fs.rmSync(f.marker); + f.write(f.planPath, JSON.stringify({ ...f.plan, runtime })); + const run = f.launch(); + assert.notEqual(run.status, 0); + assert.match(run.stderr, /working plan differs/u); + assert.equal(fs.existsSync(f.marker), false); + assert.equal(fs.existsSync(f.output), false); +}); + +for (const mode of ['uncommitted', 'symlink', 'foreign-digest', 'foreign-commit']) { + test('committed manifest authentication refuses ' + mode + ' input before using runtime data', t => { + const f = fixture(t), file = path.join(f.root, f.planPath); + let digest = f.planSha256, revision = f.revision; + if (mode === 'uncommitted') fs.appendFileSync(file, '\n'); + if (mode === 'symlink') { fs.renameSync(file, file + '.original'); fs.symlinkSync(file + '.original', file); } + if (mode === 'foreign-digest') digest = 'f'.repeat(64); + if (mode === 'foreign-commit') revision = f.plan.implementation; + assert.throws(() => proof.attestCommittedArtifact(f.root, file, digest, revision)); + assert.equal(fs.existsSync(f.marker), false); + }); +} + +test('immutable bootstrap ignores Git redirection and PATH Git shims', t => { + const f = fixture(t), bin = path.join(f.directory, 'bin'); + fs.mkdirSync(bin); + fs.writeFileSync(path.join(bin, 'git'), '#!/bin/sh\ntouch "' + f.marker + '"\nexit 91\n', { mode: 0o700 }); + const run = f.launch({ PATH: bin + path.delimiter + process.env.PATH, GIT_DIR: '/unavailable', GIT_WORK_TREE: '/unavailable', + GIT_CONFIG_COUNT: '1', GIT_CONFIG_KEY_0: 'core.worktree', GIT_CONFIG_VALUE_0: '/unavailable' }); + assert.equal(run.status, 0, run.stderr); + assert.equal(fs.existsSync(f.marker), false); +}); + +test('changed installed dependencies are refused before the immutable entrypoint runs', t => { + const f = fixture(t); + f.write('node_modules/typescript/index.js', 'require("node:fs").writeFileSync(' + JSON.stringify(f.marker) + ',"executed");\n'); + const run = f.launch(); + assert.notEqual(run.status, 0); + assert.match(run.stderr, /runtime differs: dependencyTreeSha256/u); + assert.equal(fs.existsSync(f.marker), false); + assert.equal(fs.existsSync(f.output), false); +}); diff --git a/quality/bugbot/evidence/issue-970/README.md b/quality/bugbot/evidence/issue-970/README.md index ad1da4bc4..15b0d2965 100644 --- a/quality/bugbot/evidence/issue-970/README.md +++ b/quality/bugbot/evidence/issue-970/README.md @@ -60,3 +60,51 @@ The loader fence uses the official synchronous module hook contract from the It rejects non-physical module URLs and real paths outside admitted source, dependencies and qualification drivers; the workspace portal is never treated as verified executable dependency bytes. + + +## Independently reviewed bootstrap and manifest + +The supported qualification route starts outside the source checkout. An operator +must select an independently reviewed bootstrap commit and SHA-256, materialize +its Git blob with trusted operating-system Git, verify that SHA-256 **before** +starting trusted Node, and clear NODE_OPTIONS/NODE_PATH. Running a working-tree +entrypoint or verifier directly is not qualification admission. Neither a +self-declared manifest nor a receipt generated by that checkout establishes +this trust anchor; a compromised host or substituted approved digest is outside +this local proof. + +The bootstrap takes repository, reviewed plan commit, repository-relative plan +path, externally reviewed plan SHA-256, externally reviewed bootstrap SHA-256, +mode (`corpus`, `full-review`, `normal-flow`), then that mode's arguments. It +checks the immutable committed plan and the complete fixed driver inventory +against their reviewed bytes before importing any driver or helper. It rejects +changed physical drivers and symlinks, uses a sterile local Git clone to +materialize the committed revision, and loads the verifier only from there. +It verifies original source/runtime, copies physical dependencies to the private +source tree, verifies the copy again, and executes that immutable entrypoint. +The disposable directory is not part of the stable recorded identity. Explicit +signals are forwarded; no investigation time/turn/read/token ceiling is added. + +Normal-flow authenticates its exact committed manifest and externally selected +digest before using runtime fields, including the version probe. The bootstrap +records its own reviewed digest and the reviewed plan revision/path/digest; +corpus and full-review provenance compare those same values. It forces the child +production mode to disabled and preserves dry-run publication. An auxiliary +Python used by old diagnostic workflow-input plans now needs explicit executable +and digest pins; it cannot be selected from an unchecked environment override. + +Ten new deterministic controls use real Git objects, a materialized external +bootstrap, physical source/dependency installations and zero model/GitHub calls. +Two causal controls first demonstrate the old direct working-tree execution of +a tampered verifier/entrypoint, then show that the bootstrap rejects each before +its marker executes. A crafted self-declared CLI digest similarly executes under +the former unauthenticated probe but is refused as an unreviewed manifest by the +bootstrap. Additional cases cover isolated success and cleanup, uncommitted / +symlink / foreign digest / foreign commit manifests, Git environment/PATH shims, +and dependency tampering. The first run passed 9/10: the positive assertion used +macOS's logical /var path instead of its physical /private/var equivalent. Both +outputs remain byte-exact gzip; the corrected physical-path assertion passes 10/10. +The existing actual normal-flow relative-lab control now commits its synthetic +manifest and launches the immutable bootstrap rather than an untracked manifest. + +An integration attempt made before committing the new package/driver snapshot is retained as `bootstrap-integration-before-commit.log.gz`: the source guard rejects the edited package manifest and the real launch fixture cannot extract the not-yet-committed bootstrap. These are not passing results. Re-run the full controls after committing the exact implementation; no old plan or guard is changed to bypass those failures. diff --git a/quality/bugbot/evidence/issue-970/bootstrap-integration-before-commit.log.gz b/quality/bugbot/evidence/issue-970/bootstrap-integration-before-commit.log.gz new file mode 100644 index 0000000000000000000000000000000000000000..7f039feb44982a5f759c46ec07a06506aa0bc8bd GIT binary patch literal 3081 zcmXBB2{;oB0{~!=yNIydx#^QDM>$#;(kIH0JJ%f9Y?@J+RK5{L2#cs(bIuv&K8D;e zax4?&7`cx%!vFkwU&%NQrvGC;S<6}t_|`4h(|V}1m?_ZKzmR1t&G}vT@fFQaEaoO$ zXP>vp`Goid-Z-b~*lW_d#}^;561R)mmOYZBqSAld%~a`DlT}Ga4ml4ovQF;t)6<`! zz2a<40dm|^@=E=(PL;QXp1M@o+H(roDO>jGm*!~c?ZO7XxKOrq767Ud#1T!4^s332 z-*erVIlpW;VwgzQ?Ug3>f}hLt9tLZ@JS41A{anm@(>(ffDg+if+4P-uU^5LpM;aER zJ)uLyZX!(Yk7a*FF-gAs%M&NraZf7RiYz|7i`CQ4LE*|izfe{|pkyW98+Cp;qNNmFGm9!=qKq<%-Wpo8HoBH}nBg93 zJpHR9*m+6mG0R(&FAqs?M%Y#v_teyT+dJ2VT+-B<3r>l2*($|8i$hwy z{0Es%Rt*DGSrq@|57Mvky`EO2_iZ}sJpnpMN{v~$;+*G^2C!C{v#blci_e)`M?f~U z93XTeQrQW4-UlDKGLtWr2D=*D{&s^Q5`u0m?`}kV9nW!)Qn^@})y0}t_JM|imx3oyQtk`ID0JEM^Ia5agTOCeQR+-*xEi=zTo`cpNzNu1??z>Dz zoEzNHes2o; zvr?H_X?3$(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Z1l|gHIEAzR6|bQ+Rfq8wNhnCItsREk{y~oJtrQnm!)hjDg3vd~)MUz+Lhs zdK)R{kSVr&%4+TP_Svy&)a-h7Wc>wPj3 literal 0 HcmV?d00001 diff --git a/quality/bugbot/evidence/issue-970/bootstrap-tests-1.log.gz b/quality/bugbot/evidence/issue-970/bootstrap-tests-1.log.gz new file mode 100644 index 0000000000000000000000000000000000000000..9df8d50bd4caa44bf8e957d745350ee7c815784b GIT binary patch literal 941 zcmV;e15*4SiwFP!00002|Gibsj@vd6zWXWWwhmfJ*1shb1>C}Db4VKOE_x{ngQh5( zS&39h%3g1gTOXmwDKC=O$&+MA$vR$lU@fK5Mv)FwFEsGB?G0Hs3@XKUOyP|H0u|St)b75+dtw-9*(=JxD8^tKW_j)> zd7RJYt$sH7@a}g^qFW+14vW#=a4Eb_$sH3!Q0CLu8YmG$nla8`&1$LG1qD*ITx(2( z={za?FiN8$`g46DRZAMLZsgw6TT;n=fW3S!LO7enev+h@EePx$2^$1yiJ@CAHe;

?q2CJw=Lm}2ETakpQ8Y0F=NGjWw8*^EQ^f)qJJy6Z5V|9^YwDPcDR;c< zPESTway(YOa{8{YwJ=0nANxZ~Pq4AKuA-IH!IzVXaf31NOHUeZ4#B$LtfdL?yJUN1 z0j^`uyds?i?u~jJo_A8(w-xMimuXRk4PvH>i#X3A1pDkT;Cw7kAvEpBd>*SF7q zc=>Y)%li&Tk3@E)=}}`Nabkc(I5o`ym~E@XI$r>x2G8Ij0R}Z%<#AAg4?5JtUBw3Hb-yB#(VK&%$tWRMDP&d zX)5EN{o#CXaZ2A}9LM2*MT8WGR`&X9n4WqwZ5L44@kSbNBk==X(vw`&{VZPzes P;y06z0PIdpF9`quBRkL$ literal 0 HcmV?d00001 diff --git a/quality/bugbot/evidence/issue-970/bootstrap-tests-2.log.gz b/quality/bugbot/evidence/issue-970/bootstrap-tests-2.log.gz new file mode 100644 index 0000000000000000000000000000000000000000..08394a01c0f22a0c14b2d862e14b363c080ea668 GIT binary patch literal 515 zcmV+e0{s0SiwFP!00002|CLlbmfJ84?DrHXH-#B}EKw>`C1r~Ac{B;x$cm&MN!i&x zM@X5Af(tf(Gzs!r)X72k%o%K@AW_7lEuD zlRESWCeRrJXB;Rn6bB#Y{J?pY5TYN0Mo0k>9`m}$MAcSBTiE#F;f3iG=#z5CnG5xp z$h+MT{285c8ioE5K`ZBcTJ{kR*!h63Bq(DkM!pD-vTa3G<@>7rAK&?4Rln#QkP2FJy--ozYMC4C}yT%fKF(Gg?18f3kpj^=}ox+%R-vl2iC z0ZI`jLnku!;V`*Y)U_z9l~8+YDW%saYUF2giL{ywC?Tvb+xvdQJvZ1;0r zZ@i_zzk1b5QMUCyuUGj? zCzFdw^*yf)4(JRzO^m7nF8a+)>NL!o5Uw*k51w4QPVr+dn@mWV-@5tNUr209ggl#r zI1 B[External trusted Node bootstrap] + B --> C[Authenticate committed plan and all driver blobs] + C --> D[Materialize private immutable source] + D --> E[Verified helper checks source and installed runtime] + E --> F[Run admitted corpus or paired review] +``` + +Minimum **10 additional deterministic controls**: one isolated successful launch +and cleanup; two changed-driver causal counter-controls; one unauthenticated CLI +manifest counter-control; four committed-manifest integrity failures; one combined +Git-redirection/PATH-shim case; and one installed-dependency rejection. Retain the +existing actual relative-lab normal-flow control with a committed fixture manifest +and immutable launch. Use real Git and blocked model/write ports. All 174 corpus +cases and the 42 paired slots remain unstarted until merged prerequisites and a +new committed preregistration meet their existing independent acceptance gates. +Update operator testing documentation and catalogue evidence together, validate +specifications/docs and refresh the graph. Local controls do not qualify a profile. diff --git a/specs/catalog.json b/specs/catalog.json index 328a4386d..ceb1fe974 100644 --- a/specs/catalog.json +++ b/specs/catalog.json @@ -727,7 +727,11 @@ "src/application/policies/bugbot_status_card_publication_policy.ts", "src/infrastructure/github/github_bugbot_status_card_workflow.ts", "src/infrastructure/github/github_bugbot_status_card_dispatch.ts", - "src/infrastructure/github/native_list_pagination.ts" + "src/infrastructure/github/native_list_pagination.ts", + "quality/bugbot/evidence/issue-950/execution-provenance.cjs", + "quality/bugbot/evidence/issue-950/qualification-bootstrap.cjs", + "quality/bugbot/evidence/issue-950/ev07-shadow/implementation.cjs", + "quality/bugbot/evidence/issue-950/normal-flow-shadow/run.cjs" ], "tests": [ "src/domain/bugbot/__tests__/review_state.test.ts", @@ -773,7 +777,9 @@ "src/infrastructure/github/__tests__/github_bugbot_status_card_lane.test.ts", "src/infrastructure/github/__tests__/github_bugbot_status_card_dispatch.test.ts", "src/infrastructure/github/__tests__/github_bugbot_status_card_observation.test.ts", - "src/infrastructure/github/__tests__/github_bugbot_status_card_handoff.test.ts" + "src/infrastructure/github/__tests__/github_bugbot_status_card_handoff.test.ts", + "quality/bugbot/evidence/issue-950/qualification-bootstrap.test.cjs", + "quality/bugbot/evidence/issue-950/normal-flow-shadow/paths.test.cjs" ], "documentation": [ "docs/bugbot/detection.mdx", @@ -784,7 +790,8 @@ "docs/bugbot/how-it-works.mdx", "docs/bugbot/programmatic-api.mdx", "docs/pull-requests/workflow-setup.mdx", - "docs/issues/comment-commands.mdx" + "docs/issues/comment-commands.mdx", + "docs/development/testing.mdx" ] }, { From 37560c771c76aeffb1814181e9f2aae8cd59f647 Mon Sep 17 00:00:00 2001 From: Efra Espada Date: Thu, 19 Nov 2026 21:45:22 +0100 Subject: [PATCH 5/9] bugfix-970-bind-bugbot-qualification-execution-to-the-pinned-source-and-sanitized-git-environment: verify materialized driver blobs and physical manifest paths (#970) --- .../issue-950/execution-provenance.cjs | 6 +++++- .../normal-flow-shadow/paths.test.cjs | 9 +++++++- .../issue-950/qualification-bootstrap.cjs | 9 +++++++- .../qualification-bootstrap.test.cjs | 17 ++++++++++++++- quality/bugbot/evidence/issue-970/README.md | 20 ++++++++++++++++++ .../bootstrap-committed-shadow.log.gz | Bin 0 -> 6296 bytes .../issue-970/bootstrap-final-focused.log.gz | Bin 0 -> 1484 bytes .../issue-970/bootstrap-final-shadow.log.gz | Bin 0 -> 5789 bytes specs/bugbot-review-state-reconciliation.md | 7 ++++-- 9 files changed, 62 insertions(+), 6 deletions(-) create mode 100644 quality/bugbot/evidence/issue-970/bootstrap-committed-shadow.log.gz create mode 100644 quality/bugbot/evidence/issue-970/bootstrap-final-focused.log.gz create mode 100644 quality/bugbot/evidence/issue-970/bootstrap-final-shadow.log.gz diff --git a/quality/bugbot/evidence/issue-950/execution-provenance.cjs b/quality/bugbot/evidence/issue-950/execution-provenance.cjs index 2a27eefce..9f7864fb5 100644 --- a/quality/bugbot/evidence/issue-950/execution-provenance.cjs +++ b/quality/bugbot/evidence/issue-950/execution-provenance.cjs @@ -214,8 +214,12 @@ function attestDrivers(directory, expected, files) { function attestCommittedArtifact(root, file, expectedSha256, commit) { assert.match(expectedSha256 ?? '', /^[a-f0-9]{64}$/u, 'reviewed committed artifact digest required'); assert.match(commit ?? '', /^[a-f0-9]{40}$/u, 'reviewed artifact commit required'); + const requestedRoot = path.resolve(root); root = fs.realpathSync(root); - const relative = path.relative(root, path.resolve(file)).split(path.sep).join('/'); + const requestedFile = path.resolve(file); + const canonicalFile = requestedFile.startsWith(requestedRoot + path.sep) + ? root + requestedFile.slice(requestedRoot.length) : requestedFile; + const relative = path.relative(root, canonicalFile).split(path.sep).join('/'); assert(relative && !path.isAbsolute(relative) && !relative.split('/').some(part => ['', '..', '.git'].includes(part)), 'committed artifact must be inside the reviewed repository'); let current = root; diff --git a/quality/bugbot/evidence/issue-950/normal-flow-shadow/paths.test.cjs b/quality/bugbot/evidence/issue-950/normal-flow-shadow/paths.test.cjs index d2d5aa643..71b5070dd 100644 --- a/quality/bugbot/evidence/issue-950/normal-flow-shadow/paths.test.cjs +++ b/quality/bugbot/evidence/issue-950/normal-flow-shadow/paths.test.cjs @@ -269,11 +269,18 @@ test('the actual runner resolves a relative lab before entering its private chec manifest.drivers = Object.fromEntries(require('./run.cjs').normalFlowDrivers.map(file => [file, hash(path.join(__dirname, file))])); const checkout = path.join(directory, 'implementation'); execFileSync('git', ['clone', '--quiet', '--shared', '--template=', root, checkout]); + // Commit the current driver snapshot inside this disposable fixture, so + // this control also works before the contributor implementation commit. + const driverPaths = require('./run.cjs').normalFlowDrivers.map(file => { + const relative = path.relative(root, path.join(__dirname, file)); + writeFileSync(path.join(checkout, relative), readFileSync(path.join(root, relative))); + return relative; + }); cpSync(path.join(root, 'node_modules'), path.join(checkout, 'node_modules'), { recursive: true, verbatimSymlinks: true, mode: constants.COPYFILE_FICLONE }); const relative = 'quality/bugbot/evidence/issue-950/normal-flow-shadow/relative-lab.fixture.json'; writeFileSync(path.join(checkout, relative), JSON.stringify(manifest)); - execFileSync('git', ['-C', checkout, 'add', relative]); + execFileSync('git', ['-C', checkout, 'add', relative, ...driverPaths]); execFileSync('git', ['-C', checkout, '-c', 'user.name=Fixture', '-c', 'user.email=fixture@example.invalid', '-c', 'core.hooksPath=/dev/null', 'commit', '--quiet', '-m', 'Commit synthetic fixture manifest']); const revision = execFileSync('git', ['-C', checkout, 'rev-parse', 'HEAD'], { encoding: 'utf8' }).trim(); diff --git a/quality/bugbot/evidence/issue-950/qualification-bootstrap.cjs b/quality/bugbot/evidence/issue-950/qualification-bootstrap.cjs index 62e4ef44c..2cf7212b4 100644 --- a/quality/bugbot/evidence/issue-950/qualification-bootstrap.cjs +++ b/quality/bugbot/evidence/issue-950/qualification-bootstrap.cjs @@ -92,12 +92,14 @@ async function launch(repository, revision, planPath, planSha256, bootstrapSha25 const base = prefix + (mode === 'normal-flow' ? 'normal-flow-shadow/' : 'ev07-shadow/'); const inventory = mode === 'normal-flow' ? normal : ev07; const expected = mode === 'normal-flow' ? plan.drivers : plan.inspectedArtifacts; + const admitted = []; for (const driver of inventory) { const relative = path.posix.normalize(base + driver), trusted = committed(git, revision, relative); assert.equal(sha256(trusted), expected?.[driver], 'committed driver differs from reviewed plan: ' + driver); assert(fs.readFileSync(physical(root, relative)).equals(trusted), 'working driver differs: ' + driver); + admitted.push([relative, trusted]); } - const scratch = fs.mkdtempSync(path.join(os.tmpdir(), 'bugbot-qualified-source-')); + const scratch = fs.realpathSync(fs.mkdtempSync(path.join(os.tmpdir(), 'bugbot-qualified-source-'))); fs.chmodSync(scratch, 0o700); const isolated = path.join(scratch, 'source'); try { @@ -107,6 +109,11 @@ async function launch(repository, revision, planPath, planSha256, bootstrapSha25 const isolatedGit = gitFor(isolated).git; isolatedGit('checkout', '--quiet', '--detach', revision); isolatedGit('remote', 'remove', 'origin'); + // Git attributes can transform checkout bytes even without external + // filters. Recheck the materialized closure before requiring its helper. + for (const [relative, trusted] of admitted) assert( + fs.readFileSync(physical(isolated, relative)).equals(trusted), 'materialized driver differs: ' + relative); + assert(fs.readFileSync(physical(isolated, planPath)).equals(bytes), 'materialized plan differs'); // The helper is now the immutable blob already checked above, not a // working-tree verifier asked to authenticate itself after execution. const verifier = require(path.join(isolated, prefix, 'execution-provenance.cjs')); diff --git a/quality/bugbot/evidence/issue-950/qualification-bootstrap.test.cjs b/quality/bugbot/evidence/issue-950/qualification-bootstrap.test.cjs index 150094630..04d4a4855 100644 --- a/quality/bugbot/evidence/issue-950/qualification-bootstrap.test.cjs +++ b/quality/bugbot/evidence/issue-950/qualification-bootstrap.test.cjs @@ -11,7 +11,7 @@ const proof = require('./execution-provenance.cjs'); const hash = bytes => createHash('sha256').update(bytes).digest('hex'); const prefix = 'quality/bugbot/evidence/issue-950/'; -function fixture(t) { +function fixture(t, crlfCheckout = false) { const directory = fs.mkdtempSync(path.join(os.tmpdir(), 'qualified-bootstrap-control-')); t.after(() => fs.rmSync(directory, { recursive: true, force: true })); const root = path.join(directory, 'project'); @@ -37,6 +37,7 @@ function fixture(t) { write(prefix + 'execution-provenance.cjs', fs.readFileSync(path.join(__dirname, 'execution-provenance.cjs'))); write(prefix + 'qualification-bootstrap.cjs', fs.readFileSync(path.join(__dirname, 'qualification-bootstrap.cjs'))); write(prefix + 'normal-flow-shadow/run.cjs', 'const fs=require("node:fs");fs.writeFileSync(process.argv[4],JSON.stringify({cwd:process.cwd(),isolated:__dirname,mode:process.env.BUGBOT_VERIFICATION_MODE}));\n'); + if (crlfCheckout) write('.gitattributes', '*.cjs text eol=crlf\n'); git('add', '.'); git('-c', 'user.name=Fixture', '-c', 'user.email=fixture@example.invalid', 'commit', '--quiet', '-m', 'Trusted fixture implementation'); const implementation = git('rev-parse', 'HEAD'); @@ -99,6 +100,20 @@ test('an invented matching executable digest in a modified manifest cannot run e assert.equal(fs.existsSync(f.output), false); }); +test('materialized checkout transformations are refused before loading the immutable helper', t => { + const f = fixture(t, true), run = f.launch(); + assert.notEqual(run.status, 0); + assert.match(run.stderr, /materialized driver differs/u); + assert.equal(fs.existsSync(f.output), false); +}); + +test('committed manifest authentication admits exact bytes through the supplied repository path', t => { + const f = fixture(t), result = proof.attestCommittedArtifact(f.root, path.join(f.root, f.planPath), f.planSha256, f.revision); + assert.deepEqual(JSON.parse(result.bytes), f.plan); + assert.equal(result.provenance.commit, f.revision); + assert.equal(result.provenance.sha256, f.planSha256); +}); + for (const mode of ['uncommitted', 'symlink', 'foreign-digest', 'foreign-commit']) { test('committed manifest authentication refuses ' + mode + ' input before using runtime data', t => { const f = fixture(t), file = path.join(f.root, f.planPath); diff --git a/quality/bugbot/evidence/issue-970/README.md b/quality/bugbot/evidence/issue-970/README.md index 15b0d2965..e944a8e9c 100644 --- a/quality/bugbot/evidence/issue-970/README.md +++ b/quality/bugbot/evidence/issue-970/README.md @@ -108,3 +108,23 @@ The existing actual normal-flow relative-lab control now commits its synthetic manifest and launches the immutable bootstrap rather than an untracked manifest. An integration attempt made before committing the new package/driver snapshot is retained as `bootstrap-integration-before-commit.log.gz`: the source guard rejects the edited package manifest and the real launch fixture cannot extract the not-yet-committed bootstrap. These are not passing results. Re-run the full controls after committing the exact implementation; no old plan or guard is changed to bypass those failures. + + +The first full committed integration passes 181/182 controls and preserves its +failed real normal-flow result in `bootstrap-committed-shadow.log.gz`. A logical +macOS /var manifest path was compared with the physical /private/var repository +path; the guard correctly refused it before a CLI probe. The bootstrap now uses +physical scratch paths and generic committed-artifact admission maps only the +supplied repository-root alias before checking every child for symlinks. A new +positive committed-manifest control covers that boundary. The real runner control +commits its current driver snapshot inside the disposable fixture, so it does +not depend on uncommitted contributor files being present in an older Git blob. + +A further deterministic case forces CRLF checkout transformation through Git +attributes. The bootstrap now compares every materialized private driver and plan +with immutable blobs **again before requiring the private helper**; transformed +checkout bytes are refused. The bootstrap suite is now 12 controls; together with +the complete source/path suite, all 40 focused controls pass, including the actual +normal-flow relative-lab journey with zero candidates/model calls/verifiers/writes. + +Final complete shadow suite: **184/184 passed**, zero skipped/cancelled/model calls/evaluated-PR writes. The exact complete output is `bootstrap-final-shadow.log.gz`. Specifications/documentation and the final graph refresh also pass. The required final build/Jest/lint hook and native final-head review remain distinct delivery checks. diff --git a/quality/bugbot/evidence/issue-970/bootstrap-committed-shadow.log.gz b/quality/bugbot/evidence/issue-970/bootstrap-committed-shadow.log.gz new file mode 100644 index 0000000000000000000000000000000000000000..4ba6aeaf56a80f4307acd987773a63b8ba119a99 GIT binary patch literal 6296 zcmV;J7-#1niwFP!00002|IJ)mbK6LEe)q3H_GL6xCWQNiiMQ5e%QLF=cqW!-cay0p z6$my-j6eX3izH4eRe8uu-cxzXAIaa@Uy|>f?gpBqe3QA^xNJ)#fpfY~pUZbH;FI54 zzq{QvOL2Ri*G*B@{qKC+b!^wSdeQas#jsw~{jA$$%ldA1E81dJ@2QEDfD=zCzQU zE$X`O`ZjB9y4}uy={|wP1B*O2UwjU&s&2Q~$*KfFNf%qJR>k@Yi8NWi={|>sxOHNE zbD0fQzL~9tvYfTJR@^<7lDvD?4pm=l#bc>-dEJUHTuD=ApLH-@pY=mG%d>VlYlcOs z51N1PHliJgJ$dq%|Nc*FQP%lQXJytFG>U3%Va?6ZS!-ynmG#!L=x`?a#yWHT#P*`l zjpA+h^})Saxx!hB<@@hWd^>dA@aWc}%Ij@Y3S9qw&Pil@PU0l~(d~U*TPtyA0h^1g0&7OUI`=)iS_p68|GmRj+P$otOfH^LgKMLkqYYg2R} z2F)oIy}P2{)I%>918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.log.gz b/quality/bugbot/evidence/issue-970/bootstrap-final-focused.log.gz new file mode 100644 index 0000000000000000000000000000000000000000..379cfe73da070643a8b6f69f9934bf32b4077568 GIT binary patch literal 1484 zcmV;-1vB~|iwFP!00002|IJv-ZrnB$-RCQ~iwk&Uy{JcbMP4-;IECw?-5DH-Gs9RS z6_WB~y6z`**&pfec43gjQP3imMqUj$$v3 z!jRq{Lu{qeON0yvssE5PZg(@L)Qf{Sr`i263RO3N(94Eq!2TFPtt@s-F8Ug0 zz86NZpG6NinL}L(c{M@Ap@*Nv(HJI$6~7_Myt(8X&a43ln86F{p4pvN?RH1roL*eM zJUw@1WnK_wY5pjvU*4VnaCve5>Q&F&JPpFf0iK?{eD&+)>(jRmF$ldhNrNPP4C0G- zXRlA+;MdP*7cR@hqj?@h(SOAR$5^$(9p|gP(pTr)JyVg(a_sEE4fQ$=%B-c zvhKJRt|32uckw-WgASOTsL4@+L(geEw{ZFj?IIhcx4e^URh44_t-aaG@h;!KvQq7l zZW2&0as8NN!og{dbks{ILi*gWcXPyi~5}bHNO^o|0Dquv^9xB ze`;&V8!k&Oi^GBmJ=+E{Ir$&?I|MIF;ewcBTuN4gG<~A|DsBqabeFG}TBrE9%5*Mr z$^SY0M7+JQyF1t;#_G$l-o8dqyjv~#epro3N1e_kH~ZQXr)z|1n7iKCjRyc8Erd&H z!PHSrMy1mHLksyrL7^8!DUHLY#UBd7_3|QQKMViD`he>a9oO8b>bhfs<`vHTnv;sH z$JQVk?-Wpg0}VumAxyF3#g%I9ao1w}F;D}yufi#Xc|tKzsjJKd-ZL!$@h!6N5^#m} zGT9sm+WhzfKq zbHkmyIL8)(`VVJzV@e2F^vpq@Dc}B2lSbvTKw*_qy=rM(b1EW#y#WY+P#u@)#X8Qvo#7XL9 z{^C`svocPB5u#?c*tw%zn50r{xv_nJrqNWx#%|o>Au?LC|3w}+a$?Jhlc#&dN$UNz1qCUNdXK`>P|Th=LE z)?zEX<6s0jw`EW*=EvX$$8qCAnAVvF?uI*PA-dP-hG767MUfA$uyna!4mQ8N&TEBi zQ29_@+ZpZA+m_5S1oClQct@V6>HPzZuXA4x5=5RKro(7^SdhVLttOg$DOO0mC`lJS z^5L=i9rvt@#&cOSXJ$R<{}Et1DOtXOIlFel*~10oFdspZExglsIfXQ^Gu6_y34SMs zZ*mt^>O-T1w7oDLrD^2R$RC;Y`(FgC1V>}P`(Rq(SlWMR@bW)?v0Y|PNn~95&!_#A=B>w literal 0 HcmV?d00001 diff --git a/quality/bugbot/evidence/issue-970/bootstrap-final-shadow.log.gz b/quality/bugbot/evidence/issue-970/bootstrap-final-shadow.log.gz new file mode 100644 index 0000000000000000000000000000000000000000..ae9de17fa18f6753f4a88167ea47b3ace1f9acbd GIT binary patch literal 5789 zcmV;O7GmiiiwFP!00002|IJ+6j@(9)efL)o^Wqwyi{kwvz=JV#v4!=@UP+!AU|RC+y??$o|fL$)1SJB(u6&lDk#L`oUIr7c(L=GA<`Btgrs${Q2hC zmGb6E(RNkcj(-ka-*f%Y8RalO-AubpJFbVlDBIihjqIy!Rfw@_8|O*aS2tpmPsT%M z7O!`$sMmSwef1}&X-ny>*F?to=OpTCJU&t6p2(Z3luaR@RKqaIbsl?9_z6RMy=mKV z7<Z||#@BeZ(bz58yj&Kg3Q8haUd+w&e*+Fw1F*;>6;7*FYv&u8qOOiA`41c_{ zQq)`Aq%1$aHi_IkNmDO7TU<3od+2J36(3#g2c8?pNs#+z%g45Lw(`~~#2|-HQ1Bx+ zPV%$mTT#`Y+PCi~Zk&hVJ*O7qC=cC;)wg{$eu{bQyGfRuQz-VL+0pv8zs9r0CnS&r zZsx^a6r2-j8~A~;D#o@yI;?S@5@hHmVI0M?BzpM|S&V}-?xiy|n|5kSXI~8<2F0m0 zz1wQsx6`OLOgd6wMKAGLiS74tnCcP4z1+>y&<~cAR!uqJhD+H={I40!&gLDBEz=Uk z2*q}A6+78G0()S_Pn{d6drAAwveb=&I19te5hv4fRGr`*yMQi{7kK+f|yT ziJRwH7Dkt&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XgXgHG?u(>w`)boT*9ol z+Qd#S7f}PzI7&{!{;y`C?)K9R64<4m+tZ#(mCv4JWj13C1MF~Cp4ly};v{$dBs{Z= zPZK*xO8Khca83_iirSJ7qo+3~KNPaZ{pn$F_C*Evn3Qx@NbTG-NUV4Y2xRKqon$3Y zJK9lJYkT>*Z!mPQUbyF3(Um0uT)SSHTBOOn@|zHg!3|2~8XCu_;o)hR1P{^4sZi3g z7iVO(p@0RDCJ?#IbyDz-GdB$EyCcDkR8lf(K93al?WCth3?yEn9_aS%tx7NTn+xRG z)e?I1(2esry$27PzL4!*8r!7^-Q6?RW&qhLga^(2#A@+lO{IiC9y^+bR^3`Y|J(og zp`tTLT+m>WI9va9mBQ>}1;Kc}e?naYbX`naBa73N?f0Mzq6av11?tAYH6FE_NW=@)j$I3 zc~eo*{k5H-jNNYZsE8BN+sBzbB{M_xWoSo5K&`l9Gmz8eW1~5p;Q3|F>J;PX8&?j5nr)@3s?{XD%%wMamQI?@O#AFcqZLI!mDp&4 zmWv|1jr*g3M^)zKwcLd=gu&g=dA6ZkASl2Tzi>us$Q#8rXC>4?kPMQPEk{Nh*oAm| z^Pk3{mj5!9=o5rN_>Ygi%+-)T#i0^64o}?g%+nfatB=bL#7BYY{@BsYkzuW97|TDY zZliLkzf^~&7H0;M`Df;~R z)X~AXUcnHAOPz1O|8^b3i4KKhWjv5mz^WGu7zGEwHm)hV~r-ZR;0xt=GLnmE8SC~vg{38q@oxE zsRb!Du;mGSy458$DOKvg@?{@$#SLBV9rF0F7{>&Si)wCs=ciDC}3{9Q5FXQNXFg1lzTTVJRam;S;Y zraiaVw0PRORI`doeJp{Tz#MZSn&QE97uYN}@anhPv|-uSppyNKK5akeB8@8Q&yr%P zYtqUEaDlN?Q}naj@V(gb=9-8lU@8#k7lXONX zCJg?H9WHL>KmW&3uhsim#J>#_my F[Run admitted corpus or paired review] ``` -Minimum **10 additional deterministic controls**: one isolated successful launch +Minimum **12 additional deterministic controls**: one isolated successful launch and cleanup; two changed-driver causal counter-controls; one unauthenticated CLI manifest counter-control; four committed-manifest integrity failures; one combined -Git-redirection/PATH-shim case; and one installed-dependency rejection. Retain the +Git-redirection/PATH-shim case; and one installed-dependency rejection; plus one materialized-checkout transformation +rejection before helper loading and one positive committed-manifest path control. +Recheck private plan/driver bytes after materialization, before loading any helper. +Retain the existing actual relative-lab normal-flow control with a committed fixture manifest and immutable launch. Use real Git and blocked model/write ports. All 174 corpus cases and the 42 paired slots remain unstarted until merged prerequisites and a From 01097099d220bd481f6e50b58d2213165bcf6194 Mon Sep 17 00:00:00 2001 From: Efra Espada Date: Thu, 19 Nov 2026 23:11:50 +0100 Subject: [PATCH 6/9] bugfix-970-bind-bugbot-qualification-execution-to-the-pinned-source-and-sanitized-git-environment: pin application Git and admit CLI before planner probes (#970) --- docs/development/testing.mdx | 15 +++++ .../evidence/issue-950/ev07-shadow/corpus.cjs | 4 +- .../issue-950/ev07-shadow/implementation.cjs | 22 +++++++- .../ev07-shadow/review-runtime.test.cjs | 45 +++++++++++++-- .../evidence/issue-950/ev07-shadow/review.cjs | 10 +++- .../issue-950/normal-flow-shadow/run.cjs | 4 +- .../issue-950/qualification-bootstrap.cjs | 7 +++ .../qualification-bootstrap.test.cjs | 28 +++++++++- quality/bugbot/evidence/issue-970/README.md | 52 ++++++++++++++++++ .../issue-970/application-git-controls.log.gz | Bin 0 -> 784 bytes .../application-git-shadow-185.log.gz | Bin 0 -> 5802 bytes .../planner-final-hook-focused.log.gz | Bin 0 -> 150 bytes .../planner-final-hook-sigsegv.log.gz | Bin 0 -> 49804 bytes .../issue-970/planner-final-shadow-187.log.gz | Bin 0 -> 5854 bytes .../issue-970/planner-probe-controls-1.log.gz | Bin 0 -> 906 bytes .../planner-probe-controls-pass.log.gz | Bin 0 -> 466 bytes specs/CATALOG.md | 4 +- specs/bugbot-review-state-reconciliation.md | 22 ++++++++ specs/catalog.json | 3 +- 19 files changed, 197 insertions(+), 19 deletions(-) create mode 100644 quality/bugbot/evidence/issue-970/application-git-controls.log.gz create mode 100644 quality/bugbot/evidence/issue-970/application-git-shadow-185.log.gz create mode 100644 quality/bugbot/evidence/issue-970/planner-final-hook-focused.log.gz create mode 100644 quality/bugbot/evidence/issue-970/planner-final-hook-sigsegv.log.gz create mode 100644 quality/bugbot/evidence/issue-970/planner-final-shadow-187.log.gz create mode 100644 quality/bugbot/evidence/issue-970/planner-probe-controls-1.log.gz create mode 100644 quality/bugbot/evidence/issue-970/planner-probe-controls-pass.log.gz diff --git a/docs/development/testing.mdx b/docs/development/testing.mdx index b7f371a55..1ceb7e3a0 100644 --- a/docs/development/testing.mdx +++ b/docs/development/testing.mdx @@ -381,3 +381,18 @@ and plan identities without private temporary paths. Normal-flow authenticates the manifest before selecting even a `--version` executable. Production stays disabled and publication stays dry-run. Existing frozen campaigns replay with their frozen historical drivers; this route needs a new reviewed preregistration. + + +The bootstrap also binds later application evidence reads to that admitted Git. +Its child PATH starts with a private directory containing only a link to the +verified OS Git executable; the remaining PATH and normal Node/Codex selection +are preserved. This routing is part of the reviewed bootstrap identity, rather +than a new user-configurable executable override. The actual application adapter +is included in a causal shim/no-shim deterministic control. + + +Qualification also checks the ordinarily selected CLI before calling the normal +planner: that planner probes --version during preparation. Admission uses its +production resolution/validation helpers, then delegates to the unchanged planner +and checks the final prepared runtime/profile as before. A matching version +reported by an unregistered executable cannot execute even during preparation. diff --git a/quality/bugbot/evidence/issue-950/ev07-shadow/corpus.cjs b/quality/bugbot/evidence/issue-950/ev07-shadow/corpus.cjs index 0487312eb..78e31c419 100644 --- a/quality/bugbot/evidence/issue-950/ev07-shadow/corpus.cjs +++ b/quality/bugbot/evidence/issue-950/ev07-shadow/corpus.cjs @@ -7,7 +7,7 @@ const fs = require('node:fs'); const path = require('node:path'); const { trustedGitExecutable, gitEnvironment, admitQualificationModules } = require('../execution-provenance.cjs'); const { tmpdir } = require('node:os'); -const { qualificationProvenance, requirePinnedCliProbe, requirePinnedExecution, selectedPlanProvenance } = require('./implementation.cjs'); +const { qualificationProvenance, requirePinnedCliProbe, requirePinnedExecution, preparePinnedExecution, selectedPlanProvenance } = require('./implementation.cjs'); const plan = require('./configuration.cjs'); const root = path.resolve(__dirname, '../../../../..'); @@ -54,7 +54,7 @@ async function run(destination, preflight = false) { process.once('SIGTERM', abort); const results = new Map(); function prepare(request, calls, runtimeProofs) { - const invocation = planner.prepare(request); + const invocation = preparePinnedExecution(planner, request, plan.runtime); try { const proof = requirePinnedExecution(invocation); const flags = codexInvocation(invocation.argv); diff --git a/quality/bugbot/evidence/issue-950/ev07-shadow/implementation.cjs b/quality/bugbot/evidence/issue-950/ev07-shadow/implementation.cjs index 0742d0acf..ffe39c8d1 100644 --- a/quality/bugbot/evidence/issue-950/ev07-shadow/implementation.cjs +++ b/quality/bugbot/evidence/issue-950/ev07-shadow/implementation.cjs @@ -69,6 +69,25 @@ function requirePinnedCliProbe(runtime = require('./configuration.cjs').runtime) return { version, proof }; } +function preparePinnedExecution(planner, request, runtime = require('./configuration.cjs').runtime) { + // The ordinary planner probes the selected CLI before returning its plan. + // Resolve through its production helpers and admit those bytes first; + // then retain the ordinary planner and its post-preparation proof unchanged. + const root = path.resolve(__dirname, '../../../../..'); + const { resolveAgentExecutablePath, validateResolvedAgentInvocation } = require(path.join(root, + 'src/infrastructure/agents/agent_executable_invocation')); + const { getAgentRuntimeManifestEntry } = require(path.join(root, 'src/infrastructure/agents/agent_runtime_manifest')); + const { provider } = request.configuration, environment = request.environment ?? process.env; + const selected = request.configuration.executable?.trim() || getAgentRuntimeManifestEntry(provider).executable; + const executable = resolveAgentExecutablePath(selected, environment); + const invocation = validateResolvedAgentInvocation(executable, provider, environment); + const launcherArgv = invocation.prefixArgs; + requirePinnedExecution({ executable: invocation.executable, launcherArgv, + ...(launcherArgv.length && { launcherSha256: createHash('sha256').update(readFileSync(launcherArgv[0])).digest('hex') }), + runtimeContract: { version: runtime?.codex } }, runtime); + return planner.prepare(request); +} + const qualificationDrivers = Object.freeze(['configuration.cjs', 'implementation.cjs', 'load.cjs', 'corpus.cjs', 'review.cjs', 'full-review.cjs', 'launch-full-review.cjs', 'score-review.py', '../execution-provenance.cjs', '../qualification-bootstrap.cjs']); @@ -138,7 +157,8 @@ function requireQualificationPolicy(selected) { function selectedPlanSha256() { return selectedPlanProvenance().sha256; } -module.exports = { requirePinnedImplementation, requirePinnedRuntime, requirePinnedExecution, requirePinnedCliProbe, requirePinnedDrivers, qualificationProvenance, qualificationDrivers, selectedPlanSha256, selectedPlanProvenance }; +module.exports = { requirePinnedImplementation, requirePinnedRuntime, requirePinnedExecution, requirePinnedCliProbe, + preparePinnedExecution, requirePinnedDrivers, qualificationProvenance, qualificationDrivers, selectedPlanSha256, selectedPlanProvenance }; if (require.main === module) { assert.equal(process.argv[2], '--plan-provenance'); diff --git a/quality/bugbot/evidence/issue-950/ev07-shadow/review-runtime.test.cjs b/quality/bugbot/evidence/issue-950/ev07-shadow/review-runtime.test.cjs index 4028afe8c..35a39d2cf 100644 --- a/quality/bugbot/evidence/issue-950/ev07-shadow/review-runtime.test.cjs +++ b/quality/bugbot/evidence/issue-950/ev07-shadow/review-runtime.test.cjs @@ -7,8 +7,8 @@ const { createHash } = require('node:crypto'); const { tmpdir } = require('node:os'); const path = require('node:path'); const { test } = require('node:test'); -const { prepareDetector } = require('./review.cjs'); -const { requirePinnedCliProbe } = require('./implementation.cjs'); +const { admitPreparedDetector } = require('./review.cjs'); +const { requirePinnedCliProbe, preparePinnedExecution } = require('./implementation.cjs'); const plan = { ...require('./configuration.cjs'), runtime: { codex: 'codex-cli 0.169.1' } }; for (const mode of ['pinned', 'foreign', 'missing', 'wrong-executable', 'missing-digest', 'launcher', 'wrong-launcher', 'missing-launcher']) { @@ -32,16 +32,15 @@ for (const mode of ['pinned', 'foreign', 'missing', 'wrong-executable', 'missing runtimeContract: mode === 'missing' ? undefined : { version: mode === 'foreign' ? 'codex-cli 0.0.0' : plan.runtime.codex, } }; - const request = { prompt: 'controlled request' }, observations = []; - const planner = { prepare(input) { assert.equal(input, request); return execution; } }; + const observations = []; const selected = { ...plan, runtime }; if (['pinned', 'launcher'].includes(mode)) { - assert.equal(prepareDetector(planner, request, row => observations.push(row), selected), execution); + assert.equal(admitPreparedDetector(execution, row => observations.push(row), selected), execution); assert.equal(observations[0].runtime, plan.runtime.codex); assert.equal(observations[0].runtimeProof.executableSha256, runtime.codexSha256); assert.equal(existsSync(runtimeDirectory), true); } else { - assert.throws(() => prepareDetector(planner, request, row => observations.push(row), selected), /CLI version|digest/u); + assert.throws(() => admitPreparedDetector(execution, row => observations.push(row), selected), /CLI version|digest/u); assert.equal(existsSync(runtimeDirectory), false); assert.deepEqual(observations, []); } @@ -91,3 +90,37 @@ test('the old PATH version probe executes a shim, while the pinned probe invokes assert.equal(result.status, 0, result.stderr); assert.equal(existsSync(shimMarker), false); }); + +for (const mode of ['pinned', 'foreign']) test('ordinary planner admits CLI bytes before its internal version probe: ' + mode, t => { + require('./load.cjs'); + const root = path.resolve(__dirname, '../../../../..'); + const { AgentExecutionPlanner } = require(path.join(root, 'src/infrastructure/agents/agent_execution_planner')); + const { resolveAgentExecutablePath, readAgentExecutableVersion } = require(path.join(root, + 'src/infrastructure/agents/agent_executable_invocation')); + const directory = mkdtempSync(path.join(tmpdir(), 'ev07-planner-probe-')); + t.after(() => rmSync(directory, { recursive: true, force: true })); + const executable = path.join(directory, 'codex'), marker = path.join(directory, 'version-executed'); + writeFileSync(executable, '#!/bin/sh\nprintf version > "' + marker + '"\nprintf "codex-cli fixture\\n"\n', { mode: 0o700 }); + const runtime = { executable, codex: 'codex-cli fixture', + codexSha256: mode === 'pinned' ? createHash('sha256').update(readFileSync(executable)).digest('hex') : 'a'.repeat(64) }; + const planner = new AgentExecutionPlanner({ resolveExecutable: resolveAgentExecutablePath, + readVersion: readAgentExecutableVersion, resolveWorkspace: () => directory }); + const request = { configuration: { provider: 'codex', modelProvider: 'openai', model: 'gpt-6-luna', effort: 'xhigh' }, + capability: 'findings', prompt: 'controlled planner preparation; no model invocation', timeoutMs: 1000, + environment: { PATH: directory + path.delimiter + process.env.PATH }, cwd: directory }; + if (mode === 'foreign') { + const old = planner.prepare(request); + try { assert.equal(existsSync(marker), true, 'ordinary preparation already executed the unpinned version probe'); } + finally { rmSync(old.runtimeDirectory, { recursive: true, force: true }); } + rmSync(marker); + assert.throws(() => preparePinnedExecution(planner, request, runtime), /digest/u); + assert.equal(existsSync(marker), false, 'the corrected admission runs before ordinary preparation'); + } else { + const execution = preparePinnedExecution(planner, request, runtime); + try { + assert.equal(execution.runtimeContract.version, runtime.codex); + assert.equal(execution.executable, require('node:fs').realpathSync(executable)); + assert.equal(existsSync(marker), true); + } finally { rmSync(execution.runtimeDirectory, { recursive: true, force: true }); } + } +}); diff --git a/quality/bugbot/evidence/issue-950/ev07-shadow/review.cjs b/quality/bugbot/evidence/issue-950/ev07-shadow/review.cjs index 3e91727f8..407ff2357 100644 --- a/quality/bugbot/evidence/issue-950/ev07-shadow/review.cjs +++ b/quality/bugbot/evidence/issue-950/ev07-shadow/review.cjs @@ -6,7 +6,7 @@ const { createHash } = require('node:crypto'); const fs = require('node:fs'); const path = require('node:path'); const { pinnedGit, admitQualificationModules } = require('../execution-provenance.cjs'); -const { qualificationProvenance, requirePinnedExecution, selectedPlanProvenance } = require('./implementation.cjs'); +const { qualificationProvenance, requirePinnedExecution, preparePinnedExecution, selectedPlanProvenance } = require('./implementation.cjs'); const plan = require('./configuration.cjs'); const hash = input => createHash('sha256').update(input).digest('hex'); @@ -19,7 +19,11 @@ const args = ['diff', '--no-ext-diff', '--no-textconv', '--no-renames']; const originalPullNumbers = { X1: 24, P1: 28, J1: 28 }; function prepareDetector(planner, request, log, selected = plan) { - const execution = planner.prepare(request); + const execution = preparePinnedExecution(planner, request, selected.runtime); + return admitPreparedDetector(execution, log, selected); +} + +function admitPreparedDetector(execution, log, selected = plan) { try { const runtimeProof = requirePinnedExecution(execution, selected.runtime); const { codexInvocation } = require('../../../../../src/infrastructure/bugbot/shadow/session.cjs'); @@ -187,4 +191,4 @@ if (require.main === module) { .catch(error => { console.error(error.code ?? error.name, error.message); process.exitCode = 1; }); } -module.exports = { prepareDetector }; +module.exports = { prepareDetector, admitPreparedDetector }; diff --git a/quality/bugbot/evidence/issue-950/normal-flow-shadow/run.cjs b/quality/bugbot/evidence/issue-950/normal-flow-shadow/run.cjs index eba514c96..b73fd1adf 100644 --- a/quality/bugbot/evidence/issue-950/normal-flow-shadow/run.cjs +++ b/quality/bugbot/evidence/issue-950/normal-flow-shadow/run.cjs @@ -11,7 +11,7 @@ const shadowPlan = require('../shadow-verification/plan.json'); const root = path.resolve(__dirname, '../../../../..'); const { attestSource, attestRuntime, admitQualificationModules, attestDrivers, pinnedGit, trustedGitExecutable, attestCommittedArtifact, requireBootstrapAdmission } = require('../execution-provenance.cjs'); -const { requirePinnedExecution, requirePinnedCliProbe } = require('../ev07-shadow/implementation.cjs'); +const { requirePinnedExecution, requirePinnedCliProbe, preparePinnedExecution } = require('../ev07-shadow/implementation.cjs'); const normalFlowDrivers = Object.freeze(['run.cjs', '../execution-provenance.cjs', '../ev07-shadow/load.cjs', '../ev07-shadow/implementation.cjs', '../ev07-shadow/configuration.cjs', '../qualification-bootstrap.cjs']); let application; @@ -214,7 +214,7 @@ async function run(lab, number, destination, manifestPath = path.join(__dirname, }; const standardDetector = createFindingsQueryPort({ cli: new AgentCliClient({ prepare(request) { - const plan = planner.prepare(request); + const plan = preparePinnedExecution(planner, request, frozen.runtime); try { const runtimeProof = requirePinnedExecution(plan, frozen.runtime); const flags = codexInvocation(plan.argv); diff --git a/quality/bugbot/evidence/issue-950/qualification-bootstrap.cjs b/quality/bugbot/evidence/issue-950/qualification-bootstrap.cjs index 2cf7212b4..4c8643cda 100644 --- a/quality/bugbot/evidence/issue-950/qualification-bootstrap.cjs +++ b/quality/bugbot/evidence/issue-950/qualification-bootstrap.cjs @@ -127,7 +127,14 @@ async function launch(repository, revision, planPath, planSha256, bootstrapSha25 const proof = { bootstrapSha256, planCommit: revision, planPath, planSha256 }; fs.writeFileSync(path.join(isolated, '.qualification-admission.json'), JSON.stringify(proof), { flag: 'wx', mode: 0o600 }); + // The application evidence adapter also invokes the bare Git command. + // Bind that lookup to the admitted OS executable without changing how + // Node/Codex or any other normal detector executable is selected. + const gitBin = path.join(scratch, 'git-bin'); + fs.mkdirSync(gitBin, { mode: 0o700 }); + fs.symlinkSync(trust.executable, path.join(gitBin, 'git')); const env = { ...trust.env, COPILOT_EV07_PLAN: path.join(isolated, planPath), + PATH: gitBin + path.delimiter + (trust.env.PATH ?? '/usr/bin:/bin'), BUGBOT_VERIFICATION_MODE: 'disabled', COPILOT_QUALIFICATION_MANIFEST_SHA256: planSha256, COPILOT_QUALIFICATION_PLAN_COMMIT: revision }; diff --git a/quality/bugbot/evidence/issue-950/qualification-bootstrap.test.cjs b/quality/bugbot/evidence/issue-950/qualification-bootstrap.test.cjs index 04d4a4855..182489e15 100644 --- a/quality/bugbot/evidence/issue-950/qualification-bootstrap.test.cjs +++ b/quality/bugbot/evidence/issue-950/qualification-bootstrap.test.cjs @@ -11,7 +11,7 @@ const proof = require('./execution-provenance.cjs'); const hash = bytes => createHash('sha256').update(bytes).digest('hex'); const prefix = 'quality/bugbot/evidence/issue-950/'; -function fixture(t, crlfCheckout = false) { +function fixture(t, crlfCheckout = false, brokerGit = false) { const directory = fs.mkdtempSync(path.join(os.tmpdir(), 'qualified-bootstrap-control-')); t.after(() => fs.rmSync(directory, { recursive: true, force: true })); const root = path.join(directory, 'project'); @@ -37,6 +37,12 @@ function fixture(t, crlfCheckout = false) { write(prefix + 'execution-provenance.cjs', fs.readFileSync(path.join(__dirname, 'execution-provenance.cjs'))); write(prefix + 'qualification-bootstrap.cjs', fs.readFileSync(path.join(__dirname, 'qualification-bootstrap.cjs'))); write(prefix + 'normal-flow-shadow/run.cjs', 'const fs=require("node:fs");fs.writeFileSync(process.argv[4],JSON.stringify({cwd:process.cwd(),isolated:__dirname,mode:process.env.BUGBOT_VERIFICATION_MODE}));\n'); + if (brokerGit) { + for (const file of ['git.cjs', 'hash.cjs']) write('src/infrastructure/bugbot/shadow/' + file, + fs.readFileSync(path.resolve(__dirname, '../../../../src/infrastructure/bugbot/shadow', file))); + write(prefix + 'normal-flow-shadow/run.cjs', 'const fs=require("node:fs"),{git}=require("../../../../../src/infrastructure/bugbot/shadow/git.cjs");' + + 'fs.writeFileSync(process.argv[4],JSON.stringify({head:git(process.argv[2],["rev-parse","HEAD"]).trim()}));\n'); + } if (crlfCheckout) write('.gitattributes', '*.cjs text eol=crlf\n'); git('add', '.'); git('-c', 'user.name=Fixture', '-c', 'user.email=fixture@example.invalid', 'commit', '--quiet', '-m', 'Trusted fixture implementation'); @@ -52,7 +58,7 @@ function fixture(t, crlfCheckout = false) { fs.writeFileSync(bootstrap, execFileSync(proof.trustedGitExecutable(), ['-C', root, 'show', revision + ':' + prefix + 'qualification-bootstrap.cjs'], { env })); const bootstrapSha256 = hash(fs.readFileSync(bootstrap)); const launch = (extra = {}) => spawnSync(process.execPath, [bootstrap, root, revision, planPath, - planSha256, bootstrapSha256, 'normal-flow', 'relative-lab', '1', output], + planSha256, bootstrapSha256, 'normal-flow', brokerGit ? root : 'relative-lab', '1', output], { cwd: directory, env: { ...env, ...extra }, encoding: 'utf8' }); return { directory, root, marker, output, write, git, plan, planPath, revision, planSha256, launch, bootstrap }; } @@ -146,3 +152,21 @@ test('changed installed dependencies are refused before the immutable entrypoint assert.equal(fs.existsSync(f.marker), false); assert.equal(fs.existsSync(f.output), false); }); + +test('the actual application Git adapter cannot execute an inherited PATH shim after admission', t => { + const f = fixture(t, false, true), bin = path.join(f.directory, 'bin'); + fs.mkdirSync(bin); + fs.writeFileSync(path.join(bin, 'git'), '#!' + process.execPath + '\nconst fs=require("node:fs"),cp=require("node:child_process");' + + 'fs.writeFileSync(' + JSON.stringify(f.marker) + ',"executed");' + + 'process.stdout.write(cp.execFileSync(' + JSON.stringify(proof.trustedGitExecutable()) + ',process.argv.slice(2)));\n', { mode: 0o700 }); + const env = { ...process.env, PATH: bin + path.delimiter + process.env.PATH }; + const old = spawnSync(process.execPath, ['-e', 'process.stdout.write(require(process.argv[1]).git(process.argv[2],["rev-parse","HEAD"]))', + path.join(f.root, 'src/infrastructure/bugbot/shadow/git.cjs'), f.root], { env, encoding: 'utf8' }); + assert.equal(old.status, 0, old.stderr); + assert.equal(fs.existsSync(f.marker), true, 'the old inherited PATH reaches the shim'); + fs.rmSync(f.marker); + const admitted = f.launch({ PATH: env.PATH }); + assert.equal(admitted.status, 0, admitted.stderr); + assert.equal(JSON.parse(fs.readFileSync(f.output)).head, f.revision); + assert.equal(fs.existsSync(f.marker), false, 'the admitted application adapter uses the pinned OS Git'); +}); diff --git a/quality/bugbot/evidence/issue-970/README.md b/quality/bugbot/evidence/issue-970/README.md index e944a8e9c..edfe3e4e0 100644 --- a/quality/bugbot/evidence/issue-970/README.md +++ b/quality/bugbot/evidence/issue-970/README.md @@ -128,3 +128,55 @@ the complete source/path suite, all 40 focused controls pass, including the actu normal-flow relative-lab journey with zero candidates/model calls/verifiers/writes. Final complete shadow suite: **184/184 passed**, zero skipped/cancelled/model calls/evaluated-PR writes. The exact complete output is `bootstrap-final-shadow.log.gz`. Specifications/documentation and the final graph refresh also pass. The required final build/Jest/lint hook and native final-head review remain distinct delivery checks. + + +## Actual application Git adapter after admission + +The source proof already used absolute OS Git, but the actual shipped evidence +adapter in src/infrastructure/bugbot/shadow/git.cjs resolves its later read-only +Git calls through PATH. The admitted child previously inherited the caller PATH. +A new causal control uses that actual adapter: under the old inherited path a +Git shim executes even though the OS-Git proof itself is genuine. The bootstrap +now prepends a private directory containing only a git link to the admitted OS +executable. Later application Git reads therefore use the same pinned binary; +selection of Node, Codex and other normal executables retains the remaining PATH. +No production source or new configuration setting is added. + +The same actual adapter runs successfully through the admitted child without +executing the shim. All 13 bootstrap controls pass. The private executable path +is excluded from stable provenance; its target is the recorded OS-Git executable +and digest, and the reviewed bootstrap digest binds this routing. Historical +184-control results remain immutable; the complete suite now includes one +additional application-adapter control. + + +The end-to-end probe audit also found the normal planner's own --version call: +AgentExecutionPlanner.prepare invokes its production version reader before it +returns the plan that the driver previously checked. Qualification now resolves +the selected invocation with those same production helpers and checks executable/ +launcher bytes before calling the unchanged ordinary planner. The final returned +plan still passes the existing version/digest/profile proof. No production source, +planner API, monkeypatch, model limit or configuration setting is changed. + +Two new controls run the actual production planner with only a fixture workspace +port; executable resolution, ownership validation and version reading remain real. +The former preparation executes a mismatched CLI's version marker before its +later digest rejection; the admitted preparation refuses it before that marker. +The matching runtime still prepares normally. The first run passed 14/15 runtime +controls but compared a logical macOS /var path with its physical alias. That +assertion failure remains; the corrected realpath assertion passes all 15. The +prior complete 185-control result is preserved separately; the final suite now +contains 187 controls, including the two actual planner cases. + +The final combined source/runtime suite passes **187/187** controls with no skipped/cancelled cases, model calls or evaluated-PR writes (`planner-final-shadow-187.log.gz`). Final specification/catalog/documentation validation and Graphify pass. Application source and shipping bundles remain unchanged; all routing/admission changes are in the registered lab drivers. + + +The first final planner-admission build/Jest/lint hook failed in the existing +`src/prompts/__tests__/bugbot_complete_conversation.test.ts` worker with SIGSEGV: +942 suites and 18,689 tests passed; that six-test suite did not run. The exact +unchanged six tests then pass in isolation. This is preserved as a failed full +attempt, followed by a complete hook retry; the isolated pass does not replace +the required complete validation. Both raw outputs are lossless gzip. + +- `planner-final-hook-sigsegv.log.gz`: original bytes 526237, SHA-256 `03e97b4a5a1b5e74815262999194f81a7df311359c5cfb5229790c9255010eef`. +- `planner-final-hook-focused.log.gz`: original bytes 193, SHA-256 `677fe194c74955c922514e93ef4010100248ff690cc0c8403599582800c4b98b`. diff --git a/quality/bugbot/evidence/issue-970/application-git-controls.log.gz b/quality/bugbot/evidence/issue-970/application-git-controls.log.gz new file mode 100644 index 0000000000000000000000000000000000000000..3d833a44dc4572d3444f4e6fb0f757fa132e8d3d GIT binary patch literal 784 zcmV+r1MmDFiwFP!00002|IJoQj?+L8-Onj%H$ftf9mkHt4j};x76`FNopw2HVs|(F znM_!71eRQc>u?gP+s+3VG#^;Z&i$)b@71f4cg#p3H_t#wa4o`4nJuk>E4>HRz~v{; zI^p)Swco6jo8gtHQF5FKYdua^MM_)ga%x*vtKEz%*@%rd%n2nE{?T4Og*Pu@C%O*S z2nKb>IM%SRMYdd> z5F~M@d>vu*%<(pqatJjDBsOT>pii%As#?4#MH9A1XvzeTf>04G1U&;7=|B~nlvSE! zWksL|NP&B03f&&k3pGB`Yq8U42&h;l zi!3e6@&LqD-wWr?6K0+sOE+3CN<%5*HRFyv=Ez5`HOg<=2x7g~T_8+8R8}};_Mn+- zVX{c`q+C^ZM;fSD@bYw5NKM2?a^41Nq-1n<%^V|?JWa|nE$$Cv_kAbi_I8MTo+fFY zm-7dJgrH(0r$>+6hE*(*vRFJEXn1iKQmdp`R@L%I>SUMGD4>WGz{V+JuoedSU0VlS*S>3TYkdI{K zIR1yLh~kUp>`+&vouSx#(L%W6@qBG{Mj zK-Q;5$nv<|zm}Qs% literal 0 HcmV?d00001 diff --git a/quality/bugbot/evidence/issue-970/application-git-shadow-185.log.gz b/quality/bugbot/evidence/issue-970/application-git-shadow-185.log.gz new file mode 100644 index 0000000000000000000000000000000000000000..124310338168a2e58149090ae1d604fbaa13f834 GIT binary patch literal 5802 zcmV;b7FFpViwFP!00002|IJ+4j@(9;efL)o{o-suNpW8UxY33dTNsb*k>u_M8io)_ zMrN|bB-vc5l>I!PFpu*i^E>k;bMB1@GP1I?R8&A>Pn3A@p$OW z;`Oc-^*T?zZ~o*oZ7H4gn#ef+oJ3uX$H$7?V|i7TvMJ=_Y8WQD&SUQ}KVfLEH*Gr( zV=p?Fmb=A2hA$v-i;$1)U+zMyY5N0qvaLZ-(Zv>J;Vv}fm6w{uwV0Y> zzur!Dz3%a>yuL3bwR+u8%~&1eeW?sZ+sg+^($(Tl7c-1voQ8EF`f}Y(o7!A7|9jZW zekS(KH~;(J|K)7zws=1{!a0CO)$AO|+)abCgXTJ7bjoVLofLa#Q70YByJx0QJkNx6yq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R1Tc zT+v(bfkj!lmihCkqrGwEf^i5}KHvQK{ThHpN5ru*KFBFxTU6)a7wDLF76&&vwf5vR zSLk@{d;{157w;y9ee^H-x*81uE!~*gul!{s1e8~t)nxYEno(M#jI9-Lv5C3)E5}Or zw5UpZ#a5{(`ss4h8rbp+0CcTOZc?h;flrsc%p-0nbL*1Fm&GvNG*3F6*qXAN(HD*G z(YRsNTB#AE60MTNTX!mq@>vInt1~Gs$qzTYyed%kNBY7d?WII92U`Ae8i?8Glz~96 znKIY6sn1G(Nf6WaPHGknRnpa*aQ~rioYwOces1yU@^MFG(T!%`X1(oB6oy zO@eF~1Xiidn&UHvVuIl3CG>;P?EXLh$5C(c`&rDt4HFlYJpQEv^q)T=q4nQ&Sr^Bp oejnafT{r(Wwq>jTS?WyU-2rrh*b6Ab@#Am)4;irjf!a&}0E5m_p8x;= literal 0 HcmV?d00001 diff --git a/quality/bugbot/evidence/issue-970/planner-final-hook-focused.log.gz b/quality/bugbot/evidence/issue-970/planner-final-hook-focused.log.gz new file mode 100644 index 0000000000000000000000000000000000000000..5a12703df7c9af07eb87a1d5f3d153e2f6f9e79c GIT binary patch literal 150 zcmV;H0BQdpiwFP!00002|2>UM4#F@DME5y`4}cO1QWhM8b|1OHY9r;R+U5Ktl;YLM z?~P_678v&+#19ytA~U@%ElClKYHGNFXA09JSUdy3e&rV2mR^X=Zb^umS%z!b1 z^gaIWK|=9s$P4i1P2EbW!p6C-uybbKm$``Z?H@^~h5V+CQ9{YOOIlc~53rKV48Z^Z E0J;!GegFUf literal 0 HcmV?d00001 diff --git a/quality/bugbot/evidence/issue-970/planner-final-hook-sigsegv.log.gz b/quality/bugbot/evidence/issue-970/planner-final-hook-sigsegv.log.gz new file mode 100644 index 0000000000000000000000000000000000000000..feb7bc7b7ab0f2c8efa3acb8f7998904d83aa4a4 GIT binary patch literal 49804 zcmV)DK*7HsiwFP!00002|HQq`j^w(MCb&OO5vxYm;$+;6$UOIF(J0K_6)=Ma3RM`O z&~PYR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>^Dj?El8Sr%glOewr#u`JI&Pjfh)O?ye zs$^MQe`1m#{3AMT5wxheUt5QpIKrEPBB}d56H{!hcxXhRdvsqJ4gn0S1-QhW$0j z@SmBUSIlN>9rUPMY8enXjn4xK+YiAuin)a~1l$2lup`dKR>Fv@$J08>hzm|t} z?!av!8c6YH4ZdFe6XKl#gAOqP_gsqlnPvPi+mE=W7?+Nj_TQf-ux4QFX8*Ar`H!2} zt#bUdD$F1TyJMhb6U86^j$B$Otb$$>i7ztCxQH|o-Q?|QRzM7AlQk?;Z^_@f;dgHC zUlqJU$lqgi^QgD44`0Bj0~}_Ie%w{yU@PSj(uNhg?^N4snG}}K5UskkBo7(C8M$o? zE8ybovli-JJETB*vG>b0yNyo8t8xh#(&`bcG_a_w&c5Vb792LpKMevH`v0aq^fr(s z1b@hnqaoV1q*f>6@4!j_Rc4Y-eaqJ#F*hYK8iUfAFt84^?Sogscrb@oZxLNTGkJ;m z%S=$NK=m7^`y5&hy#HA?o87Zn0@~x31#8!klzVH~EdA!zN>~ME?SNS3RXJiEm>wOW z54cN6PJaFBrSbg^)Axr#p5NE0gaXm`&C7l14YC*336OJ*HHIC-%)#4m^Azh}GPHAL RPx#@FvN|G|3k?JEUjRtl)EWQ) literal 0 HcmV?d00001 diff --git a/quality/bugbot/evidence/issue-970/planner-final-shadow-187.log.gz b/quality/bugbot/evidence/issue-970/planner-final-shadow-187.log.gz new file mode 100644 index 0000000000000000000000000000000000000000..47b8fe0dec90d3142d445a6f14e710cb84367e59 GIT binary patch literal 5854 zcmV<479r^$iwFP!00002|IJ+4j^x&neb-kIeo-3eWOH8x$gt3h+!#$uqi)#-3_)O$ zH!JC8k`$M!PCw5l%;WsX{LXyIoQQib8Cg}mRtlpBTU}Ynh`U6bII*z4_>=SJ>r-E; z>&Io+*G)J5Idpx`^+RV;TzS?!uc03eSceA}#L%pxdVye5=dE5{6bup>O)3LV? zZ?C$d+2*PD#h;wEtCX|dk{IXLxoGO?^jM2~tgh=ywWWGokK?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I#06>e7z5oCK literal 0 HcmV?d00001 diff --git a/quality/bugbot/evidence/issue-970/planner-probe-controls-1.log.gz b/quality/bugbot/evidence/issue-970/planner-probe-controls-1.log.gz new file mode 100644 index 0000000000000000000000000000000000000000..c19867317d3767c3294f120418d36385688bf16f GIT binary patch literal 906 zcmV;519ki#iwFP!00002|Fu=!j^i{GzVB1`ZaQM~=frUmA*9i&h>>7fX66PVRJn

6k571?q&9yh791r+FHsX=`pL z?=J`MwxX738u@XSXK{RC{8ktvWR0ewPg8=)h2gha$=c&PUiOwP8t!;NL=w^K=#&*Jt z2*ej*lHenzD}!n(^!D!QtB=4(AOL2_tVH_?ZC3&Y!g(Ctknx_78?}aON;dnktS%}G zb{Ft8$+1re&5y19J5st5lIcC_8U{G}D8pSplj07Av|LN*lC$7W&sZ8qKFMPm=0`~v zfj>QC6#JBm?HniiTy$WXYQbq8+c9wdlGJ zJF6;nSXRAe7J`_!0F%=ch-sMM$&fV%=&Cx<7n6zmMa-g~V1$I-2aCR5C>y}ARUG&N zn3|&CVb@iNt@Tt4tY0T3>wKoXyW?$mX_umDjs`%~( z;5~r90xW#p2deo51$nI?t2^s|&ZLt2R`uo!H2t8;wjDTjqEXhX6>GelhQVc;Ai}u7 z;q7@eK3uz(cV;ikN8p8jL_*C9QhEQa2q zp9jpE!#PyH`Ua3#4HIT{&tDBT*F^=oIUA*$(KHT8amAS!d5$w!Twy#$253CcuQV`> guffc<{J~g><mC)p0htUVkMj->a{D-Wb;q1gu#TOg{5 zgEHv`4=MujgN@h$*}&E%M~$IZv1#9v9<2pURt1%HCPf#XpI(=vk0$OcSurY#k}uBh zFa)$avdU;xmlZD-<{!PYyES}=W{7HI;4D Date: Fri, 20 Nov 2026 00:46:05 +0100 Subject: [PATCH 7/9] bugfix-970-bind-bugbot-qualification-execution-to-the-pinned-source-and-sanitized-git-environment: keep admission in the external bootstrap (#970) --- docs/development/testing.mdx | 19 ++- .../evidence/issue-950/ev07-shadow/corpus.cjs | 4 +- .../issue-950/ev07-shadow/full-review.cjs | 8 +- .../issue-950/ev07-shadow/implementation.cjs | 5 +- .../ev07-shadow/launch-full-review.cjs | 28 ++-- .../evidence/issue-950/ev07-shadow/review.cjs | 10 +- .../issue-950/execution-provenance.cjs | 35 +++-- .../issue-950/normal-flow-shadow/run.cjs | 11 +- .../issue-950/qualification-bootstrap.cjs | 75 ++++++++-- .../qualification-bootstrap.test.cjs | 140 +++++++++++++++++- quality/bugbot/evidence/issue-970/README.md | 60 ++++++++ .../forged-receipt-causal-negative.log.gz | Bin 0 -> 716 bytes .../forged-receipt-first-negative.log.gz | Bin 0 -> 1139 bytes .../forged-receipt-focus-pass.log.gz | Bin 0 -> 216 bytes .../issue-970/legacy-verifier-01097099.cjs.gz | Bin 0 -> 4577 bytes .../issue-970/memory-bootstrap-18-pass.log.gz | Bin 0 -> 978 bytes .../memory-cancel-fixture-negative.log.gz | Bin 0 -> 580 bytes .../issue-970/memory-cancel-pass.log.gz | Bin 0 -> 174 bytes .../memory-frozen-final-shadow-193.log.gz | Bin 0 -> 6036 bytes .../issue-970/memory-shadow-192-pass.log.gz | Bin 0 -> 5997 bytes .../issue-970/memory-shadow-193-pass.log.gz | Bin 0 -> 6034 bytes specs/CATALOG.md | 6 +- specs/bugbot-review-state-reconciliation.md | 59 ++++++++ specs/catalog.json | 10 +- 24 files changed, 403 insertions(+), 67 deletions(-) create mode 100644 quality/bugbot/evidence/issue-970/forged-receipt-causal-negative.log.gz create mode 100644 quality/bugbot/evidence/issue-970/forged-receipt-first-negative.log.gz create mode 100644 quality/bugbot/evidence/issue-970/forged-receipt-focus-pass.log.gz create mode 100644 quality/bugbot/evidence/issue-970/legacy-verifier-01097099.cjs.gz create mode 100644 quality/bugbot/evidence/issue-970/memory-bootstrap-18-pass.log.gz create mode 100644 quality/bugbot/evidence/issue-970/memory-cancel-fixture-negative.log.gz create mode 100644 quality/bugbot/evidence/issue-970/memory-cancel-pass.log.gz create mode 100644 quality/bugbot/evidence/issue-970/memory-frozen-final-shadow-193.log.gz create mode 100644 quality/bugbot/evidence/issue-970/memory-shadow-192-pass.log.gz create mode 100644 quality/bugbot/evidence/issue-970/memory-shadow-193-pass.log.gz diff --git a/docs/development/testing.mdx b/docs/development/testing.mdx index 1ceb7e3a0..45bfc2817 100644 --- a/docs/development/testing.mdx +++ b/docs/development/testing.mdx @@ -363,7 +363,7 @@ independently reviewed commit using trusted operating-system Git into a private file outside the checkout. Verify its independently reviewed SHA-256 before launching trusted Node with NODE_OPTIONS and NODE_PATH unset. Do not run the working-tree corpus, normal-flow or full-review entrypoint directly for measured -qualification; those entrypoints require private bootstrap admission. +qualification; those CLIs refuse before importing checkout code. The positional arguments are repository, reviewed plan commit, relative plan path, reviewed plan SHA-256, reviewed bootstrap SHA-256, mode, then mode arguments. @@ -396,3 +396,20 @@ planner: that planner probes --version during preparation. Admission uses its production resolution/validation helpers, then delegates to the unchanged planner and checks the final prepared runtime/profile as before. A matching version reported by an unregistered executable cannot execute even during preparation. + +Qualification drivers now refuse direct CLI execution before importing a checkout +helper. A `.qualification-admission.json` file, even with matching hashes, supplies +no execution authority. Use the independently materialized external bootstrap +above. It forks that same reviewed file with a parent IPC channel, repeats private +plan/driver/source/runtime checks in each worker, and supplies process-local +context before calling the driver module. Paired scheduler and review-slot +processes follow that same route and retain the independent corpus gate. + +The public bootstrap arguments are unchanged; the worker channel is internal. +Explicit cancellation still reaches the admitted worker and preserves its exit. +There are no new consumer settings or investigation limits. The six additional +receipt/direct-entry/IPC/nested-mutation/cancellation controls use real Git and +owned fake workers, with zero model calls and evaluated-PR writes. Their cleanup +timeout belongs only to the synthetic cancellation fixture. Bootstrap context is +not independent accreditation of the host or operator review; retain the external +digest check before starting Node and freeze new driver hashes before measuring. diff --git a/quality/bugbot/evidence/issue-950/ev07-shadow/corpus.cjs b/quality/bugbot/evidence/issue-950/ev07-shadow/corpus.cjs index 78e31c419..95b96acf5 100644 --- a/quality/bugbot/evidence/issue-950/ev07-shadow/corpus.cjs +++ b/quality/bugbot/evidence/issue-950/ev07-shadow/corpus.cjs @@ -1,5 +1,7 @@ 'use strict'; +if (require.main === module) throw new Error('Use the independently reviewed immutable bootstrap; direct qualification runners are unsupported.'); + const assert = require('node:assert/strict'); const { createHash } = require('node:crypto'); const { execFileSync } = require('node:child_process'); @@ -137,4 +139,4 @@ async function run(destination, preflight = false) { } } -run(process.argv[2], process.argv[3] === '--preflight').catch(error => { console.error(error.code ?? error.name, error.message); process.exitCode = 1; }); +module.exports = { run: (destination, flag) => run(destination, flag === '--preflight') }; diff --git a/quality/bugbot/evidence/issue-950/ev07-shadow/full-review.cjs b/quality/bugbot/evidence/issue-950/ev07-shadow/full-review.cjs index 35a0089eb..3807a2b87 100644 --- a/quality/bugbot/evidence/issue-950/ev07-shadow/full-review.cjs +++ b/quality/bugbot/evidence/issue-950/ev07-shadow/full-review.cjs @@ -1,6 +1,8 @@ 'use strict'; -const { spawn } = require('node:child_process'); +if (require.main === module) throw new Error('Use the independently reviewed immutable bootstrap; direct qualification runners are unsupported.'); + +const { spawnQualificationDriver } = require('../execution-provenance.cjs'); const fs = require('node:fs'); const path = require('node:path'); const { requirePassingCorpus } = require('./launch-full-review.cjs'); @@ -44,7 +46,7 @@ async function run(campaign) { const log = fs.openSync(path.join(output, name + '.log'), 'wx', 0o600); record({ event: 'slot-start', ...slot }); try { - const child = spawn(process.execPath, [path.join(__dirname, 'review.cjs'), path.join(checkouts, slot.id), + const child = spawnQualificationDriver('review', [path.join(checkouts, slot.id), slot.id, String(slot.repetition), destination], { stdio: ['ignore', log, log] }); running.add(child); const exit = await new Promise(resolve => { @@ -66,4 +68,4 @@ async function run(campaign) { } } -run(process.argv[2]).catch(error => { console.error(error.code ?? error.name, error.message); process.exitCode = 1; }); +module.exports = { run }; diff --git a/quality/bugbot/evidence/issue-950/ev07-shadow/implementation.cjs b/quality/bugbot/evidence/issue-950/ev07-shadow/implementation.cjs index ffe39c8d1..a2ae3d716 100644 --- a/quality/bugbot/evidence/issue-950/ev07-shadow/implementation.cjs +++ b/quality/bugbot/evidence/issue-950/ev07-shadow/implementation.cjs @@ -19,9 +19,8 @@ function qualificationProvenance(selected = require('./configuration.cjs')) { const source = attestSource(root, selected.implementation); const drivers = requirePinnedDrivers(selected); const runtime = attestRuntime(root, selected.runtime); - const admission = path.join(root, '.qualification-admission.json'); - return { ...source, drivers, runtime, ...(require('node:fs').existsSync(admission) - && { bootstrap: require('../execution-provenance.cjs').requireBootstrapAdmission(root) }) }; + const admission = require('../execution-provenance.cjs').bootstrapAdmission(root); + return { ...source, drivers, runtime, ...(admission && { bootstrap: admission }) }; } function requirePinnedRuntime(cli, runtime = require('./configuration.cjs').runtime) { diff --git a/quality/bugbot/evidence/issue-950/ev07-shadow/launch-full-review.cjs b/quality/bugbot/evidence/issue-950/ev07-shadow/launch-full-review.cjs index 9e2763763..9790075c2 100644 --- a/quality/bugbot/evidence/issue-950/ev07-shadow/launch-full-review.cjs +++ b/quality/bugbot/evidence/issue-950/ev07-shadow/launch-full-review.cjs @@ -1,7 +1,9 @@ 'use strict'; +if (require.main === module) throw new Error('Use the independently reviewed immutable bootstrap; direct qualification runners are unsupported.'); + const { readFileSync } = require('node:fs'); -const { spawn } = require('node:child_process'); +const { spawnQualificationDriver } = require('../execution-provenance.cjs'); const path = require('node:path'); const assert = require('node:assert/strict'); const { createHash } = require('node:crypto'); @@ -79,29 +81,27 @@ function requirePassingCorpus(campaign) { return directory; } -function launchFullReview(campaign, launch = spawn) { +function launchFullReview(campaign, launch) { const directory = requirePassingCorpus(campaign); - return launch(process.execPath, [path.join(__dirname, 'full-review.cjs'), directory], { stdio: 'inherit' }); + return launch ? launch(process.execPath, [path.join(__dirname, 'full-review.cjs'), directory], { stdio: 'inherit' }) + : spawnQualificationDriver('full-review-runner', [directory], { stdio: 'inherit' }); } -if (require.main === module) { - try { - require('../execution-provenance.cjs').requireBootstrapAdmission(path.resolve(__dirname, '../../../../..')); - const child = launchFullReview(process.argv[2]); +async function run(campaign) { + require('../execution-provenance.cjs').requireBootstrapAdmission(path.resolve(__dirname, '../../../../..')); + const child = launchFullReview(campaign); + return new Promise((resolve, reject) => { const interrupt = () => child.kill('SIGINT'); const terminate = () => child.kill('SIGTERM'); process.once('SIGINT', interrupt); process.once('SIGTERM', terminate); - child.once('error', () => { process.exitCode = 1; }); + child.once('error', reject); child.once('close', (code, signal) => { process.removeListener('SIGINT', interrupt); process.removeListener('SIGTERM', terminate); - process.exitCode = code ?? (signal === 'SIGINT' ? 130 : signal === 'SIGTERM' ? 143 : 1); + resolve(code ?? (signal === 'SIGINT' ? 130 : signal === 'SIGTERM' ? 143 : 1)); }); - } catch (error) { - console.error(error.message); - process.exitCode = 1; - } + }); } -module.exports = { launchFullReview, requirePassingCorpus }; +module.exports = { run, launchFullReview, requirePassingCorpus }; diff --git a/quality/bugbot/evidence/issue-950/ev07-shadow/review.cjs b/quality/bugbot/evidence/issue-950/ev07-shadow/review.cjs index 407ff2357..ce9075305 100644 --- a/quality/bugbot/evidence/issue-950/ev07-shadow/review.cjs +++ b/quality/bugbot/evidence/issue-950/ev07-shadow/review.cjs @@ -1,5 +1,7 @@ 'use strict'; +if (require.main === module) throw new Error('Use the independently reviewed immutable bootstrap; direct qualification runners are unsupported.'); + const assert = require('node:assert/strict'); const { execFileSync } = require('node:child_process'); const { createHash } = require('node:crypto'); @@ -186,9 +188,5 @@ async function run(checkout, id, repetition, output, preflight = false) { if (preflight) assert.equal(result.payload.bugbotShadowVerification.publicationSimulation.status, 'complete'); } -if (require.main === module) { - run(process.argv[2], process.argv[3], Number(process.argv[4]), process.argv[5], process.argv[6] === '--preflight') - .catch(error => { console.error(error.code ?? error.name, error.message); process.exitCode = 1; }); -} - -module.exports = { prepareDetector, admitPreparedDetector }; +module.exports = { run: (checkout, id, repetition, destination, flag) => + run(checkout, id, Number(repetition), destination, flag === '--preflight'), prepareDetector, admitPreparedDetector }; diff --git a/quality/bugbot/evidence/issue-950/execution-provenance.cjs b/quality/bugbot/evidence/issue-950/execution-provenance.cjs index 9f7864fb5..508ca8035 100644 --- a/quality/bugbot/evidence/issue-950/execution-provenance.cjs +++ b/quality/bugbot/evidence/issue-950/execution-provenance.cjs @@ -239,17 +239,34 @@ function attestCommittedArtifact(root, file, expectedSha256, commit) { return { bytes, provenance: { commit, path: relative, blob, sha256: expectedSha256 } }; } -function requireBootstrapAdmission(root) { - const file = path.join(root, '.qualification-admission.json'); - assert(fs.existsSync(file), 'qualification requires the independently reviewed immutable bootstrap'); - assert(fs.lstatSync(file).isFile() && !fs.lstatSync(file).isSymbolicLink(), 'invalid bootstrap admission'); - const proof = JSON.parse(fs.readFileSync(file)); - assert.match(proof.bootstrapSha256 ?? '', /^[a-f0-9]{64}$/u); +// Process-local transport installed only after the external bootstrap admits +// this immutable module. A checkout file is never execution authority. This +// context is not an independent attestation of the host or of human review. +let bootstrapContext; +function initializeBootstrapContext(root, proof, spawnDriver) { + assert(!bootstrapContext, 'bootstrap context is already installed'); + root = fs.realpathSync(root); + const main = fs.realpathSync(require.main.filename); + assert(!main.startsWith(root + path.sep), 'bootstrap must execute outside the admitted checkout'); + assert.equal(hash(fs.readFileSync(main)), proof.bootstrapSha256, 'executing bootstrap identity differs'); assert.equal(hash(fs.readFileSync(path.join(root, 'quality/bugbot/evidence/issue-950/qualification-bootstrap.cjs'))), - proof.bootstrapSha256, 'bootstrap admission identity differs'); - attestCommittedArtifact(root, path.join(root, proof.planPath), proof.planSha256, proof.planCommit); + proof.bootstrapSha256, 'admitted bootstrap identity differs'); + assert.equal(typeof spawnDriver, 'function'); + bootstrapContext = Object.freeze({ root, proof: Object.freeze({ ...proof }), spawnDriver }); +} +function bootstrapAdmission(root) { + return bootstrapContext?.root === fs.realpathSync(root) ? bootstrapContext.proof : undefined; +} +function requireBootstrapAdmission(root) { + const proof = bootstrapAdmission(root); + assert(proof, 'qualification requires the independently reviewed immutable bootstrap'); return proof; } +function spawnQualificationDriver(mode, args, options) { + assert(bootstrapContext, 'qualification requires the independently reviewed immutable bootstrap'); + return bootstrapContext.spawnDriver(mode, args, options); +} module.exports = { attestSource, attestRuntime, attestDrivers, runtimeIdentity, dependencyIdentity, admitQualificationModules, - pinnedGit, gitEnvironment, trustedGitExecutable, attestCommittedArtifact, requireBootstrapAdmission }; + pinnedGit, gitEnvironment, trustedGitExecutable, attestCommittedArtifact, requireBootstrapAdmission, + bootstrapAdmission, initializeBootstrapContext, spawnQualificationDriver }; diff --git a/quality/bugbot/evidence/issue-950/normal-flow-shadow/run.cjs b/quality/bugbot/evidence/issue-950/normal-flow-shadow/run.cjs index b73fd1adf..e79c4f008 100644 --- a/quality/bugbot/evidence/issue-950/normal-flow-shadow/run.cjs +++ b/quality/bugbot/evidence/issue-950/normal-flow-shadow/run.cjs @@ -1,5 +1,7 @@ 'use strict'; +if (require.main === module) throw new Error('Use the independently reviewed immutable bootstrap; direct qualification runners are unsupported.'); + const assert = require('node:assert/strict'); const { execFileSync } = require('node:child_process'); const { createHash } = require('node:crypto'); @@ -322,11 +324,4 @@ async function run(lab, number, destination, manifestPath = path.join(__dirname, } } -if (require.main === module) { - run(...process.argv.slice(2)).catch(error => { - console.error(error); - process.exitCode = 1; - }); -} - -module.exports = { selectVerifierProfiles, verifyMatchedCandidate, normalFlowDrivers }; +module.exports = { run, selectVerifierProfiles, verifyMatchedCandidate, normalFlowDrivers }; diff --git a/quality/bugbot/evidence/issue-950/qualification-bootstrap.cjs b/quality/bugbot/evidence/issue-950/qualification-bootstrap.cjs index 4c8643cda..612c7634e 100644 --- a/quality/bugbot/evidence/issue-950/qualification-bootstrap.cjs +++ b/quality/bugbot/evidence/issue-950/qualification-bootstrap.cjs @@ -9,7 +9,7 @@ const fs = require('node:fs'); const path = require('node:path'); const os = require('node:os'); const { createHash } = require('node:crypto'); -const { execFileSync, spawn } = require('node:child_process'); +const { execFileSync, fork } = require('node:child_process'); const sha256 = bytes => createHash('sha256').update(bytes).digest('hex'); const prefix = 'quality/bugbot/evidence/issue-950/'; const ev07 = ['configuration.cjs', 'implementation.cjs', 'load.cjs', 'corpus.cjs', 'review.cjs', @@ -17,7 +17,8 @@ const ev07 = ['configuration.cjs', 'implementation.cjs', 'load.cjs', 'corpus.cjs const normal = ['run.cjs', '../execution-provenance.cjs', '../ev07-shadow/load.cjs', '../ev07-shadow/implementation.cjs', '../ev07-shadow/configuration.cjs', '../qualification-bootstrap.cjs']; const entries = Object.freeze({ corpus: 'ev07-shadow/corpus.cjs', - 'full-review': 'ev07-shadow/launch-full-review.cjs', 'normal-flow': 'normal-flow-shadow/run.cjs' }); + 'full-review': 'ev07-shadow/launch-full-review.cjs', 'normal-flow': 'normal-flow-shadow/run.cjs', + 'full-review-runner': 'ev07-shadow/full-review.cjs', review: 'ev07-shadow/review.cjs' }); function safePath(value) { assert(typeof value === 'string' && value.length && !path.isAbsolute(value) @@ -68,7 +69,7 @@ function committed(git, revision, relative) { return git('cat-file', 'blob', blob); } -async function launch(repository, revision, planPath, planSha256, bootstrapSha256, mode, ...args) { +function reviewedPlan(repository, revision, planPath, planSha256, bootstrapSha256, mode) { assert(!process.env.NODE_OPTIONS && !process.env.NODE_PATH && process.execArgv.length === 0, 'bootstrap requires trusted Node without preloads or loader overrides'); assert.match(revision ?? '', /^[a-f0-9]{40}$/u, 'reviewed plan commit required'); @@ -76,8 +77,6 @@ async function launch(repository, revision, planPath, planSha256, bootstrapSha25 assert.match(bootstrapSha256 ?? '', /^[a-f0-9]{64}$/u, 'independently reviewed bootstrap digest required'); assert.equal(sha256(fs.readFileSync(__filename)), bootstrapSha256, 'reviewed bootstrap differs'); assert(Object.hasOwn(entries, mode), 'unsupported qualification entrypoint'); - assert(mode === 'normal-flow' ? args.length === 3 : mode === 'full-review' ? args.length === 1 - : args.length === 1 || args.length === 2 && args[1] === '--preflight', 'invalid qualification arguments'); const root = fs.realpathSync(repository), trust = gitFor(root), { git } = trust; assert.equal(git('rev-parse', '--verify', revision + '^{commit}').toString('utf8').trim(), revision); assert.equal(sha256(committed(git, revision, prefix + 'qualification-bootstrap.cjs')), bootstrapSha256, @@ -99,6 +98,53 @@ async function launch(repository, revision, planPath, planSha256, bootstrapSha25 assert(fs.readFileSync(physical(root, relative)).equals(trusted), 'working driver differs: ' + driver); admitted.push([relative, trusted]); } + return { root, trust, bytes, plan, admitted }; +} + +function spawnAdmitted(request, env, options = {}) { + assert(Object.keys(options).every(key => key === 'stdio'), 'unsupported qualification child options'); + assert.equal(sha256(fs.readFileSync(__filename)), request.proof.bootstrapSha256, 'executing bootstrap changed'); + const io = options.stdio ?? 'inherit'; + const stdio = Array.isArray(io) ? [...io, 'ipc'] : [io, io, io, 'ipc']; + const child = fork(__filename, ['--admitted-worker'], { env, stdio, execArgv: [], cwd: process.cwd() }); + child.send(request, error => { if (error) child.emit('error', error); }); + return child; +} + +async function executeAdmitted(request) { + assert(request && Array.isArray(request.args) && request.args.every(arg => typeof arg === 'string'), + 'invalid admitted invocation'); + const { root: repository, proof, mode } = request; + const { root, plan } = reviewedPlan(repository, proof.planCommit, proof.planPath, + proof.planSha256, proof.bootstrapSha256, mode); + // The executing file is still the externally materialized bootstrap. Repeat + // private-byte/source/runtime checks before loading any private driver in + // each child. No receipt in this checkout is read as execution authority. + const verifier = require(path.join(root, prefix, 'execution-provenance.cjs')); + verifier.attestSource(root, plan.implementation); + verifier.attestRuntime(root, plan.runtime); + verifier.initializeBootstrapContext(root, proof, (nextMode, args, options) => { + assert(mode === 'full-review' && nextMode === 'full-review-runner' + || mode === 'full-review-runner' && nextMode === 'review', 'unadmitted qualification child route'); + const corpusCampaign = mode === 'full-review' ? request.args[0] : request.corpusCampaign; + return spawnAdmitted({ root, proof, mode: nextMode, args, corpusCampaign }, process.env, options); + }); + if (mode === 'review') { + assert(typeof request.corpusCampaign === 'string', 'paired review requires its passing corpus'); + require(path.join(root, prefix, entries['full-review'])).requirePassingCorpus(request.corpusCampaign); + } + const driver = require(path.join(root, prefix, entries[mode])); + assert.equal(typeof driver.run, 'function', 'admitted driver entry is unavailable'); + return driver.run(...request.args); +} + +async function launch(repository, revision, planPath, planSha256, bootstrapSha256, mode, ...args) { + assert(['corpus', 'full-review', 'normal-flow'].includes(mode), 'unsupported public qualification entrypoint'); + assert(mode === 'normal-flow' ? args.length === 3 : mode === 'full-review' ? args.length === 1 + : args.length === 1 || args.length === 2 && args[1] === '--preflight', 'invalid qualification arguments'); + const { root, trust, bytes, plan, admitted } = reviewedPlan(repository, revision, + planPath, planSha256, bootstrapSha256, mode); + assert(!fs.realpathSync(__filename).startsWith(root + path.sep), 'materialize the reviewed bootstrap outside the checkout'); const scratch = fs.realpathSync(fs.mkdtempSync(path.join(os.tmpdir(), 'bugbot-qualified-source-'))); fs.chmodSync(scratch, 0o700); const isolated = path.join(scratch, 'source'); @@ -125,8 +171,6 @@ async function launch(repository, revision, planPath, planSha256, bootstrapSha25 verifier.attestSource(isolated, plan.implementation); verifier.attestRuntime(isolated, plan.runtime); const proof = { bootstrapSha256, planCommit: revision, planPath, planSha256 }; - fs.writeFileSync(path.join(isolated, '.qualification-admission.json'), JSON.stringify(proof), - { flag: 'wx', mode: 0o600 }); // The application evidence adapter also invokes the bare Git command. // Bind that lookup to the admitted OS executable without changing how // Node/Codex or any other normal detector executable is selected. @@ -149,8 +193,7 @@ async function launch(repository, revision, planPath, planSha256, bootstrapSha25 env.PILOT_LOCAL_PYTHON = plan.runtime.pythonExecutable; } const childArgs = mode === 'normal-flow' ? [...args, path.join(isolated, planPath)] : args; - const child = spawn(process.execPath, [path.join(isolated, prefix, entries[mode]), ...childArgs], - { env, stdio: 'inherit', cwd: process.cwd() }); + const child = spawnAdmitted({ root: isolated, proof, mode, args: childArgs }, env); const interrupt = () => child.kill('SIGINT'), terminate = () => child.kill('SIGTERM'); process.once('SIGINT', interrupt); process.once('SIGTERM', terminate); @@ -167,5 +210,15 @@ async function launch(repository, revision, planPath, planSha256, bootstrapSha25 } module.exports = { launch }; -if (require.main === module) launch(...process.argv.slice(2)).then(code => { process.exitCode = code; }) - .catch(error => { console.error(error.message); process.exitCode = 1; }); +if (require.main === module) { + const fail = error => { console.error(error.message); process.exitCode = 1; }; + if (process.argv[2] === '--admitted-worker') { + if (!process.send || !process.connected) fail(new Error('admitted worker requires the external bootstrap IPC channel')); + else process.once('message', request => { + process.disconnect(); + executeAdmitted(request).then(code => { + process.exitCode = Number.isInteger(code) ? code : code?.status === 'interrupted' ? 130 : 0; + }).catch(fail); + }); + } else launch(...process.argv.slice(2)).then(code => { process.exitCode = code; }).catch(fail); +} diff --git a/quality/bugbot/evidence/issue-950/qualification-bootstrap.test.cjs b/quality/bugbot/evidence/issue-950/qualification-bootstrap.test.cjs index 182489e15..02f0d6286 100644 --- a/quality/bugbot/evidence/issue-950/qualification-bootstrap.test.cjs +++ b/quality/bugbot/evidence/issue-950/qualification-bootstrap.test.cjs @@ -5,13 +5,14 @@ const fs = require('node:fs'); const path = require('node:path'); const os = require('node:os'); const { createHash } = require('node:crypto'); -const { execFileSync, spawnSync } = require('node:child_process'); +const { execFileSync, spawnSync, spawn } = require('node:child_process'); +const { once } = require('node:events'); const { test } = require('node:test'); const proof = require('./execution-provenance.cjs'); const hash = bytes => createHash('sha256').update(bytes).digest('hex'); const prefix = 'quality/bugbot/evidence/issue-950/'; -function fixture(t, crlfCheckout = false, brokerGit = false) { +function fixture(t, crlfCheckout = false, brokerGit = false, cancellation = false) { const directory = fs.mkdtempSync(path.join(os.tmpdir(), 'qualified-bootstrap-control-')); t.after(() => fs.rmSync(directory, { recursive: true, force: true })); const root = path.join(directory, 'project'); @@ -36,13 +37,22 @@ function fixture(t, crlfCheckout = false, brokerGit = false) { for (const file of drivers) write(path.posix.normalize(prefix + 'normal-flow-shadow/' + file), 'module.exports = {};\n'); write(prefix + 'execution-provenance.cjs', fs.readFileSync(path.join(__dirname, 'execution-provenance.cjs'))); write(prefix + 'qualification-bootstrap.cjs', fs.readFileSync(path.join(__dirname, 'qualification-bootstrap.cjs'))); - write(prefix + 'normal-flow-shadow/run.cjs', 'const fs=require("node:fs");fs.writeFileSync(process.argv[4],JSON.stringify({cwd:process.cwd(),isolated:__dirname,mode:process.env.BUGBOT_VERIFICATION_MODE}));\n'); + write(prefix + 'normal-flow-shadow/run.cjs', 'exports.run=(lab,number,output)=>{const fs=require("node:fs"),path=require("node:path"),' + + 'root=path.resolve(__dirname,"../../../../..");fs.writeFileSync(output,JSON.stringify({cwd:process.cwd(),isolated:__dirname,' + + 'mode:process.env.BUGBOT_VERIFICATION_MODE,admission:require("../execution-provenance.cjs").requireBootstrapAdmission(root),' + + 'checkoutReceipt:fs.existsSync(path.join(root,".qualification-admission.json"))}));};\n'); if (brokerGit) { for (const file of ['git.cjs', 'hash.cjs']) write('src/infrastructure/bugbot/shadow/' + file, fs.readFileSync(path.resolve(__dirname, '../../../../src/infrastructure/bugbot/shadow', file))); - write(prefix + 'normal-flow-shadow/run.cjs', 'const fs=require("node:fs"),{git}=require("../../../../../src/infrastructure/bugbot/shadow/git.cjs");' - + 'fs.writeFileSync(process.argv[4],JSON.stringify({head:git(process.argv[2],["rev-parse","HEAD"]).trim()}));\n'); + write(prefix + 'normal-flow-shadow/run.cjs', 'exports.run=(lab,number,output)=>{const fs=require("node:fs"),' + + '{git}=require("../../../../../src/infrastructure/bugbot/shadow/git.cjs");' + + 'fs.writeFileSync(output,JSON.stringify({head:git(lab,["rev-parse","HEAD"]).trim()}));};\n'); } + if (cancellation) write(prefix + 'normal-flow-shadow/run.cjs', + 'exports.run=(lab,number,output)=>new Promise(resolve=>{' + + 'const keepAlive=setInterval(()=>{},1000);process.once("SIGTERM",()=>{clearInterval(keepAlive);' + + 'require("node:fs").writeFileSync(output,"interrupted");resolve(143);});' + + 'process.stdout.write(JSON.stringify({ready:true,pid:process.pid})+"\\n");});\n'); if (crlfCheckout) write('.gitattributes', '*.cjs text eol=crlf\n'); git('add', '.'); git('-c', 'user.name=Fixture', '-c', 'user.email=fixture@example.invalid', 'commit', '--quiet', '-m', 'Trusted fixture implementation'); @@ -69,6 +79,8 @@ test('the reviewed external bootstrap runs immutable drivers in a disposable pri const result = JSON.parse(fs.readFileSync(f.output)); assert.equal(result.cwd, fs.realpathSync(f.directory)); assert.equal(result.mode, 'disabled'); + assert.equal(result.admission.planCommit, f.revision); + assert.equal(result.checkoutReceipt, false); assert.notEqual(result.isolated, path.join(f.root, prefix, 'normal-flow-shadow')); assert.equal(fs.existsSync(result.isolated), false, 'private source is removed after execution'); assert.equal(fs.existsSync(f.marker), false); @@ -170,3 +182,121 @@ test('the actual application Git adapter cannot execute an inherited PATH shim a assert.equal(JSON.parse(fs.readFileSync(f.output)).head, f.revision); assert.equal(fs.existsSync(f.marker), false, 'the admitted application adapter uses the pinned OS Git'); }); + +test('a self-consistent checkout receipt is not bootstrap admission', t => { + const f = fixture(t); + const fabricated = { bootstrapSha256: hash(fs.readFileSync(f.bootstrap)), + planCommit: f.revision, planPath: f.planPath, planSha256: f.planSha256 }; + f.write('.qualification-admission.json', JSON.stringify(fabricated)); + const previous = path.join(f.directory, 'previous-verifier.cjs'); + // Preserve the actual historical bytes without depending on an unmerged + // branch commit remaining fetchable after squash or branch cleanup. + const legacy = require('node:zlib').gunzipSync(fs.readFileSync(path.join(__dirname, + '../issue-970/legacy-verifier-01097099.cjs.gz'))); + assert.equal(hash(legacy), 'c0471ff35e10cd39ff75a84e02830f4aa98f6f97bb3b47345e241cb77d3877d8'); + fs.writeFileSync(previous, legacy); + assert.deepEqual(require(previous).requireBootstrapAdmission(f.root), fabricated, + 'the previous verifier accepts this receipt without any external bootstrap invocation'); + assert.throws(() => proof.requireBootstrapAdmission(f.root), /independently reviewed immutable bootstrap/u); +}); + +test('a direct runner refuses a forged receipt before importing a checkout verifier', t => { + const f = fixture(t); + f.write('.qualification-admission.json', JSON.stringify({ bootstrapSha256: hash(fs.readFileSync(f.bootstrap)), + planCommit: f.revision, planPath: f.planPath, planSha256: f.planSha256 })); + f.write(prefix + 'shadow-real-prs/official.json', '{}'); + f.write(prefix + 'shadow-verification/plan.json', '{}'); + f.write(prefix + 'execution-provenance.cjs', 'require("node:fs").writeFileSync(' + + JSON.stringify(f.marker) + ',"imported");\n' + fs.readFileSync(path.join(__dirname, 'execution-provenance.cjs'))); + const runner = path.join(f.root, prefix, 'normal-flow-shadow/run.cjs'); + f.write(prefix + 'normal-flow-shadow/run.cjs', fs.readFileSync(path.join(__dirname, 'normal-flow-shadow/run.cjs'))); + const run = spawnSync(process.execPath, [runner, 'lab', '1', f.output, fs.realpathSync(path.join(f.root, f.planPath))], + { cwd: f.directory, encoding: 'utf8' }); + assert.notEqual(run.status, 0); + assert.equal(fs.existsSync(f.marker), false); + assert.match(run.stderr, /independently reviewed immutable bootstrap/u); + assert.equal(fs.existsSync(f.output), false); +}); + +test('an internal bootstrap worker refuses direct invocation without its parent IPC channel', t => { + const f = fixture(t); + const run = spawnSync(process.execPath, [f.bootstrap, '--admitted-worker'], { encoding: 'utf8' }); + assert.notEqual(run.status, 0); + assert.match(run.stderr, /external bootstrap IPC channel/u); + assert.equal(fs.existsSync(f.marker), false); + assert.equal(fs.existsSync(f.output), false); +}); + +function nestedFixture(t, tamper) { + const f = fixture(t); + const names = ['configuration.cjs', 'implementation.cjs', 'load.cjs', 'corpus.cjs', 'review.cjs', + 'full-review.cjs', 'launch-full-review.cjs', 'score-review.py', '../execution-provenance.cjs', '../qualification-bootstrap.cjs']; + const base = prefix + 'ev07-shadow/'; + for (const name of names.filter(name => !name.startsWith('../'))) f.write(base + name, 'module.exports={};\n'); + const wait = 'const wait=child=>new Promise((resolve,reject)=>{child.once("error",reject);child.once("close",code=>resolve(code??1));});'; + f.write(base + 'launch-full-review.cjs', wait + + 'exports.requirePassingCorpus=campaign=>campaign;exports.run=campaign=>wait(require("../execution-provenance.cjs")' + + '.spawnQualificationDriver("full-review-runner",[campaign]));\n'); + f.write(base + 'full-review.cjs', 'const fs=require("node:fs"),path=require("node:path"),helper=require("../execution-provenance.cjs");' + + wait + 'exports.run=campaign=>{' + + (tamper ? 'const file=path.resolve(__dirname,"../execution-provenance.cjs");' + + 'fs.writeFileSync(file,\'require("node:fs").writeFileSync(\'+JSON.stringify(' + + JSON.stringify(f.marker) + ')+\',"executed");\\n\'+fs.readFileSync(file));' : '') + + 'return wait(helper.spawnQualificationDriver("review",["fixture-checkout","id","1",' + + JSON.stringify(f.output) + '],{stdio:"inherit"}));};\n'); + f.write(base + 'review.cjs', 'exports.run=(checkout,id,repetition,output)=>{const fs=require("node:fs"),path=require("node:path"),' + + 'root=path.resolve(__dirname,"../../../../..");fs.writeFileSync(output,JSON.stringify({admission:' + + 'require("../execution-provenance.cjs").requireBootstrapAdmission(root),' + + 'checkoutReceipt:fs.existsSync(path.join(root,".qualification-admission.json"))}));};\n'); + const plan = { implementation: f.plan.implementation, publication: 'dry-run', runtime: proof.runtimeIdentity(f.root), + inspectedArtifacts: Object.fromEntries(names.map(name => [name, hash(fs.readFileSync(path.join(f.root, base, name)))])) }; + const relative = base + 'fixture-plan.json';f.write(relative, JSON.stringify(plan));f.git('add', '.'); + f.git('-c', 'user.name=Fixture', '-c', 'user.email=fixture@example.invalid', 'commit', '--quiet', '-m', 'Reviewed nested-driver fixture'); + const revision = f.git('rev-parse', 'HEAD'); + const result = spawnSync(process.execPath, [f.bootstrap, f.root, revision, relative, + hash(fs.readFileSync(path.join(f.root, relative))), hash(fs.readFileSync(f.bootstrap)), 'full-review', f.directory], + { cwd: f.directory, encoding: 'utf8' }); + return { ...f, result, revision }; +} + +test('nested qualification workers receive process-local admission through the reviewed external bootstrap', t => { + const f = nestedFixture(t, false); + assert.equal(f.result.status, 0, f.result.stderr); + const result = JSON.parse(fs.readFileSync(f.output)); + assert.equal(result.admission.planCommit, f.revision); + assert.equal(result.checkoutReceipt, false); + assert.equal(fs.existsSync(f.marker), false); +}); + +test('each nested worker rechecks private driver bytes before importing a changed verifier', t => { + const f = nestedFixture(t, true); + assert.notEqual(f.result.status, 0); + assert.match(f.result.stderr, /working driver differs/u); + assert.equal(fs.existsSync(f.marker), false); + assert.equal(fs.existsSync(f.output), false); +}); + +test('explicit cancellation reaches the admitted worker and preserves its interrupted exit', { timeout: 30000 }, async t => { + // This timeout cleans up an owned synthetic fixture, never a model investigation. + const f = fixture(t, false, false, true); + const child = spawn(process.execPath, [f.bootstrap, f.root, f.revision, f.planPath, f.planSha256, + hash(fs.readFileSync(f.bootstrap)), 'normal-flow', 'relative-lab', '1', f.output], + { cwd: f.directory, stdio: ['ignore', 'pipe', 'pipe'] }); + let workerPid, stderr = ''; + child.stderr.on('data', bytes => { stderr += bytes; }); + t.after(() => { + if (child.exitCode === null) { + child.kill('SIGKILL'); + if (workerPid) try { process.kill(workerPid, 'SIGKILL'); } catch (error) { if (error.code !== 'ESRCH') throw error; } + } + }); + const [bytes] = await Promise.race([once(child.stdout, 'data'), once(child, 'close').then(() => { + throw new Error('fixture exited before readiness: ' + stderr); + })]); + const ready = JSON.parse(bytes.toString());workerPid = ready.pid;assert.equal(ready.ready, true); + child.kill('SIGTERM'); + const [code, signal] = await once(child, 'close'); + assert.equal(signal, null, stderr); + assert.equal(code, 143, stderr); + assert.equal(fs.readFileSync(f.output, 'utf8'), 'interrupted'); +}); diff --git a/quality/bugbot/evidence/issue-970/README.md b/quality/bugbot/evidence/issue-970/README.md index edfe3e4e0..3780eb761 100644 --- a/quality/bugbot/evidence/issue-970/README.md +++ b/quality/bugbot/evidence/issue-970/README.md @@ -180,3 +180,63 @@ the required complete validation. Both raw outputs are lossless gzip. - `planner-final-hook-sigsegv.log.gz`: original bytes 526237, SHA-256 `03e97b4a5a1b5e74815262999194f81a7df311359c5cfb5229790c9255010eef`. - `planner-final-hook-focused.log.gz`: original bytes 193, SHA-256 `677fe194c74955c922514e93ef4010100248ff690cc0c8403599582800c4b98b`. + + +## Forged checkout receipt and external execution context + +The final01097099 native review found that a checkout-written admission file +could supply its own matching bootstrap/plan digests. The actual old verifier +accepts that fabricated record without any external bootstrap invocation. A +second causal control observes the direct runner importing a checkout verifier. +Both former behaviors fail the new rejection assertions; these failures remain. +The first negative run also exposed the existing logical macOS path alias in a +fixture argument; the corrected counter-control uses its physical manifest path. + +Qualification no longer reads or creates .qualification-admission.json. Direct +driver CLIs reject before helper imports. After admitting source/dependencies, +the independently reviewed external bootstrap forks that same external file, +sends verified context through its parent IPC channel, repeats private-byte and +runtime verification in the worker, and calls the driver as a module. Context +is process-local and bound to that executing bootstrap identity. Nested paired +workers follow the same path and recheck their corpus gate. IPC and in-process +context are transport, not independent host or human-review attestation. The +operator must still verify the external Git blob/hash before starting trusted Node. + +Six new controls cover fabricated receipt, direct pre-import refusal, missing +worker IPC, actual nested positive route, changed private verifier before a nested +import, and explicit SIGTERM propagation. The nested fixture uses pinned fake +corpus/worker ports to test transport; it is no corpus or qualification result. +The cancellation fixture initially exited before handling the signal; that failure +is retained. Its owned keep-alive now models an active worker and is cleared on +cancellation. The fixture-only cleanup timeout never bounds a model investigation. + +All **193/193** combined controls pass, with zero skipped/cancelled tests, model +calls or evaluated-PR writes. The prior **192/192** run before adding the explicit +signal case is retained separately; the bootstrap minimum is now19 cases. +Application source, shipping bundles, consumer templates and frozen historical +campaign bytes remain unchanged. Qualification driver identities change and need +a new exact preregistration before any future measurement. +Full mandatory hook, specification/docs/catalog checks and new-SHA native review +remain separate delivery checks; no new campaign, installation or qualification +is claimed by these deterministic results. + +Lossless raw-log inventory: + +The real previous verifier from commit `01097099d220bd481f6e50b58d2213165bcf6194` +is also frozen as `legacy-verifier-01097099.cjs.gz` (15,205 original bytes, +SHA-256 `c0471ff35e10cd39ff75a84e02830f4aa98f6f97bb3b47345e241cb77d3877d8`). +The causal control checks that digest before using the code on its disposable +fixture. It does not rely on the managed branch remaining fetchable after squash. + +- `forged-receipt-first-negative.log.gz`: 4835 original bytes; SHA-256 `cec885537a2dd908d329fadc5a993a94d1e3d56371635901ecc2dadf62da465a`. +- `forged-receipt-causal-negative.log.gz`: 2081 original bytes; SHA-256 `a87078ab93b86fc2a61cc8e214c9e45548d09aff8bdb33afefb55ec7f62d9efb`. +- `forged-receipt-focus-pass.log.gz`: 293 original bytes; SHA-256 `a3faa77cb0e9c3def85be302a2370c1dfd05e472601bc4bd96c238668a491199`. +- `memory-bootstrap-18-pass.log.gz`: 2886 original bytes; SHA-256 `88e211735b9318dd0252d15dd3d9a72f76082892b563e73e753f493cd9116c33`. +- `memory-shadow-192-pass.log.gz`: 20375 original bytes; SHA-256 `0fe14ffcd31dc7c648b36e3459da9c535dbf2c975de6d99c251f81a88cd8c1cc`. +- `memory-cancel-fixture-negative.log.gz`: 1163 original bytes; SHA-256 `085cd38dd9830364811559c629e2771d18fa27e9729cf4c8cfaa81705737f8fc`. +- `memory-cancel-pass.log.gz`: 218 original bytes; SHA-256 `d850cb50598e801927753bb0cbc4e05abe49c4e57db5e12b5bf6735457470853`. +- `memory-shadow-193-pass.log.gz`: 20461 original bytes; SHA-256 `55fedbc9dcd2c2d62c81c4e16e3110a93d5daf27505a214d4a04d0557b0d3404`. + +The final replay using the frozen legacy source also passes **193/193** controls. + +- `memory-frozen-final-shadow-193.log.gz`: 20469 original bytes; SHA-256 `5f80b7559e8a4085089ff8d0a0b5b111e55dcc67804c29fac29219cf57aef2c4`. diff --git a/quality/bugbot/evidence/issue-970/forged-receipt-causal-negative.log.gz b/quality/bugbot/evidence/issue-970/forged-receipt-causal-negative.log.gz new file mode 100644 index 0000000000000000000000000000000000000000..d407d9525ca19d9662a831be492f378b757171f4 GIT binary patch literal 716 zcmV;-0yF&|iwFP!00002|IJj(ZWA#S-RCRJs;NXW$>cc}MG7d3E($2=4xz~L+(}Gl z?7`O#jSxG&ffYZ(@AON!o=MXdD6OCfqA2nB`kdqYICJskGZPFU&sx%GROmoECf6X( zjCag}1XVhwkZI%C(in%%ijs-6P>9NC)*L2Ddo=F!yQ2aR8y6K}st8GNuQga=$vgtm zerD_n(mm}GXakrkN@JbUD>|{4-hfq^B6M>Y_uC2a4{L!>Uzr1R$l_{^UeP1#R1c-V z%Vj21zB?j?mXPNpT!-*XmF51)nbho-skg#WQi}pvw?}ym1~KK;sIm%#;f|F!Z#2R` z6OO&}B3Eu3E&Xa~T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iy85!^`6ZfTh z6ZoBtxi}F?nSnFJaz&be_34+}ZFFU-+)Pk(EAsk&-wg4sfpMm42N=KAX+>UZyGiEU zF6MMX552p`wOxVQ?ZA-QU7$H8r2_k7Hz>d3VVJg?RCNsei4)`qQ@wmE5RJT}%CyD_ zW&Fc7CAdG#@j&E-n|o_b43Dm4h80K@1W~(7KHZYt#$nfo_P24_d%k~-bH!=v(v6$E zre(Q?e1o=Ly}AjxzfN5@w0%a1Y8e0L_aVRKy^Q-1&Wac__!c=0Ikmpvs0Y#d9c<~| z9WbHv=`Ob5UEI|B_qfsS__rfx!}A39vtax6%+}wox3m3cB>EqO-~XSq{v)vY6Oj1h zxciZm{aB`cG(kTbFMkIe-^aq+$@ebjZlKx?411SYkx%!Z_7&8=d~JUN{RgYX8?NIL F005s>HO2q{ literal 0 HcmV?d00001 diff --git a/quality/bugbot/evidence/issue-970/forged-receipt-focus-pass.log.gz b/quality/bugbot/evidence/issue-970/forged-receipt-focus-pass.log.gz new file mode 100644 index 0000000000000000000000000000000000000000..0850951e22b241814344d66ebe277b2019bd7e73 GIT binary patch literal 216 zcmV;}04M(+iwFP!00002|2>bvZNo4OMemt{$K=q!acirdCQu|QC1Q($NOgjakYg9= zI+>(|oBHQm<6h#I4RZAm7=vF9R{{7@>e!9Wufb(p_e=IjDWh3RtPZ?YFYEPXP0e5o8 SY3TayefJC0H1=*K0RRAYK4NwN literal 0 HcmV?d00001 diff --git a/quality/bugbot/evidence/issue-970/legacy-verifier-01097099.cjs.gz b/quality/bugbot/evidence/issue-970/legacy-verifier-01097099.cjs.gz new file mode 100644 index 0000000000000000000000000000000000000000..26fb1bad8f01dfb8527f575ff9ad76c705c58784 GIT binary patch literal 4577 zcmV<75gzUziwFP!00002|HWHvbK5o&{@!1K%ydffDp5`+X|Bq+xg>SlbW%GPyK{5n zC>e@^B*qlU0;Fuk@qfSF#R~zFQquNr&NGQ65?Cx2`||8!9W;_NS&J;KgU4Tdk(Pz5 zSt2DDH9Ka4|K4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E&icWv_mJs=MMd zDzW}aT8`rMJ*Kiw%o=1F4WKWl_HRA9MsyJ5b-7n7R(VoT%IQ8ZtG7=SQQwZ}Eor|> z&SSg}71V!q>-`nM$WN+9eugpX=1-%6I>l&zjZ(?b2A@$UWgQLX@}qsi8tu1WH1+=g L9AM8>Wjg=>fH2XB literal 0 HcmV?d00001 diff --git a/quality/bugbot/evidence/issue-970/memory-bootstrap-18-pass.log.gz b/quality/bugbot/evidence/issue-970/memory-bootstrap-18-pass.log.gz new file mode 100644 index 0000000000000000000000000000000000000000..8b82cde48de52359265981c6bc05484911ab3c3c GIT binary patch literal 978 zcmV;@11H_NV+2J7OaEM6j43*b^!_T^4Oi zLXx|>SaSrHT!iaz5>m3O?3w9-9$?Y6vVQsUy?jd5nOh~*=?jnwe2;L}_MXNdw7G!p z;PuZFAEdwB9jDV#`#XG)Eh>R`(zyxutW0Stt@p0ytv=rgtvY#{Eca5YMEvAle-7V$ z1!p-7a73_Z1}?CL;|1P)PYVH3;iCsHM})5>edtN_=s@~c=l?f1Ihp}SRQ@Fqvd0rlp zDm@&^W^|uLI1Zxc>J+h__5cX3l=jOy601&I+@!$Uk(8l>uq#=eWUTlw_{S^xN#QG& zWKCYwl&Fl!j8qM=m@$%#(|JZ}oKQBZ!-f83JK)p?1=1 zdjZ3J54)ntk~%M{s(wD$%*Mf_*1b|0;=b^kTwq6HMr*g+a{{Wfgq3CeDXgwQ?lKNi z-9H1QWJyuv8&^LcBm|WwwZ9qVAF=9${CCLee~&evc#e37gw~ z%Fm5y$I>QA(}I3ih;V@XNgWe-@Z%y%NQ<}J&}DkR1;k6;(J2LWppa1-!Q=1HEDSvMVQRy43vgnlh055+vi zt2KwcwJoEq52fTQG_{n_c<7QBtVzo1{r>eqj}I@>25d=z8l7ImJ4@e($l>-IDiRU> z_U)TkO@#vyNsELvtXY8+`I6Fo=iyp#+)UyjJQ`Y{bNhjChK(@Wrt)`h)2_&yJgIWF zDL-=2U(s*8qBQRINX?Jf(!rioa(3w|WX=vvQe|n)@(A?nA3$eGjjV|SH^~qyjRV8o zZK30GSf)jI;iBi~vAdVX+(urvdiiXZKej*89m-gmk?EQ&XZfqY0Po^Vjz$Xr0D<=C A9smFU literal 0 HcmV?d00001 diff --git a/quality/bugbot/evidence/issue-970/memory-cancel-fixture-negative.log.gz b/quality/bugbot/evidence/issue-970/memory-cancel-fixture-negative.log.gz new file mode 100644 index 0000000000000000000000000000000000000000..8f8d9c141a97bae47a7c040ff599aa5761cb30da GIT binary patch literal 580 zcmV-K0=xYmiwFP!00002|GiSdZrd;nz2_@#K zQYAS}I_$P@=xIN)-|3f(cHFhtfL#VufFY75AK#<+^y3lm;Ixt|f)qxg)*>ovz@w0B z3=r1{qS~n#v4VT+x9CBb3Y^D)eoq-H(q|%iU%Ms=4}^7=6_YZ}FY{rM?ZTk<^!+D9 z43wI+cBmD(Fl-$s!n3&)N_Qz89YQ?)3R~seZ!g-)c4k%kmh*f^=w(@^m*Yv6m%ZK- zscQh0S)H2mUaz@9M7XPkR`JLd^=e@w!@a7I`Y{zkjme}OvNmI>WQ(0Ftc@Xh;nD^n zm7BoxQOUEm$(xK2VCuc~9H!Sd)9V=rV`+?X4NIjFtcOZ@l+pU*Iar4V`fM*eTUuSA z4@^F=dn0%A2YDz)<#=;n94^Ysa$7wVLpm$RX3vtbdXbw*YofP0S(r^IJ~QH6>zHnW zHGQJg9Gd3MVneM{Qe1r^Hn&G3;mp_y`7-cgT=0B2c*&m81V0ii9%A}V7;BC@TZi{> z#++As5s}56W70aMZA?~H=wveL9^^ltY*O+(dqu^0D=~z$yJt#n!+M?288OtHb&s$eE)zClfQU4SR#~_8)6mE8>3px?k S{7v@gTkjX!p%)B`1ONa%To%;; literal 0 HcmV?d00001 diff --git a/quality/bugbot/evidence/issue-970/memory-cancel-pass.log.gz b/quality/bugbot/evidence/issue-970/memory-cancel-pass.log.gz new file mode 100644 index 0000000000000000000000000000000000000000..06da63cc88aaac7cfada8c9af7668f9cff0ddaa3 GIT binary patch literal 174 zcmV;f08#%RiwFP!00002|2>Yu4Z<)G1picVPxwRx$q7`0Ec;MSact}E0x5tJc+v>% zq!LUBJXYFStyVifAAnO1dt|WDLuM4@YiW=c zMMdT@e@Zx&t!>@5P1Txuklkj!zd%t+uU@>2R1o$HWGlb?VkxZY`lZZ$S$fL(PnvvM ctsi+gd>+cm(VQyNnC4(MZ(EGPINAUJ0JmIC@c;k- literal 0 HcmV?d00001 diff --git a/quality/bugbot/evidence/issue-970/memory-frozen-final-shadow-193.log.gz b/quality/bugbot/evidence/issue-970/memory-frozen-final-shadow-193.log.gz new file mode 100644 index 0000000000000000000000000000000000000000..8364b487d14a496c013e18a7e2b1afc000f1dcf9 GIT binary patch literal 6036 zcmV;F7i;JriwFP!00002|IJ+6j@(9)efL)o^Wq*rMe%+S;K3NW*ur{cuO!b5FffEH zGOLOs7RlkITQ$%73H!J|vcI!mvL_-l$z)eca<|G@8?dDAVn$>}#^uC?_0^x8KVP4^ zQeHnU+ODeG@z0^_d#)ckqa4O3+iAaT$IWmMWqY%^mVLFW3Ncn~<2>&A>ROEQ@p$aa z;?2Gl^(Iffum0pTZ7H42hR8VooJ3uXr^kxiV|iVbvMJ=_Y8WQD$z$&^KVfKZwrx8O zV=p?Fmb=A2hF?MAj!izcf4C2=rtOb7$*u-LMHfeGcGdn1iF9H-4ELcSuf5bPuEo?8 zhs|!P>rIbm<;_DWsnwf)YR2j)A4+8?+FpL)PP$s$>tcpcjMK0wL|<;YXt2&sG7ZlJ$KXK?4h}i7@e{ja3{sVxk_`_OFTbGj>8{s zEfw_+S1HR+EDqf`NzYbRP0=2^TH^7KE=^K53&J!$TRgU{vy(SYAqF{ol64w*aTcBt z*omtC)TVt0YPhFw!uO zv&%8jt_eqgZMb2aLdPyjy}@rlJda_xN$#f?6n!sAVU=w1G;%#SF3ZNgn1Rw;&<^=-R@!p4E`hJJKO!6CNEYTw+!Es5co zeJ{&?3w8?4$lfrEvnX=I-1n0UN>T?Q4N^8GAS>B@m?G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+lJFB%QQm9rMBN(_{_DyMsr#r z`ekl#jdAo{E8jsK zWm0U<1;?0PqqU>X!qb}3tWV1h#7B|o;ndO9ky#;Q_GyARz3VD;0eJBmTF;awEY*L@ zpD<8bTkchskeyiboq!EoCbjlw+EI7BP^%L?DlR?Zs_bBF)^cYmK=}#JT&;#lmvlxI zAT{`;ljxBU`y|>#n4Xy)!Os?kA%Nip_8W^4RiBPwO2kW!c83}m znRHf>H+@<9Rv)^T(4IV1rCL4TUi4C%gPb{Rbojv9B}*RZ5Y!$yin-Zfq_N%;NiKBb zz|Z5^cGxQB`{a0eyZyx`Nv z>LHj+FBztp)zA{N+8T9it$2$=%yR{DtaQVaDzw*ZmqZa^GFpvTHcR7)Zg$B{N|igX zeA&}H;%NnLjPqE$7{=QsO6nVU@frT2sZg3^ty(KHVpO8ll3435g;76Cg19@A^Jty{zPBpr5%+h=19xm-Gp5>I%6QfYhGT^*Qtf2zdnm;`?&>IDGjJgHG`{^#}da1 z>X_@$6pyCOz=pYnXTQ0Z}6p6A6FC2E)uq_dox~QQvdn z=OOi+;S;Xvc{PXGXeD4&=B literal 0 HcmV?d00001 diff --git a/quality/bugbot/evidence/issue-970/memory-shadow-192-pass.log.gz b/quality/bugbot/evidence/issue-970/memory-shadow-192-pass.log.gz new file mode 100644 index 0000000000000000000000000000000000000000..8f7fdb44a25e1a3e5e7a133bb07a3ad0a4524e56 GIT binary patch literal 5997 zcmV-z7n0~7iwFP!00002|IJ+4uG~hFefL)o{o-msMR8vQxY33dTNsb*vE=Rs8itWY zW>vApBH3K-RrT|H!aUB8%=SJn{!vn zo5w}lRdqZ5Idpx`^+RWr!}w%39d_-w9gd=GZ?`wHul7|T#;R?c$6a6Dh*3TsPn~&q zduTVrq)x zc0bkiw#Rqn?Wa;wPjCCF8LN~0R4PN!_VP1V($(TY2Q!RfoQ7>7`f}S%yV@Ky|9?2j zekS(C7ytX;|K;rJws<=@!a0FP)f^nGxtj*(0L^v8=#%zCDE01nwrYy@)YTFXe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oylWm+o literal 0 HcmV?d00001 diff --git a/quality/bugbot/evidence/issue-970/memory-shadow-193-pass.log.gz b/quality/bugbot/evidence/issue-970/memory-shadow-193-pass.log.gz new file mode 100644 index 0000000000000000000000000000000000000000..1beb117e3513fe61ff059248cfd81dce7adffe0d GIT binary patch literal 6034 zcmV;D7j5VtiwFP!00002|IJ+Mj@-tT{_m$C@+TcYP4Rva;2?%BiLhS9YspD~z%Z)G z>TX7ClICSbo!|Qi`*UApUuU0WzjLaJEKZMPji!wa3`?46);U$D&gDB7_E*1m{%~{d zN_q3NXuGOz$3KLw@40^HjB*&C?WV)79k;_#lIM)uXdD#Tc|jq|kYs~a)Or{k$J zi?@eX)Z0AuzWTk>w54>mTO#B9Jc+s*&rcP(r}CyMWmCwf)i6wQo5$W$e!|e+?%H-7 z#$I$TEq9B544*;bo=rZre|QM3rtMES$-V|bMHfeG_SNB$L^?4ZhlkLRH(qKM*J5gl z<90vQ^|r^e^7cz9sny$lYR2j$zm&>Qw7q=fPP$q==wgOZjMK0!L|<;ZX;+(z=6?@I z+0Vqj`s#oG`@fuB-4^c$M>r?YsG5U=J$KXK9H6<57@e{ja3{sl+2pb7gswvu2S4%wp(WPgN`jUj9QC9Kbq0(Yu?Y;GAU7v z&}s))age0PdD^(o8 z?WL(3MwSLXnuT^upq)Xx!z7F?^SB1}2EW-Pd6dI!Gu!4LFZf=Py0T=Tjforkksn-9 zHcD$ZX^_Tl7Us77KALtpb?i||^06PfUK+-ce?9v9S{w%QmbvG~sTW<-oF?+MrwXnM zk%6^8%pf8!2($2t%F`Ma?NE)?4V>d9%%jK+5-+&sRp@xNl^x=tat6Os%ZSRwJLUu{4%XXk{JqqfmW>_u*r#1qv`Ix<_P8U${X`d85lq*n)~8Tk;be~oLq zmEt|Scv)1ub`$uC3uJl~jnmX?s6|tpVI+C#0xVh{_YoR#8R~Xj$rZi1|iFPk9p++@~gtB61zuoIM69VKO50DUjYtR(hI^l$rih2SW-W?^E5qw5}ITUG}u zx6ygR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4n`d7 zO_At)H}GO>cAV{EzEBRBciUiWq!frvWre;Z$CMkLZW@lHl5ilhGLjSV`WfS!HO z#boE1TnfvGbd*@iiX$73PKfsso?oNocE|c)-6M^{huK{WKYu)RbTlqpFb?6u=i5Jh zvxOJY5pk@H8*&O57gc%qeNw(1FR;HCpt&=R&*eE@J6{1#z?Hj+kstkwzQ0MMKubC1 z{yu+44`F4JQI@X8+>F*5ZEUT8i$l!Q1#+x(+mwp5H*A)QV&M7rbONdSMEANRD5Xju zSiJ0Lp76{9cgJ}sUJT=13nlVdWYtM#07k>1G|*bLR)WO9M5`q+*S!j(ewGYzdnV5% z>=oMIno{;>`VuegsYEdcTmIfA?6c8{1L0ot@`AolEiV1VSxnov8|{=0)TJ85RqA62 zWQBIjg=mT=(`#VE+`+ZqYV!`DXLc}L8X;{zCnSw3@z0WCscX{832>#cQ?G{1t^+q~ zH(wPIOTbhn&>0L()%KEflHYjbuZ5b$Z68v3q|6?0o+m|(P)scRj2$lDAN8OAo7TVARb7Zn{XD#{x^DhyY|B>vv((ANPbbjvQlAR>zW>$# M0Ra$gmhDdf0PgU(SpWb4 literal 0 HcmV?d00001 diff --git a/specs/CATALOG.md b/specs/CATALOG.md index 2b8fdab11..b290587c8 100644 --- a/specs/CATALOG.md +++ b/specs/CATALOG.md @@ -13,7 +13,7 @@ debt or convert unknown historic intent into a design decision. | `github-communication-experience` | Implemented | English-default, localized, semantic, bounded and idempotent product messages across GitHub and repository-aware operator surfaces; complete acceptance batches and cards with stable source identities, verified published SDD provenance, shared complete-inventory text allocation, precise response diagnostics and same-head requirement evidence before Commit progress publication; shared bounded complete-batch recovery for attributable completed acceptance-field length or completion failures; bounded closed-fact recovery and compact large-inventory assessment, exact original hard allocations, explicit admission counts and non-retryable length exhaustion with separate live-provider qualification; exact JSON-byte allocation and one shared source-part size replacement for both framed profiles, captured request contracts, receipt quota revalidation and nonretryable unit-specific exhaustion; shared same-profile complete-batch correction for otherwise-valid repeated citations with current-request origin binding, unchanged evidence gates and nonretryable citation exhaustion | [Semantic GitHub communication and repository localization](./semantic-github-publication-and-notification.md) + 11 companion | 462 paths · 2026-11-18 | | `release-orchestration` | Implemented | Release and hotfix promotion, publication, bounded merge readiness recovery, and receipt-verified reconciliation without republication; explicit native-guarded replacement of closed unpublished candidates with complete fresh validation and bounded audit history | [Configurable production-first release orchestration](./configurable-release-orchestration.md) + 3 companion | 91 paths · 2026-10-30 | | `merge-queue-readiness` | Implemented | Fail-closed validation of required checks and merge-group workflow support; optional manual-only RepoWise analysis with independent CI and verified required-check migration; cached RepoWise exports and bounded full-history secret processing with truthful completeness and resource evidence | [Merge queue readiness and effective target rules](./merge-queue-readiness.md) | 29 paths · 2026-10-21 | -| `bugbot-review-state-reconciliation` | Implemented | Reconcile review snapshots, findings, threads, comments, and check conclusions | [Bugbot review-state reconciliation](./bugbot-review-state-reconciliation.md) | 114 paths · 2026-11-19 | +| `bugbot-review-state-reconciliation` | Implemented | Reconcile review snapshots, findings, threads, comments, and check conclusions; bind qualification execution to independently reviewed external bootstrap code and process-local driver admission | [Bugbot review-state reconciliation](./bugbot-review-state-reconciliation.md) | 118 paths · 2026-11-20 | | `execution-lifecycle` | Implemented | Shared GitHub Action lifecycle with pinned native resource/lane coordination proof, conservative predecessor fencing, routing and durable user-facing results | [Execution admission, queueing, routing, and result publication](./execution-admission-queue-and-publication.md) + 4 companion | 161 paths · 2026-10-29 | | `architecture-quality-hardening` | Implemented | Close verified concurrency, error-contract, context-coupling, fan-out, setup/doctor, and provider-policy risks in dependency order | [Architecture quality and scalability hardening](./architecture-quality-and-scalability-hardening.md) + 1 companion | 72 paths · 2026-10-13 | | `setup-and-doctor` | Implemented | Plan, validate, provision, and audit a repository installation without exposing credentials | [Setup, configuration, credentials, and doctor](./setup-configuration-credentials-and-doctor.md) + 6 companion | 334 paths · 2026-10-29 | @@ -71,11 +71,11 @@ debt or convert unknown historic intent into a design decision. ### `bugbot-review-state-reconciliation` — Bugbot review-state reconciliation - Owner: Copilot maintainers -- Last verified: 2026-11-19 +- Last verified: 2026-11-20 - Specifications: [`specs/bugbot-review-state-reconciliation.md`](./bugbot-review-state-reconciliation.md) - Workflows: [`.github/workflows/copilot_commit.yml`](../.github/workflows/copilot_commit.yml) · [`.github/workflows/copilot_pull_request.yml`](../.github/workflows/copilot_pull_request.yml) · [`.github/workflows/copilot_pull_request_comment.yml`](../.github/workflows/copilot_pull_request_comment.yml) · [`.github/workflows/copilot_pull_request_review_state.yml`](../.github/workflows/copilot_pull_request_review_state.yml) · [`setup/workflows/copilot_pull_request.yml`](../setup/workflows/copilot_pull_request.yml) · [`setup/workflows/copilot_pull_request_review_state.yml`](../setup/workflows/copilot_pull_request_review_state.yml) · [`.github/workflows/copilot_bugbot_status_card.yml`](../.github/workflows/copilot_bugbot_status_card.yml) - Entrypoints: [`src/application/usecases/steps/commit/detect_potential_problems_workflow.ts`](../src/application/usecases/steps/commit/detect_potential_problems_workflow.ts) · [`src/application/usecases/steps/commit/bugbot/reconcile_bugbot_review_state_use_case.ts`](../src/application/usecases/steps/commit/bugbot/reconcile_bugbot_review_state_use_case.ts) · [`src/actions/github_action_completion.ts`](../src/actions/github_action_completion.ts) · [`src/api.ts`](../src/api.ts) -- Core code: [`scripts/coverage-budgets.json`](../scripts/coverage-budgets.json) · [`src/domain/bugbot/review_state.ts`](../src/domain/bugbot/review_state.ts) · [`src/domain/bugbot/review_projection.ts`](../src/domain/bugbot/review_projection.ts) · [`src/application/policies/bugbot_reconciliation_policy.ts`](../src/application/policies/bugbot_reconciliation_policy.ts) · [`src/application/policies/bugbot_event_ownership_policy.ts`](../src/application/policies/bugbot_event_ownership_policy.ts) · [`src/application/policies/bugbot_result_finding_state_projection_policy.ts`](../src/application/policies/bugbot_result_finding_state_projection_policy.ts) · [`src/application/policies/bugbot_telemetry_projection_policy.ts`](../src/application/policies/bugbot_telemetry_projection_policy.ts) · [`src/application/policies/bugbot_message_catalog.ts`](../src/application/policies/bugbot_message_catalog.ts) · [`src/application/policies/bugbot_finding_marker_policy.ts`](../src/application/policies/bugbot_finding_marker_policy.ts) · [`src/application/policies/bugbot_review_presentation_policy.ts`](../src/application/policies/bugbot_review_presentation_policy.ts) · [`src/application/policies/action_summary_policy.ts`](../src/application/policies/action_summary_policy.ts) · [`src/application/policies/copilot_evidence_policy.ts`](../src/application/policies/copilot_evidence_policy.ts) · [`src/application/policies/lifecycle_state_policy.ts`](../src/application/policies/lifecycle_state_policy.ts) · [`src/application/policies/status_command_policy.ts`](../src/application/policies/status_command_policy.ts) · [`src/application/usecases/steps/common/publish_resume_workflow.ts`](../src/application/usecases/steps/common/publish_resume_workflow.ts) · [`src/application/usecases/steps/commit/bugbot/load_bugbot_context_use_case.ts`](../src/application/usecases/steps/commit/bugbot/load_bugbot_context_use_case.ts) · [`src/application/usecases/steps/commit/bugbot/schema.ts`](../src/application/usecases/steps/commit/bugbot/schema.ts) · [`src/application/usecases/steps/commit/bugbot/prepare_bugbot_findings_policy.ts`](../src/application/usecases/steps/commit/bugbot/prepare_bugbot_findings_policy.ts) · [`src/application/usecases/steps/commit/bugbot/publish_pr_review_comments.ts`](../src/application/usecases/steps/commit/bugbot/publish_pr_review_comments.ts) · [`src/application/usecases/steps/commit/bugbot/synchronize_bugbot_review_presentation_use_case.ts`](../src/application/usecases/steps/commit/bugbot/synchronize_bugbot_review_presentation_use_case.ts) · [`src/application/policies/bugbot_status_count_marker_policy.ts`](../src/application/policies/bugbot_status_count_marker_policy.ts) · [`src/application/errors/bugbot_mutation_error.ts`](../src/application/errors/bugbot_mutation_error.ts) · [`src/data/repository/pull_request/pull_request_review_error_metadata.ts`](../src/data/repository/pull_request/pull_request_review_error_metadata.ts) · [`src/domain/bugbot/finding.ts`](../src/domain/bugbot/finding.ts) · [`src/application/usecases/steps/commit/bugbot/analyze_bugbot_revision_use_case.ts`](../src/application/usecases/steps/commit/bugbot/analyze_bugbot_revision_use_case.ts) · [`src/application/usecases/steps/commit/bugbot/publish_findings_use_case.ts`](../src/application/usecases/steps/commit/bugbot/publish_findings_use_case.ts) · [`scripts/validate-workflow-contract.cjs`](../scripts/validate-workflow-contract.cjs) · [`src/application/policies/bugbot_resolution_eligibility_policy.ts`](../src/application/policies/bugbot_resolution_eligibility_policy.ts) · [`src/application/usecases/steps/commit/bugbot/resolve_pull_request_finding.ts`](../src/application/usecases/steps/commit/bugbot/resolve_pull_request_finding.ts) · [`src/application/usecases/steps/commit/bugbot/mark_findings_resolved_workflow.ts`](../src/application/usecases/steps/commit/bugbot/mark_findings_resolved_workflow.ts) · [`src/application/usecases/steps/commit/bugbot/verify_reopened_finding_thread.ts`](../src/application/usecases/steps/commit/bugbot/verify_reopened_finding_thread.ts) · [`src/application/ports/bugbot_pull_request_resolution_ports.ts`](../src/application/ports/bugbot_pull_request_resolution_ports.ts) · [`src/application/ports/bugbot_pull_request_write_ports.ts`](../src/application/ports/bugbot_pull_request_write_ports.ts) · [`src/application/ports/pull_request_review_comment_ports.ts`](../src/application/ports/pull_request_review_comment_ports.ts) · [`src/infrastructure/composition/bugbot_scm_port_factory.ts`](../src/infrastructure/composition/bugbot_scm_port_factory.ts) · [`src/application/policies/bugbot_commit_progress_link_policy.ts`](../src/application/policies/bugbot_commit_progress_link_policy.ts) · [`src/infrastructure/github/github_bugbot_interrupted_check.ts`](../src/infrastructure/github/github_bugbot_interrupted_check.ts) · [`src/application/policies/bugbot_progress_check_observation_policy.ts`](../src/application/policies/bugbot_progress_check_observation_policy.ts) · [`src/application/policies/bugbot_status_card_publication_policy.ts`](../src/application/policies/bugbot_status_card_publication_policy.ts) · [`src/infrastructure/github/github_bugbot_status_card_workflow.ts`](../src/infrastructure/github/github_bugbot_status_card_workflow.ts) · [`src/infrastructure/github/github_bugbot_status_card_dispatch.ts`](../src/infrastructure/github/github_bugbot_status_card_dispatch.ts) · [`src/infrastructure/github/native_list_pagination.ts`](../src/infrastructure/github/native_list_pagination.ts) · [`quality/bugbot/evidence/issue-950/execution-provenance.cjs`](../quality/bugbot/evidence/issue-950/execution-provenance.cjs) · [`quality/bugbot/evidence/issue-950/qualification-bootstrap.cjs`](../quality/bugbot/evidence/issue-950/qualification-bootstrap.cjs) · [`quality/bugbot/evidence/issue-950/ev07-shadow/implementation.cjs`](../quality/bugbot/evidence/issue-950/ev07-shadow/implementation.cjs) · [`quality/bugbot/evidence/issue-950/normal-flow-shadow/run.cjs`](../quality/bugbot/evidence/issue-950/normal-flow-shadow/run.cjs) +- Core code: [`scripts/coverage-budgets.json`](../scripts/coverage-budgets.json) · [`src/domain/bugbot/review_state.ts`](../src/domain/bugbot/review_state.ts) · [`src/domain/bugbot/review_projection.ts`](../src/domain/bugbot/review_projection.ts) · [`src/application/policies/bugbot_reconciliation_policy.ts`](../src/application/policies/bugbot_reconciliation_policy.ts) · [`src/application/policies/bugbot_event_ownership_policy.ts`](../src/application/policies/bugbot_event_ownership_policy.ts) · [`src/application/policies/bugbot_result_finding_state_projection_policy.ts`](../src/application/policies/bugbot_result_finding_state_projection_policy.ts) · [`src/application/policies/bugbot_telemetry_projection_policy.ts`](../src/application/policies/bugbot_telemetry_projection_policy.ts) · [`src/application/policies/bugbot_message_catalog.ts`](../src/application/policies/bugbot_message_catalog.ts) · [`src/application/policies/bugbot_finding_marker_policy.ts`](../src/application/policies/bugbot_finding_marker_policy.ts) · [`src/application/policies/bugbot_review_presentation_policy.ts`](../src/application/policies/bugbot_review_presentation_policy.ts) · [`src/application/policies/action_summary_policy.ts`](../src/application/policies/action_summary_policy.ts) · [`src/application/policies/copilot_evidence_policy.ts`](../src/application/policies/copilot_evidence_policy.ts) · [`src/application/policies/lifecycle_state_policy.ts`](../src/application/policies/lifecycle_state_policy.ts) · [`src/application/policies/status_command_policy.ts`](../src/application/policies/status_command_policy.ts) · [`src/application/usecases/steps/common/publish_resume_workflow.ts`](../src/application/usecases/steps/common/publish_resume_workflow.ts) · [`src/application/usecases/steps/commit/bugbot/load_bugbot_context_use_case.ts`](../src/application/usecases/steps/commit/bugbot/load_bugbot_context_use_case.ts) · [`src/application/usecases/steps/commit/bugbot/schema.ts`](../src/application/usecases/steps/commit/bugbot/schema.ts) · [`src/application/usecases/steps/commit/bugbot/prepare_bugbot_findings_policy.ts`](../src/application/usecases/steps/commit/bugbot/prepare_bugbot_findings_policy.ts) · [`src/application/usecases/steps/commit/bugbot/publish_pr_review_comments.ts`](../src/application/usecases/steps/commit/bugbot/publish_pr_review_comments.ts) · [`src/application/usecases/steps/commit/bugbot/synchronize_bugbot_review_presentation_use_case.ts`](../src/application/usecases/steps/commit/bugbot/synchronize_bugbot_review_presentation_use_case.ts) · [`src/application/policies/bugbot_status_count_marker_policy.ts`](../src/application/policies/bugbot_status_count_marker_policy.ts) · [`src/application/errors/bugbot_mutation_error.ts`](../src/application/errors/bugbot_mutation_error.ts) · [`src/data/repository/pull_request/pull_request_review_error_metadata.ts`](../src/data/repository/pull_request/pull_request_review_error_metadata.ts) · [`src/domain/bugbot/finding.ts`](../src/domain/bugbot/finding.ts) · [`src/application/usecases/steps/commit/bugbot/analyze_bugbot_revision_use_case.ts`](../src/application/usecases/steps/commit/bugbot/analyze_bugbot_revision_use_case.ts) · [`src/application/usecases/steps/commit/bugbot/publish_findings_use_case.ts`](../src/application/usecases/steps/commit/bugbot/publish_findings_use_case.ts) · [`scripts/validate-workflow-contract.cjs`](../scripts/validate-workflow-contract.cjs) · [`src/application/policies/bugbot_resolution_eligibility_policy.ts`](../src/application/policies/bugbot_resolution_eligibility_policy.ts) · [`src/application/usecases/steps/commit/bugbot/resolve_pull_request_finding.ts`](../src/application/usecases/steps/commit/bugbot/resolve_pull_request_finding.ts) · [`src/application/usecases/steps/commit/bugbot/mark_findings_resolved_workflow.ts`](../src/application/usecases/steps/commit/bugbot/mark_findings_resolved_workflow.ts) · [`src/application/usecases/steps/commit/bugbot/verify_reopened_finding_thread.ts`](../src/application/usecases/steps/commit/bugbot/verify_reopened_finding_thread.ts) · [`src/application/ports/bugbot_pull_request_resolution_ports.ts`](../src/application/ports/bugbot_pull_request_resolution_ports.ts) · [`src/application/ports/bugbot_pull_request_write_ports.ts`](../src/application/ports/bugbot_pull_request_write_ports.ts) · [`src/application/ports/pull_request_review_comment_ports.ts`](../src/application/ports/pull_request_review_comment_ports.ts) · [`src/infrastructure/composition/bugbot_scm_port_factory.ts`](../src/infrastructure/composition/bugbot_scm_port_factory.ts) · [`src/application/policies/bugbot_commit_progress_link_policy.ts`](../src/application/policies/bugbot_commit_progress_link_policy.ts) · [`src/infrastructure/github/github_bugbot_interrupted_check.ts`](../src/infrastructure/github/github_bugbot_interrupted_check.ts) · [`src/application/policies/bugbot_progress_check_observation_policy.ts`](../src/application/policies/bugbot_progress_check_observation_policy.ts) · [`src/application/policies/bugbot_status_card_publication_policy.ts`](../src/application/policies/bugbot_status_card_publication_policy.ts) · [`src/infrastructure/github/github_bugbot_status_card_workflow.ts`](../src/infrastructure/github/github_bugbot_status_card_workflow.ts) · [`src/infrastructure/github/github_bugbot_status_card_dispatch.ts`](../src/infrastructure/github/github_bugbot_status_card_dispatch.ts) · [`src/infrastructure/github/native_list_pagination.ts`](../src/infrastructure/github/native_list_pagination.ts) · [`quality/bugbot/evidence/issue-950/execution-provenance.cjs`](../quality/bugbot/evidence/issue-950/execution-provenance.cjs) · [`quality/bugbot/evidence/issue-950/qualification-bootstrap.cjs`](../quality/bugbot/evidence/issue-950/qualification-bootstrap.cjs) · [`quality/bugbot/evidence/issue-950/ev07-shadow/implementation.cjs`](../quality/bugbot/evidence/issue-950/ev07-shadow/implementation.cjs) · [`quality/bugbot/evidence/issue-950/normal-flow-shadow/run.cjs`](../quality/bugbot/evidence/issue-950/normal-flow-shadow/run.cjs) · [`quality/bugbot/evidence/issue-950/ev07-shadow/corpus.cjs`](../quality/bugbot/evidence/issue-950/ev07-shadow/corpus.cjs) · [`quality/bugbot/evidence/issue-950/ev07-shadow/review.cjs`](../quality/bugbot/evidence/issue-950/ev07-shadow/review.cjs) · [`quality/bugbot/evidence/issue-950/ev07-shadow/full-review.cjs`](../quality/bugbot/evidence/issue-950/ev07-shadow/full-review.cjs) · [`quality/bugbot/evidence/issue-950/ev07-shadow/launch-full-review.cjs`](../quality/bugbot/evidence/issue-950/ev07-shadow/launch-full-review.cjs) - Tests: [`src/domain/bugbot/__tests__/review_state.test.ts`](../src/domain/bugbot/__tests__/review_state.test.ts) · [`src/domain/bugbot/__tests__/review_projection.test.ts`](../src/domain/bugbot/__tests__/review_projection.test.ts) · [`src/application/usecases/steps/commit/bugbot/__tests__/schema.test.ts`](../src/application/usecases/steps/commit/bugbot/__tests__/schema.test.ts) · [`src/application/usecases/steps/commit/bugbot/__tests__/prepare_bugbot_findings.test.ts`](../src/application/usecases/steps/commit/bugbot/__tests__/prepare_bugbot_findings.test.ts) · [`src/application/usecases/steps/commit/bugbot/__tests__/reconcile_bugbot_review_state_integration.test.ts`](../src/application/usecases/steps/commit/bugbot/__tests__/reconcile_bugbot_review_state_integration.test.ts) · [`src/application/usecases/steps/commit/bugbot/__tests__/synchronize_bugbot_review_presentation_use_case.test.ts`](../src/application/usecases/steps/commit/bugbot/__tests__/synchronize_bugbot_review_presentation_use_case.test.ts) · [`src/application/policies/__tests__/bugbot_result_finding_state_projection_policy.test.ts`](../src/application/policies/__tests__/bugbot_result_finding_state_projection_policy.test.ts) · [`src/application/policies/__tests__/bugbot_event_ownership_policy.test.ts`](../src/application/policies/__tests__/bugbot_event_ownership_policy.test.ts) · [`src/application/policies/__tests__/bugbot_telemetry_projection_policy.test.ts`](../src/application/policies/__tests__/bugbot_telemetry_projection_policy.test.ts) · [`src/application/policies/__tests__/bugbot_message_catalog.test.ts`](../src/application/policies/__tests__/bugbot_message_catalog.test.ts) · [`src/application/policies/__tests__/bugbot_finding_marker_policy.test.ts`](../src/application/policies/__tests__/bugbot_finding_marker_policy.test.ts) · [`src/application/policies/__tests__/bugbot_review_presentation_policy.test.ts`](../src/application/policies/__tests__/bugbot_review_presentation_policy.test.ts) · [`src/application/policies/__tests__/action_summary_policy.test.ts`](../src/application/policies/__tests__/action_summary_policy.test.ts) · [`src/application/policies/__tests__/copilot_evidence_policy.test.ts`](../src/application/policies/__tests__/copilot_evidence_policy.test.ts) · [`src/application/policies/__tests__/lifecycle_state_policy.test.ts`](../src/application/policies/__tests__/lifecycle_state_policy.test.ts) · [`src/application/policies/__tests__/status_command_policy.test.ts`](../src/application/policies/__tests__/status_command_policy.test.ts) · [`src/actions/__tests__/github_action_completion.test.ts`](../src/actions/__tests__/github_action_completion.test.ts) · [`src/application/usecases/steps/common/__tests__/publish_resume_use_case.test.ts`](../src/application/usecases/steps/common/__tests__/publish_resume_use_case.test.ts) · [`src/application/usecases/actions/__tests__/synchronize_lifecycle_state_use_case.test.ts`](../src/application/usecases/actions/__tests__/synchronize_lifecycle_state_use_case.test.ts) · [`src/application/usecases/steps/commit/__tests__/detect_potential_problems_use_case.test.ts`](../src/application/usecases/steps/commit/__tests__/detect_potential_problems_use_case.test.ts) · [`src/infrastructure/composition/__tests__/pull_request_use_case_composition_root.test.ts`](../src/infrastructure/composition/__tests__/pull_request_use_case_composition_root.test.ts) · [`src/tooling/__tests__/validate_workflow_contract.test.ts`](../src/tooling/__tests__/validate_workflow_contract.test.ts) · [`src/application/errors/__tests__/bugbot_mutation_error.test.ts`](../src/application/errors/__tests__/bugbot_mutation_error.test.ts) · [`src/application/usecases/steps/commit/bugbot/__tests__/finding_mutation_recovery.test.ts`](../src/application/usecases/steps/commit/bugbot/__tests__/finding_mutation_recovery.test.ts) · [`src/domain/bugbot/__tests__/finding.test.ts`](../src/domain/bugbot/__tests__/finding.test.ts) · [`src/application/usecases/steps/commit/bugbot/__tests__/finding_identity_replay.test.ts`](../src/application/usecases/steps/commit/bugbot/__tests__/finding_identity_replay.test.ts) · [`src/application/usecases/steps/commit/bugbot/__tests__/analyze_bugbot_revision_use_case.test.ts`](../src/application/usecases/steps/commit/bugbot/__tests__/analyze_bugbot_revision_use_case.test.ts) · [`src/application/usecases/steps/commit/bugbot/__tests__/publish_findings_use_case.test.ts`](../src/application/usecases/steps/commit/bugbot/__tests__/publish_findings_use_case.test.ts) · [`src/application/policies/__tests__/bugbot_resolution_eligibility_policy.test.ts`](../src/application/policies/__tests__/bugbot_resolution_eligibility_policy.test.ts) · [`src/application/usecases/steps/commit/bugbot/__tests__/reopened_dismissal_reconciliation.test.ts`](../src/application/usecases/steps/commit/bugbot/__tests__/reopened_dismissal_reconciliation.test.ts) · [`src/infrastructure/composition/__tests__/bugbot_scm_port_factory.test.ts`](../src/infrastructure/composition/__tests__/bugbot_scm_port_factory.test.ts) · [`src/application/ports/__tests__/bugbot_port_boundaries.test.ts`](../src/application/ports/__tests__/bugbot_port_boundaries.test.ts) · [`src/application/policies/__tests__/bugbot_commit_progress_link_policy.test.ts`](../src/application/policies/__tests__/bugbot_commit_progress_link_policy.test.ts) · [`src/infrastructure/github/__tests__/github_bugbot_interrupted_check.test.ts`](../src/infrastructure/github/__tests__/github_bugbot_interrupted_check.test.ts) · [`src/application/policies/__tests__/bugbot_progress_check_observation_policy.test.ts`](../src/application/policies/__tests__/bugbot_progress_check_observation_policy.test.ts) · [`src/data/repository/__tests__/copilot_evidence_repository.test.ts`](../src/data/repository/__tests__/copilot_evidence_repository.test.ts) · [`quality/bugbot/evidence/issue-950/status-card-publication/publisher.test.cjs`](../quality/bugbot/evidence/issue-950/status-card-publication/publisher.test.cjs) · [`quality/bugbot/evidence/issue-950/status-card-publication/packaged-canary.cjs`](../quality/bugbot/evidence/issue-950/status-card-publication/packaged-canary.cjs) · [`src/application/policies/__tests__/bugbot_status_card_publication_policy.test.ts`](../src/application/policies/__tests__/bugbot_status_card_publication_policy.test.ts) · [`src/infrastructure/github/__tests__/github_bugbot_status_card_workflow.test.ts`](../src/infrastructure/github/__tests__/github_bugbot_status_card_workflow.test.ts) · [`src/infrastructure/github/__tests__/github_bugbot_status_card_lane.test.ts`](../src/infrastructure/github/__tests__/github_bugbot_status_card_lane.test.ts) · [`src/infrastructure/github/__tests__/github_bugbot_status_card_dispatch.test.ts`](../src/infrastructure/github/__tests__/github_bugbot_status_card_dispatch.test.ts) · [`src/infrastructure/github/__tests__/github_bugbot_status_card_observation.test.ts`](../src/infrastructure/github/__tests__/github_bugbot_status_card_observation.test.ts) · [`src/infrastructure/github/__tests__/github_bugbot_status_card_handoff.test.ts`](../src/infrastructure/github/__tests__/github_bugbot_status_card_handoff.test.ts) · [`quality/bugbot/evidence/issue-950/qualification-bootstrap.test.cjs`](../quality/bugbot/evidence/issue-950/qualification-bootstrap.test.cjs) · [`quality/bugbot/evidence/issue-950/normal-flow-shadow/paths.test.cjs`](../quality/bugbot/evidence/issue-950/normal-flow-shadow/paths.test.cjs) · [`quality/bugbot/evidence/issue-950/ev07-shadow/review-runtime.test.cjs`](../quality/bugbot/evidence/issue-950/ev07-shadow/review-runtime.test.cjs) - User documentation: [`docs/bugbot/detection.mdx`](../docs/bugbot/detection.mdx) · [`docs/bugbot/finding-publication.mdx`](../docs/bugbot/finding-publication.mdx) · [`docs/bugbot/quality-observability.mdx`](../docs/bugbot/quality-observability.mdx) · [`docs/bugbot/failure-scenarios.mdx`](../docs/bugbot/failure-scenarios.mdx) · [`docs/bugbot/configuration.mdx`](../docs/bugbot/configuration.mdx) · [`docs/bugbot/how-it-works.mdx`](../docs/bugbot/how-it-works.mdx) · [`docs/bugbot/programmatic-api.mdx`](../docs/bugbot/programmatic-api.mdx) · [`docs/pull-requests/workflow-setup.mdx`](../docs/pull-requests/workflow-setup.mdx) · [`docs/issues/comment-commands.mdx`](../docs/issues/comment-commands.mdx) · [`docs/development/testing.mdx`](../docs/development/testing.mdx) diff --git a/specs/bugbot-review-state-reconciliation.md b/specs/bugbot-review-state-reconciliation.md index 7b38c2296..507855c81 100644 --- a/specs/bugbot-review-state-reconciliation.md +++ b/specs/bugbot-review-state-reconciliation.md @@ -2577,3 +2577,62 @@ profile proof. Add two actual-planner controls: an admitted runtime prepares, an a mismatched executable that the old version probe ran is rejected before probe execution. Use the real resolution/validation/version ports and only a controlled workspace; no model calls, research ceilings or production settings are added. + +### Bootstrap admission stays outside the checkout — #970, 2026-11-20 + +This amendment removes checkout-receipt authority from the preceding bootstrap +contract. A self-consistent `.qualification-admission.json` MUST NOT establish +that the independently reviewed bootstrap executed. No qualification driver may +read that file to obtain execution authority or attach bootstrap provenance. +Direct corpus, normal-flow, launcher, scheduler and review-slot CLIs MUST refuse +before importing any checkout helper, including when such a receipt is present. +The operator's reviewed Git blob and independently selected digests remain the +trust anchors; this change adds no independent host or human-review attestation. + +The external bootstrap authenticates and materializes the reviewed closure as +above, then forks the same external bootstrap file with a private parent IPC +channel. The worker repeats plan/driver/source/runtime verification before driver +imports, installs immutable process-local context, and calls the admitted module. +Only the launcher-to-scheduler and scheduler-to-review-slot child routes are +available. Each nested process re-enters the external bootstrap and repeats the +private-byte check; review slots recheck the matching independent corpus gate. +IPC carries already verified context; it is not itself an accreditation of a +compromised parent. No serialized checkout object authorizes execution. + +```mermaid +flowchart LR + A[Reviewed external bootstrap] --> B[Verify plan and immutable closure] + B --> C[Private source and dependency proof] + C --> D[Fork same external bootstrap over IPC] + D --> E[Repeat private-byte and runtime checks] + E --> F[Install process-local context and call driver] + F -->|paired child route| D +``` + +Text equivalent: independently checked external code admits the closure, starts +each worker through that same code, verifies the private bytes again, and only +then imports and calls a driver. A mutable receipt supplies none of these steps. +Normal CLI selection, verifier profiles, cohort/order/retry policies, explicit +signals and existing scoring/latency gates are preserved. Parent cancellation +continues to reach the worker; its interrupted exit and cleanup remain observable. +No consumer option, production setting or research timeout/turn/read/token cap is +introduced. Existing frozen evidence requires its original historical drivers; +future measurements require the new exact driver identities and preregistration. + +Additional numeric budget: **six deterministic security/lifecycle cases**, making +**19 bootstrap cases and 193 combined shadow controls**. Two cases reproduce the +old real verifier accepting a fabricated receipt and a direct runner importing a +checkout helper, then verify rejection. One rejects a worker without parent IPC. +Two exercise the actual nested fork route, including private verifier mutation +rejected before import. One sends SIGTERM after synthetic-worker readiness and +checks its interrupted exit and output. Its bounded fixture cleanup applies only +to that owned model-free test, never an investigation. Existing source/runtime, +normal-flow and independent-corpus controls remain required; no model calls or +evaluated-PR writes are needed for these controls. + +Acceptance requires all six controls, the actual relative-lab zero-candidate +journey and complete combined controls to pass. Preserve the old bypass, failed +fixture attempts and successful outputs byte-exactly. Update operator guidance, +catalog evidence and Graphify; run specification/docs validation and the complete +required build/Jest/lint hook. Report native review/checks for the newly published +SHA separately. Neither a local pass nor an earlier SHA's review qualifies a profile. diff --git a/specs/catalog.json b/specs/catalog.json index 2c2b296ce..8388bfad7 100644 --- a/specs/catalog.json +++ b/specs/catalog.json @@ -664,9 +664,9 @@ "id": "bugbot-review-state-reconciliation", "title": "Bugbot review-state reconciliation", "status": "implemented", - "scope": "Reconcile review snapshots, findings, threads, comments, and check conclusions", + "scope": "Reconcile review snapshots, findings, threads, comments, and check conclusions; bind qualification execution to independently reviewed external bootstrap code and process-local driver admission", "owner": "Copilot maintainers", - "lastVerified": "2026-11-19", + "lastVerified": "2026-11-20", "specs": [ "specs/bugbot-review-state-reconciliation.md" ], @@ -731,7 +731,11 @@ "quality/bugbot/evidence/issue-950/execution-provenance.cjs", "quality/bugbot/evidence/issue-950/qualification-bootstrap.cjs", "quality/bugbot/evidence/issue-950/ev07-shadow/implementation.cjs", - "quality/bugbot/evidence/issue-950/normal-flow-shadow/run.cjs" + "quality/bugbot/evidence/issue-950/normal-flow-shadow/run.cjs", + "quality/bugbot/evidence/issue-950/ev07-shadow/corpus.cjs", + "quality/bugbot/evidence/issue-950/ev07-shadow/review.cjs", + "quality/bugbot/evidence/issue-950/ev07-shadow/full-review.cjs", + "quality/bugbot/evidence/issue-950/ev07-shadow/launch-full-review.cjs" ], "tests": [ "src/domain/bugbot/__tests__/review_state.test.ts", From 7652c1c57c1071d1d8b5975813c10ef01a7a28f5 Mon Sep 17 00:00:00 2001 From: Efra Espada Date: Fri, 20 Nov 2026 02:04:10 +0100 Subject: [PATCH 8/9] bugfix-970-bind-bugbot-qualification-execution-to-the-pinned-source-and-sanitized-git-environment: require complete reviewed launch in every process (#970) --- docs/development/testing.mdx | 32 ++- .../issue-950/qualification-bootstrap.cjs | 68 +++-- .../qualification-bootstrap.test.cjs | 45 +++- quality/bugbot/evidence/issue-970/README.md | 80 +++++- .../ipc-counter-import-diagnostic.log.gz | Bin 0 -> 532 bytes .../ipc-counter-path-diagnostic.log.gz | Bin 0 -> 225 bytes .../ipc-parent-causal-negative.log.gz | Bin 0 -> 577 bytes .../legacy-bootstrap-f583e40c.cjs.txt | 224 +++++++++++++++ .../issue-970/legacy-verifier-01097099.cjs.gz | Bin 4577 -> 0 bytes .../legacy-verifier-01097099.cjs.txt | 255 ++++++++++++++++++ ...memory-native-binary-source-failure.log.gz | Bin 0 -> 8680 bytes .../public-launch-bootstrap-final-20.log.gz | Bin 0 -> 1078 bytes .../public-launch-bootstrap-first-20.log.gz | Bin 0 -> 1077 bytes .../issue-970/public-launch-shadow-194.log.gz | Bin 0 -> 5863 bytes .../readable-legacy-hook-isolated-six.log.gz | Bin 0 -> 164 bytes .../readable-legacy-hook-sigsegv.log.gz | Bin 0 -> 49114 bytes .../readable-legacy-shadow-193.log.gz | Bin 0 -> 6050 bytes specs/CATALOG.md | 2 +- specs/bugbot-review-state-reconciliation.md | 56 ++-- specs/catalog.json | 2 +- 20 files changed, 680 insertions(+), 84 deletions(-) create mode 100644 quality/bugbot/evidence/issue-970/ipc-counter-import-diagnostic.log.gz create mode 100644 quality/bugbot/evidence/issue-970/ipc-counter-path-diagnostic.log.gz create mode 100644 quality/bugbot/evidence/issue-970/ipc-parent-causal-negative.log.gz create mode 100644 quality/bugbot/evidence/issue-970/legacy-bootstrap-f583e40c.cjs.txt delete mode 100644 quality/bugbot/evidence/issue-970/legacy-verifier-01097099.cjs.gz create mode 100644 quality/bugbot/evidence/issue-970/legacy-verifier-01097099.cjs.txt create mode 100644 quality/bugbot/evidence/issue-970/memory-native-binary-source-failure.log.gz create mode 100644 quality/bugbot/evidence/issue-970/public-launch-bootstrap-final-20.log.gz create mode 100644 quality/bugbot/evidence/issue-970/public-launch-bootstrap-first-20.log.gz create mode 100644 quality/bugbot/evidence/issue-970/public-launch-shadow-194.log.gz create mode 100644 quality/bugbot/evidence/issue-970/readable-legacy-hook-isolated-six.log.gz create mode 100644 quality/bugbot/evidence/issue-970/readable-legacy-hook-sigsegv.log.gz create mode 100644 quality/bugbot/evidence/issue-970/readable-legacy-shadow-193.log.gz diff --git a/docs/development/testing.mdx b/docs/development/testing.mdx index 45bfc2817..e8af88fb1 100644 --- a/docs/development/testing.mdx +++ b/docs/development/testing.mdx @@ -400,16 +400,22 @@ reported by an unregistered executable cannot execute even during preparation. Qualification drivers now refuse direct CLI execution before importing a checkout helper. A `.qualification-admission.json` file, even with matching hashes, supplies no execution authority. Use the independently materialized external bootstrap -above. It forks that same reviewed file with a parent IPC channel, repeats private -plan/driver/source/runtime checks in each worker, and supplies process-local -context before calling the driver module. Paired scheduler and review-slot -processes follow that same route and retain the independent corpus gate. - -The public bootstrap arguments are unchanged; the worker channel is internal. -Explicit cancellation still reaches the admitted worker and preserves its exit. -There are no new consumer settings or investigation limits. The six additional -receipt/direct-entry/IPC/nested-mutation/cancellation controls use real Git and -owned fake workers, with zero model calls and evaluated-PR writes. Their cleanup -timeout belongs only to the synthetic cancellation fixture. Bootstrap context is -not independent accreditation of the host or operator review; retain the external -digest check before starting Node and freeze new driver hashes before measuring. +above. It performs the complete validation/materialization and calls the driver +in that same bootstrap process. The internal --admitted-worker endpoint and IPC +message handler have been removed: a parent message cannot initialize admission. +Each nested scheduler/review process enters the complete public launch again with +the same explicit reviewed plan/bootstrap pins and repeats all private byte and +runtime checks. The final review slot verifies its exact parent corpus campaign. + +Ordinary corpus/full-review/normal-flow arguments are unchanged. Nested launches +also use full-review-runner with one campaign argument, or review with campaign, +checkout, subject ID, repetition and output. Every mode requires the same explicit +reviewed plan/bootstrap identities and complete proof; there is no worker shortcut. +Explicit cancellation reaches the executing admitted driver and preserves its exit. +There are no new consumer settings or investigation limits. Seven additional +receipt/direct-entry/arbitrary-IPC/nested-mutation/cancellation cases use real Git +and owned fakes, with zero model calls and evaluated-PR writes. The frozen previous +bootstrap demonstrates the IPC bypass before the new rejection. Fixture cleanup +timeouts never bound a model investigation. Context is not independent host or +human-review accreditation: retain the external digest check before starting Node +and freeze new driver hashes before measuring. diff --git a/quality/bugbot/evidence/issue-950/qualification-bootstrap.cjs b/quality/bugbot/evidence/issue-950/qualification-bootstrap.cjs index 612c7634e..603610221 100644 --- a/quality/bugbot/evidence/issue-950/qualification-bootstrap.cjs +++ b/quality/bugbot/evidence/issue-950/qualification-bootstrap.cjs @@ -9,7 +9,7 @@ const fs = require('node:fs'); const path = require('node:path'); const os = require('node:os'); const { createHash } = require('node:crypto'); -const { execFileSync, fork } = require('node:child_process'); +const { execFileSync, spawn } = require('node:child_process'); const sha256 = bytes => createHash('sha256').update(bytes).digest('hex'); const prefix = 'quality/bugbot/evidence/issue-950/'; const ev07 = ['configuration.cjs', 'implementation.cjs', 'load.cjs', 'corpus.cjs', 'review.cjs', @@ -101,25 +101,27 @@ function reviewedPlan(repository, revision, planPath, planSha256, bootstrapSha25 return { root, trust, bytes, plan, admitted }; } -function spawnAdmitted(request, env, options = {}) { +function spawnReviewedLaunch(request, env, options = {}) { assert(Object.keys(options).every(key => key === 'stdio'), 'unsupported qualification child options'); assert.equal(sha256(fs.readFileSync(__filename)), request.proof.bootstrapSha256, 'executing bootstrap changed'); - const io = options.stdio ?? 'inherit'; - const stdio = Array.isArray(io) ? [...io, 'ipc'] : [io, io, io, 'ipc']; - const child = fork(__filename, ['--admitted-worker'], { env, stdio, execArgv: [], cwd: process.cwd() }); - child.send(request, error => { if (error) child.emit('error', error); }); - return child; + const { proof, root, mode, args, corpusCampaign } = request; + // No IPC admission endpoint: every process enters the complete public + // validation/materialization path with the same independently supplied pins. + const modeArgs = mode === 'review' ? [corpusCampaign, ...args] : args; + return spawn(process.execPath, [__filename, root, proof.planCommit, proof.planPath, + proof.planSha256, proof.bootstrapSha256, mode, ...modeArgs], + { env, stdio: options.stdio ?? 'inherit', cwd: process.cwd() }); } -async function executeAdmitted(request) { +async function executePrivate(request) { assert(request && Array.isArray(request.args) && request.args.every(arg => typeof arg === 'string'), 'invalid admitted invocation'); const { root: repository, proof, mode } = request; const { root, plan } = reviewedPlan(repository, proof.planCommit, proof.planPath, proof.planSha256, proof.bootstrapSha256, mode); - // The executing file is still the externally materialized bootstrap. Repeat - // private-byte/source/runtime checks before loading any private driver in - // each child. No receipt in this checkout is read as execution authority. + // This function is reachable only from launch after private materialization. + // There is no message handler or exported API that initializes admission. + // Repeat private bytes before imports; a checkout receipt has no authority. const verifier = require(path.join(root, prefix, 'execution-provenance.cjs')); verifier.attestSource(root, plan.implementation); verifier.attestRuntime(root, plan.runtime); @@ -127,7 +129,7 @@ async function executeAdmitted(request) { assert(mode === 'full-review' && nextMode === 'full-review-runner' || mode === 'full-review-runner' && nextMode === 'review', 'unadmitted qualification child route'); const corpusCampaign = mode === 'full-review' ? request.args[0] : request.corpusCampaign; - return spawnAdmitted({ root, proof, mode: nextMode, args, corpusCampaign }, process.env, options); + return spawnReviewedLaunch({ root, proof, mode: nextMode, args, corpusCampaign }, process.env, options); }); if (mode === 'review') { assert(typeof request.corpusCampaign === 'string', 'paired review requires its passing corpus'); @@ -139,8 +141,10 @@ async function executeAdmitted(request) { } async function launch(repository, revision, planPath, planSha256, bootstrapSha256, mode, ...args) { - assert(['corpus', 'full-review', 'normal-flow'].includes(mode), 'unsupported public qualification entrypoint'); - assert(mode === 'normal-flow' ? args.length === 3 : mode === 'full-review' ? args.length === 1 + assert(Object.hasOwn(entries, mode), 'unsupported qualification entrypoint; worker admission endpoint removed'); + assert(mode === 'normal-flow' ? args.length === 3 + : mode === 'full-review' || mode === 'full-review-runner' ? args.length === 1 + : mode === 'review' ? args.length === 5 : args.length === 1 || args.length === 2 && args[1] === '--preflight', 'invalid qualification arguments'); const { root, trust, bytes, plan, admitted } = reviewedPlan(repository, revision, planPath, planSha256, bootstrapSha256, mode); @@ -192,33 +196,23 @@ async function launch(repository, revision, planPath, planSha256, bootstrapSha25 'auxiliary Python differs from reviewed runtime'); env.PILOT_LOCAL_PYTHON = plan.runtime.pythonExecutable; } - const childArgs = mode === 'normal-flow' ? [...args, path.join(isolated, planPath)] : args; - const child = spawnAdmitted({ root: isolated, proof, mode, args: childArgs }, env); - const interrupt = () => child.kill('SIGINT'), terminate = () => child.kill('SIGTERM'); - process.once('SIGINT', interrupt); - process.once('SIGTERM', terminate); + const corpusCampaign = mode === 'review' || mode === 'full-review-runner' ? args[0] : undefined; + const childArgs = mode === 'normal-flow' ? [...args, path.join(isolated, planPath)] + : mode === 'review' ? args.slice(1) : args; + const previousEnvironment = process.env; + process.env = env; try { - return await new Promise((resolve, reject) => { - child.once('error', reject); - child.once('close', (code, signal) => resolve(code ?? (signal === 'SIGINT' ? 130 : signal === 'SIGTERM' ? 143 : 1))); - }); - } finally { - process.removeListener('SIGINT', interrupt); - process.removeListener('SIGTERM', terminate); - } + // Import and run in this verified bootstrap process, never through + // an internal CLI/IPC message that can bypass public admission. + return await executePrivate({ root: isolated, proof, mode, args: childArgs, corpusCampaign }); + } finally { process.env = previousEnvironment; } + } finally { fs.rmSync(scratch, { recursive: true, force: true }); } } module.exports = { launch }; if (require.main === module) { - const fail = error => { console.error(error.message); process.exitCode = 1; }; - if (process.argv[2] === '--admitted-worker') { - if (!process.send || !process.connected) fail(new Error('admitted worker requires the external bootstrap IPC channel')); - else process.once('message', request => { - process.disconnect(); - executeAdmitted(request).then(code => { - process.exitCode = Number.isInteger(code) ? code : code?.status === 'interrupted' ? 130 : 0; - }).catch(fail); - }); - } else launch(...process.argv.slice(2)).then(code => { process.exitCode = code; }).catch(fail); + launch(...process.argv.slice(2)).then(code => { + process.exitCode = Number.isInteger(code) ? code : code?.status === 'interrupted' ? 130 : 0; + }).catch(error => { console.error(error.message); process.exitCode = 1; }); } diff --git a/quality/bugbot/evidence/issue-950/qualification-bootstrap.test.cjs b/quality/bugbot/evidence/issue-950/qualification-bootstrap.test.cjs index 02f0d6286..2122a0203 100644 --- a/quality/bugbot/evidence/issue-950/qualification-bootstrap.test.cjs +++ b/quality/bugbot/evidence/issue-950/qualification-bootstrap.test.cjs @@ -12,7 +12,7 @@ const proof = require('./execution-provenance.cjs'); const hash = bytes => createHash('sha256').update(bytes).digest('hex'); const prefix = 'quality/bugbot/evidence/issue-950/'; -function fixture(t, crlfCheckout = false, brokerGit = false, cancellation = false) { +function fixture(t, crlfCheckout = false, brokerGit = false, cancellation = false, bootstrapBytes) { const directory = fs.mkdtempSync(path.join(os.tmpdir(), 'qualified-bootstrap-control-')); t.after(() => fs.rmSync(directory, { recursive: true, force: true })); const root = path.join(directory, 'project'); @@ -36,7 +36,7 @@ function fixture(t, crlfCheckout = false, brokerGit = false, cancellation = fals '../ev07-shadow/implementation.cjs', '../ev07-shadow/configuration.cjs', '../qualification-bootstrap.cjs']; for (const file of drivers) write(path.posix.normalize(prefix + 'normal-flow-shadow/' + file), 'module.exports = {};\n'); write(prefix + 'execution-provenance.cjs', fs.readFileSync(path.join(__dirname, 'execution-provenance.cjs'))); - write(prefix + 'qualification-bootstrap.cjs', fs.readFileSync(path.join(__dirname, 'qualification-bootstrap.cjs'))); + write(prefix + 'qualification-bootstrap.cjs', bootstrapBytes ?? fs.readFileSync(path.join(__dirname, 'qualification-bootstrap.cjs'))); write(prefix + 'normal-flow-shadow/run.cjs', 'exports.run=(lab,number,output)=>{const fs=require("node:fs"),path=require("node:path"),' + 'root=path.resolve(__dirname,"../../../../..");fs.writeFileSync(output,JSON.stringify({cwd:process.cwd(),isolated:__dirname,' + 'mode:process.env.BUGBOT_VERIFICATION_MODE,admission:require("../execution-provenance.cjs").requireBootstrapAdmission(root),' @@ -191,8 +191,8 @@ test('a self-consistent checkout receipt is not bootstrap admission', t => { const previous = path.join(f.directory, 'previous-verifier.cjs'); // Preserve the actual historical bytes without depending on an unmerged // branch commit remaining fetchable after squash or branch cleanup. - const legacy = require('node:zlib').gunzipSync(fs.readFileSync(path.join(__dirname, - '../issue-970/legacy-verifier-01097099.cjs.gz'))); + const legacy = fs.readFileSync(path.join(__dirname, + '../issue-970/legacy-verifier-01097099.cjs.txt')); assert.equal(hash(legacy), 'c0471ff35e10cd39ff75a84e02830f4aa98f6f97bb3b47345e241cb77d3877d8'); fs.writeFileSync(previous, legacy); assert.deepEqual(require(previous).requireBootstrapAdmission(f.root), fabricated, @@ -218,11 +218,11 @@ test('a direct runner refuses a forged receipt before importing a checkout verif assert.equal(fs.existsSync(f.output), false); }); -test('an internal bootstrap worker refuses direct invocation without its parent IPC channel', t => { +test('the removed internal worker entry refuses direct invocation before any admission', t => { const f = fixture(t); const run = spawnSync(process.execPath, [f.bootstrap, '--admitted-worker'], { encoding: 'utf8' }); assert.notEqual(run.status, 0); - assert.match(run.stderr, /external bootstrap IPC channel/u); + assert.match(run.stderr, /unsupported qualification entrypoint|worker admission.*removed/u); assert.equal(fs.existsSync(f.marker), false); assert.equal(fs.existsSync(f.output), false); }); @@ -235,7 +235,8 @@ function nestedFixture(t, tamper) { for (const name of names.filter(name => !name.startsWith('../'))) f.write(base + name, 'module.exports={};\n'); const wait = 'const wait=child=>new Promise((resolve,reject)=>{child.once("error",reject);child.once("close",code=>resolve(code??1));});'; f.write(base + 'launch-full-review.cjs', wait - + 'exports.requirePassingCorpus=campaign=>campaign;exports.run=campaign=>wait(require("../execution-provenance.cjs")' + + 'exports.requirePassingCorpus=campaign=>{require("node:assert/strict").equal(campaign,' + + JSON.stringify(f.directory) + ');return campaign;};exports.run=campaign=>wait(require("../execution-provenance.cjs")' + '.spawnQualificationDriver("full-review-runner",[campaign]));\n'); f.write(base + 'full-review.cjs', 'const fs=require("node:fs"),path=require("node:path"),helper=require("../execution-provenance.cjs");' + wait + 'exports.run=campaign=>{' @@ -259,7 +260,7 @@ function nestedFixture(t, tamper) { return { ...f, result, revision }; } -test('nested qualification workers receive process-local admission through the reviewed external bootstrap', t => { +test('nested qualification processes repeat the complete reviewed external launch', t => { const f = nestedFixture(t, false); assert.equal(f.result.status, 0, f.result.stderr); const result = JSON.parse(fs.readFileSync(f.output)); @@ -300,3 +301,31 @@ test('explicit cancellation reaches the admitted worker and preserves its interr assert.equal(code, 143, stderr); assert.equal(fs.readFileSync(f.output, 'utf8'), 'interrupted'); }); + +test('an arbitrary IPC parent cannot initialize qualification admission, unlike the frozen previous worker', { timeout: 30000 }, async t => { + // An owned model-free process cleanup, never an investigation deadline. + const previous = fs.readFileSync(path.join(__dirname, '../issue-970/legacy-bootstrap-f583e40c.cjs.txt')); + assert.equal(hash(previous), 'e809d86426f33ac20bae21cf463253fcbf8f489aff4888c532e82afa40d2f609'); + for (const legacy of [true, false]) { + const f = fixture(t, false, false, false, legacy ? previous : undefined); + const child = require('node:child_process').fork(f.bootstrap, ['--admitted-worker'], + { cwd: f.directory, execArgv: [], stdio: ['ignore', 'pipe', 'pipe', 'ipc'] }); + let stderr = ''; child.stderr.on('data', bytes => { stderr += bytes; }); + t.after(() => { if (child.exitCode === null) child.kill('SIGKILL'); }); + child.send({ root: f.root, proof: { planCommit: f.revision, planPath: f.planPath, + planSha256: f.planSha256, bootstrapSha256: hash(fs.readFileSync(f.bootstrap)) }, + mode: 'normal-flow', args: ['relative-lab', '1', f.output] }); + const [code] = await once(child, 'close'); + if (legacy) { + assert.equal(code, 0, stderr); + const result = JSON.parse(fs.readFileSync(f.output)); + assert.equal(result.admission.planCommit, f.revision, + 'the real previous worker accepts the arbitrary IPC parent without the public launch path'); + } else { + assert.notEqual(code, 0, 'arbitrary IPC parent initialized bootstrap context: ' + stderr); + assert.match(stderr, /unsupported qualification entrypoint|worker admission.*removed/u); + assert.equal(fs.existsSync(f.output), false); + } + assert.equal(fs.existsSync(f.marker), false); + } +}); diff --git a/quality/bugbot/evidence/issue-970/README.md b/quality/bugbot/evidence/issue-970/README.md index 3780eb761..dce800a3b 100644 --- a/quality/bugbot/evidence/issue-970/README.md +++ b/quality/bugbot/evidence/issue-970/README.md @@ -75,7 +75,10 @@ this local proof. The bootstrap takes repository, reviewed plan commit, repository-relative plan path, externally reviewed plan SHA-256, externally reviewed bootstrap SHA-256, -mode (`corpus`, `full-review`, `normal-flow`), then that mode's arguments. It +mode (`corpus`, `full-review`, `normal-flow`), then that mode's arguments. +Nested scheduler/review processes use the same complete launch with +`full-review-runner ` or `review `; +they do not accept an internal worker-admission message. It checks the immutable committed plan and the complete fixed driver inventory against their reviewed bytes before importing any driver or helper. It rejects changed physical drivers and symlinks, uses a sterile local Git clone to @@ -192,6 +195,9 @@ Both former behaviors fail the new rejection assertions; these failures remain. The first negative run also exposed the existing logical macOS path alias in a fixture argument; the corrected counter-control uses its physical manifest path. +The historical f583e40c implementation below was subsequently superseded by +the complete-public-launch correction at the end of this document. + Qualification no longer reads or creates .qualification-admission.json. Direct driver CLIs reject before helper imports. After admitting source/dependencies, the independently reviewed external bootstrap forks that same external file, @@ -223,7 +229,7 @@ is claimed by these deterministic results. Lossless raw-log inventory: The real previous verifier from commit `01097099d220bd481f6e50b58d2213165bcf6194` -is also frozen as `legacy-verifier-01097099.cjs.gz` (15,205 original bytes, +is also frozen as `legacy-verifier-01097099.cjs.txt` (15,205 original bytes, SHA-256 `c0471ff35e10cd39ff75a84e02830f4aa98f6f97bb3b47345e241cb77d3877d8`). The causal control checks that digest before using the code on its disposable fixture. It does not rely on the managed branch remaining fetchable after squash. @@ -240,3 +246,73 @@ fixture. It does not rely on the managed branch remaining fetchable after squash The final replay using the frozen legacy source also passes **193/193** controls. - `memory-frozen-final-shadow-193.log.gz`: 20469 original bytes; SHA-256 `5f80b7559e8a4085089ff8d0a0b5b111e55dcc67804c29fac29219cf57aef2c4`. + + +Native Commit on f583e40c rejected the compressed historical verifier as required +binary code (validation.evidence-unavailable, non-retryable). No model progress +assessment was made and previous progress was retained. The counter-control now +stores the exact same 15,205 source bytes as reviewable .cjs.txt data; its pinned +SHA-256 remains unchanged. Current-base diff no longer includes a binary verifier. +No evidence path is excluded or reclassified to bypass that check. Historical +gzip remains in the f583 commit, and all negative outputs remain lossless. + +- `memory-native-binary-source-failure.log.gz`: 36085 original bytes; SHA-256 `e9c4c3bec1b138f99af7bbb9d04720a4452286830ee5d5aefca4266835c58f32`. + +The complete replay with the readable historical source passes **193/193**, zero skipped/cancelled/model calls/evaluated-PR writes. + +- `readable-legacy-shadow-193.log.gz`: 20493 original bytes; SHA-256 `49fd783acc93c3c17fbdb88f41dbb57d463095e7a0afb9500a4af2906201ba90`. + + +## Every process uses the complete reviewed launch + +Native review on f583e40c found that its internal --admitted-worker endpoint +accepted a self-pinned request from any IPC-connected parent. The new causal +control executes the actual frozen previous bootstrap and observes successful +admission without calling public launch. It then checks that the current code +rejects the same invocation before driver execution. The historical bootstrap +is reviewable UTF-8 data, `legacy-bootstrap-f583e40c.cjs.txt`, 14,309 bytes, +SHA-256 `e809d86426f33ac20bae21cf463253fcbf8f489aff4888c532e82afa40d2f609`. + +The worker endpoint and IPC message handler are removed. The external bootstrap +now authenticates and materializes the closure and calls the driver in that same +process. Each nested scheduler/review process starts the external bootstrap with +the same explicit reviewed plan and bootstrap pins, repeats the entire public +validation/materialization/dependency-copy proof, then installs process-local +context. Review slots retain the exact parent corpus campaign and validate its +matching passing evidence. A caller-supplied IPC object cannot initialize context. +The five closed modes have fixed argument counts; there is no acceptance of an +internal worker request or persisted admission receipt. Operator review of the +external digest remains essential; this is no independent human/host attestation. + +The strengthened nested positive control asserts the exact corpus campaign at +the final slot, in addition to the plan identity. The prior first20-case local +pass used a permissive fake corpus gate and is retained as that limited result. +Explicit SIGTERM still reaches the executing admitted driver; the same readiness, +interrupted-output/exit and cleanup control applies. No model or evaluated-PR +calls, new consumer option, cohort change or investigation limit is introduced. + +The previous mandatory hook attempt failed with a SIGSEGV in the existing +branch_sync_resolved_workspace suite: 942 suites /18,689 tests passed. Its six +unchanged tests pass in isolation. The raw failure and isolated result are +retained, and the complete hook must run again on the final correction. +The initial standalone IPC diagnostic did not load its helper; a second +standalone diagnostic rewrote a generated driver path incorrectly and therefore +refused for the wrong reason. Neither establishes the vulnerability or the fix. +The in-repository causal failure does: the unchanged real previous worker returns +zero and writes admitted output; the corrected assertion rejects that behavior. + +- `readable-legacy-hook-sigsegv.log.gz`: 463058 original bytes; SHA-256 `40dac502be2bfb2b796f45e8c35ec1a50c82a5ecbd452c2347170b4248ce7352`. +- `readable-legacy-hook-isolated-six.log.gz`: 209 original bytes; SHA-256 `11895ae53f61f01219ce0e18a30231d0f953bdefb8375c77771d9179f3b6f458`. +- `ipc-counter-import-diagnostic.log.gz`: 1351 original bytes; SHA-256 `259e2328dccacf45cbec1972e7517fc7ca29625950b4be8a226116de4563079b`. +- `ipc-counter-path-diagnostic.log.gz`: 279 original bytes; SHA-256 `0f88853d8605aecdcd40a76ee63c43c48912586f0b60c5d90eb8c9590ac0cca3`. +- `ipc-parent-causal-negative.log.gz`: 1089 original bytes; SHA-256 `ea981eb57d99675c9d3b1b96ff15fc153879f1260cac9dac6304880ac846baa7`. +- `public-launch-bootstrap-first-20.log.gz`: 3086 original bytes; SHA-256 `74abfe52a06f3d91dcd9335bfc4c3e8250b8a26b2de4e56004f913a902cf23e7`. + +Final strengthened bootstrap controls: **20/20** pass. The full combined suite +passes **194/194**, zero skipped/cancelled/model calls/evaluated-PR writes, +including the actual relative-lab zero-candidate journey. Specification/catalog, +documentation and Graphify validation pass. The mandatory complete hook and +new-SHA native review remain separate outstanding checks. + +- `public-launch-bootstrap-final-20.log.gz`: 3078 original bytes; SHA-256 `dd36c3d82104459d248551924674cbb8b0497bfce81fb19e0fc9af0766bfb3fd`. +- `public-launch-shadow-194.log.gz`: 20219 original bytes; SHA-256 `b21d59d3f604cb4168a71ee8f25b8ff3843fa19e1b1a3d4fa8ae065d7a3dfb57`. diff --git a/quality/bugbot/evidence/issue-970/ipc-counter-import-diagnostic.log.gz b/quality/bugbot/evidence/issue-970/ipc-counter-import-diagnostic.log.gz new file mode 100644 index 0000000000000000000000000000000000000000..07b7ec7f0d2e38dc1135e267803be4cb130661cb GIT binary patch literal 532 zcmV+v0_*)BiwFP!00002|E*L@Zrd;r-SZT)lMPfKDv}keMK?)|ws349A9PW)1}o7q zZHi<`%1Kdl*E4k0i{v^vNhw7((rl_4-AEkFyf<%VI25v^ITMy@L3minvgXu;#oB~i zl9K8ir=w#8U{_k+0@eDZGd>}7rnS^LoDd4EHpKeZ|Q__m#U&L5Iu@Y+-JCBy46Ho{5uQA$9bIXSxUMjHMbqn+e-0?)Fa<1ew5(+&-OerO#9*E5zg`W zd3N0mzeoO2mOPdJ7vzd^MYVAg%^Y-(ntxu?!UnI1km744Yx5cghuk;U&8L@T*ULgy z4&JMraqOm%4B?yOD4J;S&gZAs)3e2Fezlm)uV<&;3+L@OzpixCj5B&ztcvf3S1poj?IsBji literal 0 HcmV?d00001 diff --git a/quality/bugbot/evidence/issue-970/ipc-counter-path-diagnostic.log.gz b/quality/bugbot/evidence/issue-970/ipc-counter-path-diagnostic.log.gz new file mode 100644 index 0000000000000000000000000000000000000000..6995b3ab497f0becccfa830409874eff784c4c3f GIT binary patch literal 225 zcmV<703QDziwFP!00002|2<7RN(4a=&F2(NM+(Eztt-1sCKH)$W+>%!4HWjzu4+NW z%p(|j5wEi+v1b^Cf_k5N_1^WA9O}XLI#tP4#)2T|^e}^G>~(0iAHjRpgXuNCfUnEJ zsoWP5ycNNaWidax^Y@p6sGvNO6ezFi?lh_l1*515Voahak`Q=$L-kzSo@oN1)Iu&0 z^MWp{xwboVFlK)h__8~H{wP5fR(8c)TQ4iKk_`N(&p>`tTiJx(quV$?QO^HNl1m$O bwXF3Ip?$IY1qpiwFP!00002|HV?xj@mE~zVj4w1Ehr{{0MNXN_3Y4huyA#s)wpVCYc16 zV5jzEfvtM$GxXFK>Fe+$9S6#4)vA{s8b$KhpJ(R#zVY$`KL32&+vY-LEi}DnDOgJ~8GwCTGZPR8d@ZWD;`@ zlhRfUms_qr7)9+-H0q3^TJ6YceL2@XnmoHwZ_8x$!xY9&*zibV*2LpgZMM2 zCo&0KL_usc;hqHSV_RwgJ83oBCOnYxl}592l5=*7)_j^E^gUYUiLMi5NZf!Clfun- z_HKH&e9J_Zi^=W%@@6`F0j2X}2xwa{1xF|oR=~gicpeLO_4-7j{ZeY94_ns$3K~IS z)q^DTnL%s{l^behM&_;2;5?*%9Al>^I$`sPigX7ZSA^Q^1vE5^6^f}@E%U(VE%{ud ztzr@N_#F&>%XcI#&C8X)Gfp}A^~LPJR9v&~=$O=SAi7QXTvg4GA+{j7Wk_ZycowYpGo6!FF-^Q*=ln#aDPvA;iyZ5G P^riL_?Y}12K?DE*0lgdK literal 0 HcmV?d00001 diff --git a/quality/bugbot/evidence/issue-970/legacy-bootstrap-f583e40c.cjs.txt b/quality/bugbot/evidence/issue-970/legacy-bootstrap-f583e40c.cjs.txt new file mode 100644 index 000000000..612c7634e --- /dev/null +++ b/quality/bugbot/evidence/issue-970/legacy-bootstrap-f583e40c.cjs.txt @@ -0,0 +1,224 @@ +'use strict'; + +// Trust begins OUTSIDE the checkout: materialize this file from an independently +// reviewed Git revision, compare its reviewed SHA-256, then start trusted Node +// with NODE_OPTIONS/NODE_PATH unset. See issue-970/README.md. This file uses only +// Node core until the immutable verifier and every driver have been admitted. +const assert = require('node:assert/strict'); +const fs = require('node:fs'); +const path = require('node:path'); +const os = require('node:os'); +const { createHash } = require('node:crypto'); +const { execFileSync, fork } = require('node:child_process'); +const sha256 = bytes => createHash('sha256').update(bytes).digest('hex'); +const prefix = 'quality/bugbot/evidence/issue-950/'; +const ev07 = ['configuration.cjs', 'implementation.cjs', 'load.cjs', 'corpus.cjs', 'review.cjs', + 'full-review.cjs', 'launch-full-review.cjs', 'score-review.py', '../execution-provenance.cjs', '../qualification-bootstrap.cjs']; +const normal = ['run.cjs', '../execution-provenance.cjs', '../ev07-shadow/load.cjs', + '../ev07-shadow/implementation.cjs', '../ev07-shadow/configuration.cjs', '../qualification-bootstrap.cjs']; +const entries = Object.freeze({ corpus: 'ev07-shadow/corpus.cjs', + 'full-review': 'ev07-shadow/launch-full-review.cjs', 'normal-flow': 'normal-flow-shadow/run.cjs', + 'full-review-runner': 'ev07-shadow/full-review.cjs', review: 'ev07-shadow/review.cjs' }); + +function safePath(value) { + assert(typeof value === 'string' && value.length && !path.isAbsolute(value) + && !value.includes('\\') && !value.split('/').some(part => ['', '.', '..', '.git'].includes(part)), + 'unsafe committed artifact path'); + return value; +} + +function physical(root, relative) { + let file = root; + for (const part of safePath(relative).split('/')) { + file = path.join(file, part); + assert(!fs.lstatSync(file).isSymbolicLink(), 'qualification artifact symlink refused'); + } + assert(fs.lstatSync(file).isFile(), 'qualification artifact must be a regular file'); + return file; +} + +function gitFor(root) { + const file = process.platform === 'darwin' ? execFileSync('/usr/bin/xcrun', ['--find', 'git'], + { env: { PATH: '/usr/bin:/bin' }, encoding: 'utf8' }).trim() + : process.platform === 'linux' ? '/usr/bin/git' : undefined; + assert(file && path.isAbsolute(file), 'trusted Git requires Linux or macOS'); + const executable = fs.realpathSync(file), marker = path.join(root, '.git'); + assert(!fs.lstatSync(marker).isSymbolicLink(), 'Git identity symlink refused'); + let directory = marker; + if (fs.lstatSync(marker).isFile()) { + const match = /^gitdir: (.+)\r?\n?$/u.exec(fs.readFileSync(marker, 'utf8')); + assert(match, 'invalid worktree Git identity'); + directory = path.resolve(root, match[1]); + } + const env = Object.fromEntries(Object.entries(process.env).filter(([key]) => !key.toUpperCase().startsWith('GIT_'))); + Object.assign(env, { GIT_CONFIG_GLOBAL: os.devNull, GIT_CONFIG_NOSYSTEM: '1', GIT_NO_REPLACE_OBJECTS: '1' }); + const git = (...args) => execFileSync(executable, ['--no-pager', '--no-replace-objects', '--literal-pathspecs', + '--git-dir=' + directory, '--work-tree=' + root, '-C', root, + '-c', 'core.hooksPath=' + os.devNull, '-c', 'core.fsmonitor=false', ...args], + { env, maxBuffer: 256 * 1024 * 1024, stdio: ['pipe', 'pipe', 'pipe'] }); + return { git, executable, env, directory }; +} + +function committed(git, revision, relative) { + safePath(relative); + const rows = git('ls-tree', '-z', revision, '--', relative).toString('utf8').split('\0').filter(Boolean); + assert.equal(rows.length, 1, 'committed artifact unavailable'); + const [header, name] = rows[0].split('\t'), [mode, type, blob] = header.split(' '); + assert(['100644', '100755'].includes(mode) && type === 'blob' && name === relative, + 'committed artifact must be a regular blob'); + return git('cat-file', 'blob', blob); +} + +function reviewedPlan(repository, revision, planPath, planSha256, bootstrapSha256, mode) { + assert(!process.env.NODE_OPTIONS && !process.env.NODE_PATH && process.execArgv.length === 0, + 'bootstrap requires trusted Node without preloads or loader overrides'); + assert.match(revision ?? '', /^[a-f0-9]{40}$/u, 'reviewed plan commit required'); + assert.match(planSha256 ?? '', /^[a-f0-9]{64}$/u, 'independently reviewed plan digest required'); + assert.match(bootstrapSha256 ?? '', /^[a-f0-9]{64}$/u, 'independently reviewed bootstrap digest required'); + assert.equal(sha256(fs.readFileSync(__filename)), bootstrapSha256, 'reviewed bootstrap differs'); + assert(Object.hasOwn(entries, mode), 'unsupported qualification entrypoint'); + const root = fs.realpathSync(repository), trust = gitFor(root), { git } = trust; + assert.equal(git('rev-parse', '--verify', revision + '^{commit}').toString('utf8').trim(), revision); + assert.equal(sha256(committed(git, revision, prefix + 'qualification-bootstrap.cjs')), bootstrapSha256, + 'plan revision does not contain the independently reviewed bootstrap'); + const bytes = committed(git, revision, planPath); + assert.equal(sha256(bytes), planSha256, 'reviewed committed plan differs'); + assert(fs.readFileSync(physical(root, planPath)).equals(bytes), 'working plan differs from reviewed commit'); + const plan = JSON.parse(bytes); + assert.equal(plan.publication, 'dry-run', 'qualification must remain dry-run'); + assert.match(plan.implementation ?? '', /^[a-f0-9]{40}$/u); + git('merge-base', '--is-ancestor', plan.implementation, revision); + const base = prefix + (mode === 'normal-flow' ? 'normal-flow-shadow/' : 'ev07-shadow/'); + const inventory = mode === 'normal-flow' ? normal : ev07; + const expected = mode === 'normal-flow' ? plan.drivers : plan.inspectedArtifacts; + const admitted = []; + for (const driver of inventory) { + const relative = path.posix.normalize(base + driver), trusted = committed(git, revision, relative); + assert.equal(sha256(trusted), expected?.[driver], 'committed driver differs from reviewed plan: ' + driver); + assert(fs.readFileSync(physical(root, relative)).equals(trusted), 'working driver differs: ' + driver); + admitted.push([relative, trusted]); + } + return { root, trust, bytes, plan, admitted }; +} + +function spawnAdmitted(request, env, options = {}) { + assert(Object.keys(options).every(key => key === 'stdio'), 'unsupported qualification child options'); + assert.equal(sha256(fs.readFileSync(__filename)), request.proof.bootstrapSha256, 'executing bootstrap changed'); + const io = options.stdio ?? 'inherit'; + const stdio = Array.isArray(io) ? [...io, 'ipc'] : [io, io, io, 'ipc']; + const child = fork(__filename, ['--admitted-worker'], { env, stdio, execArgv: [], cwd: process.cwd() }); + child.send(request, error => { if (error) child.emit('error', error); }); + return child; +} + +async function executeAdmitted(request) { + assert(request && Array.isArray(request.args) && request.args.every(arg => typeof arg === 'string'), + 'invalid admitted invocation'); + const { root: repository, proof, mode } = request; + const { root, plan } = reviewedPlan(repository, proof.planCommit, proof.planPath, + proof.planSha256, proof.bootstrapSha256, mode); + // The executing file is still the externally materialized bootstrap. Repeat + // private-byte/source/runtime checks before loading any private driver in + // each child. No receipt in this checkout is read as execution authority. + const verifier = require(path.join(root, prefix, 'execution-provenance.cjs')); + verifier.attestSource(root, plan.implementation); + verifier.attestRuntime(root, plan.runtime); + verifier.initializeBootstrapContext(root, proof, (nextMode, args, options) => { + assert(mode === 'full-review' && nextMode === 'full-review-runner' + || mode === 'full-review-runner' && nextMode === 'review', 'unadmitted qualification child route'); + const corpusCampaign = mode === 'full-review' ? request.args[0] : request.corpusCampaign; + return spawnAdmitted({ root, proof, mode: nextMode, args, corpusCampaign }, process.env, options); + }); + if (mode === 'review') { + assert(typeof request.corpusCampaign === 'string', 'paired review requires its passing corpus'); + require(path.join(root, prefix, entries['full-review'])).requirePassingCorpus(request.corpusCampaign); + } + const driver = require(path.join(root, prefix, entries[mode])); + assert.equal(typeof driver.run, 'function', 'admitted driver entry is unavailable'); + return driver.run(...request.args); +} + +async function launch(repository, revision, planPath, planSha256, bootstrapSha256, mode, ...args) { + assert(['corpus', 'full-review', 'normal-flow'].includes(mode), 'unsupported public qualification entrypoint'); + assert(mode === 'normal-flow' ? args.length === 3 : mode === 'full-review' ? args.length === 1 + : args.length === 1 || args.length === 2 && args[1] === '--preflight', 'invalid qualification arguments'); + const { root, trust, bytes, plan, admitted } = reviewedPlan(repository, revision, + planPath, planSha256, bootstrapSha256, mode); + assert(!fs.realpathSync(__filename).startsWith(root + path.sep), 'materialize the reviewed bootstrap outside the checkout'); + const scratch = fs.realpathSync(fs.mkdtempSync(path.join(os.tmpdir(), 'bugbot-qualified-source-'))); + fs.chmodSync(scratch, 0o700); + const isolated = path.join(scratch, 'source'); + try { + // A fresh local clone does not copy source repository hooks/configuration. + execFileSync(trust.executable, ['-c', 'core.hooksPath=' + os.devNull, 'clone', '--quiet', '--shared', + '--no-checkout', '--template=', trust.directory, isolated], { env: trust.env }); + const isolatedGit = gitFor(isolated).git; + isolatedGit('checkout', '--quiet', '--detach', revision); + isolatedGit('remote', 'remove', 'origin'); + // Git attributes can transform checkout bytes even without external + // filters. Recheck the materialized closure before requiring its helper. + for (const [relative, trusted] of admitted) assert( + fs.readFileSync(physical(isolated, relative)).equals(trusted), 'materialized driver differs: ' + relative); + assert(fs.readFileSync(physical(isolated, planPath)).equals(bytes), 'materialized plan differs'); + // The helper is now the immutable blob already checked above, not a + // working-tree verifier asked to authenticate itself after execution. + const verifier = require(path.join(isolated, prefix, 'execution-provenance.cjs')); + verifier.attestSource(root, plan.implementation); + verifier.attestRuntime(root, plan.runtime); + assert(!fs.existsSync(path.join(isolated, 'node_modules')), 'tracked dependency installation refused'); + fs.cpSync(path.join(root, 'node_modules'), path.join(isolated, 'node_modules'), + { recursive: true, verbatimSymlinks: true, dereference: false, mode: fs.constants.COPYFILE_FICLONE }); + verifier.attestSource(isolated, plan.implementation); + verifier.attestRuntime(isolated, plan.runtime); + const proof = { bootstrapSha256, planCommit: revision, planPath, planSha256 }; + // The application evidence adapter also invokes the bare Git command. + // Bind that lookup to the admitted OS executable without changing how + // Node/Codex or any other normal detector executable is selected. + const gitBin = path.join(scratch, 'git-bin'); + fs.mkdirSync(gitBin, { mode: 0o700 }); + fs.symlinkSync(trust.executable, path.join(gitBin, 'git')); + const env = { ...trust.env, COPILOT_EV07_PLAN: path.join(isolated, planPath), + PATH: gitBin + path.delimiter + (trust.env.PATH ?? '/usr/bin:/bin'), + BUGBOT_VERIFICATION_MODE: 'disabled', + COPILOT_QUALIFICATION_MANIFEST_SHA256: planSha256, + COPILOT_QUALIFICATION_PLAN_COMMIT: revision }; + delete env.NODE_OPTIONS; + delete env.NODE_PATH; + // Old diagnostic plans may select an auxiliary executable from the + // environment. A future reviewed plan must bind it before any probe. + if (plan.workflowInputs) { + assert(path.isAbsolute(plan.runtime.pythonExecutable ?? ''), 'pinned auxiliary Python required'); + assert.equal(sha256(fs.readFileSync(plan.runtime.pythonExecutable)), plan.runtime.pythonSha256, + 'auxiliary Python differs from reviewed runtime'); + env.PILOT_LOCAL_PYTHON = plan.runtime.pythonExecutable; + } + const childArgs = mode === 'normal-flow' ? [...args, path.join(isolated, planPath)] : args; + const child = spawnAdmitted({ root: isolated, proof, mode, args: childArgs }, env); + const interrupt = () => child.kill('SIGINT'), terminate = () => child.kill('SIGTERM'); + process.once('SIGINT', interrupt); + process.once('SIGTERM', terminate); + try { + return await new Promise((resolve, reject) => { + child.once('error', reject); + child.once('close', (code, signal) => resolve(code ?? (signal === 'SIGINT' ? 130 : signal === 'SIGTERM' ? 143 : 1))); + }); + } finally { + process.removeListener('SIGINT', interrupt); + process.removeListener('SIGTERM', terminate); + } + } finally { fs.rmSync(scratch, { recursive: true, force: true }); } +} + +module.exports = { launch }; +if (require.main === module) { + const fail = error => { console.error(error.message); process.exitCode = 1; }; + if (process.argv[2] === '--admitted-worker') { + if (!process.send || !process.connected) fail(new Error('admitted worker requires the external bootstrap IPC channel')); + else process.once('message', request => { + process.disconnect(); + executeAdmitted(request).then(code => { + process.exitCode = Number.isInteger(code) ? code : code?.status === 'interrupted' ? 130 : 0; + }).catch(fail); + }); + } else launch(...process.argv.slice(2)).then(code => { process.exitCode = code; }).catch(fail); +} diff --git a/quality/bugbot/evidence/issue-970/legacy-verifier-01097099.cjs.gz b/quality/bugbot/evidence/issue-970/legacy-verifier-01097099.cjs.gz deleted file mode 100644 index 26fb1bad8f01dfb8527f575ff9ad76c705c58784..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 4577 zcmV<75gzUziwFP!00002|HWHvbK5o&{@!1K%ydffDp5`+X|Bq+xg>SlbW%GPyK{5n zC>e@^B*qlU0;Fuk@qfSF#R~zFQquNr&NGQ65?Cx2`||8!9W;_NS&J;KgU4Tdk(Pz5 zSt2DDH9Ka4|K4PRhe1&;_*6Zf=+V(*J^GgM8=n4{<@|hCr0lLYFI{K(;$0=mluPN( zO9fAA{&OPNL$k!Ls>^oxQuc-{J!%WSJ#F%QfK=&>tCD)%8-NdSh#s>>j*i)US94hO zdxy_3kn7}|hu;QK+*AvA7}B69USumS>o8dJn|3W(HX`M(fH?AgHh<64I$jFSKk)D} zkRlC6EU1cVGtSHOD&8fV9G}z@rZ2Nq{9cv?4N20gWX09@8S=SoinPwkf~~Upq}XPn zEH=ET!-(B}!Qe-&&x@_QZn-%r;Ow{z^&_so>Z5`0+bCXUdCf%_US9FtEW+*IgHLf? z{#I37JWnJKqgd97sO7)18YJ@5i;H(b6aibfvfyZ-{%)6zfM_jKTvN@&)&U0dG+$?^OJXH&we?1esNAO+1=wW?i>-+ zqLDRU`~;E!J#6Y^o^vaR$%H*C%NlexsThiY)oad5*hx}n#fr%t%-xJw!M9wnS5Gf~ zW~E>WOOs8NWUFEfve{+}zF_mLNW?BSRL=^wNz$`(*sv_~EhoB3S~p3K`{OyTF|Nxp zmkd~Au-+P0sMkqB`h|;UwPf&V6FX-H;^%N^=18hMsh6eLu;b%n7Az8RofQEM$Db#j z>4m|hkzxXjPHs}spz2%(p7N|v_D#2`|Y z6<#*=^6x-L){Cs10%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Q#WUZy>}Bhq9rh~e zm+F#zo8%3jAPse$HX8b&csx#aJALCDX&yJfIWoolErs8e1yx9Q+f+Q*(O zM+v91Oy_imHApSnW6rxtY$XPVg^SGgai`C!ZELniDx5-khfghcqCC?4>LTP_6b+r} zbJLabRMgoLW@!CZ6b!S}|W!y<8)3P*& zYE>=L#kc0$fu1MocskVgKcV!Q^`%ed|FF$WMFE;M0wmqrDA^ z*qW%8FntMD8U9ey;XqdCB)KEJM?L6&_I6fYt~qA)s>G(-59Q_2%raAB(lXensAl#q zsQ*%e$QjibkTV5E^#@b^!0|awUq`%-d`MN? zJ_+4usrnrBWwlxM;4*4YYL#9+gzU~da@3|~<8{hsBkKLZHlvK0_=^RKO^fgQ$G^m2VUE&icWv_mJs=MMd zDzW}aT8`rMJ*Kiw%o=1F4WKWl_HRA9MsyJ5b-7n7R(VoT%IQ8ZtG7=SQQwZ}Eor|> z&SSg}71V!q>-`nM$WN+9eugpX=1-%6I>l&zjZ(?b2A@$UWgQLX@}qsi8tu1WH1+=g L9AM8>Wjg=>fH2XB diff --git a/quality/bugbot/evidence/issue-970/legacy-verifier-01097099.cjs.txt b/quality/bugbot/evidence/issue-970/legacy-verifier-01097099.cjs.txt new file mode 100644 index 000000000..9f7864fb5 --- /dev/null +++ b/quality/bugbot/evidence/issue-970/legacy-verifier-01097099.cjs.txt @@ -0,0 +1,255 @@ +'use strict'; + +const assert = require('node:assert/strict'); +const { execFileSync } = require('node:child_process'); +const { createHash } = require('node:crypto'); +const fs = require('node:fs'); +const { devNull } = require('node:os'); +const path = require('node:path'); + +const hash = bytes => createHash('sha256').update(bytes).digest('hex'); +const sourcePaths = Object.freeze(['src', 'pnpm-lock.yaml', 'tsconfig.json', 'package.json']); + +function gitEnvironment() { + const env = Object.fromEntries(Object.entries(process.env).filter(([key]) => !key.toUpperCase().startsWith('GIT_'))); + return { ...env, GIT_CONFIG_GLOBAL: devNull, GIT_CONFIG_NOSYSTEM: '1', GIT_NO_REPLACE_OBJECTS: '1' }; +} + +function trustedGitExecutable() { + // Bootstrap from the operating system, never PATH or a campaign-provided binary. + // On macOS resolve the actual developer-tools Git rather than hashing its shim. + const file = process.platform === 'darwin' + ? execFileSync('/usr/bin/xcrun', ['--find', 'git'], { + env: { PATH: '/usr/bin:/bin' }, encoding: 'utf8', stdio: ['ignore', 'pipe', 'pipe'], + }).trim() + : process.platform === 'linux' ? '/usr/bin/git' : undefined; + assert(file && path.isAbsolute(file), 'qualification Git bootstrap supports Linux and macOS only'); + const executable = fs.realpathSync(file); + assert(fs.lstatSync(executable).isFile(), 'trusted Git executable unavailable'); + return executable; +} + +function pinnedGit(root) { + root = fs.realpathSync(root); + const marker = path.join(root, '.git'); + const stat = fs.lstatSync(fs.existsSync(marker) ? marker : root); + assert(!stat.isSymbolicLink(), 'repository Git identity must not be a symlink'); + let directory = fs.existsSync(marker) ? marker : root; + if (stat.isFile()) { + const match = /^gitdir: (.+)\r?\n?$/u.exec(fs.readFileSync(marker, 'utf8')); + assert(match, 'invalid worktree Git identity'); + directory = path.resolve(root, match[1]); + } else assert(stat.isDirectory(), 'repository Git identity unavailable'); + const env = gitEnvironment(); + const executable = trustedGitExecutable(); + const command = (...args) => execFileSync(executable, ['--no-pager', '--no-replace-objects', '--literal-pathspecs', + '--git-dir=' + directory, '--work-tree=' + root, '-C', root, + '-c', 'core.fsmonitor=false', '-c', 'core.hooksPath=' + devNull, '-c', 'core.quotePath=false', '-c', 'log.showSignature=false', ...args], + { env, stdio: ['pipe', 'pipe', 'pipe'], maxBuffer: 256 * 1024 * 1024 }); + command.executable = executable; + return command; +} + +function attestSource(root, implementation) { + assert.match(implementation ?? '', /^[a-f0-9]{40}$/u, 'invalid implementation pin'); + root = fs.realpathSync(root); + const git = pinnedGit(root); + const text = (...args) => git(...args).toString('utf8').trim(); + assert.equal(text('rev-parse', '--verify', implementation + '^{commit}'), implementation, + 'preregistered implementation commit unavailable'); + const rows = git('ls-tree', '-r', '-z', '--full-tree', implementation, '--', ...sourcePaths) + .toString('utf8').split('\0').filter(Boolean).map(row => { + const tab = row.indexOf('\t'); + const [mode, type, blob] = row.slice(0, tab).split(' '); + const name = row.slice(tab + 1); + assert(['100644', '100755'].includes(mode) && type === 'blob', 'source must be a regular committed file'); + assert(!path.isAbsolute(name) && !name.split('/').some(part => ['..', '.git'].includes(part)), 'unsafe source path'); + return { path: name, blob }; + }); + const expected = new Map(rows.map(row => [row.path, row])); + assert(expected.has('pnpm-lock.yaml') && expected.has('tsconfig.json') && rows.some(row => row.path.startsWith('src/')), + 'preregistered source inventory unavailable'); + // Compare the physical inventory, including ignored files and symlinked parents. + // Git's assume-unchanged, sparse/skip-worktree and stat cache are not byte evidence. + const actual = []; + function visit(relative) { + const file = path.join(root, relative); + let stat; + try { stat = fs.lstatSync(file); } + catch (error) { + if (error.code !== 'ENOENT') throw error; + assert(!expected.has(relative), 'application source or lockfile does not match the preregistered implementation'); + return; + } + assert(!stat.isSymbolicLink(), 'application source symlink is not admitted'); + if (stat.isDirectory()) { + for (const name of fs.readdirSync(file)) visit(relative + '/' + name); + } else { + assert(stat.isFile() && expected.has(relative), 'untracked application source or lockfile'); + actual.push(relative); + } + } + for (const name of sourcePaths) visit(name); + assert.equal(actual.length, expected.size, 'application source or lockfile does not match the preregistered implementation'); + assert.equal(text('diff', '--cached', '--no-ext-diff', '--no-textconv', '--name-only', implementation, '--', ...sourcePaths), '', + 'staged application source or lockfile does not match the preregistered implementation'); + // One batch reads immutable blobs without filters, attributes, textconv or a checkout. + const contents = execFileSync(git.executable, ['--no-replace-objects', '--git-dir=' + text('rev-parse', '--absolute-git-dir'), + '-c', 'core.fsmonitor=false', 'cat-file', '--batch'], { + env: gitEnvironment(), input: rows.map(row => row.blob).join('\n') + '\n', maxBuffer: 256 * 1024 * 1024, + }); + let offset = 0; + for (const row of rows) { + const end = contents.indexOf(10, offset); + const [blob, type, length] = contents.subarray(offset, end).toString('utf8').split(' '); + const size = Number(length); + assert(blob === row.blob && type === 'blob' && Number.isSafeInteger(size) && size >= 0, 'invalid pinned source blob'); + const bytes = contents.subarray(end + 1, end + 1 + size); + const local = fs.readFileSync(path.join(root, row.path)); + assert(bytes.equals(local), 'application source or lockfile does not match the preregistered implementation: ' + row.path); + row.sha256 = hash(local); + offset = end + size + 2; + } + assert.equal(offset, contents.length, 'invalid pinned source stream'); + return { implementation, tree: text('rev-parse', implementation + '^{tree}'), + sourceSha256: hash(JSON.stringify(rows)), dependencyLockSha256: expected.get('pnpm-lock.yaml').sha256, + compilerConfigurationSha256: expected.get('tsconfig.json').sha256 }; +} + +function dependencyIdentity(root) { + root = fs.realpathSync(root); + const directory = path.join(root, 'node_modules'); + assert(fs.lstatSync(directory).isDirectory() && !fs.lstatSync(directory).isSymbolicLink(), + 'qualification dependencies must have a physical installation'); + const rows = []; + function visit(relative) { + const file = path.join(directory, relative), stat = fs.lstatSync(file); + if (stat.isSymbolicLink()) { + const link = fs.readlinkSync(file), lexical = path.relative(directory, path.resolve(path.dirname(file), link)); + if (relative === path.join('.pnpm', 'node_modules', '@vypdev', 'copilot-browser-extension') + && fs.realpathSync(file) === path.join(root, 'extension')) { + // Normal pnpm workspaces expose this unused portal. Its code is + // outside admission and the entrypoint loader fence forbids it. + rows.push([relative, 'unadmitted-workspace', link, 'extension']); + return; + } + assert(lexical && !path.isAbsolute(lexical) && !lexical.split(path.sep).includes('..'), + 'dependency symlink escapes the admitted installation'); + let target; + try { target = path.relative(directory, fs.realpathSync(file)); } + catch (error) { if (error.code !== 'ENOENT') throw error; } + assert(target === undefined || target && !path.isAbsolute(target) && !target.split(path.sep).includes('..'), + 'dependency symlink escapes the admitted installation'); + // pnpm can retain links to platform-excluded optional packages. + // Bind the missing target as well; materializing it changes this proof. + rows.push([relative, 'link', link, target ?? 'missing:' + lexical]); + } else if (stat.isDirectory()) { + for (const name of fs.readdirSync(file).sort()) visit(path.join(relative, name)); + } else { + assert(stat.isFile(), 'dependency must be a regular file or internal symlink'); + rows.push([relative, 'file', stat.mode & 0o777, hash(fs.readFileSync(file))]); + } + } + visit(''); + // These ancestors could otherwise shadow the admitted root dependencies. + for (const relative of ['quality', 'quality/bugbot', 'quality/bugbot/evidence', + 'quality/bugbot/evidence/issue-950', 'quality/bugbot/evidence/issue-950/ev07-shadow', + 'quality/bugbot/evidence/issue-950/normal-flow-shadow']) { + assert(!fs.existsSync(path.join(root, relative, 'node_modules')), 'unadmitted qualification dependency shadow'); + } + assert(!process.env.NODE_PATH && !process.env.NODE_OPTIONS, 'qualification requires a clean Node loader environment'); + assert(!process.execArgv.some(arg => /^(?:--require|--import|--loader|--experimental-loader)(?:=|$)|^-r/u.test(arg)), + 'qualification Node preload is not admitted'); + return { dependencyTreeSha256: hash(JSON.stringify(rows)), dependencyEntries: rows.length }; +} + +function admitQualificationModules(root) { + root = fs.realpathSync(root); + const { registerHooks } = require('node:module'), { fileURLToPath } = require('node:url'); + assert.equal(typeof registerHooks, 'function', 'qualification requires synchronous Node module hooks'); + const admitted = ['src', 'node_modules', 'quality/bugbot/evidence/issue-950'] + .map(relative => path.join(root, relative) + path.sep); + return registerHooks({ resolve(specifier, context, nextResolve) { + const result = nextResolve(specifier, context); + if (!result.url.startsWith('node:')) { + assert(result.url.startsWith('file:'), 'qualification module must have a physical admitted path'); + const file = fs.realpathSync(fileURLToPath(result.url)); + assert(admitted.some(prefix => file.startsWith(prefix)), 'module is outside the admitted qualification closure'); + } + return result; + } }); +} + +function runtimeIdentity(root) { + const dependencies = dependencyIdentity(root); + const typescript = require.resolve('typescript', { paths: [root] }); + assert(fs.realpathSync(typescript).startsWith(fs.realpathSync(path.join(root, 'node_modules')) + path.sep), + 'compiler is outside the admitted dependency tree'); + const gitExecutable = trustedGitExecutable(); + return { ...dependencies, node: process.version, nodeSha256: hash(fs.readFileSync(process.execPath)), + gitExecutable, gitSha256: hash(fs.readFileSync(gitExecutable)), + git: execFileSync(gitExecutable, ['--version'], { env: gitEnvironment(), encoding: 'utf8' }).trim(), + typescript: JSON.parse(fs.readFileSync(require.resolve('typescript/package.json', { paths: [root] }))).version, + typescriptSha256: hash(fs.readFileSync(typescript)) }; +} + +function attestRuntime(root, selected) { + const actual = runtimeIdentity(root); + for (const [name, value] of Object.entries(actual)) { + assert.equal(value, selected?.[name], 'preregistered runtime differs: ' + name); + } + return actual; +} + +function attestDrivers(directory, expected, files) { + return Object.fromEntries(files.map(file => { + const target = path.join(directory, file); + assert(fs.lstatSync(target).isFile(), 'qualification driver must be a regular file: ' + file); + const actual = hash(fs.readFileSync(target)); + assert.equal(actual, expected?.[file], 'qualification driver differs from the preregistration: ' + file); + return [file, actual]; + })); +} + +function attestCommittedArtifact(root, file, expectedSha256, commit) { + assert.match(expectedSha256 ?? '', /^[a-f0-9]{64}$/u, 'reviewed committed artifact digest required'); + assert.match(commit ?? '', /^[a-f0-9]{40}$/u, 'reviewed artifact commit required'); + const requestedRoot = path.resolve(root); + root = fs.realpathSync(root); + const requestedFile = path.resolve(file); + const canonicalFile = requestedFile.startsWith(requestedRoot + path.sep) + ? root + requestedFile.slice(requestedRoot.length) : requestedFile; + const relative = path.relative(root, canonicalFile).split(path.sep).join('/'); + assert(relative && !path.isAbsolute(relative) && !relative.split('/').some(part => ['', '..', '.git'].includes(part)), + 'committed artifact must be inside the reviewed repository'); + let current = root; + for (const part of relative.split('/')) { + current = path.join(current, part); + assert(!fs.lstatSync(current).isSymbolicLink(), 'committed artifact symlink refused'); + } + assert(fs.lstatSync(current).isFile(), 'committed artifact must be regular'); + const git = pinnedGit(root), rows = git('ls-tree', '-z', commit, '--', relative).toString('utf8').split('\0').filter(Boolean); + assert.equal(rows.length, 1, 'reviewed committed artifact unavailable'); + const [header, name] = rows[0].split('\t'), [mode, type, blob] = header.split(' '); + assert(['100644', '100755'].includes(mode) && type === 'blob' && name === relative, + 'reviewed committed artifact must be a regular blob'); + const bytes = fs.readFileSync(current); + assert.equal(hash(bytes), expectedSha256, 'reviewed committed artifact digest differs'); + assert(git('cat-file', 'blob', blob).equals(bytes), 'reviewed committed artifact bytes differ'); + return { bytes, provenance: { commit, path: relative, blob, sha256: expectedSha256 } }; +} + +function requireBootstrapAdmission(root) { + const file = path.join(root, '.qualification-admission.json'); + assert(fs.existsSync(file), 'qualification requires the independently reviewed immutable bootstrap'); + assert(fs.lstatSync(file).isFile() && !fs.lstatSync(file).isSymbolicLink(), 'invalid bootstrap admission'); + const proof = JSON.parse(fs.readFileSync(file)); + assert.match(proof.bootstrapSha256 ?? '', /^[a-f0-9]{64}$/u); + assert.equal(hash(fs.readFileSync(path.join(root, 'quality/bugbot/evidence/issue-950/qualification-bootstrap.cjs'))), + proof.bootstrapSha256, 'bootstrap admission identity differs'); + attestCommittedArtifact(root, path.join(root, proof.planPath), proof.planSha256, proof.planCommit); + return proof; +} + +module.exports = { attestSource, attestRuntime, attestDrivers, runtimeIdentity, dependencyIdentity, admitQualificationModules, + pinnedGit, gitEnvironment, trustedGitExecutable, attestCommittedArtifact, requireBootstrapAdmission }; diff --git a/quality/bugbot/evidence/issue-970/memory-native-binary-source-failure.log.gz b/quality/bugbot/evidence/issue-970/memory-native-binary-source-failure.log.gz new file mode 100644 index 0000000000000000000000000000000000000000..f52f508c1ebeb3fd82598bec70983a2339dd87db GIT binary patch literal 8680 zcmVJ*!%qjy_9&CxVt8rK%ojBJ+TgRIGm5TnITPb zPV3oSjnF`KH+IlKAAlx@yV?jn=t&BNZAmZo%SAXG_Fr&>9{gYK59oe^Gph>S=q3u? zBxiOnP7gavpewVova<54vI_tDFaM9))UzDNa>7gM4mle#I-suYbLze&$BVKQc}>bi zo{N%PiLy$Id`R}`z;%NG-Ty^5xI;Y}yd~!fERSXaU>2iAUN0<#%W{pdF6GV=c2X9L zd4u8VW}b*EGhoR1TkThNBC4+D55 z>L`ioXiHlksfEFcJW=B{w4@HlskjhvDQZ#`i!uh5>S3B-D0Kn*G0cJ>vmz1wgQV0C z>05GEig{EDa$S_~$60YrlC%_YU6eQ7aDM1eoa_cJ$}$-8Zx#TRkf@Kq0AxG#-;!sd zuG4&?8qk8Bo<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An zKh6_!io4?%@6-8QCZVySOJ4>XfttIi(u#}(y3m5)mgn-Y(l5gR7V345xoRApKF%6H)%E+5WAjA9sHjk&T+v$*Up}vKM*B8eUB*FIxuJFFBDH z#KDj9hDZ2GR_LASJL+(67_0u8_lPKim#gYO+@V#)ut$i+uygPhnu#o$gB^cW?G3rZ zCD=q%`1r$~+@t!S4ishSWLjez_9G0UEN1iicp8;aT*EBw4Q*s-}yilS2;w6^&sJ`$n%9p6=6V*UbdLi@&=2VRkj9h#G zQY@UQy=AN8C{N^_pN|*udx89MRzJQhCU~~AVf8tF$4E+`{{1|77vQ_{S=TW{?xUT2EA<+Yd1O_u8|7j<0BP=YF4vjRsbPu?Hn zfg~mQD7x?TI(-LA6eeYw&O0~ZaZUQRjr-rPbgeQLnMw)=W8Wi@%-+8{P%zTzyGC0>jkJW{oR>`%D43p91Lvy&IcZ1Spxx<0T!%+motug!JW{4 z;0E#=uxE|%E+_Vo{JM3ot*YF?8e3@%c2$suUPH`DK_2UtWm!rD2Sn8hFNJw2z*uakWfwbZs@xFC zYP0qck$31fC2#UHIjI&gmiEC2)s5REDTG=|c$ic!@>Os0$_}u>)!-NBx-6k7&Awf{ zplceD2DK_@lGJNa$}bVf`)LzdSuJnTZ8egsc?QOPuslxDzB3y?F9ChauV{;Tgy(Oy z{+DExH^_n^d0oKMSfDM&><5x}(Gj#&$%plnH$4PUQpZko$Nj z`>cSu`K}ldeZsU$SK;{=?#kPq@AOG{1;3!@tkF?dwpguYiVjX#Y`s9ZC*}dX&0$_%nVTN|6!RuFNI<8~o6c zWPpoz7E$LX_|TH-&WG5^cmLo%v?PgR;MN3qkoOoZm;SanxO#YYMwj-3Cj9@&CP*Lk Gi~s;xnYbSS literal 0 HcmV?d00001 diff --git a/quality/bugbot/evidence/issue-970/public-launch-bootstrap-final-20.log.gz b/quality/bugbot/evidence/issue-970/public-launch-bootstrap-final-20.log.gz new file mode 100644 index 0000000000000000000000000000000000000000..12f4a2e0eab9c3733c22b1d01fcdd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fMg~?!*0RXOYdMT_A^8xDxX^D)Vf2bER;z7w8Vi|HHet@JthWY3@=Xg`3^~ z6G_)1yn#m!;yBMrXVeGsdP7n**-K`dBummL&v%%{0Q}pZ4B8;WG!8Fz5?-tMMRU6@ wbX*L}=S2rlSI8tlGtVA*- zwX@@MJ|V~aNPZ_@k|L#5(Rq?l~qm zD&9SZlpd*_Jw1DE)B{P5UbI0{`-4)>I>YsU&Ft?# z{|FllAnAlt*hoflgt|a55P-eYG&_D6iFHOikg>iN&N^YWvf;bNckYN;HJg^0Gem5c zG({R!c~Ru)WWNe}iXc%u@^!$NxN8UB%O%vpkT{Zc3qh0W(6+Eqir#--p^*tA1VI-p z^MraZ@PHQXs-^;ISryk8NWhR0kic7nLi5^tHKUP+OWXS@J&Trc<2%{U*0+Bt$&b5F z&o}v2-aw-!1E4yN@}zEV?6qo|gmc@3`HaKTt=bFJAZ2>wt%JxMgyaUJ=Hn1R?5y?Z z3x*Jt6;7Em)7%Ygm({+ixTy0_2V1JKY?imZLTc2$);C*U9movo?zrP@m&X8#v!tv( zAIP4kQONs`gJfkL#aa4AAU>!#%KcR+AH%BaD6QipExsIUIq_+AWo1*v%?0Zwo0}&f zA_CZ8Cx$vzh-ZS|7Xh2l_AYfwWAL933oSnJ@kUX`d~G4h#SQY#0{> literal 0 HcmV?d00001 diff --git a/quality/bugbot/evidence/issue-970/public-launch-shadow-194.log.gz b/quality/bugbot/evidence/issue-970/public-launch-shadow-194.log.gz new file mode 100644 index 0000000000000000000000000000000000000000..d7b821cb8033853fdc9400e966f511bcdce435bf GIT binary patch literal 5863 zcmVokIe7Pm&|jI1%Xo<4-&ho5*`sA?$4hu$j|=Z{qgQH)bj34 z)elYE&wq^lF!00Jo8>frv0sk+e%?(dQTO+|J2^IorV?}0cix*}Z0^J?-^}O1JiI&h zqTQ8w@Yx@{uCJxH+mRUWAB$+4`SM1Idn50fT6UFu(@fJMcV!y9;ZGRZyM5o!(>#j7 zr^o&3@6)dk@x&(IxIer^R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ocUJhY)HQ&@}O4y-U?+Ila2F95=SzM0wqh2V;! zvqjUFdE#wSo%K6WXPlW|=K*i@{FqQcMOAa>^!*3?D~Icg?Khtb0k?qRf>uskzI zfu9{dlN6yJm-&Xz*i_ZYGUi$E6eog(YGZLd%UriI2P8PFv)iNH5jI!RC z@_HB=bae-gtV>j+ANo8|vjztTM7aF<my zID>7j%em2QL#ou?v0IYF04YwKJ!s|Y{tVsgnxfPygJAVC(A;v%o}0rw94@B$p@%|z z8oTf9SO!MJku=WP^iGPzyhNKNEv_3D#{3)|;_^(oOXQ1MRLMFjdZF*L(nuvL8*2Hh zi?Gj5XAVSs%@Du7PpvNf9a1biN}Pfqr2}oP22qvuI11U29djXC;@LDD*fIBj_Ivj3 z02y()-3*F4U!dp58aZV1JtXy4U}#bvE(S8FHeyNE06!KGgHs{{d}nmy-KV006d@dH4VT literal 0 HcmV?d00001 diff --git a/quality/bugbot/evidence/issue-970/readable-legacy-hook-isolated-six.log.gz b/quality/bugbot/evidence/issue-970/readable-legacy-hook-isolated-six.log.gz new file mode 100644 index 0000000000000000000000000000000000000000..bc130a262260f4cf6466d77d04ea456c06bf1693 GIT binary patch literal 164 zcmV;V09*ebiwFP!00002|2>UC4uUWcMfaRy!rBzkNTSCO_RUzvw6V5LXOMV%i-@!O z$$NkPKrGNtPKYniLPBO5cO^*_^wm&s0qb>t-2HGLFtLrRvfn!HNm~WlgF2p1z||E4 zp!XolAb$s8c4A#9U&S)ioK54xJtIq=j7*sttrwlOZf+Tav6|n(=u8~_i$*=i{NRL! S)S@ZjT2&vC-Z&`H0002?|4e%T literal 0 HcmV?d00001 diff --git a/quality/bugbot/evidence/issue-970/readable-legacy-hook-sigsegv.log.gz b/quality/bugbot/evidence/issue-970/readable-legacy-hook-sigsegv.log.gz new file mode 100644 index 0000000000000000000000000000000000000000..319e303594aaa927f6a70b96c3117ff1d3623268 GIT binary patch literal 49114 zcmV)LK)JskiwFP!00002|HQq`j^w(MCb&OO5vxYk;$+;&$UOI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qN)&UL<)3oGIvbrW5Z*Pn7_>C?ap_;x zVn7$$SNkXjs7p16t8~XYkQLA|0?`ytrqjS?xr1B3*0vq2as~TGx7vPALmE}!pHGTU zU6WQWfXj@Xx+F6D4L{1Q98eRn4wwoAI&Yzo+Fp`E^6f|drKtJ1?M<>fvSn%wikd?) zaq!bCjKg_a;y?e#Q9pR$=OMouCax)Y{GtQupFg2R>-Tk07ssVu5AUk3n_rD>+3G(_ cokaX{0-eB*v%t+FayMW7AIGZetPM~A0R6<+%K!iX literal 0 HcmV?d00001 diff --git a/specs/CATALOG.md b/specs/CATALOG.md index b290587c8..3ff9c5ed1 100644 --- a/specs/CATALOG.md +++ b/specs/CATALOG.md @@ -13,7 +13,7 @@ debt or convert unknown historic intent into a design decision. | `github-communication-experience` | Implemented | English-default, localized, semantic, bounded and idempotent product messages across GitHub and repository-aware operator surfaces; complete acceptance batches and cards with stable source identities, verified published SDD provenance, shared complete-inventory text allocation, precise response diagnostics and same-head requirement evidence before Commit progress publication; shared bounded complete-batch recovery for attributable completed acceptance-field length or completion failures; bounded closed-fact recovery and compact large-inventory assessment, exact original hard allocations, explicit admission counts and non-retryable length exhaustion with separate live-provider qualification; exact JSON-byte allocation and one shared source-part size replacement for both framed profiles, captured request contracts, receipt quota revalidation and nonretryable unit-specific exhaustion; shared same-profile complete-batch correction for otherwise-valid repeated citations with current-request origin binding, unchanged evidence gates and nonretryable citation exhaustion | [Semantic GitHub communication and repository localization](./semantic-github-publication-and-notification.md) + 11 companion | 462 paths · 2026-11-18 | | `release-orchestration` | Implemented | Release and hotfix promotion, publication, bounded merge readiness recovery, and receipt-verified reconciliation without republication; explicit native-guarded replacement of closed unpublished candidates with complete fresh validation and bounded audit history | [Configurable production-first release orchestration](./configurable-release-orchestration.md) + 3 companion | 91 paths · 2026-10-30 | | `merge-queue-readiness` | Implemented | Fail-closed validation of required checks and merge-group workflow support; optional manual-only RepoWise analysis with independent CI and verified required-check migration; cached RepoWise exports and bounded full-history secret processing with truthful completeness and resource evidence | [Merge queue readiness and effective target rules](./merge-queue-readiness.md) | 29 paths · 2026-10-21 | -| `bugbot-review-state-reconciliation` | Implemented | Reconcile review snapshots, findings, threads, comments, and check conclusions; bind qualification execution to independently reviewed external bootstrap code and process-local driver admission | [Bugbot review-state reconciliation](./bugbot-review-state-reconciliation.md) | 118 paths · 2026-11-20 | +| `bugbot-review-state-reconciliation` | Implemented | Reconcile review snapshots, findings, threads, comments, and check conclusions; bind qualification execution to independently reviewed external bootstrap code with complete public admission in every process | [Bugbot review-state reconciliation](./bugbot-review-state-reconciliation.md) | 118 paths · 2026-11-20 | | `execution-lifecycle` | Implemented | Shared GitHub Action lifecycle with pinned native resource/lane coordination proof, conservative predecessor fencing, routing and durable user-facing results | [Execution admission, queueing, routing, and result publication](./execution-admission-queue-and-publication.md) + 4 companion | 161 paths · 2026-10-29 | | `architecture-quality-hardening` | Implemented | Close verified concurrency, error-contract, context-coupling, fan-out, setup/doctor, and provider-policy risks in dependency order | [Architecture quality and scalability hardening](./architecture-quality-and-scalability-hardening.md) + 1 companion | 72 paths · 2026-10-13 | | `setup-and-doctor` | Implemented | Plan, validate, provision, and audit a repository installation without exposing credentials | [Setup, configuration, credentials, and doctor](./setup-configuration-credentials-and-doctor.md) + 6 companion | 334 paths · 2026-10-29 | diff --git a/specs/bugbot-review-state-reconciliation.md b/specs/bugbot-review-state-reconciliation.md index 507855c81..226592e14 100644 --- a/specs/bugbot-review-state-reconciliation.md +++ b/specs/bugbot-review-state-reconciliation.md @@ -2590,28 +2590,39 @@ The operator's reviewed Git blob and independently selected digests remain the trust anchors; this change adds no independent host or human-review attestation. The external bootstrap authenticates and materializes the reviewed closure as -above, then forks the same external bootstrap file with a private parent IPC -channel. The worker repeats plan/driver/source/runtime verification before driver -imports, installs immutable process-local context, and calls the admitted module. -Only the launcher-to-scheduler and scheduler-to-review-slot child routes are -available. Each nested process re-enters the external bootstrap and repeats the -private-byte check; review slots recheck the matching independent corpus gate. -IPC carries already verified context; it is not itself an accreditation of a -compromised parent. No serialized checkout object authorizes execution. +above, then installs immutable process-local context and calls the admitted +module in that same process. There MUST be no internal worker CLI or IPC message +that initializes context from caller-selected proof fields. Each nested scheduler +or review process MUST enter the complete public bootstrap validation and private +materialization with the same independently selected plan/bootstrap pins. Its +private source/dependencies and fixed driver inventory are checked before import. +The closure permits launcher-to-scheduler and scheduler-to-review-slot spawning; +a review slot MUST receive and verify the exact parent independent corpus gate. +Neither an IPC parent nor a serialized checkout object authorizes admission. + +The ordinary public modes remain corpus/full-review/normal-flow. The same launch +also admits full-review-runner with one campaign argument and review with campaign, +checkout, subject ID, repetition and output arguments. Unknown modes/argument +shapes fail before materialization. These paths require all explicit reviewed +plan/bootstrap identities and the complete source/runtime proof, including for a +direct invocation; they are no admission shortcut. Reviewed digest selection and +the trusted operator/host remain external prerequisites, without a new claim of +independent human-review or host attestation. ```mermaid flowchart LR - A[Reviewed external bootstrap] --> B[Verify plan and immutable closure] + A[Reviewed external bootstrap and explicit pins] --> B[Verify plan and immutable closure] B --> C[Private source and dependency proof] - C --> D[Fork same external bootstrap over IPC] - D --> E[Repeat private-byte and runtime checks] - E --> F[Install process-local context and call driver] - F -->|paired child route| D + C --> D[Repeat private-byte and runtime checks] + D --> E[Install process-local context and call driver] + E -->|nested process with same explicit pins| A ``` -Text equivalent: independently checked external code admits the closure, starts -each worker through that same code, verifies the private bytes again, and only -then imports and calls a driver. A mutable receipt supplies none of these steps. +Text equivalent: independently checked external code admits the closure, copies +and verifies the private bytes, then imports a driver in that same process. Each +nested process repeats the complete launch. The removed internal worker endpoint +rejects both a direct call and an arbitrary IPC-connected parent before imports. + Normal CLI selection, verifier profiles, cohort/order/retry policies, explicit signals and existing scoring/latency gates are preserved. Parent cancellation continues to reach the worker; its interrupted exit and cleanup remain observable. @@ -2619,18 +2630,19 @@ No consumer option, production setting or research timeout/turn/read/token cap i introduced. Existing frozen evidence requires its original historical drivers; future measurements require the new exact driver identities and preregistration. -Additional numeric budget: **six deterministic security/lifecycle cases**, making -**19 bootstrap cases and 193 combined shadow controls**. Two cases reproduce the +Additional numeric budget: **seven deterministic security/lifecycle cases**, making +**20 bootstrap cases and 194 combined shadow controls**. Two cases reproduce the old real verifier accepting a fabricated receipt and a direct runner importing a -checkout helper, then verify rejection. One rejects a worker without parent IPC. -Two exercise the actual nested fork route, including private verifier mutation -rejected before import. One sends SIGTERM after synthetic-worker readiness and +checkout helper, then verify rejection. One rejects the removed worker entry without IPC. One executes the frozen f583 +bootstrap with an arbitrary IPC parent, proves its former admission, then verifies +current rejection. Two exercise the complete nested launch, including exact corpus +campaign propagation and private verifier mutation rejected before import. One sends SIGTERM after synthetic-worker readiness and checks its interrupted exit and output. Its bounded fixture cleanup applies only to that owned model-free test, never an investigation. Existing source/runtime, normal-flow and independent-corpus controls remain required; no model calls or evaluated-PR writes are needed for these controls. -Acceptance requires all six controls, the actual relative-lab zero-candidate +Acceptance requires all seven controls, the actual relative-lab zero-candidate journey and complete combined controls to pass. Preserve the old bypass, failed fixture attempts and successful outputs byte-exactly. Update operator guidance, catalog evidence and Graphify; run specification/docs validation and the complete diff --git a/specs/catalog.json b/specs/catalog.json index 8388bfad7..485614236 100644 --- a/specs/catalog.json +++ b/specs/catalog.json @@ -664,7 +664,7 @@ "id": "bugbot-review-state-reconciliation", "title": "Bugbot review-state reconciliation", "status": "implemented", - "scope": "Reconcile review snapshots, findings, threads, comments, and check conclusions; bind qualification execution to independently reviewed external bootstrap code and process-local driver admission", + "scope": "Reconcile review snapshots, findings, threads, comments, and check conclusions; bind qualification execution to independently reviewed external bootstrap code with complete public admission in every process", "owner": "Copilot maintainers", "lastVerified": "2026-11-20", "specs": [ From 845be8a8de7dc9441d42589bbf1e2d91ac08fdc6 Mon Sep 17 00:00:00 2001 From: Efra Espada Date: Fri, 20 Nov 2026 02:37:10 +0100 Subject: [PATCH 9/9] bugfix-970-bind-bugbot-qualification-execution-to-the-pinned-source-and-sanitized-git-environment: bound the admitted executable version health probe (#970) --- docs/development/testing.mdx | 16 ++++++ .../issue-950/ev07-shadow/implementation.cjs | 2 +- .../ev07-shadow/review-runtime.test.cjs | 50 +++++++++++++++++- quality/bugbot/evidence/issue-970/README.md | 40 ++++++++++++++ .../version-health-causal-negative.log.gz | Bin 0 -> 634 bytes .../version-health-focus-pass.log.gz | Bin 0 -> 197 bytes .../version-health-shadow-196.log.gz | Bin 0 -> 5919 bytes specs/CATALOG.md | 2 +- specs/bugbot-review-state-reconciliation.md | 28 ++++++++++ specs/catalog.json | 2 +- 10 files changed, 136 insertions(+), 4 deletions(-) create mode 100644 quality/bugbot/evidence/issue-970/version-health-causal-negative.log.gz create mode 100644 quality/bugbot/evidence/issue-970/version-health-focus-pass.log.gz create mode 100644 quality/bugbot/evidence/issue-970/version-health-shadow-196.log.gz diff --git a/docs/development/testing.mdx b/docs/development/testing.mdx index e8af88fb1..fa7a8af2f 100644 --- a/docs/development/testing.mdx +++ b/docs/development/testing.mdx @@ -419,3 +419,19 @@ bootstrap demonstrates the IPC bypass before the new rejection. Fixture cleanup timeouts never bound a model investigation. Context is not independent host or human-review accreditation: retain the external digest check before starting Node and freeze new driver hashes before measuring. + + +The pinned `--version` metadata probe uses the ordinary production reader's +15-second health timeout and kills a stalled probe with SIGKILL, including a +launcher that ignores SIGTERM. ETIMEDOUT is a preflight failure: retain that +attempt, repair the pinned installation and review a new plan when its bytes +change. No model call or clean verdict is produced by a stalled version probe. +This timeout applies only to executable metadata, before investigation; model +research and explicit cancellation retain their existing contract. It adds no +consumer setting or automatic retry. Production source is unchanged. + +The real-process controls cover both direct and optional-launcher stalls, exact +--version arguments, timeout failure and absence of a surviving CLI. Their owned +30-second fixture cleanup never bounds research. Node's synchronous subprocess +API otherwise continues waiting if a timed-out child handles SIGTERM; see the +[pinned Node v24.20.0 subprocess documentation](https://nodejs.org/download/release/v24.20.0/docs/api/child_process.html#child_processexecfilesyncfile-args-options). diff --git a/quality/bugbot/evidence/issue-950/ev07-shadow/implementation.cjs b/quality/bugbot/evidence/issue-950/ev07-shadow/implementation.cjs index a2ae3d716..5ea81cc27 100644 --- a/quality/bugbot/evidence/issue-950/ev07-shadow/implementation.cjs +++ b/quality/bugbot/evidence/issue-950/ev07-shadow/implementation.cjs @@ -62,7 +62,7 @@ function requirePinnedCliProbe(runtime = require('./configuration.cjs').runtime) // Never resolve through PATH, or run even --version before byte admission. const version = execFileSync(execution.executable, [...launcher, '--version'], { encoding: 'utf8', stdio: ['ignore', 'pipe', 'pipe'], - env: { PATH: '/usr/bin:/bin' }, + env: { PATH: '/usr/bin:/bin' }, timeout: 15_000, killSignal: 'SIGKILL', }).trim(); requirePinnedRuntime(version, runtime); return { version, proof }; diff --git a/quality/bugbot/evidence/issue-950/ev07-shadow/review-runtime.test.cjs b/quality/bugbot/evidence/issue-950/ev07-shadow/review-runtime.test.cjs index 35a39d2cf..d7538ee9a 100644 --- a/quality/bugbot/evidence/issue-950/ev07-shadow/review-runtime.test.cjs +++ b/quality/bugbot/evidence/issue-950/ev07-shadow/review-runtime.test.cjs @@ -2,7 +2,7 @@ const assert = require('node:assert/strict'); const { mkdtempSync, existsSync, rmSync, writeFileSync, mkdirSync, readFileSync } = require('node:fs'); -const { execFileSync, spawnSync } = require('node:child_process'); +const { execFileSync, spawnSync, spawn } = require('node:child_process'); const { createHash } = require('node:crypto'); const { tmpdir } = require('node:os'); const path = require('node:path'); @@ -124,3 +124,51 @@ for (const mode of ['pinned', 'foreign']) test('ordinary planner admits CLI byte } finally { rmSync(execution.runtimeDirectory, { recursive: true, force: true }); } } }); + + +for (const mode of ['direct-stall', 'launcher-ignores-term']) { + test('an admitted --version health probe fails closed for ' + mode, async t => { + const directory = mkdtempSync(path.join(tmpdir(), 'ev07-stalled-version-')); + t.after(() => rmSync(directory, { recursive: true, force: true })); + const marker = path.join(directory, 'started.json'), executable = path.join(directory, 'cli'); + const launcher = mode === 'launcher-ignores-term'; + const program = (launcher ? '' : '#!' + process.execPath + '\n') + + 'require("node:fs").writeFileSync(' + JSON.stringify(marker) + + ',JSON.stringify({pid:process.pid,args:process.argv.slice(2)}));' + + (launcher ? 'process.on("SIGTERM",()=>{});' : '') + 'setInterval(()=>{},1000);\n'; + writeFileSync(executable, program, { mode: 0o700 }); + const digest = file => createHash('sha256').update(readFileSync(file)).digest('hex'); + const runtime = { executable: launcher ? process.execPath : executable, codex: 'codex-cli stalled-fixture', + codexSha256: digest(launcher ? process.execPath : executable), + ...(launcher && { launcher: executable, launcherSha256: digest(executable) }) }; + const script = 'try { require(process.argv[1]).requirePinnedCliProbe(JSON.parse(process.argv[2]));' + + 'console.log(JSON.stringify({unexpectedSuccess:true})); } catch(error) {' + + 'console.log(JSON.stringify({code:error.code,signal:error.signal})); }'; + const child = spawn(process.execPath, ['-e', script, path.resolve(__dirname, 'implementation.cjs'), + JSON.stringify(runtime)], { detached: true, stdio: ['ignore', 'pipe', 'pipe'] }); + const cleanup = () => { + if (child.exitCode === null && child.signalCode === null && child.pid) { + try { process.kill(-child.pid, 'SIGKILL'); } catch (error) { if (error.code !== 'ESRCH') throw error; } + } + }; + t.after(cleanup); + let timer, timedOut = false, stdout = '', stderr = ''; + child.stdout.on('data', bytes => { stdout += bytes; }); + child.stderr.on('data', bytes => { stderr += bytes; }); + try { + // Cleanup of these owned model-free processes only, never a research deadline. + const result = await new Promise((resolve, reject) => { + timer = setTimeout(() => { timedOut = true; cleanup(); }, 30_000); + child.once('error', reject); + child.once('close', (code, signal) => resolve({ code, signal })); + }); + assert.equal(existsSync(marker), true, 'the byte-admitted fixture actually entered --version'); + const started = JSON.parse(readFileSync(marker)); + assert.deepEqual(started.args, ['--version']); + assert.equal(timedOut, false, 'the health probe stayed blocked; owned fixture cleanup was required'); + assert.equal(result.code, 0, stderr); + assert.deepEqual(JSON.parse(stdout), { code: 'ETIMEDOUT', signal: 'SIGKILL' }); + assert.throws(() => process.kill(started.pid, 0), { code: 'ESRCH' }, 'no stalled CLI remains alive'); + } finally { clearTimeout(timer); cleanup(); } + }); +} diff --git a/quality/bugbot/evidence/issue-970/README.md b/quality/bugbot/evidence/issue-970/README.md index dce800a3b..30e7fc823 100644 --- a/quality/bugbot/evidence/issue-970/README.md +++ b/quality/bugbot/evidence/issue-970/README.md @@ -316,3 +316,43 @@ new-SHA native review remain separate outstanding checks. - `public-launch-bootstrap-final-20.log.gz`: 3078 original bytes; SHA-256 `dd36c3d82104459d248551924674cbb8b0497bfce81fb19e0fc9af0766bfb3fd`. - `public-launch-shadow-194.log.gz`: 20219 original bytes; SHA-256 `b21d59d3f604cb4168a71ee8f25b8ff3843fa19e1b1a3d4fa8ae065d7a3dfb57`. + + +## Executable version health probe + +Native Review on `7652c1c5` resolved all seven earlier findings, then identified the +unbounded synchronous --version probe (LOW, thread `PRRT_kwDONSeBW865y_KP`). Its +complete native CI/Commit/Verification/Branch Sync pass; Review remains NEUTRAL +with that finding. Both added real-process rejection assertions fail against +the unchanged `7652c1c5` implementation: the admitted direct CLI and optional launcher +actually enter --version and remain blocked until owned 30-second test cleanup. +The launcher deliberately handles SIGTERM without exiting. Neither fixture calls +a model or an evaluated PR. + +The correction uses the ordinary production version reader's 15,000 ms operational +health timeout, plus SIGKILL so a stalled probe cannot keep the synchronous call +waiting by handling SIGTERM. Bytes/launcher admission still comes first; version +text still must match the reviewed runtime. This applies only to --version +metadata before any model call. No investigation time/turn/read/token limit, +cohort/order/retry change or consumer option is added. Ordinary production source +and model/cancellation policy remain unchanged. Future measurements still require +new driver pins. + +The two real-process cases require ETIMEDOUT, exact --version arguments and no +surviving fixture CLI. Their 30-second cleanup is only for owned model-free test +processes. Together with existing controls the budget is 17 runtime cases and 196 +combined controls; final results and mandatory hook/native outcomes are separate. +The fixed timeout/SIGKILL semantics follow the +[pinned Node v24.20.0 subprocess contract](https://nodejs.org/download/release/v24.20.0/docs/api/child_process.html#child_processexecfilesyncfile-args-options). + +- `version-health-causal-negative.log.gz`: 1963 original bytes; SHA-256 `9c4385e2bce6129024b292bade23cc8ba31f76a635065f04452c5d2b0a8c2103`. + +Both focused real-process cases pass, followed by **196/196** complete controls, +zero skipped/cancelled/model calls/evaluated-PR writes. The full suite includes +all 17 runtime cases, 20 bootstrap cases and the actual relative-lab zero-candidate +normal-flow journey. Final specification/catalog/documentation validation and +Graphify pass. The complete mandatory hook and new-SHA native outcomes remain +separate delivery checks. + +- `version-health-focus-pass.log.gz`: 297 original bytes; SHA-256 `c8ca995662705c8a0159358e3c0b8c1c2c65afd722ad92e8b102e0005e39f0b3`. +- `version-health-shadow-196.log.gz`: 20413 original bytes; SHA-256 `ef572c6320a0ba3e03560695c607799074b347056af85c8ff3ad4f893611b85b`. diff --git a/quality/bugbot/evidence/issue-970/version-health-causal-negative.log.gz b/quality/bugbot/evidence/issue-970/version-health-causal-negative.log.gz new file mode 100644 index 0000000000000000000000000000000000000000..1805c9273ed572388ea6f681c19f64f4632e27cc GIT binary patch literal 634 zcmV-=0)_n_iwFP!00002|Lv5`ZWA#O$M1Oxb80KGANkl#vQVUea^S#+(%uk?ob@De zV&TeASRv9b? zk}GX2VC2A7f!@usxSwa^Y}DXCd}a>NA?r13^pdtLZ8kN>ugk!1LrShoP>S*#T)2^S z{cY!rFzr%!%N6g)-#^#3N?5I%JYN=PgiT;M&)0%aK{Q^psps z7WzBufju}qr3w|o!4`fb(>Zne%xDKY7eD6O=zV28K4Hg6ZRHhrkhrQ&N>fW^T(mM= zMdM+b{3UhsQPE3JzE?wSmVg+y&vRLBaH7QwE=Wfb3fZwX0t!h5Tg_F{1}2W!LfL^TS`xllIn~`9+ACEa~u5V;nlm>)VKH zZZ*|c^hd*@f5P51)D@76q!lm7#aB=q?&V?QECY)j-FO#{4lZ6glD%lI^I(BpO~Qb< zK`?co8%q?bPnK>PZmVSoxm*T^tZD^EWO{$UM&=K{H~)v{pBkR#e4FkyXh9$Bc9ih9 U$ZwD77PKF zrqWGaRLyQ%^}Jd<{*(qBqwOdwe~c*;E1}%K?B&iBWxcM;S%0~M5DP>3&OG`FLBC-@ z{`N2br?nU@g)rTjnNNNgek94IPjq8OnLge33~RlqbzzL&HfHezWbhi-DFFZg+izI> literal 0 HcmV?d00001 diff --git a/quality/bugbot/evidence/issue-970/version-health-shadow-196.log.gz b/quality/bugbot/evidence/issue-970/version-health-shadow-196.log.gz new file mode 100644 index 0000000000000000000000000000000000000000..f68f4a47ee5b78c32479269636a165e9d3ea30f1 GIT binary patch literal 5919 zcmV+)7vSh0iwFP!00002|IJ*l5ZUKQg~FUoy`<76izws?JQxrVmnAW)dC|9`4VdFW?uy_x|v3?koB5 zX5aO7(@lSf{V?#u*qh`yeYuToQ%~nNO57XyP*<|u%Qy8n&T?C(!5jXBk-gn@-84>v z=zV(J-~Vm=6(XM4EJJ}z-O^r3^3mIiQH~!M5Qdo_ zM^O>SR}v1QZa%g1FiQL+&7V5Am?nAZCp`T))YGTdPjWvjR6W8 zPcUu|cX2NVPhbzc@R!~LOuiz~K^pr(;@Z%wWs`TovXeCMgEURT{C1*iGU^kaRMB9Q z6-nwxX&DsB?H17hMgE0rjq)G~vztn9@taK^!1S^tDQ~Htevo9aN;g>^_{l95ql|Ww zl~L-)NfIQ{?POPT&#+2rPcm3eoJB!#JNbu3+>h9MT4a8Z-&X50q3x*#a3MUf@yA7( z!}#F?H#|aTmgvTMsviK2n>9c4hpsz7dvSu0lLxm% z3j{e?-?vY#76qA~mvIp%w_i@t8add-f+$BQ28%3jx0sGYnyqXra947DoT%`_A`Wk< zM{{dUCn~i_nEORsrnmG`b0DKVSYQUdj z7DmFTouun>99R+Zd01^gv}f;x%%gEBP8P&|8V7k98p)$*L)cb+Ao-~9VF$i2P; z#Gk)hK0%05_-X3$ua}E$ac!_oM|v7Wep&@{a92tQ_3Q&jQ4b`1NuZn}@5$ei^0?!o6H9tQ{#XNsX~tz$PHz^-_^%-Lq8$ zV7ysylbt?F@t$E`?rVM)c|+s}Q4-x^$69&=yJ+`kXd^D!>2F}pPlWpzIa@)L`UXyD z3DL@AsA}rD|NY{HTDZhYx zP~IARnta_aL3VF0UY`Saj$nFg;if#Wp&ZOb@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8gQ?wLr}T)dcnix9;QK!>70ZX(H+%m+3LANCpu=KKwE;ML@ctw?^aD z>p;tz&ZuH@UUncp%1n>vp019(iZW(DO$rB8F6_(23~gu15|#?MgC9yqVrR zaO)U4UYNN_SW-8d?HUJgPqmP^#pU%e&gwm1^)eOiCy8QbR81K8bS~3!qSH(hx+>Z_ zcLZ|Yh(T5>b6yS<_#h2VpToMvo^(V%Dq5)+qxn*i)>~;u@N3D2bB?;KPC5HB_XQ+F za48)EB&up$-p^GZR_P=hKR+g{ApxRc{eLo#bf=#HlkQVTEnBu=_VHwH8nCRtrBnAll1L8 zbT3JmyKjbZxmM46?+2+JLfR#^I)>okB~_+3PipEPoP;gN8+EKVMXC$vyKI~bV!yB# z$}#h@4a81LvDnmB=*wN2fBMrOw^5qupg7eAhrB(! zi^@FwS}0GP2dkIu+l$F`uF&zb_6~3aF5b;d`{-ZveN37HI@Vzu-281jM3iA`ahOGJ zr_GqHF~`mcx;TVwugj^{jYF!^KCoX7XQiAXU2R`?X6Ra%+@w;e18bLY=8jwT+#Kcs zaWPJp4yv@{#9>RpXgrceI_u8KjhLBetK_$u1x>94_J*KYlz<#*{ zvOj9?jw097+^@;%2Ahkts={wI#ah>*6$Wsju~#oiSmX$UzzI-Vh@)Vt66oZG=1K=i z7RfIx^4B|Ab-Rb8JB=cD*3eE$8l9L(_$xLTLAi?9{NsN-^)(e?nek8K%yp%Jf9OH~ z?O$lm`uDo33vH>N$M<#L+n=Vc>hwP=olX3Ff}Aifv(gX37`Xby{{jBgh{wH8008&U BuG|0s literal 0 HcmV?d00001 diff --git a/specs/CATALOG.md b/specs/CATALOG.md index 3ff9c5ed1..1882b6e19 100644 --- a/specs/CATALOG.md +++ b/specs/CATALOG.md @@ -13,7 +13,7 @@ debt or convert unknown historic intent into a design decision. | `github-communication-experience` | Implemented | English-default, localized, semantic, bounded and idempotent product messages across GitHub and repository-aware operator surfaces; complete acceptance batches and cards with stable source identities, verified published SDD provenance, shared complete-inventory text allocation, precise response diagnostics and same-head requirement evidence before Commit progress publication; shared bounded complete-batch recovery for attributable completed acceptance-field length or completion failures; bounded closed-fact recovery and compact large-inventory assessment, exact original hard allocations, explicit admission counts and non-retryable length exhaustion with separate live-provider qualification; exact JSON-byte allocation and one shared source-part size replacement for both framed profiles, captured request contracts, receipt quota revalidation and nonretryable unit-specific exhaustion; shared same-profile complete-batch correction for otherwise-valid repeated citations with current-request origin binding, unchanged evidence gates and nonretryable citation exhaustion | [Semantic GitHub communication and repository localization](./semantic-github-publication-and-notification.md) + 11 companion | 462 paths · 2026-11-18 | | `release-orchestration` | Implemented | Release and hotfix promotion, publication, bounded merge readiness recovery, and receipt-verified reconciliation without republication; explicit native-guarded replacement of closed unpublished candidates with complete fresh validation and bounded audit history | [Configurable production-first release orchestration](./configurable-release-orchestration.md) + 3 companion | 91 paths · 2026-10-30 | | `merge-queue-readiness` | Implemented | Fail-closed validation of required checks and merge-group workflow support; optional manual-only RepoWise analysis with independent CI and verified required-check migration; cached RepoWise exports and bounded full-history secret processing with truthful completeness and resource evidence | [Merge queue readiness and effective target rules](./merge-queue-readiness.md) | 29 paths · 2026-10-21 | -| `bugbot-review-state-reconciliation` | Implemented | Reconcile review snapshots, findings, threads, comments, and check conclusions; bind qualification execution to independently reviewed external bootstrap code with complete public admission in every process | [Bugbot review-state reconciliation](./bugbot-review-state-reconciliation.md) | 118 paths · 2026-11-20 | +| `bugbot-review-state-reconciliation` | Implemented | Reconcile review snapshots, findings, threads, comments, and check conclusions; bind qualification execution to independently reviewed external bootstrap code with complete public admission in every process and bounded executable version health probes | [Bugbot review-state reconciliation](./bugbot-review-state-reconciliation.md) | 118 paths · 2026-11-20 | | `execution-lifecycle` | Implemented | Shared GitHub Action lifecycle with pinned native resource/lane coordination proof, conservative predecessor fencing, routing and durable user-facing results | [Execution admission, queueing, routing, and result publication](./execution-admission-queue-and-publication.md) + 4 companion | 161 paths · 2026-10-29 | | `architecture-quality-hardening` | Implemented | Close verified concurrency, error-contract, context-coupling, fan-out, setup/doctor, and provider-policy risks in dependency order | [Architecture quality and scalability hardening](./architecture-quality-and-scalability-hardening.md) + 1 companion | 72 paths · 2026-10-13 | | `setup-and-doctor` | Implemented | Plan, validate, provision, and audit a repository installation without exposing credentials | [Setup, configuration, credentials, and doctor](./setup-configuration-credentials-and-doctor.md) + 6 companion | 334 paths · 2026-10-29 | diff --git a/specs/bugbot-review-state-reconciliation.md b/specs/bugbot-review-state-reconciliation.md index 226592e14..cc3996f51 100644 --- a/specs/bugbot-review-state-reconciliation.md +++ b/specs/bugbot-review-state-reconciliation.md @@ -2648,3 +2648,31 @@ fixture attempts and successful outputs byte-exactly. Update operator guidance, catalog evidence and Graphify; run specification/docs validation and the complete required build/Jest/lint hook. Report native review/checks for the newly published SHA separately. Neither a local pass nor an earlier SHA's review qualifies a profile. + + +### Pinned executable version health probe — #970, 2026-11-20 + +The admitted executable's `--version` health probe MUST fail closed after the +same fixed 15,000 ms operational timeout as the ordinary production version reader. +It MUST use SIGKILL for that probe process so handling SIGTERM cannot keep the +synchronous caller blocked. Executable/optional-launcher digest admission remains +before execution; successful version text must still match the reviewed runtime. +Timeout leaves qualification unstarted and propagates a preflight error rather +than a clean model verdict. No retry is implied; preserve its attempt/output. + +This rule applies only to executable metadata before a model is called. It MUST +NOT impose a time, turn, token or read limit on investigation, trim a verdict, +change cohort/order/retry policies, or replace explicit operation cancellation. +Production source and existing ordinary-planner behavior remain unchanged. The +fixed health rule is not a new consumer option or plan-controlled override. + +Additional numeric budget: **two real-process runtime cases**, making 17 focused +runtime cases and 196 combined controls. A byte-admitted direct CLI and an optional +launcher both enter --version and stall; the launcher also handles SIGTERM without +exiting. Each MUST yield ETIMEDOUT, leave no live fixture CLI and dispatch no model. +Owned test-process cleanup is 30 seconds and never constrains an investigation. +Run these assertions against the previous code first and retain the causal +failures, then the corrected results. Existing fast success, changed-byte refusal, +20 bootstrap cases and explicit cancellation remain required. Update operator +guidance/catalog, run specification/docs validation and Graphify, and pass the +complete mandatory hook plus actual final-head native checks/review. diff --git a/specs/catalog.json b/specs/catalog.json index 485614236..26a108cc4 100644 --- a/specs/catalog.json +++ b/specs/catalog.json @@ -664,7 +664,7 @@ "id": "bugbot-review-state-reconciliation", "title": "Bugbot review-state reconciliation", "status": "implemented", - "scope": "Reconcile review snapshots, findings, threads, comments, and check conclusions; bind qualification execution to independently reviewed external bootstrap code with complete public admission in every process", + "scope": "Reconcile review snapshots, findings, threads, comments, and check conclusions; bind qualification execution to independently reviewed external bootstrap code with complete public admission in every process and bounded executable version health probes", "owner": "Copilot maintainers", "lastVerified": "2026-11-20", "specs": [