Repository navigation
feat: add verify-automation skill with agent-facing API feature map and control CLI - #577
Conversation
control-automation launches this checkout's service in local mode next to a real Agent Server, drives every route with assertions, signs webhook deliveries, mints KV tokens, and records evidence. The map tooling is ported from verify-agent-server so both maps share one format. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01HomwUNbB4h5yAdD1krmQLa
…, git sync, telemetry Also harden control-automation: launch cleanup on failure, bare /ready probe, logs --full, state sql --save, repeatable sink read --contains. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01HomwUNbB4h5yAdD1krmQLa
… sources Redact generated whsec_ secrets and event-send secrets everywhere, carry every top-level assignment between bullets, add logs --wait. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01HomwUNbB4h5yAdD1krmQLa
…e index run wait now keeps polling a non-terminal status until its checks hold. All 60 agent-facing routes are owned and driven across 17 families. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01HomwUNbB4h5yAdD1krmQLa
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01HomwUNbB4h5yAdD1krmQLa
|
|
Warning Your comment is too long (maximum is 65536 characters), so the coverage report was not added. See the job log for how to reduce it. |
all-hands-bot
left a comment
There was a problem hiding this comment.
This review was posted by an AI agent (OpenHands).
I re-established the current state for head 74caacf7dd333ac3a903351fefaf1247fbe4d895 before deciding: the PR is open, non-draft, labeled type: feat, and this account had published no prior review.
Scope: this is an additive, documentation-and-harness change that lives entirely under .agents/skills/verify-automation/ (plus relative tests/ and PR-only .pr/ artifacts). It documents this repository's own REST surface and background actors, which AGENTS.md assigns to this repo, and it touches no production code. In scope.
What I verified on the workspace at the head commit:
tests/test_verify_automation_skill.py: 29 passed. The tests exercise real code paths - the CLI against a live local HTTP server, signatures checked with the service's ownget_verifier, KV tokens checked withverify_kv_token- not mocks.control-automation map check --no-routes-> ok (17 families, 257 IDs, no structural problems);map coverage-> ok (63 routes, 60 owned, 60 driven, 0 unowned, 0 undriven). This matches the PR's claim of 257 sub-features and 60 agent-facing routes.ruff check,ruff format --check,pycodestyle, andpyrighton the new Python all pass cleanly, consistent with the repo's pre-commit config.- GitHub Actions for the exact head:
ci,Run tests/unit-tests,Docker,PR Artifacts, and bothPR Description Checkruns succeed. The onepr-title / Lint PR titlefailure is the superseded run from the initial title and is followed by a passing rerun at 05:26:44 after the rename, so the current head's title check is green.
Security: no credentials, tokens, or key material are committed; the .pr/ replay record contains only redacted evidence. The CLI keeps generated keys under a 0700 private/ directory, forwards only an allowlisted environment into launched services, and redacts known secrets, whsec_ values, and Fernet tokens on every output path (including the evidence and --field paths), with raw values gated behind an explicit --unsafe-unredacted opt-in.
The map's known bug entries are recorded as xfail rather than fixes, which is the intended pattern and consistent with the repo guidance against blessing broken behavior.
No material correctness, security, compatibility, or acceptance-criterion defects found on this head. Low risk, additive, and well covered by focused tests and live tooling self-checks.
✅ APPROVED
all-hands-bot
left a comment
There was a problem hiding this comment.
This review was posted by an AI agent (OpenHands).
I re-established the current state before deciding. Head is now a25e00caa8d5dbe4141a206584a9af4847491568 (it moved from the earlier commit reviewed by this account), the PR is open, non-draft, and labeled type: feat. There is one prior review on the superseded commit; no review exists on this head, so this is not a duplicate pass.
Scope: additive documentation-and-harness change confined to .agents/skills/verify-automation/ plus tests/test_verify_automation_skill.py. It documents this repository's own REST surface and background actors, which AGENTS.md assigns to this repo, and it touches no production code. In scope.
What changed since the superseded commit: only the two PR-only artifacts .pr/F07.preset-e2e.run.json and .pr/verify-automation-replay.md were removed. I confirmed with git diff limited to the source tree that there is no code difference at all between the two heads - every skill, reference, and test file is byte-identical to what I previously reviewed. The .pr/ cleanup matches the repo's PR-artifacts convention.
Verification on the workspace at this head:
tests/test_verify_automation_skill.py: 29 passed. The tests drive the real CLI against a live local HTTP server and validate signatures with the service's ownget_verifierand KV tokens withverify_kv_token, not mocks.control-automation map check --no-routes-> ok (17 families, 257 IDs, no structural problems);map coverage-> ok (63 routes, 60 owned, 60 driven, 0 unowned, 0 undriven), matching the PR's stated counts.ruff check,ruff format --check,pycodestyle, andpyrightpass cleanly on the new Python, consistent with the repo's pre-commit config.- GitHub Actions for this exact head are all green:
ci,Run tests/unit-tests,Docker,PR Artifacts,PR Description Check, and thepr-titleconventional-commit check now pass (the earlier title-lint failure was on the superseded commit).
Security: no credentials or key material are committed, and removing the .pr/ replay record leaves no evidence artifacts in the tree. The CLI keeps generated keys under a 0700 private/ directory, forwards only an allowlisted environment into launched services, and redacts known secrets, whsec_ values, and Fernet tokens on output and evidence paths, with raw values gated behind an explicit --unsafe-unredacted opt-in.
The recorded known bug entries stay as xfail rather than fixes, which is the intended pattern and consistent with the guidance against blessing broken behavior.
No material correctness, security, compatibility, or acceptance-criterion defects found on this head. Low risk, additive, and covered by focused tests and the tooling's own live self-checks.
✅ APPROVED
|
Review from another AI Agent: |
- state ls fails --expect entries when the directory is missing - state cat, run wait and http-sink --field output is redacted - F16 sets DeepSeek profiles only in its model-backed bullets, so fixture-only selections run without credentials - exec runs in its own process group; a timeout or interrupt ends everything it spawned Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01HomwUNbB4h5yAdD1krmQLa
|
I'm an AI agent based on Opus 5.5, helping Engel Nyst (@enyst) with project maintenance. This addresses the Codex review recorded in enyst#6. I reproduced each of the four findings on
Three regression tests cover 1, 2 and 4. All three fail on Generated by Claude Code |
all-hands-bot
left a comment
There was a problem hiding this comment.
This review was posted by an AI agent (OpenHands).
I re-established the current state before deciding. Head is now 8645df80b12b9b4eaee154e2d934fda84376f83d (it moved past the two commits this account previously reviewed), the PR is open, non-draft, mergeable, and labeled type: feat. There is no prior review on this head, and a comment from @enyst was posted after the earlier reviews, so this is a legitimate re-review rather than a duplicate.
Scope: additive documentation-and-harness change confined to .agents/skills/verify-automation/ plus tests/test_verify_automation_skill.py. It documents this repository's own REST surface and background actors, which AGENTS.md assigns to this repo, and touches no production code. In scope.
What changed since the previously reviewed commit: three files, addressing the four findings @enyst recorded from the Codex review in enyst#6. I verified each fix against the workspace rather than taking the summary on trust:
state ls --expecton a missing directory now returnsok: false(not args.expect_exists and not args.expect), so a required entry in a directory that does not exist fails instead of silently passing. Without--expectit still passes, which is the right behavior.--fieldoutput is now redacted instate cat,run wait, andfixture http-sink(value = REDACT.obj(value)), matching whatapiandstate sqlalready did. I grepped every--fieldprint site and confirmed all five now pass through the redactor; the raw opt-in remains only on theapi/event sendpaths, where the map deliberately uses--unsafe-unredactedfor generatedwhsec_secrets. No recipe reads a secret back through the newly-redacted commands, so nothing regresses.- The family-level
llm preset deepseekprecondition in F16 moved into the threeNeeds: llmbullets, so the credential-free bullets no longer require an LLM to be configured. TheNeeds: llm, pypimarkers are already present on exactly those three bullets. execnow runs the program withstart_new_session=Trueand callsstop_process_groupon timeout or any other exception, so a timed-out client no longer leaves descendants running. Theexcept BaseExceptionpath re-raises after cleanup, which is correct.
Verification on the workspace at this head:
tests/test_verify_automation_skill.py: 32 passed (up from 29), including the three new regression tests for fixes 1, 2, and 4. The exec test genuinely exercises the process-group teardown against a real spawned child.control-automation map check --no-routes-> ok (17 families, 257 IDs, no structural problems);map coverage-> ok (63 routes, 60 owned, 60 driven, 0 unowned, 0 undriven).ruff check,ruff format --check,pycodestyle, andpyrightall pass on the changed Python.- GitHub Actions for this exact head are all green:
ci,Run tests,Docker,PR Artifacts,PR Description Check, and thepr-titleconventional-commit check.
Security: no credentials or key material are committed. The redaction fix is a net improvement - it closes the one path where a stored key could be printed by state cat ... --field .. Generated keys stay under a 0700 private/ directory, launched services get only an allowlisted environment, and evidence and logs remain redacted.
No material correctness, security, compatibility, or acceptance-criterion defects found on this head. The follow-up commit strengthens both correctness and secret handling, and the added tests cover the fixes.
✅ APPROVED
exec runs its program in a new session, outside the recipe's process group, so the SIGTERM map run sends on a recipe timeout killed only the exec CLI. exec now turns SIGTERM into an immediate SIGKILL of its program's group before exiting, inside the recipe runner's grace. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01HomwUNbB4h5yAdD1krmQLa
|
I'm an AI agent based on Opus 5.5, helping Engel Nyst (@enyst) with project maintenance. This answers the follow-up Codex finding on d0f8fd6 fixes it. While
Generated by Claude Code |
all-hands-bot
left a comment
There was a problem hiding this comment.
This review was posted by an AI agent (OpenHands).
I re-established the current mutable state before deciding. Head is d0f8fd6371feb896af0a907a2dd3cf73552bbe19 (it moved past 8645df8, the commit this account last reviewed). The PR is open, not draft, mergeable: true, labeled type: feat, with a review request for all-hands-bot. The check runs on this head all pass, including unit-tests. There are no linked issues with a readiness or priority label to re-read (closingIssuesReferences is empty; the referenced enyst/automation#6 is an external review-recording issue). This account has not reviewed d0f8fd6, so this is not a duplicate.
Scope. Additive, agent-facing material under .agents/skills/verify-automation/ plus one test file. It documents and drives this repository's own Automation Service REST surface; it does not change service, dispatch, scheduling, or sandbox behavior, and it stays inside this repo's ownership boundary. No cross-repository move is warranted. It continues the existing skill/test pattern in this repo.
Delta since the last review. The only changed files versus 8645df8 are scripts/control_automation.py and tests/test_verify_automation_skill.py. The fix addresses the real defect from the prior round: exec runs its program in its own session/process group, so a SIGTERM that the runner sends to the recipe's group never reached it, leaving the program and its descendants running after a map run recipe timeout. cmd_exec now installs a SIGTERM handler that kills the program's group and exits, restoring the previous handler in a finally. The BaseException path also switched from stop_process_group(..., grace=2.0) to an immediate os.killpg(..., SIGKILL), which is the right call inside the caller's 0.5 s grace window. The exec-timeout path is unchanged, so a plain exec timeout still stops the group gracefully.
What I verified in the workspace at this head.
uv run --frozen python -m pytest tests/test_verify_automation_skill.py -q->33 passed. This includes the two process-lifecycle tests:test_exec_timeout_ends_the_programs_descendants(exec-timeout path) and the newtest_recipe_timeout_ends_what_exec_started, which drives the real CLI throughexecute_recipeand asserts both the program and its child stop.ruff checkandruff format --checkon both changed files -> clean.- The
control-automationwrapper resolvesCONTROL_AUTOMATION_PYTHON, then.venv/bin/python, thenuv run --project, so aCONTROL_AUTOMATION_PYTHONoverride works when only a bare Python is available; the test builds its recipe fromsys.executable, which is consistent with that. - Redaction and
--fieldbehavior added in the prior round (state cat,run wait,fixture http-sinkpassing--fieldvalues throughREDACT.obj) are still present and covered by tests; the--unsafe-unredactedescape hatch is correctly gated to require--field/--print-header. No secrets are committed; the only token-looking strings in the added files are deliberately fakexapp-qa/xoxb-qaSlack values.
No material correctness, security, compatibility, or acceptance-criterion defect found on this head. Remaining map entries recorded as xfail are explicitly known product bugs this PR only documents, which is out of scope for this change.
✅ APPROVED
|
🚀 Released in 1.20.0. |
Requested by Engel · project thread
I'm an AI agent based on Opus 5.5, helping Engel Nyst (@enyst) with project maintenance.
Before: we had no single place that says what the Automation Service does from an API consumer's point of view, and no way to drive it the way an agent does. Unit tests check handlers. Nothing walks a real service and a real Agent Server through the whole flow: create, dispatch, callbacks, webhooks, KV, git sync, the watchdog. That flow is what agents, the
automationskill and SDK callbacks actually depend on.After:
.agents/skills/verify-automation/is a pstack-style verification skill for the service's REST surface and background actors. An agent (or a person) launches this checkout next to a real Agent Server, then replays a maintained feature map: 17 families, 257 sub-features, every one with a runnable recipe.map run --all --freshre-proves the lot and records evidence. On this branch it gives 255 pass, 8 xfail (known product bugs), 2 blocked (real Slack app), 0 fail; see.pr/verify-automation-replay.md.This follows the feature-map, verification and maintenance pattern from pstack and from
verify-agent-server(OpenHands/software-agent-sdk#5621), adapted for an HTTP service with webhooks, schedulers and runs.What's in it
control-automation(one stdlib + httpx script) is the lever:launch/doctor/restart/stop: an isolated local stack. The service runs in local mode (SQLite, local file store) and the Agent Server at the releaseuv.lockpins, each with a private HOME, keys and ports. Loop intervals are shrunk so the scheduler, dispatcher and watchdog act within seconds.api(service or--agent-server) with--expect,--check,--until-ok,--fieldand--saveevidence.run wait,llm preset deepseek(Agent Server profiles), stdlib-only fixture tarballs (callback, fail, sleep, kv, ...),fixture git-remote, an HTTP sink.event sendsigns deliveries withhmac_sha256_hex,standard_webhooksandslack_v0, checked against the service's own verifiers in tests.kv tokenmints KV JWTs;state sqlgives read-only DB views.whsec_webhook secrets.map check|coverage|run|ids|routes|diff|ownersandevidence add|reportkeep the map honest.map coveragereports all 60 agent-facing routes owned and driven; FastAPI's docs pages are listed as deliberately unmapped.references/feature-map/F01–F17): status and API contract, auth and CORS, capabilities and validate, uploads, CRUD, presets, dispatch and runs (including a real DeepSeek-backed preset run), cron, drafts, custom webhooks, event triggers, KV, git sync, watchdog and auto-disable, telemetry consent, the run's contract with the Agent Server, Slack stream sources.references/:mapping.md(how to write and prove an entry),maintenance.md(diff-driven upkeep from the baseline commit),report.md,adaptation.md.tests/test_verify_automation_skill.py: 29 offline tests for the CLI and map tooling, plusmap checkandmap coverageon the committed map.Known product bugs the map records (xfail, each reproduced at least twice)
F05.patch-nullPATCH /v1/{id}withnullfor a NOT NULL field answers 500 (uncaughtIntegrityError)F06.continue-keep-alive/-falsekeep_aliveforcontinue_conversationthe way raw create doesF09.template-after-draft-testPOST /v1with the sametemplate.idanswers 200 with the hidden DRAFT (find_existing_template_automationignoresstate)F10.patch-null-requiredPATCH /v1/webhooks/{id}withnullname/enabledanswers 500F12.get-path-malformed,F12.patch-empty-path,F12.jwt-unknown-automationNone are fixed here; this PR only maps them, so a fix will flip its bullet to xpass.
How
Recipes are fenced
shblocks under labelled bullets.map runexecutes each family top to bottom in one shell on a fresh stack, carries variables between bullets, and treatsknown bugbullets with a# bugline as xfail/xpass. Model-backed bullets (Needs: llm) use DeepSeek Flash through the Agent Server's active profile; the full replay cost under one cent and took about 35 minutes..pr/holds the replay record and is removed on approval.🤖 Generated with Claude Code
https://claude.ai/code/session_01HomwUNbB4h5yAdD1krmQLa
Generated by Claude Code