Repository navigation
Conversation
added 2 commits
November 27, 2026 23:08
…oject capabilities (U0)
…te CLI subcommand
added 2 commits
November 28, 2026 01:32
…olicies description" This reverts commit 9b207b3.
Owner
Author
|
Merged upstream in GoogleCloudPlatform#5763 (merge commit |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
U0: web-readable
hub.message_policiesflag + capability pinning; no UI.Summary of changes
LayerWebtohub.message_policiesinpkg/experiments/registry.go(Layers: []Layer{LayerServer, LayerWeb}), updatedTestMessagePoliciesExperimentRegistered(pkg/experiments/registry_test.go), addedTestResolvedExperiments_IncludesMessagePolicies(pkg/hub/experiments_test.go), and updateddocs-site/src/content/docs/reference/experiments.mdto markhub.message_policiesas server and web layers.MESSAGE_POLICIES_FLAGandmessagePoliciesEnabled()inweb/src/utils/feature-flags.ts(followingSYSTEM_ONE_FLAG) with unit tests inweb/src/utils/feature-flags.test.ts. No page, route, or UI is added.Descriptionrewrite:hub.message_policiesregistryDescription(andMessagePoliciesdoc comment, including theupdateCLI subcommand) to match currentpkg/messagepolicy.Coverage()enforcement: covered surfaces are nowagent_to_user,agent_to_conversation,agent_dm, andmention_delivery; uncovered agent paths remaingroup_post,group_set,mention_fanout, andbroadcast(reported incoverage.uncovered_agent_paths). Also documented server vs web layer behavior.hub.message_policies(false/boolean) to/api/v1/experimentsinweb/e2e-perf/budgets/fixture.mjsandweb/e2e-perf/budgets/fixture-schema.jsonto keepTestPerfBudget_AgentEndpointsandweb/e2e-perf/budgets/fixture.test.mjsin parity.TestProjectCapabilities_MessagePolicyAndSystemOneActionsinpkg/hub/capabilities_test.gopinningmanage_message_policies,read_message_policies, andmanage_system_one_instancesonResourceActions["project"]andGET /api/v1/projects/{id}_capabilities.actions(project-owner,project-admin,hub-adminreceive all three;project-memberandproject-viewerreceiveread_message_policiesonly). No authorization changes were made.Verification gates
Base commit
c78a2272f5eac402d893ab1408924199db35d8f8(all code & test changes):make fmt-checkgo build -buildvcs=false ./...go test -buildvcs=false -v ./pkg/experiments/...GOGC=40 golangci-lint run --new-from-rev=main --concurrency=1 ./pkg/experiments/...cd web && npm run typecheckcd web && npm run lintcd web && npx vitest run src/utils/feature-flags.test.tscd web && npm run test:e2e-perfcd web && npm run build && npm run check:orphans && node scripts/check-bundle-budget.mjsmake vet-hub-shard SHARD=6NOSQLITE=1)make test-hub-shard SHARD=6 NOSQLITE=1make test-hub-shard SHARD=6make vet-hub-shard SHARD=7NOSQLITE=1)make test-hub-shard SHARD=7 NOSQLITE=1make test-hub-shard SHARD=7Follow-up doc/comment commit
964f1d5ef7663286c0cf1c442bd10bf71cc5181d:make fmt-checkgo test -buildvcs=false -v ./pkg/experiments/...make check-docs-linksRevert commit
bd0f14325ff378c9c69a62cdf4301a407d831b45(reverts9b207b36; tree identical to964f1d5e):make fmt-checkgo test -buildvcs=false -v ./pkg/experiments/...make check-docs-linksNot run locally (left to CI):
golangci-lint --tests=false ./pkg/hub(no non-testpkg/hubfiles changed), full web Vitest suite,docs-siteAstro/D2 build, and untouched hub shards.