Files
pulse/internal/ai/tools/current_resource_test.go
T
rcourtman ee8a24e14a backend and governance: MCP contract, agent capabilities, API, and release-control
Manifest-backed MCP tools, prompts, and resources with surface affordance contracts; agent capability manifest and governance projection; API contract tests and capability route projection; operations-loop and intelligence-funnel telemetry; release-control subsystem documentation, registry, and tooling; licensing and configuration.
2026-06-23 17:26:15 +01:00

25 lines
626 B
Go

package tools
import (
"testing"
"github.com/rcourtman/pulse-go-rewrite/internal/agentcapabilities"
)
func TestCurrentResourceReferenceUsesSharedAgentCapabilityVocabulary(t *testing.T) {
for _, value := range []string{
agentcapabilities.CurrentResourceHandle,
"attached_resource",
"selected_resource",
"this_resource",
"redacted by policy",
} {
if !IsCurrentResourceReference(value) {
t.Fatalf("IsCurrentResourceReference(%q) = false, want shared placeholder", value)
}
}
if IsCurrentResourceReference("resource-1") {
t.Fatalf("ordinary resource id should not be treated as current_resource")
}
}