Skip to content

Dedupe orchestrator/consumer_agent validation, note consumer_agent in docs - #9

Merged
JSv4 merged 1 commit into
mainfrom
claude/pr-8-review-5lv2c0
Aug 21, 2026
Merged

JSv4 merged 1 commit into
mainfrom
claude/pr-8-review-5lv2c0

Conversation

@JSv4

@JSv4 JSv4 commented Aug 21, 2026

Copy link
Copy Markdown
Contributor

Follow-up to #8

Non-blocking cleanup items flagged in review of #8, addressed here:

  1. Deduplicated validate_domain.py's orchestrator/consumer_agent validation. Both blocks ran the identical instructions-file (exists inside domain dir, readable, non-empty) and tools (allowlist + group-slug-naming) checks, copy-pasted with only string renames. Extracted the shared shape into _validate_instructions_block(...), called once for orchestrator and once for consumer_agent. Behavior is unchanged — only the orchestrator's "no tools" warning and its extra hint on a missing file stayed distinct, via parameters.
  2. Updated the KNOWN_TOOLS comment, which still said "for its orchestrator" after C8 added consumer_agent as a second thing it gates.
  3. Updated the "what a domain pack supplies" description in README.md and the validate_domain.py module docstring — both still listed only corpus group / orchestrator / equivalences, missing the optional consumer_agent C8 added.

Validation

python scripts/validate_domain.py --self-test   # 18/18, unchanged
python scripts/validate_domain.py --all         # us-export-control: OK
python scripts/validate_pack.py --self-test      # unchanged
python scripts/validate_pack.py --all            # all OK

No schema or behavior change — this is a readability/consistency pass over #8's diff.


Generated by Claude Code

… docs

Follow-up to #8. The C8 validator block copy-pasted the orchestrator's
instructions-file and tools checks; extracted the shared shape into
_validate_instructions_block so a future fix only has one place to land.
Also updated the KNOWN_TOOLS comment and the two "what a domain pack
supplies" descriptions (README, module docstring) to mention the optional
consumer_agent, which they'd missed.

No behavior change: validate_domain.py --self-test still passes 18/18 and
--all still passes for every base and domain pack.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014uFYqCFPpYZ32CCCEbwZeD
@JSv4
JSv4 merged commit 316a5f0 into main Aug 21, 2026
4 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.

2 participants