Repository navigation
docs: align Guards docs with Model switch, Muse Code, and Go policy inputs - #981
Conversation
Co-authored-by: David Mytton <davidmytton@users.noreply.github.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Co-authored-by: David Mytton <davidmytton@users.noreply.github.com>
There was a problem hiding this comment.
Arcjet Review — 🟢 Low Risk
Decision: Approved
Rationale: Pure documentation changes aligning Guards docs with existing code behavior (HOOK_MOMENTS supporting model-switch, muse-code as a supported hook product, and Go typed inputs). Also includes updated screenshot baselines for the home page copy change. No code paths changed, no security-relevant surface area touched, and the security checklist is not applicable to markdown-only edits.
Summary of Changes
Docs-only PR correcting three inconsistencies between Guards docs and code: (1) adds Model switch to the coding-agent policy executeOn description in authoring.mdx, errors.mdx (AJV2016), and mcp-server.mdx; (2) adds Muse Code to the agent lists in authoring.mdx, observe.mdx, and the home page Enforce card; (3) adds a Go column to the typed inputs table in remote-policies.mdx with the arcjet-go constructors and a note about int64/float64. Updates the two home-page screenshot baselines to match the Enforce card copy change.
Notes
Screenshot baselines are listed as changed; their contents cannot be rendered, but regenerating them is consistent with the home-page copy update.
Review: 68174f81 | Model: anthropic/claude-opus-4-7 | Powered by Arcjet Review
Fixes three places where the Guards docs disagreed with the code.
HOOK_MOMENTSinapps/decide-service/server/lib/agent-hook/contract.ts; the compiler'sAJV2016acceptstool-call,prompt, and/ormodel-switch). The "Two kinds of policy" table inguards/authoring.mdx, theAJV2016row inguards/errors.mdx, and theexecuteOnparagraph inmcp-server.mdxmentioned only Tool call and Prompt.muse-codeis a supported hook product (coding-agent-products.json). Added it to the agent lists inguards/authoring.mdx,observe.mdx, and the home page Enforce card.guards/remote-policies.mdxwith thearcjet.GuardPolicyServer*andarcjet.GuardPolicyLocalStringconstructors from arcjet-go'sremote_policy.go, and noted that the integer and number constructors takeint64andfloat64.guards/index.mdxis left alone because #980 rewrites it.