MCPcopy Create free account
hub / github.com/ByteYellow/AgentProvenance / intentCmd

Function intentCmd

internal/cli/intent_cmd.go:18–25  ·  view source on GitHub ↗

intentCmd computes and shows the Intent-Runtime Diff: for each captured contract (tool call / peer message / refusal) versus the runtime effects attributed to its scope, whether they matched, a boundary was violated, a refusal was bypassed, or intent was simply not captured.

(dataDir *string)

Source from the content-addressed store, hash-verified

16// attributed to its scope, whether they matched, a boundary was violated, a
17// refusal was bypassed, or intent was simply not captured.
18func intentCmd(dataDir *string) *cobra.Command {
19 cmd := &cobra.Command{
20 Use: "intent",
21 Short: "reconcile declared agent intent against observed runtime effects",
22 }
23 cmd.AddCommand(intentDiffCmd(dataDir))
24 return cmd
25}
26
27func intentDiffCmd(dataDir *string) *cobra.Command {
28 var runID string

Callers 1

NewRootCommandFunction · 0.85

Calls 1

intentDiffCmdFunction · 0.85

Tested by

no test coverage detected