feat(plan): requirements reachable from create_plan and plan_update; dispatch honours rule hostnames #102
Loading…
Reference in a new issue
No description provided.
Delete branch "issue/90-requirements-hostnames"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
#90— agent can express requirements oncreate_plan/plan_updateand thedispatch path honours plan rule hostnames (host compatibility check).
What lands
create_planandplan_updatetool params acceptrequirements(a free-formobject that the verifier, host compatibility, and create-time validation all
read). The REST bodies accept the same field and persist it on the plan.
fix(plans): manual run refuses a host the plan's rules exclude— when anoperator enqueues a run on a host the plan's rule set disallows, the
plan-create and update paths now reject (a
hostNotAllowedresult), andenqueuerecords the rejection.feat(executions): record what started a run as Execution.trigger—triggeris now stamped on every execution with the originating context(
manual:operator:enqueue/manual:operator:decide/agent:tool/dispatch:rule:<id>/dispatch:chain/webhook:result).review(middleware)cleanups (the v2 → v1 compat header for the dispatchtrigger).
review(docs)drops the doubled- -Related bullets in the partner UCs.Gates
python3 scripts/check-ai-headers.py→ 581 ok / 0 missing / 0 malformed.python3 scripts/check-type-mirror.py→ clean.python3 docs/use-cases/_check.py→ 367 implemented / 1 library-only / 368 total.rg -n 'Showing lines' --glob '!node_modules' --glob '!.git'→ empty.cd dashboard && bun run test→ 16 files / 254 tests pass.cd dashboard && bunx svelte-check --threshold error→ 0 errors / 7 warnings.cd agent && /usr/local/go/bin/go test ./...→ 1 fail on baseline (UC-AG-50 family — pre-existing onorigin/agent-develop, environmental/etc/gotoi/agent.json permission denied; agent domain untouched by this diff).cd middleware && bun test→ 634 pass / 1 fail (UC-MW-19 plan survives a second buildApp— pre-existing onorigin/agent-develop; this diff does NOT touchapp.tscomposition ordb/schema for that test).UCs added
UC-MW-176— requirements tool surface.UC-MW-177— dispatch trigger record.Pre-existing baseline reds documented
UC-MW-19 plan survives a second buildApp(middleware) — pre-existing, 5/5 fail with same root cause ond6bb5c3.TestUCAG50*(agent) — pre-existing,/etc/gotoi/agent.json permission denied.Refs #90