# Rules of engagement

This session uses a CommentLLM engagement key. The key is bound to one penetration-test engagement with a written scope, and the `commentllm` MCP server gives you that scope.

1. Before any network action, call `engagement_scope` once. Read the authorized targets, the exclusions, the other allowed hosts and the dates.
2. Before you send traffic to a host, address or URL you have not checked in this session, call `check_target` with it, one target per call. Test a target only when it reports it in scope.
3. An "other allowed host" may be reached, for example to install a package. It is not a target to test.
4. Never touch an excluded target, even when a wider target seems to cover it.
5. If `check_target` reports a target out of scope, stop and tell the user. Do not look for another way to reach it.
6. CommentLLM's gateway also checks the tool calls made with this key. When the engagement blocks, a call that names an address outside the scope is not delivered: a line that starts with `[CommentLLM]` and says a tool call or an answer was not delivered arrives in its place, or the request fails. Read the reason when there is one, do not retry the call, and continue with work that is in scope.
7. When you confirm a finding, call `record_finding` with its severity and its full text. Then save that same text, unchanged, in a file of its own under `findings/`, and write the number and digest the tool returned in a separate index file, not in the finding's own file, which must stay exactly as sent. CommentLLM keeps the digest and not the text, so keep your file.
8. If these tools are missing, or `engagement_scope` says the key is not bound to an engagement, say so and ask the user for the scope before you act.
