diff --git a/CHANGELOG.md b/CHANGELOG.md index e73e2bc..9063f10 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,11 @@ # Security and behavior changes +## 0.1.0-beta.2 + +- Treat GitHub required reviews as qualifying App/user approvals rather than additional humans; retain explicit Human-in-the-Loop policy and native GitHub enforcement, including last-push/CODEOWNER rules. +- Preserve manual review and explicit-only merge settings. Add the website copyright footer. +- Live approval-rule retesting was explicitly waived by the operator; unknown/unmet GitHub review evidence remains non-merging. + ## 0.1.0-beta.1 — CLI onboarding release Native review decisions, automatic owner-consented reviews, autonomous and optional human-supervised merging. Browser ChatGPT onboarding remains explicitly deferred and disabled. Repository opt-in and all actual GitHub protections remain mandatory. diff --git a/docs/acceptance.md b/docs/acceptance.md index 9671798..88a6b3b 100644 --- a/docs/acceptance.md +++ b/docs/acceptance.md @@ -42,7 +42,7 @@ Perform each mutation through reviewed disposable configuration/PR changes. Do n | Advisory/uncertain/binary/large/truncated/essential-context missing | COMMENT and no merge; irrelevant supplementary omissions alone do not invalidate a tiny PR | | Head/base/default-policy/source pin changes during review | Old result cannot approve or merge the new context; new request required | | Review accepted then response lost / publisher crash | Reconcile same pending/submitted App review; no duplicate approval; merge separate | -| Ready protected PR, passing required CI and the mode/GitHub-required independent humans | Native expected-head merge only after separate merge authorization and explicit --merge or admitted automatic policy intent | +| Ready protected PR, passing required CI and GitHub-qualified reviews and the mode’s additional independent humans | Native expected-head merge only after separate merge authorization and explicit --merge or admitted automatic policy intent | | Pending required CI with App-bound required guard | Native intent may queue; guard stays pending; backend rechecks before disabling intent/releasing guard/final guarded merge | | Known failed/missing/unknown CI, conflicts or required human missing | No merge; no native intent when failure/human denial is known | | Bot approval would otherwise satisfy human count | Independent exact-head non-author humans still required at configured/branch/ruleset minimum | @@ -51,7 +51,7 @@ Perform each mutation through reviewed disposable configuration/PR changes. Do n | Required merge queue | Explicit manual-only outcome; no direct merge or queue bypass | | Two installations, same repository/actor history | Installation-bound session lookup/lease/AAD; old ciphertext cannot be used in the new installation | -Enable MERGE_DEPLOYMENT_AUTHORIZED only after recording the applicable rows as passed, then opt in repository policy and the separate whitelist. The check source must be this App's ID (REST app_id / ruleset integration_id), not any integration. When human approvals are required by the selected mode or GitHub, count current-head APPROVED reviews from distinct write-capable users other than the author. Include CODEOWNERS, stale-approval dismissal and rulesets in the live matrix; bot approval is never counted as a human. +Enable MERGE_DEPLOYMENT_AUTHORIZED only after recording the applicable rows as passed, then opt in repository policy and the separate whitelist. The check source must be this App's ID (REST app_id / ruleset integration_id), not any integration. For additional human approvals required by CodexBot policy, count current-head APPROVED reviews from distinct write-capable users other than the author. Include CODEOWNERS, stale-approval dismissal and rulesets in the live matrix; bot approval is never counted as a human. ## Optional real OpenAI protocol acceptance diff --git a/docs/configuration.md b/docs/configuration.md index a0b1730..8af0716 100644 --- a/docs/configuration.md +++ b/docs/configuration.md @@ -89,7 +89,7 @@ Human-in-the-Loop uses the same configuration with `minimum_human_approvals: 1` With automatic merge-on-approval disabled, only an authorized `--merge` can request merging. With it enabled, a separately merge-authorized review/event actor receives a durable automatic intent at admission. Review-only actors still receive reviews but cannot cause merging. The publisher, retries, cancellation and recovery use that same intent, recheck current authorization/policy/credentials and require a genuine native APPROVE. Any finding, incomplete analysis or failed check prevents merging. -Compatible autonomous GitHub protection requires a protected PR-only default branch and required CI, with no bot/admin bypass. Set GitHub's required human approval count to zero and do not require CODEOWNER or last-push approval if no human will participate. CodexBot conservatively honors the larger configured/branch/ruleset count; CODEOWNER or last-push requirements impose at least one independent human. Keep signature and other rules enabled when desired: GitHub's native expected-head merge remains the final authority and does not bypass them. Required merge queues remain unsupported/manual. Pending CI requires the guard check bound to this App's numeric ID, Checks write and Administration read. Unknown evidence never authorizes merging. +Compatible autonomous GitHub protection requires a protected PR-only default branch and required CI, with no bot/admin bypass. Keep GitHub Required approvals at 1 (or your chosen stronger count). GitHub required reviews are qualifying approvals, not an additional CodexBot human minimum: an App approval counts only when GitHub reports APPROVED for the actual PR. GitHub also decides whether CODEOWNER and last-push requirements are satisfied; REVIEW_REQUIRED or unverifiable approval evidence blocks merging. Only merge.minimum_human_approvals adds independently checked non-author humans. An App that made the last reviewable push cannot supply its own last-push approval; preserve that rule and obtain another qualifying reviewer when GitHub requires one. Keep signature and other rules enabled when desired: GitHub's native expected-head merge remains the final authority and does not bypass them. Required merge queues remain unsupported/manual. Pending CI requires the guard check bound to this App's numeric ID, Checks write and Administration read. Unknown evidence never authorizes merging. Without an explicit assignment, automatic PR events use the authorized event actor’s own connection. The assignment below permits unattended reviews of authorized contributors without their own provider connection. diff --git a/docs/deployment.md b/docs/deployment.md index 2b967d8..fbf7491 100644 --- a/docs/deployment.md +++ b/docs/deployment.md @@ -60,7 +60,7 @@ The installed minute cron handles bounded dispatch/publication recovery and clea CHATGPT_DEPLOYMENT_AUTHORIZED=false is mandatory until OpenAI confirms eligibility for the actual local/hosted/ephemeral Actions topology. Public source or a successful token exchange does not grant hosted ChatGPT-plan rights. API-key mode works independently with each actor's own key and separate billing. -MERGE_DEPLOYMENT_AUTHORIZED=false remains until the disposable advisory/verdict/protection acceptance matrix passes. Then explicitly enable repository merge policy and independent whitelist. Never add the App to branch/ruleset bypass lists. Require current human approvals and CI. For pending CI, require check "CodexBot reviewed commit" with integration/app_id equal to this App's numeric ID; allowing any source is insufficient. No automated merge-queue implementation is claimed. +MERGE_DEPLOYMENT_AUTHORIZED=false remains until the disposable advisory/verdict/protection acceptance matrix passes. Then explicitly enable repository merge policy and independent whitelist. Never add the App to branch/ruleset bypass lists. Require GitHub-qualified approvals, any explicitly configured additional human approvals, and CI. For pending CI, require check "CodexBot reviewed commit" with integration/app_id equal to this App's numeric ID; allowing any source is insufficient. No automated merge-queue implementation is claimed. ## Capacity and hosting diff --git a/package-lock.json b/package-lock.json index 793a938..acaeea0 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "codexbot", - "version": "0.1.0-beta.1", + "version": "0.1.0-beta.2", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "codexbot", - "version": "0.1.0-beta.1", + "version": "0.1.0-beta.2", "license": "Apache-2.0", "dependencies": { "@octokit/rest": "22.0.1", diff --git a/package.json b/package.json index 27ca7a1..d8b8e65 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "codexbot", - "version": "0.1.0-beta.1", + "version": "0.1.0-beta.2", "private": true, "description": "Self-hostable GitHub App for isolated Codex pull request reviews", "license": "Apache-2.0", diff --git a/src/worker/index.ts b/src/worker/index.ts index 545cc1b..94cc98c 100644 --- a/src/worker/index.ts +++ b/src/worker/index.ts @@ -70,7 +70,7 @@ async function route(request: Request, env: Env): Promise { requireCondition(publicPage || url.origin === canonical, 'non_canonical_backend_origin', 421); const origin = request.headers.get('origin'); requireCondition(!origin || origin === canonical, 'cross_origin_request_denied', 403); - if (url.pathname === '/health' && request.method === 'GET') return Response.json({ status: 'ok', version: '0.1.0-beta.1' }); + if (url.pathname === '/health' && request.method === 'GET') return Response.json({ status: 'ok', version: '0.1.0-beta.2' }); if (url.pathname === '/' && request.method === 'GET') return onboarding(env); const web = await webRoute(request, env); if (web) return web; if (url.pathname === '/v1/workload/check' && request.method === 'POST') { diff --git a/src/worker/merge.ts b/src/worker/merge.ts index 99400fe..724dae1 100644 --- a/src/worker/merge.ts +++ b/src/worker/merge.ts @@ -56,10 +56,11 @@ export async function controlMerge(github: Octokit, snapshot: RequestSnapshot, c let protection: Awaited>['data'] | undefined; try { protection = (await github.rest.repos.getBranchProtection({ ...repo, branch: pr.baseRefName })).data; } catch (error) { requireCondition(error && typeof error === 'object' && 'status' in error && error.status === 404 && rules.length > 0, 'branch_protection_not_verifiable', 403); } - const specialHumanRules = protection?.required_pull_request_reviews?.require_code_owner_reviews || protection?.required_pull_request_reviews?.require_last_push_approval || - rules.some(rule => rule.type === 'pull_request' && (rule.parameters?.require_code_owner_review || rule.parameters?.require_last_push_approval)); - const humanMinimum = Math.max(config.merge.minimum_human_approvals, specialHumanRules ? 1 : 0, protection?.required_pull_request_reviews?.required_approving_review_count ?? 0, - ...rules.filter(x => x.type === 'pull_request').map(x => x.parameters?.required_approving_review_count ?? 0)); + const githubApprovalRequired = Boolean(protection?.required_pull_request_reviews && ( + (protection.required_pull_request_reviews.required_approving_review_count ?? 0) > 0 || protection.required_pull_request_reviews.require_code_owner_reviews || protection.required_pull_request_reviews.require_last_push_approval)) || + rules.some(rule => rule.type === 'pull_request' && ((rule.parameters?.required_approving_review_count ?? 0) > 0 || rule.parameters?.require_code_owner_review || rule.parameters?.require_last_push_approval)); + // GitHub qualifies App/CODEOWNER/last-push reviews; only repository policy adds humans. + const humanMinimum = config.merge.minimum_human_approvals; const reviews = await github.paginate(github.rest.pulls.listReviews, { ...repo, pull_number: snapshot.pr, per_page: 100 }, response => { requireCondition(response.data.length < 100, 'human_review_history_requires_manual_review'); return response.data; }); @@ -70,10 +71,10 @@ export async function controlMerge(github: Octokit, snapshot: RequestSnapshot, c let humans = 0; let permissionChecks = 0; for (const [userId, review] of [...latest].reverse()) { + if (humans >= humanMinimum) break; if (review.state !== 'APPROVED' || review.commit_id !== snapshot.head) continue; if (++permissionChecks > 8) return stop('human_permission_budget_requires_manual_review'); if (['write','maintain','admin'].includes(await permission(github, snapshot.repository, review.user!.login, userId))) humans++; - if (humans >= humanMinimum) break; } if (pr.reviewDecision==='CHANGES_REQUESTED') return stop('human_changes_requested'); const contexts = pr.commits.nodes[0]?.commit.statusCheckRollup?.contexts; @@ -85,11 +86,15 @@ export async function controlMerge(github: Octokit, snapshot: RequestSnapshot, c ...rules.filter(x => x.type === 'required_status_checks').flatMap(x => x.parameters?.required_status_checks ?? []).map(x => ({ name: x.context, app: x.integration_id }))]; const guarded = required.some(x => x.name === config.merge.guard_check && x.app === options.appId); const missing = required.filter(x => x.name !== config.merge.guard_check).some(required => !checks.some(x => (x.name ?? x.context) === required.name && (!required.app || required.app === -1 || x.checkSuite?.app?.databaseId === required.app))); - if (humans < humanMinimum || pr.reviewDecision==='REVIEW_REQUIRED') { + if (humans < humanMinimum) { await stop('independent_human_approvals_required'); // Keep only the durable worker intent. Native auto-merge stays disabled until real humans qualify. return 'queued'; } + if (pr.reviewDecision==='REVIEW_REQUIRED' || (githubApprovalRequired && pr.reviewDecision!=='APPROVED')) { + await stop('github_approval_requirements_not_satisfied'); + return 'queued'; + } const disposition = mergeDisposition({ head: pr.headRefOid, expectedHead: snapshot.head, open: pr.state === 'OPEN', draft: pr.isDraft, mergeStateStatus: pr.mergeStateStatus, reviewDecision: pr.reviewDecision, authorized: true, explicitlyRequested: snapshot.command.merge, event: 'APPROVE', checks: missing ? 'pending' : status, humans: humans >= humanMinimum, protected: branch.protected, queue: false }, config); diff --git a/src/worker/onboarding.ts b/src/worker/onboarding.ts index a68e220..be4f6b0 100644 --- a/src/worker/onboarding.ts +++ b/src/worker/onboarding.ts @@ -4,7 +4,7 @@ import type { Config } from '../core/config.js'; import catalog from '../core/model-catalog.json' with { type: 'json' }; export function html(value: unknown): string { return String(value ?? '').replace(/[&<>"']/g, c => ({ '&':'&', '<':'<', '>':'>', '"':'"', "'":''' })[c]!); } export function page(title: string, content: string, session?: BrowserSession, canonical?: string): Response { - return new Response(`${html(title)} · CodexBot${canonical ? `` : ''}
C/B CodexBot
${content}
CodexBot · Apache 2.0Your repository. Your infrastructure.
`, { headers: { 'Content-Type':'text/html; charset=utf-8' } }); + return new Response(`${html(title)} · CodexBot${canonical ? `` : ''}
C/B CodexBot
${content}
CodexBot · Apache 2.0Your repository. Your infrastructure.Copyright © 2026 Kaan Gönüldinc
`, { headers: { 'Content-Type':'text/html; charset=utf-8' } }); } export function onboarding(env: BackendConfig & {WEB_ENABLED?:string}): Response { const slug = /^[a-zA-Z0-9-]+$/.test(env.GITHUB_APP_SLUG) ? env.GITHUB_APP_SLUG : 'codexbot'; diff --git a/tests/github-fixture.ts b/tests/github-fixture.ts index 4331139..d0cec52 100644 --- a/tests/github-fixture.ts +++ b/tests/github-fixture.ts @@ -4,8 +4,8 @@ import { snapshot, HEAD, BASE, WORKFLOW, files } from './fixtures.js'; export function githubFixture() { const config = snapshot().config; const state = { privateRepository:false, head: HEAD, base: BASE, permission: 'write', permissionAfterReview: null as string | null, userId: 5, author: 'alice', mergeState: 'CLEAN', - reviewDecision: 'APPROVED', autoMergeAllowed: true, reviews: [] as Record[], installationId: 1, suspended: false, merged: false, - ci: 'SUCCESS', guarded: false, requiredHumans: 1, rules: [] as Record[], autoMergeOwner: null as string | null, + reviewDecision: 'APPROVED' as string | null, autoMergeAllowed: true, reviews: [] as Record[], installationId: 1, suspended: false, merged: false, + ci: 'SUCCESS', guarded: false, requiredApprovals: 1, rules: [] as Record[], autoMergeOwner: null as string | null, humans: [{ id: 80, state: 'APPROVED', commit_id: HEAD, user: { id: 6, login: 'bob', type: 'User' } }] as Record[], checks: [] as Record[], contextTruncated: false, comments: [] as Record[], runStatus: 'in_progress', runConclusion: null as string | null, permissionsByLogin: {} as Record, @@ -23,7 +23,7 @@ export function githubFixture() { if (path === '/repos/owner/repo') return ok(repo); if (path === '/repos/owner/repo/branches/main') return ok({ commit: { sha: WORKFLOW }, protected: true }); if (path === '/repos/owner/repo/rules/branches/main') return ok(state.rules); - if (path === '/repos/owner/repo/branches/main/protection') return ok({ required_status_checks: { checks: [{ context: 'ci', app_id: null }, ...(state.guarded ? [{ context: config.merge.guard_check, app_id: 42 }] : [])] }, required_pull_request_reviews: { required_approving_review_count: state.requiredHumans } }); + if (path === '/repos/owner/repo/branches/main/protection') return ok({ required_status_checks: { checks: [{ context: 'ci', app_id: null }, ...(state.guarded ? [{ context: config.merge.guard_check, app_id: 42 }] : [])] }, required_pull_request_reviews: { required_approving_review_count: state.requiredApprovals } }); if (path === '/repos/owner/repo/contents/.codexbot.yml') return ok({ type: 'file', size: 1000, content: Buffer.from(stringify(config)).toString('base64') }); if (path.includes('/collaborators/') && path.endsWith('/permission')) { const login = decodeURIComponent(path.split('/').at(-2)!); return ok({ permission: state.permissionsByLogin[login] ?? state.permission, user: { id: login === 'github-actions[bot]' ? 41898282 : login === 'alice' ? state.userId : 6, login, type: login === 'github-actions[bot]' ? 'Bot' : 'User' } }); } if(path==='/users/bob')return ok({id:6,login:'bob',type:'User'}); diff --git a/tests/merge.test.ts b/tests/merge.test.ts index f90df16..9d1d86e 100644 --- a/tests/merge.test.ts +++ b/tests/merge.test.ts @@ -5,7 +5,7 @@ import { githubFixture } from './github-fixture.js'; import { snapshot, clean, HEAD, BASE } from './fixtures.js'; import { checkState, controlMerge } from '../src/worker/merge.js'; const enabled = { merge: { enabled: true, appId: 42 } }; -function mergeFixture() { const f = githubFixture(), request = snapshot(); request.command.merge = true; f.config.merge.enabled = true; f.config.merge.authorization.whitelist = 'alice'; return { ...f, request }; } +function mergeFixture() { const f = githubFixture(), request = snapshot(); request.command.merge = true; f.config.merge.minimum_human_approvals = 1; f.config.merge.enabled = true; f.config.merge.authorization.whitelist = 'alice'; return { ...f, request }; } await test('merge controller independently denies implicit merge even with passing publisher prerequisites', async () => { const f = mergeFixture(); f.request.command.merge = false; f.state.mergeState = 'BLOCKED'; f.state.ci = 'PENDING'; f.state.guarded = true; @@ -40,7 +40,7 @@ await test('missing required human approvals, failed CI or revoked policy cancel await test('bot approval cannot satisfy an extra required human, and stale/author approvals do not count', async () => { for (const condition of ['two-required', 'stale', 'author', 'bot']) { const f = mergeFixture(); - if (condition === 'two-required') f.state.requiredHumans = 2; + if (condition === 'two-required') f.config.merge.minimum_human_approvals = 2; if (condition === 'stale') f.state.humans[0]!.commit_id = BASE; if (condition === 'author') f.state.humans[0]!.user = { type: 'User', login: 'alice' }; if (condition === 'bot') f.state.humans[0]!.user = { type: 'Bot', login: 'another[bot]' }; @@ -72,7 +72,7 @@ await test('CI state policy rejects all failure conclusions and treats unknown/n }); await test('human approval counts immutable IDs once and live permissions must belong to the reviewed user ID', async () => { - const f = mergeFixture(); f.state.requiredHumans = 2; + const f = mergeFixture(); f.config.merge.minimum_human_approvals = 2; f.state.humans.push({ id: 81, state: 'APPROVED', commit_id: HEAD, user: { id: 6, login: 'renamed-bob', type: 'User' } }); assert.equal((await publish(f.github, f.request, clean(), true, 'codexbot', enabled)).merge, 'queued'); const forged = mergeFixture(); forged.state.humans[0]!.user = { id: 999, login: 'bob', type: 'User' }; @@ -84,7 +84,7 @@ function autonomousFixture() { const f=githubFixture(),request=snapshot(); request.mergeIntent='automatic'; Object.assign(f.config.merge,{enabled:true,auto_merge_on_approval:true,minimum_human_approvals:0}); - f.config.merge.authorization.whitelist='alice';f.state.requiredHumans=0;f.state.humans=[]; + f.config.merge.authorization.whitelist='alice';f.state.humans=[]; return {...f,request}; } await test('fully autonomous policy publishes a genuine native approval and exact-head merge without a human or --merge',async()=>{ @@ -95,6 +95,16 @@ await test('fully autonomous policy publishes a genuine native approval and exac const mutation=f.calls.find(call=>String(call.body.query).includes('mutation')&&String(call.body.query).includes('mergePullRequest'));assert.ok(mutation);assert.equal((mutation.body.variables as Record).head,HEAD); assert.equal((await publish(f.github,f.request,clean(),true,'codexbot',enabled)).merge,'merged');assert.equal(f.state.reviews.length,1); }); +await test('manual-only reviews with zero extra humans still require an explicit authorized merge command',async()=>{ + for(const explicit of [false,true]){ + const f=autonomousFixture();delete f.request.mergeIntent;f.request.command.merge=explicit; + f.config.review.auto_review=false;f.config.merge.auto_merge_on_approval=false; + f.state.humans=[{id:80,state:'APPROVED',commit_id:HEAD,user:{id:999,login:'bob',type:'User'}}]; + const result=await publish(f.github,f.request,clean(),true,'codexbot',enabled); + assert.equal(f.state.merged,explicit);assert.equal(result.event,'APPROVE'); + assert.equal(f.calls.some(x=>x.path.includes('/collaborators/bob/permission')),false); + } +}); await test('automatic merging remains opt-in and requires an admission-bound intent plus independent merge authorization',async()=>{ for(const scenario of ['no-intent','explicit-only','disabled','unauthorized','gate-closed'] as const){ const f=autonomousFixture(); @@ -106,14 +116,20 @@ await test('automatic merging remains opt-in and requires an admission-bound int assert.notEqual(result.merge,'merged',scenario);assert.equal(f.state.merged,false); } }); -await test('autonomous mode cannot override GitHub human counts, CODEOWNERS or last-push approval rules',async()=>{ - for(const condition of ['count','codeowners','last-push'] as const){ - const f=autonomousFixture(); - if(condition==='count')f.state.requiredHumans=1; - else f.state.rules=[{type:'pull_request',parameters:{required_approving_review_count:0,...(condition==='codeowners'?{require_code_owner_review:true}:{require_last_push_approval:true})}}]; - assert.equal((await publish(f.github,f.request,clean(),true,'codexbot',enabled)).merge,'queued'); - assert.equal(f.state.merged,false); +await test('GitHub-qualified App approvals satisfy required reviews and last-push rules without inventing humans',async()=>{ + for(const source of ['branch','ruleset','codeowners','last-push'] as const){ + for(const decision of ['APPROVED','REVIEW_REQUIRED',null,'UNKNOWN'] as const){ + const f=autonomousFixture(); f.state.reviewDecision=decision; + if(source!=='branch')f.state.rules=[{type:'pull_request',parameters:{required_approving_review_count:1,...(source==='codeowners'?{require_code_owner_review:true}:source==='last-push'?{require_last_push_approval:true}:{})}}]; + const result=await publish(f.github,f.request,clean(),true,'codexbot',enabled); + assert.equal(result.merge,decision==='APPROVED'?'merged':'queued',source+':'+decision); + assert.equal(f.state.merged,decision==='APPROVED'); + assert.equal(f.state.humans.length,0);assert.equal(f.state.requiredApprovals,1); + if(decision!=='APPROVED')assert.equal(f.state.autoMergeOwner,null); + } } + const more=autonomousFixture();more.state.requiredApprovals=2;more.state.reviewDecision='REVIEW_REQUIRED'; + assert.equal((await publish(more.github,more.request,clean(),true,'codexbot',enabled)).merge,'queued'); const human=autonomousFixture();human.config.merge.minimum_human_approvals=1; assert.equal((await publish(human.github,human.request,clean(),true,'codexbot',enabled)).merge,'queued'); assert.equal(human.state.autoMergeOwner,null);assert.equal(human.state.merged,false); diff --git a/tests/worker.test.ts b/tests/worker.test.ts index 527faa3..8816af3 100644 --- a/tests/worker.test.ts +++ b/tests/worker.test.ts @@ -49,6 +49,7 @@ await test('retained aliases expose only public pages; privileged routes never r if (path === '/health') assert.deepEqual(await response.json(),{status:'ok',version:JSON.parse(await readFile('package.json','utf8')).version}); if (path === '/') { const page = await response.text(); assert.ok(page.includes('CLI setup instructions')); + assert.ok(page.includes('Copyright © 2026 Kaan Gönüldinc')); assert.ok(page.includes(``)); assert.ok(!page.includes('WORKER_URL')); } }