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
PR #23279 adds filterToolSchemaFields() to hide unconfigured fields from the tool schema. Once that ships, the smoke test should be updated to test field-level enforcement (e.g., update-discussion with only allowed_labels should not allow body modification).
Currently update-discussion has no field-level controls in the config — all of title, body, and labels may be modified. The new infrastructure from #23279 will allow constraining which fields the agent can modify.
Update the update-discussion config in smoke-safeoutputs-discussions.md to restrict fields, for example:
update_discussion:
max: 1target: created # after companion issue is implementedallow_body: falseallow_title: trueallowed_labels: ["smoke-test", "general"]
Update the agent prompt to attempt both allowed and disallowed operations
Verify the smoke run shows:
Allowed field updates succeed
Disallowed field updates are rejected with a clear error message
Files to Modify
gh-aw-mcpg:.github/workflows/smoke-safeoutputs-discussions.md — update config and prompt
Objective
Update the
smoke-safeoutputs-discussionstest to verify field-level enforcement forupdate-discussiononce PR #23279 (filterToolSchemaFields()) ships.Context
From issue #23283, finding #6:
Currently
update-discussionhas no field-level controls in the config — all oftitle,body, andlabelsmay be modified. The new infrastructure from #23279 will allow constraining which fields the agent can modify.Approach
filterToolSchemaFields()is available inupdate_discussion.cjs)update-discussionconfig insmoke-safeoutputs-discussions.mdto restrict fields, for example:Files to Modify
gh-aw-mcpg:.github/workflows/smoke-safeoutputs-discussions.md— update config and promptactions/setup/js/update_discussion.cjs— verifyfilterToolSchemaFields()integration (may already be done by Fix update_discussion safe outputs: label-only config must not modify title/body #23279)Acceptance Criteria
update-discussionconfig includes at least one restricted field (e.g.,allow_body: false)Dependencies
target: "created"support forupdate-discussionReferences
Related to Safe-outputs discussions smoke test: update-discussion API error and close-discussion label enforcement #23283