MCPcopy Create free account

hub / github.com/microsoft/agent-governance-toolkit / functions

Functions32,326 in github.com/microsoft/agent-governance-toolkit

FunctionTestK8s_WatchQueryParam_GetOnly
(t *testing.T)
agent-governance-golang/packages/agentmesh/protocol_facets_test.go:374
FunctionTestKillSwitchDecisionErrorFailsClosedWithoutScope
(t *testing.T)
agent-governance-golang/packages/agentmesh/middleware_test.go:662
FunctionTestKillSwitchMiddlewareAddsFlattenedMetadataWithoutBreakingDecisionShape
(t *testing.T)
agent-governance-golang/packages/agentmesh/kill_switch_test.go:168
FunctionTestKillSwitchMiddlewareDeniesOperation
(t *testing.T)
agent-governance-golang/packages/agentmesh/kill_switch_test.go:142
FunctionTestKillSwitchRegistryDecisionForScopedMatches
(t *testing.T)
agent-governance-golang/packages/agentmesh/kill_switch_test.go:35
FunctionTestKillSwitchRegistryHistoryAndValidation
(t *testing.T)
agent-governance-golang/packages/agentmesh/kill_switch_test.go:76
FunctionTestKillSwitchRegistryNormalizesExportedScopes
(t *testing.T)
agent-governance-golang/packages/agentmesh/kill_switch_test.go:106
FunctionTestKillSwitchRegistryPrefersGlobalScope
(t *testing.T)
agent-governance-golang/packages/agentmesh/kill_switch_test.go:58
FunctionTestKillSwitchToggleState
(t *testing.T)
agent-governance-golang/packages/agentmesh/kill_switch_test.go:12
FunctionTestLevenshteinDistance
(t *testing.T)
agent-governance-golang/packages/agentmesh/mcp_test.go:157
FunctionTestLoadFromYAML
(t *testing.T)
agent-governance-golang/packages/agentmesh/policy_test.go:66
FunctionTestLoadFromYAMLEmptyRules
(t *testing.T)
agent-governance-golang/packages/agentmesh/policy_test.go:633
FunctionTestLoadFromYAMLInvalidContent
(t *testing.T)
agent-governance-golang/packages/agentmesh/policy_test.go:428
FunctionTestLoadFromYAMLNonexistentFile
(t *testing.T)
agent-governance-golang/packages/agentmesh/policy_test.go:442
FunctionTestLoadFromYAMLPreservesRulesOnError
On read or parse error, LoadFromYAML must leave the existing rule set untouched so a bad reload doesn't strip enforcement.
agent-governance-golang/packages/agentmesh/policy_test.go:517
FunctionTestLoadFromYAMLReloadDoesNotDouble
Re-loading the same YAML must not double the rule set. Before LoadFromYAML adopted replace semantics, calling it twice appended the rules twice, which
agent-governance-golang/packages/agentmesh/policy_test.go:483
FunctionTestLoadFromYAMLReplacesExistingRules
(t *testing.T)
agent-governance-golang/packages/agentmesh/policy_test.go:450
FunctionTestLoadFromYAMLWithConditions
(t *testing.T)
agent-governance-golang/packages/agentmesh/policy_test.go:603
FunctionTestMaxEntriesNoBackingArrayLeak
Regression: eviction via plain reslice kept the original backing array alive; cap() grew proportional to total-logged count. After the fix, cap() stay
agent-governance-golang/packages/agentmesh/audit_test.go:554
FunctionTestMaxEntriesRetention
(t *testing.T)
agent-governance-golang/packages/agentmesh/audit_test.go:88
FunctionTestMaxEntriesVerify
(t *testing.T)
agent-governance-golang/packages/agentmesh/audit_test.go:106
FunctionTestMaxEntriesVerifyDetectsForgedSeam
After rollover eviction, the surviving head's PreviousHash must equal the seam hash (the hash of the last evicted entry). Forging both PreviousHash an
agent-governance-golang/packages/agentmesh/audit_test.go:123
FunctionTestMergeFromYAMLAppendsToExistingRules
(t *testing.T)
agent-governance-golang/packages/agentmesh/policy_test.go:544
FunctionTestMetricsNoOps
(t *testing.T)
agent-governance-golang/packages/agentmesh/metrics_test.go:19
FunctionTestMixedRuleTypes
(t *testing.T)
agent-governance-golang/packages/agentmesh/policy_test.go:580
FunctionTestMostSpecificWins
(t *testing.T)
agent-governance-golang/packages/agentmesh/conflict_test.go:63
FunctionTestMultipleAgentsTrackedIndependently
--- New comprehensive tests ---
agent-governance-golang/packages/agentmesh/trust_test.go:142
FunctionTestMultipleCapabilities
(t *testing.T)
agent-governance-golang/packages/agentmesh/identity_test.go:307
FunctionTestMultipleSequentialGovernanceExecutionsBuildTrust
(t *testing.T)
agent-governance-golang/packages/agentmesh/client_test.go:279
FunctionTestNewClient
---- Existing tests above, new tests below ----
agent-governance-golang/packages/agentmesh/client_test.go:9
FunctionTestNewClientEmptyAgentID
(t *testing.T)
agent-governance-golang/packages/agentmesh/client_test.go:214
FunctionTestNewClientNoOptions
(t *testing.T)
agent-governance-golang/packages/agentmesh/client_test.go:199
FunctionTestNewClientWithAllOptions
--- New comprehensive tests ---
agent-governance-golang/packages/agentmesh/client_test.go:103
FunctionTestNewClientWithCapabilitiesOnly
(t *testing.T)
agent-governance-golang/packages/agentmesh/client_test.go:140
FunctionTestNewClientWithPolicyRulesOnly
(t *testing.T)
agent-governance-golang/packages/agentmesh/client_test.go:155
FunctionTestNewClientWithTrustConfigOnly
(t *testing.T)
agent-governance-golang/packages/agentmesh/client_test.go:174
FunctionTestNewDockerSandboxProviderDoesNotProbeDocker
(t *testing.T)
agent-governance-golang/packages/agentmesh/sandbox_test.go:54
FunctionTestNewGovernanceMetrics
(t *testing.T)
agent-governance-golang/packages/agentmesh/metrics_test.go:8
FunctionTestNewHTTPGovernanceMiddleware
(t *testing.T)
agent-governance-golang/packages/agentmesh/middleware_test.go:135
FunctionTestNewHTTPGovernanceMiddlewareAllowsImplicitOKWrite
(t *testing.T)
agent-governance-golang/packages/agentmesh/middleware_test.go:567
FunctionTestNewHTTPGovernanceMiddlewareAllowsTrustedHeaderMigration
(t *testing.T)
agent-governance-golang/packages/agentmesh/middleware_test.go:430
FunctionTestNewHTTPGovernanceMiddlewareDefaultLegacyHeaderName
(t *testing.T)
agent-governance-golang/packages/agentmesh/middleware_test.go:461
FunctionTestNewHTTPGovernanceMiddlewareFailsClosedWithoutVerifiedIdentity
(t *testing.T)
agent-governance-golang/packages/agentmesh/middleware_test.go:298
FunctionTestNewHTTPGovernanceMiddlewareKillSwitchReturnsForbidden
(t *testing.T)
agent-governance-golang/packages/agentmesh/middleware_test.go:334
FunctionTestNewHTTPGovernanceMiddlewarePassesVerificationMetadataToPolicy
(t *testing.T)
agent-governance-golang/packages/agentmesh/middleware_test.go:530
FunctionTestNewHTTPGovernanceMiddlewarePolicyDenialReturnsForbidden
(t *testing.T)
agent-governance-golang/packages/agentmesh/middleware_test.go:178
FunctionTestNewHTTPGovernanceMiddlewarePreservesDownstreamErrorStatus
(t *testing.T)
agent-governance-golang/packages/agentmesh/middleware_test.go:269
FunctionTestNewHTTPGovernanceMiddlewarePromptDefenseMaxRiskScore
(t *testing.T)
agent-governance-golang/packages/agentmesh/middleware_test.go:490
FunctionTestNewHTTPGovernanceMiddlewareRejectsUnverifiedResolvedIdentity
(t *testing.T)
agent-governance-golang/packages/agentmesh/middleware_test.go:366
FunctionTestNewHTTPGovernanceMiddlewareRequiresPolicy
(t *testing.T)
agent-governance-golang/packages/agentmesh/middleware_test.go:165
FunctionTestNewHTTPGovernanceMiddlewareSanitizesResolverErrors
(t *testing.T)
agent-governance-golang/packages/agentmesh/middleware_test.go:398
FunctionTestNewHTTPGovernanceMiddlewareUsesCustomActionAndContext
(t *testing.T)
agent-governance-golang/packages/agentmesh/middleware_test.go:218
FunctionTestNewLifecycleManagerStartsProvisioning
(t *testing.T)
agent-governance-golang/packages/agentmesh/lifecycle_test.go:8
FunctionTestNilCapabilities
(t *testing.T)
agent-governance-golang/packages/agentmesh/identity_test.go:324
FunctionTestOPABackendAutoFailsClosedWithoutCLI
(t *testing.T)
agent-governance-golang/packages/agentmesh/policy_backends_test.go:184
FunctionTestOPABackendAutoUsesBuiltinWhenFallbackExplicitlyEnabled
(t *testing.T)
agent-governance-golang/packages/agentmesh/policy_backends_test.go:214
FunctionTestOPABackendRemote
(t *testing.T)
agent-governance-golang/packages/agentmesh/policy_backends_test.go:160
FunctionTestPolicyEngineAllBackendsMustAllow
(t *testing.T)
agent-governance-golang/packages/agentmesh/policy_backends_test.go:100
FunctionTestPolicyEngineBackendDenyFailsClosed
(t *testing.T)
agent-governance-golang/packages/agentmesh/policy_backends_test.go:122
FunctionTestPolicyEngineBackendFailureFailsClosed
(t *testing.T)
agent-governance-golang/packages/agentmesh/policy_backends_test.go:91
FunctionTestPolicyEngineLaterBackendFailureFailsClosed
(t *testing.T)
agent-governance-golang/packages/agentmesh/policy_backends_test.go:144
FunctionTestPolicyEngineNativeRulesWinBeforeBackend
(t *testing.T)
agent-governance-golang/packages/agentmesh/policy_backends_test.go:76
FunctionTestPolicyEngineUsesCedarBuiltinBackend
(t *testing.T)
agent-governance-golang/packages/agentmesh/policy_backends_test.go:57
FunctionTestPolicyEngineUsesOPABuiltinBackend
(t *testing.T)
agent-governance-golang/packages/agentmesh/policy_backends_test.go:38
FunctionTestPolicyEngine_AllowsSelectWhenNotInDestructiveSet
(t *testing.T)
agent-governance-golang/packages/agentmesh/protocol_facets_test.go:456
FunctionTestPolicyEngine_DeniesDestructiveSQL
── PolicyEngine integration ─────────────────────────────────────────────────
agent-governance-golang/packages/agentmesh/protocol_facets_test.go:436
FunctionTestPolicyEngine_DeniesK8sExec
(t *testing.T)
agent-governance-golang/packages/agentmesh/protocol_facets_test.go:477
FunctionTestPolicyEngine_DeniesProductionNamespace
(t *testing.T)
agent-governance-golang/packages/agentmesh/protocol_facets_test.go:498
FunctionTestPolicyEngine_DoesNotMutateCallerContext
(t *testing.T)
agent-governance-golang/packages/agentmesh/protocol_facets_test.go:537
FunctionTestPolicyEngine_SQLTargetReferenceable
(t *testing.T)
agent-governance-golang/packages/agentmesh/protocol_facets_test.go:519
FunctionTestPolicyOnlyAllowRules
(t *testing.T)
agent-governance-golang/packages/agentmesh/policy_test.go:411
FunctionTestPolicyOnlyDenyRules
(t *testing.T)
agent-governance-golang/packages/agentmesh/policy_test.go:394
FunctionTestPolicyScopeOnRule
(t *testing.T)
agent-governance-golang/packages/agentmesh/policy_test.go:190
FunctionTestPriorityFirstMatch
(t *testing.T)
agent-governance-golang/packages/agentmesh/conflict_test.go:52
FunctionTestPromptDefenseEvaluatorFindsThreats
(t *testing.T)
agent-governance-golang/packages/agentmesh/promptdefense_test.go:16
FunctionTestPromptDefenseEvaluatorSafePrompt
(t *testing.T)
agent-governance-golang/packages/agentmesh/promptdefense_test.go:8
FunctionTestPublicIdentityFromJSONCanVerify
(t *testing.T)
agent-governance-golang/packages/agentmesh/identity_test.go:182
FunctionTestPublicIdentityWrongKeyLengthRejects
(t *testing.T)
agent-governance-golang/packages/agentmesh/identity_test.go:232
FunctionTestPublicIdentityWrongSignatureLengthRejects
(t *testing.T)
agent-governance-golang/packages/agentmesh/identity_test.go:265
FunctionTestQuarantineFromActive
(t *testing.T)
agent-governance-golang/packages/agentmesh/lifecycle_test.go:41
FunctionTestRandomHexProducesUniqueValues
(t *testing.T)
agent-governance-golang/packages/agentmesh/sandbox_test.go:153
FunctionTestRateLimitCounterDoesNotGrowAfterDeny
Regression: checkRateLimit used to increment count then compare, so once over the limit the counter grew unboundedly. After the fix, the counter stays
agent-governance-golang/packages/agentmesh/policy_test.go:727
FunctionTestRateLimitIsolatedPerAgent
Regression: rate-limit state was previously keyed by rule.Action only, so one agent / tenant making rapid calls could starve all others for the rest o
agent-governance-golang/packages/agentmesh/policy_test.go:655
FunctionTestRateLimitIsolatedPerTenant
(t *testing.T)
agent-governance-golang/packages/agentmesh/policy_test.go:683
FunctionTestRateLimitNilContextRetainsGlobalBehavior
(t *testing.T)
agent-governance-golang/packages/agentmesh/policy_test.go:704
FunctionTestRateLimiting
(t *testing.T)
agent-governance-golang/packages/agentmesh/policy_test.go:205
FunctionTestReassignRing
(t *testing.T)
agent-governance-golang/packages/agentmesh/rings_test.go:80
FunctionTestRecordFailureDecreases
(t *testing.T)
agent-governance-golang/packages/agentmesh/trust_test.go:30
FunctionTestRecordSuccessIncreases
(t *testing.T)
agent-governance-golang/packages/agentmesh/trust_test.go:21
FunctionTestResolveEmptyCandidates
(t *testing.T)
agent-governance-golang/packages/agentmesh/conflict_test.go:85
FunctionTestReturnedEntryIsClone
Regression: prior to this fix, Log() returned the same *AuditEntry it stored in al.entries; GetEntries() returned the same pointers. A caller could mu
agent-governance-golang/packages/agentmesh/audit_test.go:451
FunctionTestRichConditionsAnd
(t *testing.T)
agent-governance-golang/packages/agentmesh/policy_test.go:92
FunctionTestRichConditionsComparison
(t *testing.T)
agent-governance-golang/packages/agentmesh/policy_test.go:152
FunctionTestRichConditionsIn
(t *testing.T)
agent-governance-golang/packages/agentmesh/policy_test.go:170
FunctionTestRichConditionsNot
(t *testing.T)
agent-governance-golang/packages/agentmesh/policy_test.go:134
FunctionTestRichConditionsOr
(t *testing.T)
agent-governance-golang/packages/agentmesh/policy_test.go:113
FunctionTestRiskScoreCapped
(t *testing.T)
agent-governance-golang/packages/agentmesh/mcp_test.go:201
FunctionTestRotatingTransitions
(t *testing.T)
agent-governance-golang/packages/agentmesh/lifecycle_test.go:147
FunctionTestSLOEngineAvailabilityObjective
(t *testing.T)
agent-governance-golang/packages/agentmesh/slo_test.go:11
FunctionTestSLOEngineHasObjective
(t *testing.T)
agent-governance-golang/packages/agentmesh/slo_test.go:74
← previousnext →11,101–11,200 of 32,326, ranked by callers