Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions agentcore/adr/ADR-017-commander-opencode-context-memory.md

Large diffs are not rendered by default.

8 changes: 8 additions & 0 deletions agentcore/runtime/src/authority/command-authority-registry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ const profiles = {
opencodeWakeSupervisor: profile(["tests/e2e_user/scenarios/test_opencode_wake_supervisor_preview_tui.py"], ["tests/e2e_user/scenarios/test_command_authority_inventory_tui.py", "tests/e2e_user/scenarios/test_opencode_human_control_tui.py", "tests/e2e_user/scenarios/test_commander_guidance_delivery_tui.py", "tests/e2e_user/scenarios/test_opencode_timeout_watchdog_tui.py"]),
opencodeWakeSupervisorExecution: profile(["tests/e2e_user/scenarios/test_opencode_wake_supervisor_execution_tui.py"], ["tests/e2e_user/scenarios/test_command_authority_inventory_tui.py", "tests/e2e_user/scenarios/test_opencode_wake_supervisor_preview_tui.py", "tests/e2e_user/scenarios/test_opencode_human_control_tui.py", "tests/e2e_user/scenarios/test_opencode_timeout_watchdog_tui.py"]),
opencodeWakeActionExecution: profile(["tests/e2e_user/scenarios/test_opencode_wake_action_execution_tui.py"], ["tests/e2e_user/scenarios/test_command_authority_inventory_tui.py", "tests/e2e_user/scenarios/test_opencode_wake_supervisor_execution_tui.py", "tests/e2e_user/scenarios/test_opencode_timeout_watchdog_tui.py", "tests/e2e_user/scenarios/test_opencode_asks_commander_tui.py"]),
opencodeResultReport: profile(["tests/e2e_user/scenarios/test_opencode_result_report_tui.py"], ["tests/e2e_user/scenarios/test_command_authority_inventory_tui.py", "tests/e2e_user/scenarios/test_opencode_wake_action_execution_tui.py", "tests/e2e_user/scenarios/test_opencode_progress_heartbeat_tui.py", "tests/e2e_user/scenarios/test_opencode_wake_supervisor_execution_tui.py"]),
researchMemory: profile(["tests/e2e_user/scenarios/test_research_memory_novelty_tui.py"], ["tests/e2e_user/scenarios/test_command_authority_inventory_tui.py", "tests/e2e_user/scenarios/test_context_packet_compiler_tui.py", "tests/e2e_user/scenarios/test_context_budget_registry_tui.py"]),
executorReview: profile(["tests/e2e_user/scenarios/test_commander_executor_review_tui.py"], ["tests/e2e_user/scenarios/test_opencode_result_review_packet_tui.py", "tests/e2e_user/scenarios/test_opencode_handoff_readiness_tui.py"]),
executorReviewDraft: profile(["tests/e2e_user/scenarios/test_executor_review_proposal_draft_tui.py"], ["tests/e2e_user/scenarios/test_commander_executor_review_tui.py", "tests/e2e_user/scenarios/test_opencode_result_review_packet_tui.py"]),
Expand Down Expand Up @@ -413,6 +414,13 @@ export const COMMAND_AUTHORITY_REGISTRY: CommandAuthorityRecord[] = [
read("/opencode-wake-action-latest", "runtime.latest_opencode_wake_action_execution", "opencode_handoff", "none", profiles.opencodeWakeActionExecution, ["/wake-action-latest"]),
read("/opencode-wake-action-show", "runtime.get_opencode_wake_action_execution", "opencode_handoff", "none", profiles.opencodeWakeActionExecution),
read("/opencode-wake-action-summary", "runtime.opencode_wake_action_execution_summary", "opencode_handoff", "none", profiles.opencodeWakeActionExecution, ["/wake-action-summary"]),
record({ slash_command: "/opencode-result-report-preview", runtime_command: "runtime.preview_opencode_result_report", risk: "safe_read", gate: "none", owner: "opencode_handoff", mutates_events: false, creates_external_process: false, calls_provider: false, requires_active_runtime: false, requires_run_lock: false, requires_approval: false, current_phase_status: "implemented", validation_profile: profiles.opencodeResultReport, recommended_reads: ["/opencode-launches", "/opencode-progress-latest", "/opencode-result-reports"], aliases: ["/result-report-preview"], notes: ["Read-only OpenCode result-report preview. It validates launched-session and linked evidence metadata only; no mission completion, Commander acceptance/rejection, research.db ingestion, provider call, MCP/online research, OpenCode prompt send, process control, or checkpoint creation occurs."], out_of_scope: ["mission/session completion", "Commander result review acceptance/rejection", "research.db writes/ingestion", "provider/MiniMax calls", "MCP/online research", "OpenCode prompt send", "process pause/kill/stop/resume", "mission/proposal/review/apply mutation", "checkpoint creation"] }),
record({ slash_command: "/opencode-result-report-dry-run", runtime_command: "runtime.record_opencode_result_report", risk: "safe_read", gate: "none", owner: "opencode_handoff", mutates_events: false, creates_external_process: false, calls_provider: false, requires_active_runtime: false, requires_run_lock: false, requires_approval: false, current_phase_status: "implemented", validation_profile: profiles.opencodeResultReport, recommended_reads: ["/opencode-result-report-preview"], aliases: ["/result-report-dry-run"], notes: ["Dry-run OpenCode result-report metadata write validates report eligibility and duplicate hash behavior without appending events, completing missions, writing research.db, creating checkpoints, calling providers, or prompting OpenCode."], out_of_scope: ["event append", "mission/session completion", "Commander result review acceptance/rejection", "research.db writes/ingestion", "provider/MiniMax calls", "MCP/online research", "OpenCode prompt send", "process pause/kill/stop/resume", "mission/proposal/review/apply mutation", "checkpoint creation"] }),
record({ slash_command: "/opencode-result-report", runtime_command: "runtime.record_opencode_result_report", risk: "medium_risk_write", gate: "opencode_runtime", owner: "opencode_handoff", mutates_events: true, creates_external_process: false, calls_provider: false, requires_active_runtime: false, requires_run_lock: true, requires_approval: false, current_phase_status: "implemented", validation_profile: profiles.opencodeResultReport, expected_event_kinds: ["opencode_result_report_recorded"], recommended_reads: ["/opencode-result-report-preview", "/opencode-result-reports", "/opencode-result-report-latest"], aliases: ["/result-report"], notes: ["Appends bounded OpenCode result-report metadata only. The report is executor evidence, not mission/session completion, Commander acceptance/rejection, research.db ingestion, checkpoint creation, provider output, OpenCode prompt delivery, or process control."], out_of_scope: ["mission/session completion", "Commander result review acceptance/rejection", "research.db writes/ingestion", "provider/MiniMax calls", "MCP/online research", "OpenCode prompt send", "process pause/kill/stop/resume", "mission/proposal/review/apply mutation", "checkpoint creation", "result ingestion"] }),
read("/opencode-result-reports", "runtime.list_opencode_result_reports", "opencode_handoff", "none", profiles.opencodeResultReport, ["/result-reports"]),
read("/opencode-result-report-latest", "runtime.latest_opencode_result_report", "opencode_handoff", "none", profiles.opencodeResultReport, ["/result-report-latest"]),
read("/opencode-result-report-show", "runtime.get_opencode_result_report", "opencode_handoff", "none", profiles.opencodeResultReport),
read("/opencode-result-report-summary", "runtime.opencode_result_report_summary", "opencode_handoff", "none", profiles.opencodeResultReport, ["/result-report-summary"]),
record({ slash_command: "/research-memory-summary", runtime_command: "runtime.research_memory_summary", risk: "safe_read", gate: "none", owner: "research", mutates_events: false, creates_external_process: false, calls_provider: false, requires_active_runtime: false, requires_run_lock: false, requires_approval: false, current_phase_status: "implemented", validation_profile: profiles.researchMemory, notes: ["Read-only research memory summary. It does not call providers, MCP/online research, write research.db, create missions/proposals, launch OpenCode, or decide research direction."], out_of_scope: ["provider calls", "MCP/online research", "research.db writes", "mission/proposal creation", "OpenCode launch", "Commander cycle execution"] }),
record({ slash_command: "/research-memory-search", runtime_command: "runtime.preview_research_memory_retrieval", risk: "safe_read", gate: "none", owner: "research", mutates_events: false, creates_external_process: false, calls_provider: false, requires_active_runtime: false, requires_run_lock: false, requires_approval: false, current_phase_status: "implemented", validation_profile: profiles.researchMemory, aliases: ["/research-search", "/memory-search"], recommended_reads: ["/research-memory-summary", "/research-novelty-preview"], notes: ["Read-only bounded research memory retrieval preview. It returns source refs/previews only and does not call providers, MCP/online research, write research.db, create missions/proposals, launch OpenCode, or decide research direction."], out_of_scope: ["provider calls", "MCP/online research", "research.db writes", "research synthesis execution", "mission/proposal creation", "OpenCode launch", "topic allowlist/blocklist"] }),
record({ slash_command: "/research-memory-preview", runtime_command: "runtime.preview_research_memory_retrieval", risk: "safe_read", gate: "none", owner: "research", mutates_events: false, creates_external_process: false, calls_provider: false, requires_active_runtime: false, requires_run_lock: false, requires_approval: false, current_phase_status: "implemented", validation_profile: profiles.researchMemory, notes: ["Alias-shaped read-only research memory retrieval preview. It does not call providers, MCP/online research, launch OpenCode, append events, or write research.db rows."], out_of_scope: ["provider calls", "MCP/online research", "research.db writes", "mission/proposal creation", "OpenCode launch"] }),
Expand Down
2 changes: 2 additions & 0 deletions agentcore/runtime/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,8 @@ export { OpenCodeWakeSupervisorExecutionService } from "./opencode-session/openc
export * from "./opencode-session/opencode-wake-supervisor-execution-types"
export { OpenCodeWakeActionExecutionService } from "./opencode-session/opencode-wake-action-execution-service"
export * from "./opencode-session/opencode-wake-action-execution-types"
export { OpenCodeResultReportService } from "./opencode-session/opencode-result-report-service"
export * from "./opencode-session/opencode-result-report-types"
export { ContextBudgetService } from "./context/context-budget-service"
export { ModelCapabilityRegistry } from "./context/model-capability-registry"
export { ContextPacketCompilerService } from "./context/context-packet-compiler-service"
Expand Down
Loading
Loading