mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-10-20 10:52:08 +00:00
ee8a24e14a
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.
25 lines
626 B
Go
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")
|
|
}
|
|
}
|