diff --git a/AGENTS.md b/AGENTS.md index 884e04c0..1be4d477 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -42,7 +42,7 @@ file had to be corrected by hand. at least one easyconfigs path and refuses a recipe that is not valid Python. 5. Run `eb-stack target doctor` before a build campaign. 6. Run or resume `eb-stack campaign run` on the configured EasyBuild target until the requested claim rung is established. -7. Use `campaign finding claim|resolve` for OMP coordination. Never edit campaign JSON directly or steal an owned finding. +7. Use `campaign finding claim|resolve` for worker coordination. Never edit campaign JSON directly or steal an owned finding. 8. For an **upstream easyconfigs PR**, after recipes are ready, use the EasyBuild CLI on the build host: `eb --check-contrib`, then `eb --from-pr --robot --upload-test-report` (see `skills/upstream-pr/SKILL.md`). @@ -62,7 +62,7 @@ lint findings remain, and do not comment on the PR. ## Non-negotiables - Dependency versions, hierarchy choices, site pins, and fallbacks belong inside Resolvo. A package-specific `--dep` override becomes a locked solver pin. -- Boolean satisfiability (SAT) compatibility is not build evidence. Hermes owns classified target/recipe/policy repair and repeats the campaign through verification. +- Boolean satisfiability (SAT) compatibility is not build evidence. The lead owns classified target/recipe/policy repair and repeats the campaign through verification. - Fix code and recipes under test. Never remove assertions, dependencies, checksums, sanity checks, or tests to clear a failure. - Run EasyBuild installs on the configured target, scheduler, and runtime. Keep `EASYBUILD_TMPDIR` on durable storage. - Report `resolves`, `builds`, and `binary-verified` separately. A plan establishes only `resolves`; a build without declared verification does not establish `binary-verified`. `eessi-verified` is a further rung owned by `skills/eessi-extend/SKILL.md`; a build on a normal target never establishes it. diff --git a/README.md b/README.md index f8b7d1cc..dc00c8e4 100644 --- a/README.md +++ b/README.md @@ -188,7 +188,7 @@ than guessed dependencies. Parser notes are informational. Planning consumes only typed residual records, so a note about successfully materializing dynamic source logic cannot -accidentally enqueue Hermes work. Genuine residuals carry a category, severity, +accidentally enqueue lead work. Genuine residuals carry a category, severity, summary, and optional evidence and source provenance. Conda revision numbers and compiler/stdlib/cross-build template requirements @@ -350,19 +350,19 @@ The runnable local target defaults to two parallel EasyBuild jobs so memory-heav For a local public example, build `skills/new-package/container/rocky9/Containerfile`, populate `/tmp/eb-stack/robot`, and use `examples/targets/local-podman.toml`. Keep bundles below `/tmp/eb-stack/bundles` so host and container paths match. -Hermes and OMP name campaign roles, not required orchestration software. -Hermes is the single owner that reads typed findings, applies repairs, and -retries through the requested claim rung. OMP workers are optional concurrent +The lead and the workers are campaign roles, not required orchestration software. +The lead is the single owner that reads typed findings, applies repairs, and +retries through the requested claim rung. Workers are optional concurrent participants that coordinate exclusively through finding ownership. -Campaign failures persist as typed findings. OMP workers coordinate repairs through owned queue operations: +Campaign failures persist as typed findings. Workers coordinate repairs through owned queue operations: ```sh eb-stack campaign finding claim --state /tmp/eon.campaign.json \ - --id attempt:1:finding:1 --owner omp-worker-1 + --id attempt:1:finding:1 --owner worker-1 eb-stack campaign finding resolve --state /tmp/eon.campaign.json \ - --id attempt:1:finding:1 --owner omp-worker-1 \ + --id attempt:1:finding:1 --owner worker-1 \ --action "corrected package configuration" \ --evidence "recipe check exits successfully" \ --change examples/packages/eon.toml @@ -459,7 +459,7 @@ Two produce recipes, three gate them, three carry them somewhere, one repairs th Produce: -- [New package](skills/new-package/SKILL.md): conda-forge/Spack to profiles to bundle to Hermes/OMP campaign. +- [New package](skills/new-package/SKILL.md): conda-forge/Spack to profiles to bundle to lead/worker campaign. - [Annual bump](skills/annual-bump/SKILL.md): EasyBuild recipe to SBOM + Resolvo bump bundle to campaign. Gate, before anything is built or pushed: diff --git a/changelog.d/+generic-campaign-roles.doc.md b/changelog.d/+generic-campaign-roles.doc.md new file mode 100644 index 00000000..2cb3de90 --- /dev/null +++ b/changelog.d/+generic-campaign-roles.doc.md @@ -0,0 +1 @@ +Campaign roles are named the lead and workers in the README, manual, skills and MCP tool text. diff --git a/docs/orgmode/explanation/architecture.org b/docs/orgmode/explanation/architecture.org index d654149b..dcd701a3 100644 --- a/docs/orgmode/explanation/architecture.org +++ b/docs/orgmode/explanation/architecture.org @@ -183,7 +183,7 @@ compact evidence, typed findings, ownership, resolutions, and the three claims. Spawn, controller interruption, and exit failures are data, not lost control flow. They are classified as transport, executor, runtime, interrupted, checksum, patch, dependency, configure, compile, link, test, install, sanity, -resource, timeout, or unknown findings. Hermes drives retries; OMP workers +resource, timeout, or unknown findings. The lead drives retries; workers coordinate through claim/resolve operations. * API surface diff --git a/docs/orgmode/explanation/fidelity.org b/docs/orgmode/explanation/fidelity.org index f237e7ed..9fa121a3 100644 --- a/docs/orgmode/explanation/fidelity.org +++ b/docs/orgmode/explanation/fidelity.org @@ -226,8 +226,8 @@ EB_EASYCONFIGS="$EB_EASYCONFIGS" \ Unresolved dependencies and unsatisfiable locked pins fail the planning command. Build-compatible claims that fail configure, compile, link, test, -install, or sanity become typed campaign findings. Hermes owns the full repair -loop; OMP workers claim findings, repair the evidence-supported layer, record +install, or sanity become typed campaign findings. The lead owns the full repair +loop; workers claim findings, repair the evidence-supported layer, record the resolution, and rerun the campaign. * Next steps diff --git a/docs/orgmode/explanation/lifecycle.org b/docs/orgmode/explanation/lifecycle.org index 8530b952..746da613 100644 --- a/docs/orgmode/explanation/lifecycle.org +++ b/docs/orgmode/explanation/lifecycle.org @@ -87,6 +87,6 @@ A campaign with no verification commands may establish *builds* but leaves configuration. - Empirical failures and repair evidence belong in campaign state. -This structure lets Hermes own the build-evaluation loop without turning every -failure into unstructured prompt text. OMP workers can coordinate by finding +This structure lets the lead own the build-evaluation loop without turning every +failure into unstructured prompt text. Workers can coordinate by finding class and ownership while preserving the exact command and evidence. diff --git a/docs/orgmode/howto/new-package.org b/docs/orgmode/howto/new-package.org index 8b08a5ba..a101abec 100644 --- a/docs/orgmode/howto/new-package.org +++ b/docs/orgmode/howto/new-package.org @@ -417,7 +417,7 @@ Use a runtime-specific ~EASYBUILD_INSTALLPATH~, ~work_root~, and ~tmp_root~ so host-linked modules cannot leak into a container build. A shared ~EASYBUILD_SOURCEPATH~ is safe for source archives. -* Run the Hermes/OMP repair loop +* Run the lead/worker repair loop #+begin_src bash eb-stack campaign run \ @@ -427,7 +427,7 @@ eb-stack campaign run \ --state /tmp/eb-stack/bundles/eon.campaign.json #+end_src -Hermes owns the campaign loop. OMP workers claim typed findings, repair the +The lead owns the campaign loop. Workers claim typed findings, repair the manifest/profile/recipe/target layer appropriate to the class, record evidence, and rerun the campaign. Build compatibility claims are not proof: configure, compile, link, test, install, and sanity failures stay empirical findings until diff --git a/docs/orgmode/howto/repair-campaign.org b/docs/orgmode/howto/repair-campaign.org index 36b068ba..50081208 100644 --- a/docs/orgmode/howto/repair-campaign.org +++ b/docs/orgmode/howto/repair-campaign.org @@ -81,14 +81,14 @@ directory. * Claim the finding -Use a stable worker name. Claims prevent Hermes and OMP workers from applying +Use a stable worker name. Claims prevent the lead and workers from applying different repairs to the same evidence: #+begin_src bash eb-stack campaign finding claim \ --state /tmp/eb-stack/bundles/eon-repair.campaign.json \ --id attempt:1:finding:1 \ - --owner hermes + --owner lead #+end_src The same owner may claim again safely. Another owner receives an ownership @@ -155,14 +155,14 @@ every changed artifact: eb-stack campaign finding resolve \ --state /tmp/eb-stack/bundles/eon-repair.campaign.json \ --id attempt:1:finding:1 \ - --owner hermes \ + --owner lead \ --action "point the EasyBuild command at the program the target image provides" \ --evidence "target doctor easybuild check names the missing program" \ --change examples/targets/local-podman.toml #+end_src The resolution is an audit record. The finding status becomes ~resolved~ -and the owner stays ~hermes~. +and the owner stays ~lead~. * Retry the same state diff --git a/docs/orgmode/howto/run-annual-bump.org b/docs/orgmode/howto/run-annual-bump.org index ba3f05cc..0a9e8c67 100644 --- a/docs/orgmode/howto/run-annual-bump.org +++ b/docs/orgmode/howto/run-annual-bump.org @@ -103,7 +103,7 @@ eb-stack campaign run \ --state /tmp/eb-stack/bundles/gromacs-2024a.campaign.json #+end_src -Hermes owns the retry loop. OMP workers claim findings and repair according to +The lead owns the retry loop. Workers claim findings and repair according to class: | Class | Repair surface | diff --git a/docs/orgmode/reference/campaigns.org b/docs/orgmode/reference/campaigns.org index f3617c98..212a9255 100644 --- a/docs/orgmode/reference/campaigns.org +++ b/docs/orgmode/reference/campaigns.org @@ -3,11 +3,11 @@ A campaign turns a resolved package bundle into empirical build and binary evidence on one named target. The JSON state is durable, resumable, and the -coordination surface for Hermes and OMP workers. +coordination surface for the lead and workers. -Hermes and OMP are role names rather than required orchestration software. -Hermes is the single campaign owner that classifies findings, applies or -coordinates repairs, and retries through the requested claim rung. OMP workers +The lead and the workers are role names rather than required orchestration software. +The lead is the single campaign owner that classifies findings, applies or +coordinates repairs, and retries through the requested claim rung. Workers are optional concurrent participants; their only shared coordination surface is finding ownership in the campaign state. @@ -164,7 +164,7 @@ Claim an open finding before changing state shared with another worker: eb-stack campaign finding claim \ --state /tmp/campaign.json \ --id attempt:2:finding:1 \ - --owner omp-worker-1 + --owner worker-1 #+end_src Claims are exclusive. Reclaiming with the same owner is idempotent; a different @@ -176,7 +176,7 @@ Record the repair and its evidence: eb-stack campaign finding resolve \ --state /tmp/campaign.json \ --id attempt:2:finding:1 \ - --owner omp-worker-1 \ + --owner worker-1 \ --action "corrected the container runtime environment" \ --evidence "target doctor and the isolated command exit successfully" \ --change examples/targets/site.example.toml @@ -202,7 +202,7 @@ class-to-artifact troubleshooting table. The protocol is: 8. Rerun the full campaign state until every requested recipe and verification command succeeds. -Hermes owns this whole loop. OMP workers use finding ownership to divide +The lead owns this whole loop. Workers use finding ownership to divide residual diagnosis without racing on the state file. The executable procedures are [[https://github.com/stackhands/eb-stack/blob/main/skills/new-package/SKILL.md][new package]] and [[https://github.com/stackhands/eb-stack/blob/main/skills/annual-bump/SKILL.md][annual bump]]. diff --git a/docs/orgmode/reference/glossary.org b/docs/orgmode/reference/glossary.org index cdad0ab5..663b8885 100644 --- a/docs/orgmode/reference/glossary.org +++ b/docs/orgmode/reference/glossary.org @@ -98,11 +98,11 @@ Flags and exit status stay in the [[file:cli.org][command-line reference]]. 5.4.0, or 5.4.1, each tied to the fixture that page records. Those version strings are not substitutes for one another. -- Hermes :: The campaign role that classifies findings, applies repairs, +- Lead :: The campaign role that classifies findings, applies repairs, and retries through the requested claim. Not a program that must be installed beside ~eb-stack~. -- OMP :: On a campaign, an optional worker that claims one finding and +- Worker :: On a campaign, an optional worker that claims one finding and records the repair. This is not the OpenMP runtime. OpenMP, written in full, is a toolchain feature on a recipe. diff --git a/llms-full.txt b/llms-full.txt index 99c05605..0d6e092d 100644 --- a/llms-full.txt +++ b/llms-full.txt @@ -688,7 +688,7 @@ eb-stack campaign run \ --state /tmp/eb-stack/bundles/gromacs-2024a.campaign.json ``` -Hermes owns the retry loop. OMP workers claim findings and repair according to +The lead owns the retry loop. Workers claim findings and repair according to class: | Class | Repair surface | @@ -1138,7 +1138,7 @@ Use a runtime-specific `EASYBUILD_INSTALLPATH`, `work_root`, and `tmp_root` so host-linked modules cannot leak into a container build. A shared `EASYBUILD_SOURCEPATH` is safe for source archives. -# Run the Hermes/OMP repair loop +# Run the lead/worker repair loop ```bash eb-stack campaign run \ @@ -1148,7 +1148,7 @@ eb-stack campaign run \ --state /tmp/eb-stack/bundles/eon.campaign.json ``` -Hermes owns the campaign loop. OMP workers claim typed findings, repair the +The lead owns the campaign loop. Workers claim typed findings, repair the manifest/profile/recipe/target layer appropriate to the class, record evidence, and rerun the campaign. Build compatibility claims are not proof: configure, compile, link, test, install, and sanity failures stay empirical findings until @@ -1881,14 +1881,14 @@ directory. # Claim the finding -Use a stable worker name. Claims prevent Hermes and OMP workers from applying +Use a stable worker name. Claims prevent the lead and workers from applying different repairs to the same evidence: ```bash eb-stack campaign finding claim \ --state /tmp/eb-stack/bundles/eon-repair.campaign.json \ --id attempt:1:finding:1 \ - --owner hermes + --owner lead ``` The same owner may claim again safely. Another owner receives an ownership @@ -1955,14 +1955,14 @@ every changed artifact: eb-stack campaign finding resolve \ --state /tmp/eb-stack/bundles/eon-repair.campaign.json \ --id attempt:1:finding:1 \ - --owner hermes \ + --owner lead \ --action "point the EasyBuild command at the program the target image provides" \ --evidence "target doctor easybuild check names the missing program" \ --change examples/targets/local-podman.toml ``` The resolution is an audit record. The finding status becomes `resolved` -and the owner stays `hermes`. +and the owner stays `lead`. # Retry the same state @@ -6704,11 +6704,11 @@ Flags and exit status stay in the [command-line reference](https://eb-stack.rgos 5.4.0, or 5.4.1, each tied to the fixture that page records. Those version strings are not substitutes for one another. -- Hermes :: The campaign role that classifies findings, applies repairs, +- Lead :: The campaign role that classifies findings, applies repairs, and retries through the requested claim. Not a program that must be installed beside `eb-stack`. -- OMP :: On a campaign, an optional worker that claims one finding and +- Worker :: On a campaign, an optional worker that claims one finding and records the repair. This is not the OpenMP runtime. OpenMP, written in full, is a toolchain feature on a recipe. @@ -10209,11 +10209,11 @@ misspelled target names and missing layers without starting a build. A campaign turns a resolved package bundle into empirical build and binary evidence on one named target. The JSON state is durable, resumable, and the -coordination surface for Hermes and OMP workers. +coordination surface for the lead and workers. -Hermes and OMP are role names rather than required orchestration software. -Hermes is the single campaign owner that classifies findings, applies or -coordinates repairs, and retries through the requested claim rung. OMP workers +The lead and the workers are role names rather than required orchestration software. +The lead is the single campaign owner that classifies findings, applies or +coordinates repairs, and retries through the requested claim rung. Workers are optional concurrent participants; their only shared coordination surface is finding ownership in the campaign state. @@ -10370,7 +10370,7 @@ Claim an open finding before changing state shared with another worker: eb-stack campaign finding claim \ --state /tmp/campaign.json \ --id attempt:2:finding:1 \ - --owner omp-worker-1 + --owner worker-1 ``` Claims are exclusive. Reclaiming with the same owner is idempotent; a different @@ -10382,7 +10382,7 @@ Record the repair and its evidence: eb-stack campaign finding resolve \ --state /tmp/campaign.json \ --id attempt:2:finding:1 \ - --owner omp-worker-1 \ + --owner worker-1 \ --action "corrected the container runtime environment" \ --evidence "target doctor and the isolated command exit successfully" \ --change examples/targets/site.example.toml @@ -10408,7 +10408,7 @@ class-to-artifact troubleshooting table. The protocol is: 8. Rerun the full campaign state until every requested recipe and verification command succeeds. -Hermes owns this whole loop. OMP workers use finding ownership to divide +The lead owns this whole loop. Workers use finding ownership to divide residual diagnosis without racing on the state file. The executable procedures are [new package](https://github.com/stackhands/eb-stack/blob/main/skills/new-package/SKILL.md) and [annual bump](https://github.com/stackhands/eb-stack/blob/main/skills/annual-bump/SKILL.md). @@ -11647,8 +11647,8 @@ A campaign with no verification commands may establish **builds** but leaves configuration. - Empirical failures and repair evidence belong in campaign state. -This structure lets Hermes own the build-evaluation loop without turning every -failure into unstructured prompt text. OMP workers can coordinate by finding +This structure lets the lead own the build-evaluation loop without turning every +failure into unstructured prompt text. Workers can coordinate by finding class and ownership while preserving the exact command and evidence. # Architecture @@ -11835,7 +11835,7 @@ compact evidence, typed findings, ownership, resolutions, and the three claims. Spawn, controller interruption, and exit failures are data, not lost control flow. They are classified as transport, executor, runtime, interrupted, checksum, patch, dependency, configure, compile, link, test, install, sanity, -resource, timeout, or unknown findings. Hermes drives retries; OMP workers +resource, timeout, or unknown findings. The lead drives retries; workers coordinate through claim/resolve operations. # API surface @@ -12309,8 +12309,8 @@ EB_EASYCONFIGS="$EB_EASYCONFIGS" \ Unresolved dependencies and unsatisfiable locked pins fail the planning command. Build-compatible claims that fail configure, compile, link, test, -install, or sanity become typed campaign findings. Hermes owns the full repair -loop; OMP workers claim findings, repair the evidence-supported layer, record +install, or sanity become typed campaign findings. The lead owns the full repair +loop; workers claim findings, repair the evidence-supported layer, record the resolution, and rerun the campaign. # Next steps diff --git a/skills/annual-bump/SKILL.md b/skills/annual-bump/SKILL.md index d468327f..e13f5b0c 100644 --- a/skills/annual-bump/SKILL.md +++ b/skills/annual-bump/SKILL.md @@ -1,6 +1,6 @@ --- name: eb-stack-annual-bump -description: Retarget an existing EasyBuild easyconfig to a new toolchain or application version using a canonical EasyBuild-origin manifest, CycloneDX software bill of materials (SBOM), Resolvo dependency lock, stack-policy fallback, deterministic recipe emission, and the persisted Hermes/OMP remote build campaign. Use for annual stack rebuilds and package version bumps. +description: Retarget an existing EasyBuild easyconfig to a new toolchain or application version using a canonical EasyBuild-origin manifest, CycloneDX software bill of materials (SBOM), Resolvo dependency lock, stack-policy fallback, deterministic recipe emission, and the persisted lead/worker remote build campaign. Use for annual stack rebuilds and package version bumps. --- # Bump an EasyBuild package @@ -141,7 +141,7 @@ Pins may also set `toolchain = { name = "...", version = "..." }` and remain unconstrained. `preferred` asks Resolvo to select the complete identity and records whether it fell back. `locked` makes the pin mandatory. Compatibility metadata is not build evidence: if a preferred or locked -selection fails on the build target, Hermes owns the classified repair loop +selection fails on the build target, the lead owns the classified repair loop and may change the policy only with evidence. Use repeatable `--dep NAME=VERSION` only for a package-specific hard override. It is folded into the solve as a locked pin and appears in the lock evidence. @@ -209,7 +209,7 @@ that its routed workload is absent before rerunning the same state; the OS-backed state guard releases automatically, while a remote workload can survive its controller. -Hermes classifies each failure and drives recipe, policy, or target repair. OMP workers coordinate through `campaign finding claim` and `campaign finding resolve`; they never edit campaign JSON or work the same finding concurrently. Re-run the campaign until the requested claim rung is green. +The lead classifies each failure and drives recipe, policy, or target repair. Workers coordinate through `campaign finding claim` and `campaign finding resolve`; they never edit campaign JSON or work the same finding concurrently. Re-run the campaign until the requested claim rung is green. Build failure classes are evidence, not solver contradictions. A SAT-compatible dependency set can still fail to configure, compile, link, test, install, or pass sanity checks on a concrete target. diff --git a/skills/new-package/SKILL.md b/skills/new-package/SKILL.md index a1e2fcff..498ef9a0 100644 --- a/skills/new-package/SKILL.md +++ b/skills/new-package/SKILL.md @@ -1,6 +1,6 @@ --- name: eb-stack-new-package -description: Convert a conda-forge or Spack recipe into a canonical package manifest, CycloneDX SBOM, Resolvo profile locks, separate EasyBuild easyconfigs for product variants, and a remotely built and verified campaign. Use for new EasyBuild packages, foreign recipe imports, eOn or QMCPACK packaging, and Hermes/OMP build-repair loops. +description: Convert a conda-forge or Spack recipe into a canonical package manifest, CycloneDX SBOM, Resolvo profile locks, separate EasyBuild easyconfigs for product variants, and a remotely built and verified campaign. Use for new EasyBuild packages, foreign recipe imports, eOn or QMCPACK packaging, and lead/worker build-repair loops. --- # Build a new EasyBuild package @@ -159,7 +159,7 @@ part of the identity unconstrained. Use `preferred` when Resolvo may fall back to another compatible candidate; the profile lock records the requested and selected identity and whether fallback occurred. Use `locked` when any other identity is invalid. A claimed-compatible version that fails to build remains -a build finding; Hermes decides whether the recipe, target, or stack policy +a build finding; the lead decides whether the recipe, target, or stack policy needs repair. ## Plan the package @@ -313,11 +313,11 @@ CARGO_BUILD_RUSTC_WRAPPER`. Empty values remain environment entries and Rust bootstrap can treat the empty string as a wrapper executable. The isolated work root prevents `unset` from revealing an inherited Cargo wrapper. -## Hermes build-evaluation loop +## Lead build-evaluation loop -Hermes is the single campaign-owner role, not a required orchestration +The lead is the single campaign-owner role, not a required orchestration product. It owns classification, repair decisions, retries, and the final -claim ladder. OMP workers are optional concurrent participants that use only +claim ladder. Workers are optional concurrent participants that use only the campaign finding queue for shared coordination. Use one durable state path for the package: @@ -337,7 +337,7 @@ shell. If its controller exits, verify that the routed container, scheduler job, or host command is absent before rerunning the same state. The state lock releases automatically, but a remote workload can survive its controller. -Hermes owns this loop until the requested claim is established: +The lead owns this loop until the requested claim is established: 1. Read `campaign status`; inspect the newest open finding and its full command evidence. 2. Classify before editing: `transport`, `executor`, `runtime`, `interrupted`, `source`, `checksum`, `patch`, `dependency-missing`, `configure`, `compile`, `link`, `test`, `install`, `license`, `sanity`, `resource`, `timeout`, or `unknown`. @@ -353,7 +353,7 @@ record. Never edit a stock recipe to hide a target defect. Never weaken a test or sanity check. Record changed files and concrete verification output in the finding resolution. -## OMP finding coordination +## Worker finding coordination Campaign state is the sole shared work queue. One worker must claim a finding before changing its inputs: @@ -361,7 +361,7 @@ Campaign state is the sole shared work queue. One worker must claim a finding be eb-stack campaign finding claim \ --state work/qmcpack.campaign.json \ --id attempt:1:finding:1 \ - --owner omp-worker-1 + --owner worker-1 ``` Resolve only after the repair is checked: @@ -370,13 +370,13 @@ Resolve only after the repair is checked: eb-stack campaign finding resolve \ --state work/qmcpack.campaign.json \ --id attempt:1:finding:1 \ - --owner omp-worker-1 \ + --owner worker-1 \ --action "corrected the complex package configuration" \ --evidence "recipe check exits successfully" \ --change examples/packages/qmcpack.toml ``` -The state lock prevents concurrent writers. Workers must not steal an `in-progress` finding or edit the campaign JSON directly. Hermes resumes the campaign after owned repairs are resolved. +The state lock prevents concurrent writers. Workers must not steal an `in-progress` finding or edit the campaign JSON directly. The lead resumes the campaign after owned repairs are resolved. ## Claims diff --git a/src/mcp.rs b/src/mcp.rs index fc05e035..f1529e8d 100644 --- a/src/mcp.rs +++ b/src/mcp.rs @@ -687,7 +687,7 @@ fn tool_catalog() -> Vec { ), tool( "eb_campaign_finding_claim", - "Claim one open campaign finding for an OMP worker.", + "Claim one open campaign finding for a worker.", &[("state", "string"), ("id", "string"), ("owner", "string")], ), tool_with_optional( diff --git a/tests/campaign.rs b/tests/campaign.rs index 7854c7a0..779fb6ff 100644 --- a/tests/campaign.rs +++ b/tests/campaign.rs @@ -674,17 +674,17 @@ fn finding_queue_enforces_ownership_and_records_resolution() { .expect("failed campaign"); let finding = failed.findings[0].id.clone(); - let claimed = claim_finding(&state_path, &finding, "omp-worker-1").expect("claim finding"); + let claimed = claim_finding(&state_path, &finding, "worker-1").expect("claim finding"); assert_eq!(claimed.findings[0].status, FindingStatus::InProgress); - assert_eq!(claimed.findings[0].owner.as_deref(), Some("omp-worker-1")); - let conflict = claim_finding(&state_path, &finding, "omp-worker-2") + assert_eq!(claimed.findings[0].owner.as_deref(), Some("worker-1")); + let conflict = claim_finding(&state_path, &finding, "worker-2") .expect_err("second worker cannot steal finding"); - assert!(conflict.to_string().contains("omp-worker-1"), "{conflict}"); + assert!(conflict.to_string().contains("worker-1"), "{conflict}"); let resolved = resolve_finding( &state_path, &finding, - "omp-worker-1", + "worker-1", FindingResolution { action: "corrected the package config".into(), evidence: "recipe check exits successfully".into(), @@ -1187,7 +1187,7 @@ fn campaign_cli_claims_and_resolves_findings_for_omp_workers() { "--id", finding, "--owner", - "omp-worker-1", + "worker-1", ]) .output() .expect("claim command"); @@ -1207,7 +1207,7 @@ fn campaign_cli_claims_and_resolves_findings_for_omp_workers() { "--id", finding, "--owner", - "omp-worker-1", + "worker-1", "--action", "corrected package config", "--evidence", @@ -1226,7 +1226,7 @@ fn campaign_cli_claims_and_resolves_findings_for_omp_workers() { serde_json::from_str(&std::fs::read_to_string(state_path).expect("state")) .expect("state JSON"); assert_eq!(state["findings"][0]["status"], "resolved"); - assert_eq!(state["findings"][0]["owner"], "omp-worker-1"); + assert_eq!(state["findings"][0]["owner"], "worker-1"); } #[test]