@juangcarmona/lighthouse-sdlc 0.22.5 → 0.22.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -29,6 +29,8 @@ For direct implementation, the host scaffolds OpenSpec metadata before the agent
29
29
 
30
30
  When the admitted source already contains one completed, issue-bound archived implementation plan, the host validates its provider metadata, planning artifacts and task completion without recreating an active change. Incomplete evidence, multiple matching archives, active/archive conflicts or candidate rewrites stop requalification with a repair reason. The archive is planning evidence, not a completion receipt: independent checks, required review, forge checks and the original correction/deadline limits still apply. Adopters need the released SDLC correction and an updated workflow source/package-mode installation before retrying a real candidate; a source fix alone does not establish installed adoption.
31
31
 
32
+ The generated independent plan check runs from the read-only harness against the materialized candidate. It strictly validates the selected archive under its original active identity only in a disposable provider workspace, leaving the candidate unchanged. Without an applicable archive it retains strict active-plan validation; missing plans fail rather than skipping the check.
33
+
32
34
  An owner correction can revalidate an existing implementation PR without editing source. The host runs independent checks, rechecks the current head, intent, policy and feedback, and publishes fresh completion evidence for that same head. Initial implementations still require source changes; failed checks and pending decisions remain blockers.
33
35
 
34
36
  When GitHub retains a test merge against an older base, a successful correction can publish a verification commit with the exact checked tree. The host waits for GitHub to recompute the merge subject and requests its normal CI. Integration requires approval of the resulting head; source files and the completed product apply remain unchanged.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@juangcarmona/lighthouse-sdlc",
3
- "version": "0.22.5",
3
+ "version": "0.22.7",
4
4
  "type": "module",
5
5
  "description": "Provider-neutral SDLC skills, commands and route contracts for Lighthouse adopters",
6
6
  "repository": {
package/src/ci-repair.mjs CHANGED
@@ -5,11 +5,13 @@ import { loadStageReport } from './proposal.mjs';
5
5
  import { loadImplementation } from './implementation.mjs';
6
6
  import { taskDigest } from './digests.mjs';
7
7
  import { ciRunMatches } from './ci-subject.mjs';
8
+ import { validateCiRepairPolicy } from './github-profile.mjs';
8
9
 
9
10
  function repairPolicy(completion) {
10
11
  const policy = completion?.ciRepair;
11
12
  if (policy?.enabled !== true) return null;
12
- if (policy.maxAttempts !== 2 || !Array.isArray(policy.issues) || !policy.issues.length || policy.issues.length > 100 || policy.issues.some(n => !Number.isSafeInteger(n) || n < 1)) throw Error('CI repair needs an explicit issue allowlist and a two-attempt limit');
13
+ const errors = validateCiRepairPolicy(policy);
14
+ if (errors.length) throw Error(errors.join(' '));
13
15
  return policy;
14
16
  }
15
17
 
@@ -38,6 +38,14 @@ const defaults = {
38
38
  'releases.immutable': true,
39
39
  };
40
40
 
41
+ export function validateCiRepairPolicy(policy) {
42
+ if (!record(policy) || Object.keys(policy).some(key => !['enabled', 'maxAttempts', 'issues'].includes(key)) || typeof policy.enabled !== 'boolean') return ['CI repair requires an explicit enabled boolean and known policy fields.'];
43
+ if (policy.enabled || policy.maxAttempts !== undefined || policy.issues !== undefined) {
44
+ if (policy.maxAttempts !== 2 || !Array.isArray(policy.issues) || policy.enabled && !policy.issues.length || policy.issues.length > 100 || policy.issues.some(n => !Number.isSafeInteger(n) || n < 1) || new Set(policy.issues).size !== policy.issues.length) return ['CI repair needs an explicit issue allowlist and a two-attempt limit.'];
45
+ }
46
+ return [];
47
+ }
48
+
41
49
  export function validateGithubProfile(config) {
42
50
  const errors = [];
43
51
  if (!record(config)) return ['GitHub profile must be an object.'];
@@ -60,8 +68,9 @@ export function validateGithubProfile(config) {
60
68
  if (config.releaseWorkflowReady !== undefined && typeof config.releaseWorkflowReady !== 'boolean') errors.push('releaseWorkflowReady must be boolean.');
61
69
  if (config.completion !== undefined) {
62
70
  const c = config.completion;
63
- if (!record(c) || Object.keys(c).filter(k => k !== 'protectionObservations').sort().join(',') !== 'postMergeWorkflows,publishEvidence' || typeof c.publishEvidence !== 'boolean' || !Array.isArray(c.postMergeWorkflows) || !c.postMergeWorkflows.length || c.postMergeWorkflows.length > 8 || new Set(c.postMergeWorkflows).size !== c.postMergeWorkflows.length || c.postMergeWorkflows.some(w => !/^[a-zA-Z0-9][a-zA-Z0-9_-]*\.ya?ml$/.test(w))) errors.push('completion requires publishEvidence and 1-8 unique postMergeWorkflows filenames.');
71
+ if (!record(c) || Object.keys(c).filter(k => !['protectionObservations', 'ciRepair'].includes(k)).sort().join(',') !== 'postMergeWorkflows,publishEvidence' || typeof c.publishEvidence !== 'boolean' || !Array.isArray(c.postMergeWorkflows) || !c.postMergeWorkflows.length || c.postMergeWorkflows.length > 8 || new Set(c.postMergeWorkflows).size !== c.postMergeWorkflows.length || c.postMergeWorkflows.some(w => !/^[a-zA-Z0-9][a-zA-Z0-9_-]*\.ya?ml$/.test(w))) errors.push('completion requires publishEvidence and 1-8 unique postMergeWorkflows filenames.');
64
72
  }
73
+ if (config.completion?.ciRepair !== undefined) errors.push(...validateCiRepairPolicy(config.completion.ciRepair));
65
74
  if (config.completion?.protectionObservations !== undefined) {
66
75
  const observations = config.completion.protectionObservations;
67
76
  if (!Array.isArray(observations) || !observations.length || observations.length > 8 || observations.some(o => !record(o) || Object.keys(o).sort().join(',') !== 'id,revision' || !Number.isSafeInteger(o.id) || o.id < 1 || !/^[a-f0-9]{64}$/.test(o.revision ?? ''))) errors.push('protectionObservations must contain bounded owner-verified ruleset ids and revision digests.');
@@ -1,3 +1,5 @@
1
+ import { setTimeout as pause } from 'node:timers/promises';
2
+
1
3
  export const repositoryApiUrl = (repository, path = '') => `https://api.github.com/repos/${repository}${path ? `/${path}` : ''}`;
2
4
 
3
5
  async function denialMessage(response, token) {
@@ -37,9 +39,22 @@ async function denialMessage(response, token) {
37
39
  }
38
40
  }
39
41
 
40
- export function createIssueApi(repo, env, fetchRequest = fetch) {
42
+ export function createIssueApi(repo, env, fetchRequest = fetch, { now = Date.now, wait = pause } = {}) {
41
43
  return async (path, method = 'GET', body, optional = false) => {
42
- const r = await fetchRequest(repositoryApiUrl(repo, path), { method, headers: { authorization: `Bearer ${env.GH_TOKEN}`, accept: 'application/vnd.github+json', 'content-type': 'application/json' }, body: body === undefined ? undefined : JSON.stringify(body), signal: AbortSignal.timeout(30000) });
44
+ const deadline = now() + 30000;
45
+ let r;
46
+ for (let attempt = 0; attempt < 3; attempt++) {
47
+ r = await fetchRequest(repositoryApiUrl(repo, path), { method, headers: { authorization: `Bearer ${env.GH_TOKEN}`, accept: 'application/vnd.github+json', 'content-type': 'application/json' }, body: body === undefined ? undefined : JSON.stringify(body), signal: AbortSignal.timeout(Math.max(1, deadline - now())) });
48
+ // A failed mutation may already have taken effect; only repeat read-only requests.
49
+ if (method !== 'GET' || body !== undefined || ![429, 500, 502, 503, 504].includes(r.status) || attempt === 2) break;
50
+ const retryAfter = r.headers.get('retry-after');
51
+ const requested = retryAfter === null ? 0 : /^\d+$/.test(retryAfter) ? Number(retryAfter) * 1000 : Date.parse(retryAfter) - now();
52
+ const delay = Math.max(500 * 2 ** attempt, Number.isFinite(requested) ? requested : 0);
53
+ if (delay >= deadline - now()) break;
54
+ try { void r.body?.cancel().catch(() => {}); } catch {}
55
+ await wait(delay);
56
+ if (now() >= deadline) break;
57
+ }
43
58
  if (optional && r.status === 404) return null;
44
59
  if (!r.ok) {
45
60
  const error = Object.assign(Error(`GitHub ${method} ${path}: ${r.status}`), { status: r.status });
@@ -0,0 +1,67 @@
1
+ import { lstat, readdir, readFile } from 'node:fs/promises';
2
+ import { join } from 'node:path';
3
+ import { pathToFileURL } from 'node:url';
4
+ import { archivedPlanRoot, validateArchivedPlan } from './implementation-plan.mjs';
5
+ import { proposalRoot, changeName } from './proposal-files.mjs';
6
+ import { openSpec } from './openspec-provider.mjs';
7
+
8
+ // Read only applicable planning evidence, not the application or unrelated archives.
9
+ // The caller's independent runtime supplies the immutable candidate and harness.
10
+ async function planSource(directory, issue) {
11
+ const source = new Map();
12
+ let bytes = 0, members = 0;
13
+ async function visit(path) {
14
+ if (++members > 5000) throw Error('Implementation plan evidence exceeds 5000 members');
15
+ let stat;
16
+ try { stat = await lstat(join(directory, path)); }
17
+ catch (error) { if (error.code === 'ENOENT') return; throw error; }
18
+ if (stat.isSymbolicLink() || !stat.isDirectory() && !stat.isFile()) throw Error(`Invalid OpenSpec evidence member: ${path}; restore regular provider-owned files`);
19
+ if (stat.isDirectory()) {
20
+ for (const name of await readdir(join(directory, path))) await visit(`${path}/${name}`);
21
+ } else {
22
+ bytes += stat.size;
23
+ if (bytes > 64 * 1024 * 1024) throw Error('Implementation plan evidence exceeds 64 MiB');
24
+ source.set(path, { mode: stat.mode & 0o111 ? '100755' : '100644', content: await readFile(join(directory, path)) });
25
+ }
26
+ }
27
+ const active = proposalRoot(issue), prefix = 'openspec/changes/archive/';
28
+ await visit(active);
29
+ // Preserve empty directory identity as well, so conflicts cannot be hidden.
30
+ try {
31
+ const stat = await lstat(join(directory, active));
32
+ if (stat.isDirectory()) source.set(`${active}/`, { content: Buffer.alloc(0), mode: '100644' });
33
+ } catch (error) { if (error.code !== 'ENOENT') throw error; }
34
+ let entries;
35
+ try {
36
+ const stat = await lstat(join(directory, prefix));
37
+ if (!stat.isDirectory() || stat.isSymbolicLink()) throw Error('Invalid OpenSpec archive directory; restore provider-owned evidence');
38
+ entries = await readdir(join(directory, prefix));
39
+ } catch (error) { if (error.code !== 'ENOENT') throw error; entries = []; }
40
+ if (entries.length > 5000) throw Error('Implementation plan archive inventory exceeds 5000 members');
41
+ const identities = new Map([...source, ...entries.map(name => [`${prefix}${name}/`, null])]);
42
+ const archived = archivedPlanRoot(identities, issue);
43
+ if (archived) {
44
+ await visit(archived);
45
+ for (const path of ['openspec/config.yaml', 'openspec/specs', 'openspec/schemas']) await visit(path);
46
+ }
47
+ return { source, archived };
48
+ }
49
+
50
+ export async function checkImplementationPlan(directory, issue, provider = openSpec, signal) {
51
+ if (!Number.isSafeInteger(issue) || issue < 1) throw Error('Implementation plan check requires a positive issue number');
52
+ const { source, archived } = await planSource(directory, issue);
53
+ if (archived) await validateArchivedPlan(source, archived, issue, provider, signal);
54
+ else {
55
+ if (![...source.keys()].some(path => path.startsWith(`${proposalRoot(issue)}/`) && !path.endsWith('/'))) throw Error(`No implementation plan for issue #${issue}; materialize the provider-owned active plan before independent verification`);
56
+ await provider(directory, ['validate', changeName(issue), '--strict', '--no-interactive'], { signal });
57
+ }
58
+ }
59
+
60
+ if (process.argv[1] && import.meta.url === pathToFileURL(process.argv[1]).href) {
61
+ try {
62
+ const [issue, ...flags] = process.argv.slice(2);
63
+ if (!/^[1-9]\d*$/.test(issue ?? '') || flags.join(' ') !== '--strict --no-interactive') throw Error('Usage: implementation-plan-check.mjs <issue> --strict --no-interactive');
64
+ await checkImplementationPlan(process.cwd(), Number(issue));
65
+ console.log(`Strict implementation plan validation passed for issue #${issue}`);
66
+ } catch (error) { console.error(error.message); process.exitCode = 1; }
67
+ }
@@ -4,7 +4,7 @@ import { tmpdir } from 'node:os';
4
4
  import { proposalRoot, changeName } from './proposal-files.mjs';
5
5
  import { openSpec } from './openspec-provider.mjs';
6
6
 
7
- function archivedPlanRoot(source, issue) {
7
+ export function archivedPlanRoot(source, issue) {
8
8
  const name = changeName(issue), prefix = 'openspec/changes/archive/';
9
9
  const matches = new Set();
10
10
  for (const path of source.keys()) {
@@ -18,7 +18,7 @@ function archivedPlanRoot(source, issue) {
18
18
  return archived;
19
19
  }
20
20
 
21
- async function validateArchivedPlan(source, archived, issue, provider, signal) {
21
+ export async function validateArchivedPlan(source, archived, issue, provider, signal) {
22
22
  for (const name of ['.openspec.yaml', 'proposal.md', 'design.md', 'tasks.md']) {
23
23
  const file = source.get(`${archived}/${name}`);
24
24
  if (!file?.content?.toString('utf8').trim()) throw Error(`Archived implementation plan ${archived} is missing ${name}; restore the complete provider-owned plan before requalification`);
@@ -110,7 +110,7 @@ export async function runImplementationChecks({ config, request, changes, worksp
110
110
  console.log(`Host check ${i + 1}: ${command.join(' ')}`);
111
111
  const checkStarted = Date.now(); telemetry?.emit('check.started', { callId: `check-${i + 1}`, status: 'running' });
112
112
  let log = '', pending = '', logTruncated = false;
113
- const args = ownedDockerArgs(config, ['run', '--rm', '--init', '--name', `${name}-checks`, '--user', `${config.uid}:${config.uid}`, ...resourceArgs(limits), '--cap-drop', 'ALL', '--security-opt', 'no-new-privileges', '--read-only', '--tmpfs', '/tmp:rw,exec,size=1g,mode=1777', '--env', 'HOME=/tmp', '--env', 'CI=true', ...scratchArgs, '--env', 'PLAYWRIGHT_BROWSERS_PATH=/workspace/.cache/ms-playwright', ...environmentArgs(runtime), '--mount', `type=bind,src=${workspace},dst=/workspace`, '--mount', `type=bind,src=${harness},dst=/harness,readonly`, '--mount', `type=bind,src=${output},dst=/diagnostics`, '--workdir', '/workspace', '--entrypoint', 'sh', config.image, '-c', checkOutputCommand, 'lighthouse-check', `check-${i + 1}`, '--', ...command]);
113
+ const args = ownedDockerArgs(config, ['run', '--rm', '--init', '--name', `${name}-checks`, '--user', `${config.uid}:${config.uid}`, ...resourceArgs(limits), '--cap-drop', 'ALL', '--security-opt', 'no-new-privileges', '--read-only', '--tmpfs', '/tmp:rw,exec,size=2g,mode=1777', '--env', 'HOME=/tmp', '--env', 'CI=true', ...scratchArgs, '--env', 'PLAYWRIGHT_BROWSERS_PATH=/workspace/.cache/ms-playwright', ...environmentArgs(runtime), '--mount', `type=bind,src=${workspace},dst=/workspace`, '--mount', `type=bind,src=${harness},dst=/harness,readonly`, '--mount', `type=bind,src=${output},dst=/diagnostics`, '--workdir', '/workspace', '--entrypoint', 'sh', config.image, '-c', checkOutputCommand, 'lighthouse-check', `check-${i + 1}`, '--', ...command]);
114
114
  let reason = null;
115
115
  const exit = await new Promise(resolve => {
116
116
  const child = spawn('docker', args, { stdio: ['ignore', 'pipe', 'pipe'] });
@@ -5,7 +5,7 @@ import { tmpdir } from 'node:os';
5
5
  import { spawnSync, execFileSync } from 'node:child_process';
6
6
  import { createHash } from 'node:crypto';
7
7
  import { setTimeout } from 'node:timers/promises';
8
- import { proposalRoot, changeName } from './proposal-files.mjs';
8
+ import { proposalRoot } from './proposal-files.mjs';
9
9
  import { validateEnvironment } from './execution-environment.mjs';
10
10
  import { checkProductResumePullRequest, productImplementationProof, productModelDirectoryFromConfig } from './product-change.mjs';
11
11
  import { checkAlignedImplementationPullRequest, checkReviewCurrent } from './proposal-review.mjs';
@@ -53,7 +53,7 @@ export async function loadImplementation(api, issue, owner, revision, defaultBra
53
53
  if (!pkg.scripts?.verify) throw Error('Configure repository implementation checks in .lighthouse/implement.json defaults, or provide npm run verify');
54
54
  policy = { scope: 'Implement only this issue and its acceptance criteria.', paths: ['*'], checks: [['npm', 'ci', '--ignore-scripts'], ['npm', 'run', 'verify']], reviewRequired: false };
55
55
  }
56
- const planCheck = ['npx', '--yes', '--package=@fission-ai/openspec@1.15.0', 'openspec', 'validate', changeName(issue), '--strict', '--no-interactive'];
56
+ const planCheck = ['node', '/harness/src/implementation-plan-check.mjs', String(issue), '--strict', '--no-interactive'];
57
57
  policy = validateImplementationPolicy(policy, issue);
58
58
  if (route === 'epic') policy = validateImplementationPolicy({ ...policy, paths: [...new Set([...policy.paths, `${proposalRoot(issue)}/`])] }, issue);
59
59
  policy = { ...policy, checks: [...policy.checks, ...(route === 'hotfix' ? [] : [planCheck])] };
@@ -244,7 +244,7 @@ async function main() {
244
244
  nativeTimer = setInterval(nativeCollect, 1000);
245
245
  phase = 'execution'; await recordPhase('running');
246
246
  const args = ownedDockerArgs(config, ['run', '--rm', '--init', '--name', name, '--user', `${config.uid}:${config.uid}`, ...resourceArgs(limits), '--cap-drop', 'ALL', '--security-opt', 'no-new-privileges', '--read-only',
247
- '--tmpfs', '/tmp:rw,exec,size=1g,mode=1777', '--tmpfs', `/home/engine/.cache:rw,size=1g,uid=${config.uid},gid=${config.uid}`, '--tmpfs', `/home/engine/.config:rw,size=16m,uid=${config.uid},gid=${config.uid}`, '--tmpfs', `/home/engine/.local/state:rw,size=64m,uid=${config.uid},gid=${config.uid}`,
247
+ '--tmpfs', '/tmp:rw,exec,size=2g,mode=1777', '--tmpfs', `/home/engine/.cache:rw,size=1g,uid=${config.uid},gid=${config.uid}`, '--tmpfs', `/home/engine/.config:rw,size=16m,uid=${config.uid},gid=${config.uid}`, '--tmpfs', `/home/engine/.local/state:rw,size=64m,uid=${config.uid},gid=${config.uid}`,
248
248
  '--mount', `type=bind,src=${source},dst=/workspace${implementing ? '' : ',readonly'}`, '--mount', `type=bind,src=${output},dst=/output`, '--mount', `type=bind,src=${context},dst=/input/context.json,readonly`, '--mount', `type=bind,src=${prompt},dst=/input/prompt.txt,readonly`, '--mount', `type=bind,src=${harness},dst=/harness,readonly`,
249
249
  ...(codegraph.status === 'available' ? ['--mount', `type=bind,src=${codegraph.state},dst=/codegraph,readonly`] : []),
250
250
  ...(workerConfigPath ? ['--mount', `type=bind,src=${workerConfigPath},dst=/etc/opencode/opencode.json,readonly`, '--env', 'LIGHTHOUSE_NATIVE_TELEMETRY_FILE=/output/execution/native-events.jsonl'] : []),
@@ -7,16 +7,9 @@ import { checkImplementationPullRequest } from './proposal-review.mjs';
7
7
  import { authorizedCiCallback, draftIntentMarker, isCurrentPullRequestEvent, pendingDraftIntent, productOnlyCheckpoint, isStaleProductDecision, projectImplementationPrState, reconcileImplementationPr, scheduledImplementationPulls, setPullRequestDraft } from './pr-state.mjs';
8
8
  import { handoff } from './handoff.mjs';
9
9
  import { productProposalProof } from './product-change.mjs';
10
+ import { createIssueApi } from './github-rest.mjs';
10
11
 
11
- const apiFor = (repo, token) => async (path, method = 'GET', body, optional = false) => {
12
- const response = await fetch(`https://api.github.com/repos/${repo}${path ? `/${path}` : ''}`, {
13
- method, headers: { Authorization: `Bearer ${token}`, Accept: 'application/vnd.github+json', 'X-GitHub-Api-Version': '2022-11-28', ...(body ? { 'Content-Type': 'application/json' } : {}) },
14
- ...(body ? { body: JSON.stringify(body) } : {}), signal: AbortSignal.timeout(30000),
15
- });
16
- if (optional && response.status === 404) return null;
17
- if (!response.ok) throw Error(`GitHub ${method} ${path}: ${response.status}`);
18
- return response.status === 204 ? null : response.json();
19
- };
12
+ const apiFor = (repo, token) => createIssueApi(repo, { GH_TOKEN: token });
20
13
  const commentsFor = async (api, issue) => {
21
14
  const comments = [];
22
15
  for (let page = 1; page <= 10; page++) {
@@ -6,6 +6,7 @@ import { maintenancePath, prepareRecovery, observeRecovery, recoveryIssues } fro
6
6
  import { githubAppCiTrigger } from './github-app-ci.mjs';
7
7
  import { admissionCompletion, completedAdmission } from './admission-recovery.mjs';
8
8
  import { publishReports } from './worker-reports.mjs';
9
+ import { createIssueApi } from './github-rest.mjs';
9
10
 
10
11
  export async function ownerIssues(api, owner) {
11
12
  const issues = [];
@@ -45,17 +46,7 @@ export async function maintenanceIssues(api, owner, repository) {
45
46
  async function main(command) {
46
47
  const env = process.env, repository = env.GITHUB_REPOSITORY, owner = env.GITHUB_REPOSITORY_OWNER;
47
48
  if (!/^[\w.-]+\/[\w.-]+$/.test(repository ?? '')) throw Error('Invalid repository');
48
- const api = async (path, method = 'GET', body, optional = false) => {
49
- const response = await fetch(`https://api.github.com/repos/${repository}${path ? '/' + path : ''}`, { method, headers: { authorization: `Bearer ${env.GH_TOKEN}`, accept: 'application/vnd.github+json', 'content-type': 'application/json' }, body: body === undefined ? undefined : JSON.stringify(body), signal: AbortSignal.timeout(30000) });
50
- if (optional && response.status === 404) return null;
51
- if (!response.ok) throw Object.assign(Error(`GitHub ${method} ${path}: ${response.status}`), { status: response.status });
52
- if (/^actions\/jobs\/[1-9][0-9]*\/logs$/.test(path)) {
53
- const log = await response.text();
54
- if (Buffer.byteLength(log) > 4 * 1024 * 1024) throw Error('Job log exceeds recovery bounds');
55
- return log;
56
- }
57
- return response.status === 204 ? null : response.json();
58
- };
49
+ const api = createIssueApi(repository, env);
59
50
  const output = async (name, value) => { if (env.GITHUB_OUTPUT) await appendFile(env.GITHUB_OUTPUT, `${name}=${value}\n`); };
60
51
  const parent = await api(`actions/runs/${env.GITHUB_RUN_ID}/attempts/${env.GITHUB_RUN_ATTEMPT}`);
61
52
  const event = env.GITHUB_EVENT_PATH ? JSON.parse(await readFile(env.GITHUB_EVENT_PATH, 'utf8')) : null;
@@ -170,7 +170,7 @@ async function writeIndex(api, issue, index) {
170
170
  async function reportIssues(api) {
171
171
  const all = [];
172
172
  for (let page = 1; page <= 5; page++) {
173
- const rows = await api(`issues?state=all&per_page=100&page=${page}`);
173
+ const rows = await api(`issues?state=all&creator=github-actions%5Bbot%5D&per_page=100&page=${page}`);
174
174
  all.push(...rows.filter(i => !i.pull_request && i.body?.includes(`<!-- ${marker}:`)));
175
175
  if (rows.length < 100) return all;
176
176
  }