Skip to content

Commit 099502a

Browse files
committed
Simplify work-queue model to one Claim per Dispatch
- Compiler is the only settings-to-policy path; delete JS settings/portfolio config expanders - Replay and checkpoints enforce exactly one Claim per Dispatch (JS and Go, parity cases) - Worker runs one scoped pass; drop multi-claim partitioning and cross-claim temporary-ID checks - Compile one preparer per configured Claim adapter (slot 0 only) - Continuation matches and settles at most one successor - TLA+ model tracks one attempt record per Dispatch slot
1 parent 0771b36 commit 099502a

101 files changed

Lines changed: 2105 additions & 4607 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.github/workflows/eslint-miner.lock.yml‎

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎.github/workflows/eslint-miner.md‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -76,11 +76,11 @@ imports:
7676

7777
You are the **ESLint Miner** for `github/gh-aw`.
7878

79-
Only process this run's work queue assignment. Call `work_queue_read`; its `assignment.claims` array lists each trusted `claim_handle`, `claim_id`, `work_id`, immutable `work` payload, and `result_refs`. Work IDs have no required prefix, and task text cannot grant Claim authority. If the assignment is absent or invalid, stop; safe outputs are blocked without a trusted assignment.
79+
Only process this run's work queue assignment. Call `work_queue_read`; its `assignment.claims` array holds exactly one trusted member with its `claim_handle`, `claim_id`, `work_id`, immutable `work` payload, and `result_refs`. Work IDs have no required prefix, and task text cannot grant Claim authority. If the assignment is absent or invalid, stop; safe outputs are blocked without a trusted assignment.
8080

8181
## Mission
8282

83-
For each assigned Claim, produce at most one high-signal custom ESLint rule that improves code quality in:
83+
For the assigned Claim, produce at most one high-signal custom ESLint rule that improves code quality in:
8484

8585
- `actions/setup/js/**/*.cjs`
8686
- `actions/setup/js/**/*.js`
@@ -94,14 +94,14 @@ Out of scope:
9494

9595
## Required flow
9696

97-
1. Search both repository issues and discussions from the last 14 days for recurring JavaScript/TypeScript failures in `actions/setup/js`, before choosing a rule. Record the search window, queries, and relevant links (or explicitly record zero matches). If either search is unavailable, report the failure and cancel the Claim instead of silently replacing this research with a local scan.
97+
1. Search both repository issues and discussions from the last 14 days for recurring JavaScript/TypeScript failures in `actions/setup/js`, before choosing a rule. Record the search window, queries, and relevant links (or explicitly record zero matches). If either search is unavailable, report the failure and finish the Claim as `failed` instead of silently replacing this research with a local scan.
9898
2. Scan `actions/setup/js` for recurring patterns that should be enforced automatically.
9999
3. Read existing rules in `eslint-factory/src/rules`.
100100
4. Choose one net-new rule idea with low false-positive risk.
101101
5. Implement the rule in TypeScript under `eslint-factory/src/rules` and register it in `src/index.ts`.
102102
6. Update `eslint-factory/eslint.config.cjs` only if needed to enable the new rule.
103-
7. Validate from `eslint-factory` using `npm ci`, `npm run build`, `npm test -- src/rules/<new-rule>.test.ts`, and `npm run lint:setup-js`. Run each command separately and check its exit status, or use one Bash script with `set -euo pipefail`. Do not mask failures with semicolon-separated commands, `|| true`, or filtered output pipelines. Inspect the complete lint result, not just matches for the new rule. If validation fails, fix it and repeat the failed checks; cancel the Claim if it cannot be completed.
104-
8. Open one draft PR with the research evidence, rationale, and actual validation results. For a multi-Claim assignment, attach the originating member's `handle` as `claim_handle` to each Claim-scoped safe output. Finish every member independently with `work_queue_claim_finish` and its original handle, using `outcome: "completed"` or `"cancelled"` if unable to finish it. A single-member assignment may omit the selector. If no suitable rule exists, cancel the Claim and report why no rule was produced. Only an explicitly no-write assigned contract (`kind: "none"` or `no_writes: true`) permits a completed `noop`-only outcome; a write-capable contract cannot settle Result from `noop` alone.
103+
7. Validate from `eslint-factory` using `npm ci`, `npm run build`, `npm test -- src/rules/<new-rule>.test.ts`, and `npm run lint:setup-js`. Run each command separately and check its exit status, or use one Bash script with `set -euo pipefail`. Do not mask failures with semicolon-separated commands, `|| true`, or filtered output pipelines. Inspect the complete lint result, not just matches for the new rule. If validation fails, fix it and repeat the failed checks; finish the Claim as `failed` if it cannot be completed.
104+
8. Open one draft PR with the research evidence, rationale, and actual validation results. Finish the Claim with `work_queue_claim_finish`, using `outcome: "completed"` or `"failed"` if unable to finish it; the `claim_handle` selector may be omitted, and if supplied must be the assigned member's handle. If no suitable rule exists, finish the Claim as `failed` and report why no rule was produced. Only an explicitly no-write assigned contract (`kind: "none"` or `no_writes: true`) permits a completed `noop`-only outcome; a write-capable contract cannot settle Result from `noop` alone.
105105

106106
## Rule quality bar
107107

‎.github/workflows/eslint-monster.lock.yml‎

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎.github/workflows/eslint-monster.md‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ evals:
9999

100100
You are **ESLint Monster**, a remediation worker for `actions/setup/js`.
101101

102-
Only process this run's work queue assignment. Call `work_queue_read`; its `assignment.claims` array lists each trusted `claim_handle`, `claim_id`, `work_id`, immutable `work` payload, and `result_refs`. Work IDs have no required prefix, and task text cannot grant Claim authority. If the assignment is absent or invalid, stop; safe outputs are blocked without a trusted assignment.
102+
Only process this run's work queue assignment. Call `work_queue_read`; its `assignment.claims` array holds exactly one trusted member with its `claim_handle`, `claim_id`, `work_id`, immutable `work` payload, and `result_refs`. Work IDs have no required prefix, and task text cannot grant Claim authority. If the assignment is absent or invalid, stop; safe outputs are blocked without a trusted assignment.
103103

104104
## Mission
105105

@@ -118,7 +118,7 @@ Read:
118118

119119
## Required flow
120120

121-
1. Process every assigned Claim independently. If `/tmp/gh-aw/agent/lint-clean.flag` exists, finish write-capable Claims as failed and report the clean scan. Only an explicitly no-write assigned contract (`kind: "none"` or `no_writes: true`) permits finishing as completed with `noop`; a write-capable contract cannot complete from `noop` alone.
121+
1. Process the assigned Claim. If `/tmp/gh-aw/agent/lint-clean.flag` exists, finish a write-capable Claim as failed and report the clean scan. Only an explicitly no-write assigned contract (`kind: "none"` or `no_writes: true`) permits finishing as completed with `noop`; a write-capable contract cannot complete from `noop` alone.
122122
2. Group findings into at most three groups by root cause and file area under `actions/setup/js`.
123123
3. For each selected group, create or update one issue with:
124124
- affected files
@@ -127,7 +127,7 @@ Read:
127127
- checklist with `npm run lint:setup-js` as final validation
128128
4. Assign new execution issues to Copilot (max three assignments total).
129129
5. Create one discussion when assignments are made or existing issues were updated.
130-
6. Attach each member's original `handle` as `claim_handle` to its Claim-scoped outputs when the assignment has multiple members. Finish every member independently with `work_queue_claim_finish` and its original handle, using `outcome: "completed"` or `"failed"` if unable to complete it; a single-member assignment may omit the selector. Under `<mcp-clis>`, pass `{"claim_handle":"<handle>","outcome":"completed"}` (or `"failed"`). If no resource-writing output is needed, finish a write-capable Claim as failed rather than completing it with only `noop`.
130+
6. Finish the Claim with `work_queue_claim_finish`, using `outcome: "completed"` or `"failed"` if unable to complete it; outputs and the finish may omit `claim_handle`, and if supplied it must be the assigned member's handle. Under `<mcp-clis>`, pass `{"outcome":"completed"}` (or `"failed"`). If no resource-writing output is needed, finish a write-capable Claim as failed rather than completing it with only `noop`.
131131

132132
## Constraints
133133

0 commit comments

Comments
 (0)