You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Clarify execution mandates for live command usage in JFrog MCP docume… (#18)
**AX-1631: Require live execution for Agent Guard catalog commands (no
context reuse)**
## Summary
Adds an explicit rule to the JFrog Agent Guard governance template
instructing the agent to ALWAYS re-run catalog/registry commands live
and NEVER reuse a previous command's output from conversation context.
## Problem
When a user asked the same question twice in one chat (e.g. "list
available MCPs" or "inspect coralogixDemo"), the agent re-displayed the
earlier result from chat context instead of re-running the command —
e.g. replying
"the list I fetched earlier is still current." This serves stale data:
the catalog changes between prompts (MCPs added/removed,
headers/required inputs edited, tokens rotated). Two reproductions are
attached.
## Change
`plugins/jfrog/templates/jfrog-mcp-management.md` — added a single
governance rule to the **Pre-flight** section (which already applies to
every Agent Guard command — `--list-available`, `--inspect`, `--login`):
> **Live execution is MANDATORY — context reuse is FORBIDDEN.** Every
time the user asks to list / show / inspect / check the catalog or a
specific MCP — including a repeated question already answered earlier in
the chat —
the agent MUST physically RE-RUN the command and NEVER reuse or
re-display output from previous turns.
Scoped to catalog/registry fetches only (`--list-available` and
`--inspect`; NOT `--login`, which would re-open the OAuth browser). Does
NOT affect reading local config for *installed* state. Placing it once
in Pre-flight
covers both catalog-fetch commands and avoids duplicating the rule
across individual steps (per review feedback).
## Testing
- `node scripts/validate-template.mjs` → passes (CI gate).
- Verified the sessionStart hook (`inject-instructions.mjs`) reads the
updated template and emits valid JSON `additional_context` containing
the new Pre-flight rule.
- Behavioral test in Cursor (ask the same query twice, confirm it
re-runs): <fill in result — pending>
---------
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
0 commit comments