Skip to content

Add P3b-2 agent Markdown scanner#19

Merged
lantiscooperdev merged 1 commit into
mainfrom
p3b-2-agent-markdown-scanner
Jun 15, 2026
Merged

Add P3b-2 agent Markdown scanner#19
lantiscooperdev merged 1 commit into
mainfrom
p3b-2-agent-markdown-scanner

Conversation

@lantisprime

Copy link
Copy Markdown
Owner

Summary

  • add bounded Markdown/frontmatter parsing for user/project agent specs
  • add raw-file-byte SHA-256 helper and deterministic directory scanning
  • vendor the shared deterministic security scanner into agents/lib/security-scan.ts
  • classify safe/suspicious/dangerous specs and block dangerous eligibility
  • detect reserved built-in name shadowing
  • update shared scanner sync/verify scripts to include agents

Tests

  • agents/test-fixtures/run-p3b-2-tests.sh
  • scripts/test-security-scan.mjs
  • git diff --check

Coverage notes

  • parser cap tests for file/frontmatter/prompt limits
  • invalid name/tool/thinking tests
  • raw hash change test
  • dangerous scanner blocking, including malformed dangerous specs
  • reserved-name shadow detection
  • deterministic directory scans and .md directory skip
  • shared scanner sync verification

Scope notes

  • no registry writes
  • no child Pi execution
  • no run_subagent
  • no chain mode

@lantiscooperdev lantiscooperdev merged commit c5bb433 into main Jun 15, 2026
1 check 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.

2 participants