feat: add event export/import CLI and Planning Agent skill#76
Merged
Conversation
Implements #44 - Add `agentguard export <runId>` command to export governance runs to portable JSONL files - Add `agentguard import <file>` command to import governance runs from JSONL files - Export includes both events and decision records with a self-describing header - Import validates header, events, and decisions before writing to local store - Support --last, --output/-o flags for export and --as flag for import - Register commands in CLI help and routing - Add 16 vitest tests covering export/import happy paths and error cases
Add the sprint-planning skill that enables the new Planning Agent (Tech Lead / Architect stakeholder). The agent analyzes the full issue backlog, ROADMAP phases, open PRs, and CI health to produce a prioritized sprint plan and apply priority labels to unlabeled issues, directly feeding the Coder Agent's work selection. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Keep both sets of governance telemetry events — main's entries (from another agent session) followed by this branch's entries. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This was referenced Mar 10, 2026
Closed
8 tasks
jpleva91
added a commit
that referenced
this pull request
Mar 31, 2026
…ged, sprint KE-3 begins - Merged octi-pulpo#100 (BudgetStore nil-wire bug — Slack budget cmds now functional) - Closed workspace#283 (stale CONFLICTING state PR from run 8) - All P0 director brief items confirmed SHIPPED (budget dispatch, coord_claim, driver health, browser drivers) - Next sprint: landing page scaffold (#76) + test coverage 23.3%→40% + admission control validation - Noted sprint store sync lag (#5/#96 show open despite GitHub closed) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
jpleva91
added a commit
that referenced
this pull request
Mar 31, 2026
…ged, sprint KE-3 begins - Merged octi-pulpo#100 (BudgetStore nil-wire bug — Slack budget cmds now functional) - Closed workspace#283 (stale CONFLICTING state PR from run 8) - All P0 director brief items confirmed SHIPPED (budget dispatch, coord_claim, driver health, browser drivers) - Next sprint: landing page scaffold (#76) + test coverage 23.3%→40% + admission control validation - Noted sprint store sync lag (#5/#96 show open despite GitHub closed) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
jpleva91
added a commit
that referenced
this pull request
Mar 31, 2026
* chore(director): evening run 2026-03-30T22:30Z — swarm RED, 4 squads failing, human escalation triggered 4 squads RED (cloud, hq, qa, analytics). Worker pool dead 11 cycles with April 1 thundering herd imminent. 69.5% agent failure rate. Cloud squad 5 days stale. v3.0-gate 12 cycles unassigned. Force-escalating to human per escalation rules. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * chore(director): night follow-up 2026-03-31T00:00Z — swarm RED, all P0 escalations unresolved, thundering herd <24h Delta since evening run: PRs #1479 + #1475 merged to main. Zero human action on P0s. Added shellforge (10th squad) and octi-pulpo full state. Octi-pulpo upgraded to GREEN. FORCE-ESCALATED: #1402 worker pool, #1306 v3.0-gate, #1452 zombie processes. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * chore(octi-pulpo-em): EM cycle 2026-03-31T08:35Z — run 9, PR #100 merged, sprint KE-3 begins - Merged octi-pulpo#100 (BudgetStore nil-wire bug — Slack budget cmds now functional) - Closed workspace#283 (stale CONFLICTING state PR from run 8) - All P0 director brief items confirmed SHIPPED (budget dispatch, coord_claim, driver health, browser drivers) - Next sprint: landing page scaffold (#76) + test coverage 23.3%→40% + admission control validation - Noted sprint store sync lag (#5/#96 show open despite GitHub closed) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> * docs: add AI-answer-optimized "What Problem Does AgentGuard Solve?" section Structured for AI answer engine discoverability — clear problem statement, concrete examples, answer-friendly phrasing that LLMs will quote directly. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * docs: add ecosystem table linking all AgentGuardHQ repos Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
jpleva91
added a commit
that referenced
this pull request
Apr 1, 2026
* chore(director): evening run 2026-03-30T22:30Z — swarm RED, 4 squads failing, human escalation triggered 4 squads RED (cloud, hq, qa, analytics). Worker pool dead 11 cycles with April 1 thundering herd imminent. 69.5% agent failure rate. Cloud squad 5 days stale. v3.0-gate 12 cycles unassigned. Force-escalating to human per escalation rules. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * chore(director): night follow-up 2026-03-31T00:00Z — swarm RED, all P0 escalations unresolved, thundering herd <24h Delta since evening run: PRs #1479 + #1475 merged to main. Zero human action on P0s. Added shellforge (10th squad) and octi-pulpo full state. Octi-pulpo upgraded to GREEN. FORCE-ESCALATED: #1402 worker pool, #1306 v3.0-gate, #1452 zombie processes. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * chore(octi-pulpo-em): EM cycle 2026-03-31T08:35Z — run 9, PR #100 merged, sprint KE-3 begins - Merged octi-pulpo#100 (BudgetStore nil-wire bug — Slack budget cmds now functional) - Closed workspace#283 (stale CONFLICTING state PR from run 8) - All P0 director brief items confirmed SHIPPED (budget dispatch, coord_claim, driver health, browser drivers) - Next sprint: landing page scaffold (#76) + test coverage 23.3%→40% + admission control validation - Noted sprint store sync lag (#5/#96 show open despite GitHub closed) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> * docs: add AI-answer-optimized "What Problem Does AgentGuard Solve?" section Structured for AI answer engine discoverability — clear problem statement, concrete examples, answer-friendly phrasing that LLMs will quote directly. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * docs: add ecosystem table linking all AgentGuardHQ repos Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * feat(agentguard): bridge CLI session telemetry to Octi Pulpo memory OctiBridge sends governance denials and session summaries to Octi Pulpo's /api/memory endpoint via HTTP. Wired into Claude Code and Copilot hook handlers. Set OCTI_HTTP_URL to enable. Human CLI sessions now feed the swarm's episodic memory for self-improving dispatch. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * feat(gateway): add config.go — YAML config loading for MCP gateway Defines GatewayConfig, ListenConfig, UpstreamDef, SessionConfig, and TelemetryConfig types with LoadConfig and applyDefaults functions. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * feat(gateway): add normalize.go — MCP tool call to RawAction translation Translates MCPToolCall into kernel action.RawAction, extracting well-known fields (command, file_path, content, target) and providing ActionFingerprint for runaway detection. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * feat(gateway): add session.go — session-level invariant enforcement Implements SessionState with blast radius accumulation, velocity throttling, runaway detection, budget tracking, denial density lockdown, and max denials. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * feat(gateway): add upstream.go — multi-upstream tool routing and forwarding Implements UpstreamManager with tool registration, routing index, merged tool lists, and ForwardCall dispatch. Includes UpstreamConnector interface with placeholder stdio/SSE implementations. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * feat(gateway): add gateway.go — core MCP governance proxy with kernel pipeline Implements Gateway struct with SSE listener, JSON-RPC message handler, full governance pipeline (route -> normalize -> session check -> kernel propose -> forward/deny), and event emission. Includes JSON-RPC 2.0 request/response types and MCP protocol handling. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * feat(gateway): add run.go — entry point with kernel init, shipper wiring, graceful shutdown Implements Run() for starting the HTTP server, BuildGateway() for full dependency wiring (kernel, event bus, upstream manager, shipper pipeline), and graceful shutdown on context cancellation. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * feat(gateway): add gateway subcommand to CLI entry point Wires the MCP gateway into the agentguard CLI with --config flag for config file path. Supports graceful shutdown via SIGINT/SIGTERM. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
jpleva91
added a commit
that referenced
this pull request
Apr 1, 2026
* chore(director): evening run 2026-03-30T22:30Z — swarm RED, 4 squads failing, human escalation triggered 4 squads RED (cloud, hq, qa, analytics). Worker pool dead 11 cycles with April 1 thundering herd imminent. 69.5% agent failure rate. Cloud squad 5 days stale. v3.0-gate 12 cycles unassigned. Force-escalating to human per escalation rules. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * chore(director): night follow-up 2026-03-31T00:00Z — swarm RED, all P0 escalations unresolved, thundering herd <24h Delta since evening run: PRs #1479 + #1475 merged to main. Zero human action on P0s. Added shellforge (10th squad) and octi-pulpo full state. Octi-pulpo upgraded to GREEN. FORCE-ESCALATED: #1402 worker pool, #1306 v3.0-gate, #1452 zombie processes. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * chore(octi-pulpo-em): EM cycle 2026-03-31T08:35Z — run 9, PR #100 merged, sprint KE-3 begins - Merged octi-pulpo#100 (BudgetStore nil-wire bug — Slack budget cmds now functional) - Closed workspace#283 (stale CONFLICTING state PR from run 8) - All P0 director brief items confirmed SHIPPED (budget dispatch, coord_claim, driver health, browser drivers) - Next sprint: landing page scaffold (#76) + test coverage 23.3%→40% + admission control validation - Noted sprint store sync lag (#5/#96 show open despite GitHub closed) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> * docs: add AI-answer-optimized "What Problem Does AgentGuard Solve?" section Structured for AI answer engine discoverability — clear problem statement, concrete examples, answer-friendly phrasing that LLMs will quote directly. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * docs: add ecosystem table linking all AgentGuardHQ repos Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * feat(agentguard): bridge CLI session telemetry to Octi Pulpo memory OctiBridge sends governance denials and session summaries to Octi Pulpo's /api/memory endpoint via HTTP. Wired into Claude Code and Copilot hook handlers. Set OCTI_HTTP_URL to enable. Human CLI sessions now feed the swarm's episodic memory for self-improving dispatch. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * feat(gateway): add config.go — YAML config loading for MCP gateway Defines GatewayConfig, ListenConfig, UpstreamDef, SessionConfig, and TelemetryConfig types with LoadConfig and applyDefaults functions. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * feat(gateway): add normalize.go — MCP tool call to RawAction translation Translates MCPToolCall into kernel action.RawAction, extracting well-known fields (command, file_path, content, target) and providing ActionFingerprint for runaway detection. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * feat(gateway): add session.go — session-level invariant enforcement Implements SessionState with blast radius accumulation, velocity throttling, runaway detection, budget tracking, denial density lockdown, and max denials. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * feat(gateway): add upstream.go — multi-upstream tool routing and forwarding Implements UpstreamManager with tool registration, routing index, merged tool lists, and ForwardCall dispatch. Includes UpstreamConnector interface with placeholder stdio/SSE implementations. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * feat(gateway): add gateway.go — core MCP governance proxy with kernel pipeline Implements Gateway struct with SSE listener, JSON-RPC message handler, full governance pipeline (route -> normalize -> session check -> kernel propose -> forward/deny), and event emission. Includes JSON-RPC 2.0 request/response types and MCP protocol handling. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * feat(gateway): add run.go — entry point with kernel init, shipper wiring, graceful shutdown Implements Run() for starting the HTTP server, BuildGateway() for full dependency wiring (kernel, event bus, upstream manager, shipper pipeline), and graceful shutdown on context cancellation. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * feat(gateway): add gateway subcommand to CLI entry point Wires the MCP gateway into the agentguard CLI with --config flag for config file path. Supports graceful shutdown via SIGINT/SIGTERM. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * docs: update SDLC scheduler to reference API dispatch instead of CLI invocation Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
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.
Summary
agentguard exportandagentguard importCLI commands for governance session export/import (closes ROADMAP: Event export/import for sharing governance sessions #44, completes Phase 3 event persistence)Changes
src/cli/commands/export.ts— New export command (JSONL → portable JSON bundle)src/cli/commands/import.ts— New import command (JSON bundle → local event store)src/cli/bin.ts— Register export/import subcommandstests/ts/cli-export-import.test.ts— 355-line test suite for export/import.claude/skills/sprint-planning.md— New planning skill (backlog analysis, priority labeling, sprint plan generation).agentguard/events/+logs/— Governance telemetry from implementationTest plan
npm run build:ts)npm run ts:test)npm test)npm run lint)npm run format)🤖 Generated with Claude Code