Skip to content

Validate Agent plans before execution#174

Merged
dmarro89 merged 5 commits into
mainfrom
157-v050-validate-agent-plans-before-execution
Jul 14, 2026
Merged

Validate Agent plans before execution#174
dmarro89 merged 5 commits into
mainfrom
157-v050-validate-agent-plans-before-execution

Conversation

@dmarro89

@dmarro89 dmarro89 commented May 23, 2026

Copy link
Copy Markdown
Owner

What

Adds stricter Agent plan validation before execution. The validator now rejects actions outside the v0.5.0 plan allowlist, missing required targets, unexpected data payloads, and incorrect risk markings.

Why

Closes #157

LLM-backed plans are untrusted input, so invalid or unsafe plan shapes must be rejected before any executor handler can run.

How to test

  • gofmt -l .
  • go vet -tags testing -unsafeptr=false ./...
  • go test -tags testing ./...
  • python3 -m py_compile scripts/test_boot.py
  • make test

Note: make iso && python3 scripts/test_boot.py --functional is currently blocked in this local environment because x86_64-elf-gccgo is not installed.

Pre-flight

  • gofmt -l . prints nothing
  • go vet -tags testing -unsafeptr=false ./... is clean
  • make test passes
  • python3 scripts/test_boot.py passes
  • PR is a single concern (no drive-by cleanups)

@dmarro89
dmarro89 marked this pull request as ready for review May 23, 2026 07:29
@dmarro89

Copy link
Copy Markdown
Owner Author

@codex review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 4c5ea2d29f

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread agent/runtime.go Outdated
Comment thread agent/runtime.go Outdated
@dmarro89
dmarro89 merged commit 38ac196 into main Jul 14, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

v0.5.0: Validate Agent plans before execution

1 participant