Skip to content

fix(lint): suggest one egress directive per host; fix invalid skill example - #22

Merged
ilanh merged 1 commit into
mainfrom
fix/multi-host-egress
Nov 3, 2026
Merged

ilanh merged 1 commit into
mainfrom
fix/multi-host-egress

Conversation

@ilanh

@ilanh ilanh commented Nov 3, 2026

Copy link
Copy Markdown
Owner

What and why

generate rejects a comma-separated multi-host egress line, but the AI skill example and the lint suggestions used one.

  • lint now suggests one @openshell egress directive per host, both in the multi-line help block (each on its own copy-pasteable line, headed "one directive per host") and in the compact one-line form (separated by ;).
  • skills/annotate-openshell-policy/SKILL.md: the pip example is now two valid directives, and rule 2 states that there is no multi-host form.
  • New tests in tests/egress_suggestions.rs: the suggested lines are one per host and parse, and every fenced ts/python/go/sh block in SKILL.md must scan without errors, so the skill cannot drift from the grammar again.

I did not add comma-separated host support to the grammar; one directive per host keeps each rule's reason and binary explicit.

Independent of the other PRs. Tests live in a new file, so there are no merge conflicts with PRs that edit tests/cli.rs.

TOOLCHAIN=1.94 scripts/ci-local.sh and stable clippy pass.

Closes #8

@ilanh
ilanh force-pushed the fix/multi-host-egress branch from 913493e to 6e6b4ac Compare November 3, 2026 08:03
@ilanh
ilanh merged commit 67abef0 into main Nov 3, 2026
2 checks passed
@ilanh
ilanh deleted the fix/multi-host-egress branch November 3, 2026 08:06
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.

Multi-host egress example in SKILL.md and lint suggestion are invalid syntax

1 participant