Skip to content

feat: prompt presets and permissions - #160

Merged
moshloop merged 78 commits into
mainfrom
feat/transcripts-modified-since
Nov 12, 2026
Merged

moshloop merged 78 commits into
mainfrom
feat/transcripts-modified-since

Conversation

@moshloop

Copy link
Copy Markdown
Member

No description provided.

@moshloop
moshloop enabled auto-merge (rebase) November 10, 2026 10:27
@coderabbitai

coderabbitai Bot commented Nov 10, 2026 •

Copy link
Copy Markdown

Important

Review skipped

Too many files!

This PR contains 591 files, which is 491 over the limit of 100.

To get a review, reduce the PR to 100 files or fewer by splitting it into smaller PRs or changing its base branch.

Upgrade to a paid plan to raise the limit.

Usage-priced reviews support at most 300 files.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 47771163-b428-4b05-9ed4-4c79b6b53aeb
Commits

Reviewing files that changed from the base of the PR and between 668049d and 456cd6f.

Files ignored due to path filters: 33

  • assets/brand/captain-formation/digital/captain-horizontal-black.svg is excluded by !**/*.svg
  • assets/brand/captain-formation/digital/captain-horizontal-mono-c45125.svg is excluded by !**/*.svg
  • assets/brand/captain-formation/digital/captain-horizontal-white.svg is excluded by !**/*.svg
  • assets/brand/captain-formation/digital/captain-stacked-black.svg is excluded by !**/*.svg
  • assets/brand/captain-formation/digital/captain-stacked-mono-c45125.svg is excluded by !**/*.svg
  • assets/brand/captain-formation/digital/captain-stacked-white.svg is excluded by !**/*.svg
  • assets/brand/captain-formation/digital/captain-symbol-black.svg is excluded by !**/*.svg
  • assets/brand/captain-formation/digital/captain-symbol-mono-18252b.svg is excluded by !**/*.svg
  • assets/brand/captain-formation/digital/captain-symbol-mono-c45125.svg is excluded by !**/*.svg
  • assets/brand/captain-formation/digital/captain-symbol-mono-f2a477.svg is excluded by !**/*.svg
  • assets/brand/captain-formation/digital/captain-symbol-small-mono-f2a477.svg is excluded by !**/*.svg
  • assets/brand/captain-formation/digital/captain-symbol-small-white.svg is excluded by !**/*.svg
  • assets/brand/captain-formation/digital/captain-symbol-white.svg is excluded by !**/*.svg
  • assets/brand/captain-formation/digital/captain-wordmark-black.svg is excluded by !**/*.svg
  • assets/brand/captain-formation/digital/captain-wordmark-mono-c45125.svg is excluded by !**/*.svg
  • assets/brand/captain-formation/digital/captain-wordmark-white.svg is excluded by !**/*.svg
  • assets/brand/captain-formation/social/captain-avatar.svg is excluded by !**/*.svg
  • assets/brand/captain-formation/source/captain-horizontal-dark.svg is excluded by !**/*.svg
  • assets/brand/captain-formation/source/captain-horizontal.svg is excluded by !**/*.svg
  • assets/brand/captain-formation/source/captain-stacked-dark.svg is excluded by !**/*.svg
  • assets/brand/captain-formation/source/captain-stacked.svg is excluded by !**/*.svg
  • assets/brand/captain-formation/source/captain-symbol-reverse.svg is excluded by !**/*.svg
  • assets/brand/captain-formation/source/captain-symbol-small.svg is excluded by !**/*.svg
  • assets/brand/captain-formation/source/captain-symbol.svg is excluded by !**/*.svg
  • assets/brand/captain-formation/source/captain-wordmark.svg is excluded by !**/*.svg
  • assets/brand/captain-formation/web/captain-app-icon.svg is excluded by !**/*.svg
  • assets/brand/captain-formation/web/captain-favicon.svg is excluded by !**/*.svg
  • assets/brand/captain-formation/web/favicon.ico is excluded by !**/*.ico
  • assets/brand/captain-formation/web/favicon.svg is excluded by !**/*.svg
  • docs/pnpm-lock.yaml is excluded by !**/pnpm-lock.yaml
  • go.sum is excluded by !**/*.sum
  • pkg/cli/webapp/dist/index.html is excluded by !**/dist/**
  • pkg/cli/webapp/pnpm-lock.yaml is excluded by !**/pnpm-lock.yaml
Files selected for processing: 591

  • .github/workflows/adapter-schemas.yml
  • .github/workflows/release.yml
  • .github/workflows/test.yml
  • .gitignore
  • README.md
  • Taskfile.yaml
  • assets/brand/captain-formation/GUIDELINES.md
  • assets/brand/captain-formation/README.md
  • assets/brand/captain-formation/web/head-snippet.html
  • assets/brand/captain-formation/web/site.webmanifest
  • cmd/captain/help_test.go
  • cmd/captain/internal/rootcmd/help.go
  • cmd/captain/internal/rootcmd/lint.go
  • cmd/captain/lint_ginkgo_test.go
  • cmd/captain/main.go
  • cmd/captain/version_test.go
  • docs/adapter-resource-schemas.md
  • docs/package.json
  • docs/plans/adapter-resource-schemas.md
  • docs/plans/inline-tool-environment.md
  • docs/plans/inline-tool-gitagent.md
  • docs/plans/unified-approval-callback-examples.md
  • docs/plans/unified-approval-callback.md
  • docs/src/components/PromptApiShapes.tsx
  • docs/src/components/PromptPipeline.tsx
  • docs/src/components/RuntimeSpecDemo.tsx
  • docs/src/data/navigation.ts
  • docs/src/pages/agents/approvals.mdx
  • docs/src/pages/agents/embedding.mdx
  • docs/src/pages/agents/index.mdx
  • docs/src/pages/agents/verification.mdx
  • docs/src/pages/configuration/index.mdx
  • docs/src/pages/fixtures/index.mdx
  • docs/src/pages/index.mdx
  • docs/src/pages/prompts/cli.mdx
  • docs/src/pages/prompts/format.mdx
  • docs/src/pages/prompts/hooks.mdx
  • docs/src/pages/prompts/index.mdx
  • docs/src/pages/prompts/runtime.mdx
  • docs/src/pages/prompts/sources-api.mdx
  • docs/src/pages/sandboxes/index.mdx
  • docs/src/pages/serve/index.mdx
  • docs/src/pages/sessions/index.mdx
  • docs/src/pages/todos/execution.mdx
  • docs/src/pages/todos/format.mdx
  • docs/src/pages/todos/index.mdx
  • examples/lint-review.prompt
  • examples/proposal-review.prompt
  • examples/spec-internal-high.prompt
  • examples/spec-internal-low.prompt
  • examples/spec-public-high.prompt
  • examples/spec-public-low.prompt
  • examples/website-docs-developer-tools.prompt
  • examples/website-oss-developer-tools.prompt
  • go.mod
  • hack/adapterbrowser/main.go
  • hack/adapterdto/main.go
  • hack/adapterresources/claude-types.ts
  • hack/adapterresources/cli.go
  • hack/adapterresources/execution.go
  • hack/adapterresources/fetch-sources.sh
  • hack/adapterresources/main.go
  • hack/adapterresources/patches.go
  • hack/adapterresources/patches/anthropic.yaml
  • hack/adapterresources/permissions.go
  • hack/adapterresources/publish-schemas-branch.sh
  • hack/adapterresources/runtime.go
  • hack/adapterresources/sdk.go
  • hack/adapterresources/sdk_source.go
  • migrations/04_demote_extra_transcript_children.sql
  • migrations/10_sessions.pg.hcl
  • migrations/41_runtime_profiles.pg.hcl
  • migrations/82_gavel_transcript_parent_relation.sql
  • migrations/84_prompt_run_session_lifecycle.sql
  • migrations/prompt_run_session_lifecycle_integration_test.go
  • migrations/transcript_parent_key_integration_test.go
  • pkg/adapters/anthropic/agent.schema.json
  • pkg/adapters/anthropic/api.schema.json
  • pkg/adapters/anthropic/cli.schema.json
  • pkg/adapters/arbitrary_json_ginkgo_test.go
  • pkg/adapters/backend_resources.go
  • pkg/adapters/bash/api.schema.json
  • pkg/adapters/catalog.go
  • pkg/adapters/deepseek/api.schema.json
  • pkg/adapters/generate.go
  • pkg/adapters/google/api.schema.json
  • pkg/adapters/google/cli.schema.json
  • pkg/adapters/jev/api.schema.json
  • pkg/adapters/nested_resources_ginkgo_test.go
  • pkg/adapters/openai/agent.schema.json
  • pkg/adapters/openai/api.schema.json
  • pkg/adapters/openai/cli.schema.json
  • pkg/adapters/presentation/presentation.go
  • pkg/adapters/published_resources_ginkgo_test.go
  • pkg/adapters/resource_annotations_ginkgo_test.go
  • pkg/adapters/resource_catalog.go
  • pkg/adapters/resource_references.go
  • pkg/adapters/resources/README.md
  • pkg/adapters/resources/captain-backends.json
  • pkg/adapters/resources_contract_ginkgo_test.go
  • pkg/adapters/schema_contract_ginkgo_test.go
  • pkg/adapters/validation.go
  • pkg/adapters/zz_generated_anthropic_agent.go
  • pkg/adapters/zz_generated_anthropic_api.go
  • pkg/adapters/zz_generated_anthropic_cli.go
  • pkg/adapters/zz_generated_deepseek_api.go
  • pkg/adapters/zz_generated_google_api.go
  • pkg/adapters/zz_generated_jev_api.go
  • pkg/adapters/zz_generated_openai_agent.go
  • pkg/adapters/zz_generated_openai_api.go
  • pkg/adapters/zz_generated_openai_cli.go
  • pkg/ai/access.go
  • pkg/ai/access_ginkgo_test.go
  • pkg/ai/adapters_test.go
  • pkg/ai/agent/commit/commit.go
  • pkg/ai/agent/commit/commit_test.go
  • pkg/ai/agent/commit/compat_test.go
  • pkg/ai/agent/commit/excludes_ginkgo_test.go
  • pkg/ai/agent/commit/gates.go
  • pkg/ai/agent/commit/git.go
  • pkg/ai/agent/commit/helper_test.go
  • pkg/ai/agent/commit/record_ginkgo_test.go
  • pkg/ai/agent/commit/setup_worktree_test.go
  • pkg/ai/agent/commit/stage_test.go
  • pkg/ai/agent/hook_context.go
  • pkg/ai/agent/runner.go
  • pkg/ai/agent/runner_tracing_ginkgo_test.go
  • pkg/ai/agent/schema_rejection_ginkgo_test.go
  • pkg/ai/agent/setup/setup.go
  • pkg/ai/agent/setup/setup_suite_test.go
  • pkg/ai/agent/setup/workspace.go
  • pkg/ai/agent/setup/workspace_ginkgo_test.go
  • pkg/ai/agent/setup/worktree_state.go
  • pkg/ai/agent/setup/worktree_state_ginkgo_test.go
  • pkg/ai/agent/verify/after.go
  • pkg/ai/agent/verify/after_actions.go
  • pkg/ai/agent/verify/after_actions_ginkgo_test.go
  • pkg/ai/agent/verify/after_ginkgo_test.go
  • pkg/ai/agent/verify/registry.go
  • pkg/ai/attachment_capabilities_ginkgo_test.go
  • pkg/ai/callertools/cli.go
  • pkg/ai/callertools/forward.go
  • pkg/ai/callertools/runtime.go
  • pkg/ai/callertools/runtime_ginkgo_test.go
  • pkg/ai/client.go
  • pkg/ai/deepseek_attachments_ginkgo_test.go
  • pkg/ai/event_observer.go
  • pkg/ai/fixture/runner.go
  • pkg/ai/fixture/runner_test.go
  • pkg/ai/history/codex_parser.go
  • pkg/ai/history/codex_session_roots_ginkgo_test.go
  • pkg/ai/history/transcripts.go
  • pkg/ai/history/transcripts_ginkgo_test.go
  • pkg/ai/internal/gen-model-registry/patches.json
  • pkg/ai/middleware/construct.go
  • pkg/ai/middleware/jev_ginkgo_test.go
  • pkg/ai/middleware/logging.go
  • pkg/ai/middleware/logging_test.go
  • pkg/ai/middleware/middleware_suite_test.go
  • pkg/ai/middleware/repair_ginkgo_test.go
  • pkg/ai/middleware/schema_repair.go
  • pkg/ai/middleware/tracing.go
  • pkg/ai/middleware/tracing_ginkgo_test.go
  • pkg/ai/middleware/validation.go
  • pkg/ai/middleware/validation_stream.go
  • pkg/ai/middleware/validation_stream_test.go
  • pkg/ai/middleware/validation_test.go
  • pkg/ai/model_parse_conformance_test.go
  • pkg/ai/model_registry_test.go
  • pkg/ai/prompt/README.md
  • pkg/ai/prompt/document.go
  • pkg/ai/prompt/document_test.go
  • pkg/ai/prompt/hook.go
  • pkg/ai/prompt/hook_discover.go
  • pkg/ai/prompt/hook_error.go
  • pkg/ai/prompt/hook_frontmatter.go
  • pkg/ai/prompt/hook_ginkgo_test.go
  • pkg/ai/prompt/hooks_ginkgo_test.go
  • pkg/ai/prompt/inline_tools_ginkgo_test.go
  • pkg/ai/prompt/input_variables.go
  • pkg/ai/prompt/prompt.go
  • pkg/ai/prompt/prompt_test.go
  • pkg/ai/prompt/schema_types.go
  • pkg/ai/prompt/shell_quote.go
  • pkg/ai/prompt/shell_quote_ginkgo_test.go
  • pkg/ai/prompt/template_document.go
  • pkg/ai/prompt/testdata/fixtures/jev-hooks.prompt
  • pkg/ai/prompt/testdata/inline_tools.prompt
  • pkg/ai/prompt/validate.go
  • pkg/ai/prompt/validate_ginkgo_test.go
  • pkg/ai/prompt/validate_schema.go
  • pkg/ai/prompt/validate_variables.go
  • pkg/ai/provider/access_argv_ginkgo_test.go
  • pkg/ai/provider/claudeagent/agent.ts
  • pkg/ai/provider/claudeagent/attachments_ginkgo_test.go
  • pkg/ai/provider/claudeagent/bridge_params.go
  • pkg/ai/provider/claudeagent/fake_agent_test.go
  • pkg/ai/provider/claudeagent/git_commit_guard_ginkgo_test.go
  • pkg/ai/provider/claudeagent/interrupt_ginkgo_test.go
  • pkg/ai/provider/claudeagent/messages.ts
  • pkg/ai/provider/claudeagent/permissions_test.go
  • pkg/ai/provider/claudeagent/protocol.ts
  • pkg/ai/provider/claudeagent/provider.go
  • pkg/ai/provider/claudeagent/provider_test.go
  • pkg/ai/provider/claudeagent/runner.go
  • pkg/ai/provider/claudeagent/steer_ginkgo_test.go
  • pkg/ai/provider/claudeagent/task_identity_test.go
  • pkg/ai/provider/claudeagent/turn.go
  • pkg/ai/provider/cmux/access_env_ginkgo_test.go
  • pkg/ai/provider/cmux/provider.go
  • pkg/ai/provider/cmux/submit.go
  • pkg/ai/provider/coalesce.go
  • pkg/ai/provider/codex_appserver.go
  • pkg/ai/provider/codex_appserver_process.go
  • pkg/ai/provider/codex_appserver_question.go
  • pkg/ai/provider/codex_appserver_subagent_ginkgo_test.go
  • pkg/ai/provider/codex_appserver_test.go
  • pkg/ai/provider/codex_appserver_turn.go
  • pkg/ai/provider/codex_cli.go
  • pkg/ai/provider/genkit/anthropic_models.go
  • pkg/ai/provider/genkit/deepseek_attachments_ginkgo_test.go
  • pkg/ai/provider/genkit/genkit.go
  • pkg/ai/provider/genkit/instance.go
  • pkg/ai/provider/genkit/options.go
  • pkg/ai/provider/genkit/schema_wiring_ginkgo_test.go
  • pkg/ai/provider/genkit/tools.go
  • pkg/ai/provider/genkit/tools_test.go
  • pkg/ai/provider/genkit/turn_events_ginkgo_test.go
  • pkg/ai/provider/jev/provider.go
  • pkg/ai/provider/jev/provider_ginkgo_test.go
  • pkg/ai/provider/json_utils.go
  • pkg/ai/provider/json_utils_test.go
  • pkg/ai/question_policy.go
  • pkg/ai/response_format.go
  • pkg/ai/response_format_ginkgo_test.go
  • pkg/ai/runtime_candidates_ginkgo_test.go
  • pkg/ai/runtime_selector_test.go
  • pkg/ai/schema_validation.go
  • pkg/ai/terminal_outcome_tracker.go
  • pkg/ai/token_content.go
  • pkg/ai/token_size_ginkgo_test.go
  • pkg/ai/tools/exectool/environment_ginkgo_test.go
  • pkg/ai/tools/exectool/exectool.go
  • pkg/ai/tools/exectool/exectool_ginkgo_test.go
  • pkg/ai/tools/exectool/exectool_suite_test.go
  • pkg/ai/tools/exectool/proxied.go
  • pkg/ai/tools/exectool/release.go
  • pkg/ai/tools/exectool/release_ginkgo_test.go
  • pkg/ai/tools/exectool/sidecar_ginkgo_test.go
  • pkg/ai/tools/exectool/toolschema/toolschema.go
  • pkg/ai/tools/exectool/workspace.go
  • pkg/ai/tools/tools.go
  • pkg/ai/tracing/run.go
  • pkg/ai/tracing/tracing.go
  • pkg/aiflags/default_resolution_ginkgo_test.go
  • pkg/aiflags/flags.go
  • pkg/api/access.go
  • pkg/api/access_compile.go
  • pkg/api/access_convert.go
  • pkg/api/access_ginkgo_test.go
  • pkg/api/agent_resources.go
  • pkg/api/aliases.go
  • pkg/api/batch.go
  • pkg/api/batch_ginkgo_test.go
  • pkg/api/commit.go
  • pkg/api/commit_compat.go
  • pkg/api/commit_compat_test.go
  • pkg/api/commit_test.go
  • pkg/api/enums.go
  • pkg/api/hook_action.go
  • pkg/api/hook_action_ginkgo_test.go
  • pkg/api/hook_validation.go
  • pkg/api/inline_tool.go
  • pkg/api/inline_tool_environment.go
  • pkg/api/inline_tool_environment_ginkgo_test.go
  • pkg/api/inline_tool_ginkgo_test.go
  • pkg/api/permission_capabilities.go
  • pkg/api/permissions.go
  • pkg/api/permissions_schema.go
  • pkg/api/preset_order_ginkgo_test.go
  • pkg/api/prompt.go
  • pkg/api/prompt_unmarshal.go
  • pkg/api/prompt_yaml_schema_ginkgo_test.go
  • pkg/api/registry/anthropic_latest_ginkgo_test.go
  • pkg/api/registry/deepseek_default_ginkgo_test.go
  • pkg/api/registry/embed_test.go
  • pkg/api/registry/media.go
  • pkg/api/registry/model.go
  • pkg/api/registry/model_disabled_ginkgo_test.go
  • pkg/api/registry/models.json
  • pkg/api/registry/provider.go
  • pkg/api/registry/providers.go
  • pkg/api/registry/runtime.go
  • pkg/api/registry/sandbox.go
  • pkg/api/registry/sandboxes.go
  • pkg/api/registry/terra_ginkgo_test.go
  • pkg/api/runtime_event.go
  • pkg/api/runtime_profiles.go
  • pkg/api/sandbox.go
  • pkg/api/spec.go
  • pkg/api/spec_codec.go
  • pkg/api/spec_composition.go
  • pkg/api/spec_defaults.go
  • pkg/api/spec_defaults_ginkgo_test.go
  • pkg/api/spec_ignored_tools_ginkgo_test.go
  • pkg/api/spec_layers.go
  • pkg/api/spec_merge.go
  • pkg/api/spec_merge_differential_test.go
  • pkg/api/spec_merge_strategic_ginkgo_test.go
  • pkg/api/spec_presence_ginkgo_test.go
  • pkg/api/spec_provenance.go
  • pkg/api/spec_runtime.go
  • pkg/api/spec_validation.go
  • pkg/api/workflow.go
  • pkg/api/workflow_after_ginkgo_test.go
  • pkg/captainconfig/config.go
  • pkg/claude/history.go
  • pkg/claude/reader.go
  • pkg/claude/tooluse.go
  • pkg/cli/.gavel.yaml
  • pkg/cli/ai.go
  • pkg/cli/ai_filters.go
  • pkg/cli/ai_options.go
  • pkg/cli/ai_prompt_file.go
  • pkg/cli/ai_prompt_file_test.go
  • pkg/cli/ai_runtime_flags.go
  • pkg/cli/ai_runtime_perms_ginkgo_test.go
  • pkg/cli/ai_runtime_resolve_ginkgo_test.go
  • pkg/cli/ai_sandbox_remote_test.go
  • pkg/cli/ai_test.go
  • pkg/cli/configure.go
  • pkg/cli/event_renderer.go
  • pkg/cli/event_renderer_suspend.go
  • pkg/cli/event_renderer_suspend_ginkgo_test.go
  • pkg/cli/flags_grouped_ginkgo_test.go
  • pkg/cli/gitagent_hook.go
  • pkg/cli/gitagent_runtask.go
  • pkg/cli/gitagent_runtask_test.go
  • pkg/cli/gitagent_runtask_tools.go
  • pkg/cli/gitagent_tools_e2e_test.go
  • pkg/cli/permission_catalog.go
  • pkg/cli/permission_catalog_test.go
  • pkg/cli/permissions_access.go
  • pkg/cli/permissions_access_ginkgo_test.go
  • pkg/cli/permissions_convert.go
  • pkg/cli/permissions_matrix.go
  • pkg/cli/prompt_args.go
  • pkg/cli/prompt_args_ginkgo_test.go
  • pkg/cli/prompt_batch_run.go
  • pkg/cli/prompt_batch_session_ginkgo_test.go
  • pkg/cli/prompt_chat.go
  • pkg/cli/prompt_chat_ginkgo_test.go
  • pkg/cli/prompt_chat_http.go
  • pkg/cli/prompt_chat_lifecycle.go
  • pkg/cli/prompt_chat_persist_ginkgo_test.go
  • pkg/cli/prompt_chat_task.go
  • pkg/cli/prompt_diagnostics.go
  • pkg/cli/prompt_edit.go
  • pkg/cli/prompt_entity.go
  • pkg/cli/prompt_form.go
  • pkg/cli/prompt_help.go
  • pkg/cli/prompt_help_commands.go
  • pkg/cli/prompt_help_content.go
  • pkg/cli/prompt_help_ginkgo_test.go
  • pkg/cli/prompt_inline_tools_ginkgo_test.go
  • pkg/cli/prompt_input_batches.go
  • pkg/cli/prompt_input_batches_ginkgo_test.go
  • pkg/cli/prompt_input_files.go
  • pkg/cli/prompt_input_ginkgo_test.go
  • pkg/cli/prompt_input_render.go
  • pkg/cli/prompt_invocation.go
  • pkg/cli/prompt_invocation_ginkgo_test.go
  • pkg/cli/prompt_launch_ginkgo_test.go
  • pkg/cli/prompt_layers_ginkgo_test.go
  • pkg/cli/prompt_links_ginkgo_test.go
  • pkg/cli/prompt_list.go
  • pkg/cli/prompt_list_ginkgo_test.go
  • pkg/cli/prompt_local.go
  • pkg/cli/prompt_observe.go
  • pkg/cli/prompt_observe_capture.go
  • pkg/cli/prompt_observe_test.go
  • pkg/cli/prompt_prepared.go
  • pkg/cli/prompt_prepared_ginkgo_test.go
  • pkg/cli/prompt_preview.go
  • pkg/cli/prompt_preview_test.go
  • pkg/cli/prompt_records.go
  • pkg/cli/prompt_render.go
  • pkg/cli/prompt_render_hooks_ginkgo_test.go
  • pkg/cli/prompt_run.go
  • pkg/cli/prompt_run_async_terminal_test.go
  • pkg/cli/prompt_run_events.go
  • pkg/cli/prompt_run_events_test.go
  • pkg/cli/prompt_run_handler_ginkgo_test.go
  • pkg/cli/prompt_run_http.go
  • pkg/cli/prompt_run_live.go
  • pkg/cli/prompt_run_persist.go
  • pkg/cli/prompt_run_persist_lifecycle_ginkgo_test.go
  • pkg/cli/prompt_run_pretty_ginkgo_test.go
  • pkg/cli/prompt_run_record_ginkgo_test.go
  • pkg/cli/prompt_run_result.go
  • pkg/cli/prompt_run_stream.go
  • pkg/cli/prompt_run_stream_summary.go
  • pkg/cli/prompt_run_terminal.go
  • pkg/cli/prompt_run_terminal_ginkgo_test.go
  • pkg/cli/prompt_runtime_variants.go
  • pkg/cli/prompt_runtimes_ginkgo_test.go
  • pkg/cli/prompt_schema_types_ginkgo_test.go
  • pkg/cli/prompt_source.go
  • pkg/cli/prompt_sources.go
  • pkg/cli/prompt_sources_ginkgo_test.go
  • pkg/cli/prompt_vars_schema.go
  • pkg/cli/prompt_vars_schema_ginkgo_test.go
  • pkg/cli/prompt_write.go
  • pkg/cli/review_prompts_ginkgo_test.go
  • pkg/cli/runtime_entity_ginkgo_test.go
  • pkg/cli/runtime_preset_entity.go
  • pkg/cli/schema_response_ginkgo_test.go
  • pkg/cli/serve.go
  • pkg/cli/serve_adapter_resources_ginkgo_test.go
  • pkg/cli/serve_adapter_schemas.go
  • pkg/cli/serve_adapter_schemas_ginkgo_test.go
  • pkg/cli/serve_adapter_schemas_openapi.go
  • pkg/cli/serve_openapi.go
  • pkg/cli/session_deliver.go
  • pkg/cli/session_deliver_ginkgo_test.go
  • pkg/cli/session_get.go
  • pkg/cli/session_http.go
  • pkg/cli/session_ps.go
  • pkg/cli/session_record_db.go
  • pkg/cli/session_task_source.go
  • pkg/cli/session_task_source_ginkgo_test.go
  • pkg/cli/sessions.go
  • pkg/cli/telemetry.go
  • pkg/cli/telemetry_ginkgo_test.go
  • pkg/cli/testdata/permissions_matrix_test.md
  • pkg/cli/testdata/prompt-questions/README.md
  • pkg/cli/testdata/prompt-questions/buffered.fixture.yaml
  • pkg/cli/testdata/prompt-questions/codex.aimock.yaml
  • pkg/cli/testdata/prompt-questions/codex.fixture.yaml
  • pkg/cli/testdata/prompt-questions/noninteractive.fixture.yaml
  • pkg/cli/testdata/prompt-questions/policy.aimock.yaml
  • pkg/cli/testdata/prompt-questions/question.aimock.yaml
  • pkg/cli/testdata/prompt-questions/redirected-stdout.fixture.yaml
  • pkg/cli/testdata/prompt-questions/streamed.fixture.yaml
  • pkg/cli/testdata/prompt-questions/terminal-policy.fixture.yaml
  • pkg/cli/testdata/prompt-questions/workflow.fixture.yaml
  • pkg/cli/testdata/prompt-questions/workflow.prompt
  • pkg/cli/testdata/prompt-run-interactive.fixture.yaml
  • pkg/cli/verify.go
  • pkg/cli/webapp/package.json
  • pkg/cli/webapp/src/AdapterSchemaPreview.tsx
  • pkg/cli/webapp/src/AdapterSchemaProvenance.tsx
  • pkg/cli/webapp/src/AdapterSchemasPage.test.tsx
  • pkg/cli/webapp/src/AdapterSchemasPage.tsx
  • pkg/cli/webapp/src/App.tsx
  • pkg/cli/webapp/src/SessionDetail.test.tsx
  • pkg/cli/webapp/src/SessionDetail.tsx
  • pkg/cli/webapp/src/SessionDetail.verification.test.tsx
  • pkg/cli/webapp/src/SessionTable.test.tsx
  • pkg/cli/webapp/src/SessionTable.tsx
  • pkg/cli/webapp/src/adapterSchemaDraft.test.ts
  • pkg/cli/webapp/src/adapterSchemaDraft.ts
  • pkg/cli/webapp/src/adapterSchemas.test.ts
  • pkg/cli/webapp/src/adapterSchemas.ts
  • pkg/cli/webapp/src/main.tsx
  • pkg/cli/webapp/src/promptCatalogEntries.ts
  • pkg/cli/webapp/src/runtimeProfilesApi.test.ts
  • pkg/cli/webapp/src/runtimeProfilesApi.ts
  • pkg/cli/webapp/src/sessionData.ts
  • pkg/cli/whoami_ginkgo_test.go
  • pkg/cmux/client.go
  • pkg/cmux/surface_workspace_ginkgo_test.go
  • pkg/codexhome/codexhome.go
  • pkg/codexhome/codexhome_ginkgo_test.go
  • pkg/container/base/Dockerfile
  • pkg/credproxy/authority.go
  • pkg/credproxy/connect.go
  • pkg/credproxy/connect_test.go
  • pkg/credproxy/grants.go
  • pkg/credproxy/kubeproxy/proxy.go
  • pkg/credproxy/kubeproxy/proxy_test.go
  • pkg/credproxy/proxy.go
  • pkg/credproxy/proxy_auth_test.go
  • pkg/credproxy/proxy_test.go
  • pkg/credproxy/secret.go
  • pkg/database/prompt_run_iteration_store.go
  • pkg/database/prompt_run_iteration_store_validation_integration_test.go
  • pkg/database/prompt_run_operations.go
  • pkg/database/prompt_run_store.go
  • pkg/database/runtime_profile_store.go
  • pkg/gitagent/admit.go
  • pkg/gitagent/dispatch.go
  • pkg/gitagent/hookmain.go
  • pkg/gitagent/hookset.go
  • pkg/gitagent/hookset_ginkgo_test.go
  • pkg/gitagent/httpserver.go
  • pkg/gitagent/server.go
  • pkg/gitagent/server_ginkgo_test.go
  • pkg/gitagent/snapshot.go
  • pkg/gitagent/sshclient.go
  • pkg/gitagent/state.go
  • pkg/gitagent/tlscert.go
  • pkg/gitagent/tunnel.go
  • pkg/gitagent/tunnel_client.go
  • pkg/gitagent/tunnel_ginkgo_test.go
  • pkg/gitagent/tunnel_path_ginkgo_test.go
  • pkg/hookaction/hookaction_ginkgo_test.go
  • pkg/hookaction/hookaction_suite_test.go
  • pkg/hookaction/input.go
  • pkg/hookaction/input_ginkgo_test.go
  • pkg/hookaction/schema.go
  • pkg/hookaction/with.go
  • pkg/lint/promptfile/results.go
  • pkg/lint/promptfile/run.go
  • pkg/lint/promptfile/run_ginkgo_test.go
  • pkg/monitor/api_transcript_ginkgo_test.go
  • pkg/monitor/backfill.go
  • pkg/monitor/backfill_registered_ginkgo_test.go
  • pkg/monitor/backfill_test.go
  • pkg/monitor/hooks.go
  • pkg/monitor/hooks_test.go
  • pkg/monitor/ingest.go
  • pkg/monitor/monitor.go
  • pkg/monitor/process.go
  • pkg/monitor/watch.go
  • pkg/monitor/watch_lifecycle.go
  • pkg/monitor/watch_lifecycle_darwin_test.go
  • pkg/monitor/watch_lifecycle_ginkgo_test.go
  • pkg/monitor/watch_lifecycle_integration_test.go
  • pkg/plans/hooks.go
  • pkg/plans/hooks_discovery_ginkgo_test.go
  • pkg/promptcontext/discover.go
  • pkg/promptcontext/promptcontext.go
  • pkg/promptcontext/promptcontext_ginkgo_test.go
  • pkg/promptrun/child_record_ginkgo_test.go
  • pkg/promptrun/hook_actions.go
  • pkg/promptrun/hook_actions_ginkgo_test.go
  • pkg/promptrun/hooks.go
  • pkg/promptrun/inline_tools.go
  • pkg/promptrun/inline_tools_ginkgo_test.go
  • pkg/promptrun/preflight.go
  • pkg/promptrun/preflight_callertools.go
  • pkg/promptrun/preflight_callertools_ginkgo_test.go
  • pkg/promptrun/promptrun_ginkgo_test.go
  • pkg/promptrun/provider.go
  • pkg/promptrun/provider_ginkgo_test.go
  • pkg/promptrun/record.go
  • pkg/promptrun/record_completed.go
  • pkg/promptrun/record_ginkgo_test.go
  • pkg/promptrun/recorder.go
  • pkg/promptrun/remote.go
  • pkg/promptrun/remote_ginkgo_test.go
  • pkg/promptrun/remote_provider_ginkgo_test.go
  • pkg/promptrun/remote_run.go
  • pkg/promptrun/run.go
  • pkg/promptrun/workspace.go
  • pkg/promptrun/workspace_ginkgo_test.go
  • pkg/runtimeprofiles/README.md
  • pkg/runtimeprofiles/builtin/presets/lint.yaml
  • pkg/runtimeprofiles/builtin_source_ginkgo_test.go
  • pkg/runtimeprofiles/db_source.go
  • pkg/runtimeprofiles/db_source_integration_test.go
  • pkg/runtimeprofiles/default_catalog.go
  • pkg/runtimeprofiles/default_catalog_ginkgo_test.go
  • pkg/runtimeprofiles/embedded_source_ginkgo_test.go
  • pkg/runtimeprofiles/layers_ginkgo_test.go
  • pkg/runtimeprofiles/types.go
  • pkg/sandbox/adapter/gitagent.go
  • pkg/sandbox/adapter/gitagent_sidecar_tools_test.go
  • pkg/sandbox/tokens.go
  • pkg/session/build.go
  • pkg/session/deliver/claude_socket.go
  • pkg/session/deliver/cmux.go
  • pkg/session/deliver/codex_queue.go
  • pkg/session/deliver/deliver.go
  • pkg/session/deliver/deliver_ginkgo_test.go
  • pkg/session/deliver/deliver_suite_test.go
  • pkg/session/load/aggregate_ginkgo_test.go
  • pkg/session/load/projection.go
  • pkg/session/load/promptrun_ginkgo_test.go
  • pkg/session/load/transcript.go
  • pkg/session/metadata.go
  • pkg/session/query/follow_tail.go
  • pkg/session/query/follow_tail_ginkgo_test.go
  • pkg/session/query/query.go
  • pkg/session/query/verification_history_ginkgo_test.go
  • pkg/session/session.go
  • pkg/session/session_name_ginkgo_test.go
  • pkg/session/transcript.go
  • pkg/session/transcript_pretty.go
  • pkg/session/turns.go

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@github-actions

github-actions Bot commented Nov 10, 2026 •

Copy link
Copy Markdown

Gavel summary

Source Pass Fail Skip Duration

Totals: 0 passed · 0 failed · 0 skipped · -

View full results

@socket-security

socket-security Bot commented Nov 10, 2026 •

Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Updatednpm/​@​flanksource/​clicky-ui@​0.3.51 ⏵ 0.3.5667 -4100100 +196 +1100
Updatedgolang/​github.com/​flanksource/​commons@​v1.61.1-0.20261027203923-c5cfedcdae97 ⏵ v1.64.173 +1100100100100
Addedgolang/​github.com/​flanksource/​gavel@​v0.0.7974100100100100
Updatedgolang/​golang.org/​x/​crypto@​v0.53.0 ⏵ v0.58.074 +1100100100100
Updatedgolang/​github.com/​flanksource/​clicky@​v1.21.88-0.20261027204456-34e65b99d69d ⏵ v1.21.95-0.20261112060413-ae2c0bb7961474 +1100100100100
Updatedgolang/​github.com/​flanksource/​commons-db@​v0.1.61-0.20261027210213-a7b138ebccde ⏵ v0.1.6974 +1100100100100
Updatedgolang/​google.golang.org/​grpc@​v1.82.1 ⏵ v1.85.075 +1100 +23100100100
Updatedgolang/​google.golang.org/​protobuf@​v1.36.12-0.20260120151049-f2248ac996af ⏵ v1.36.1275 +1100100100100
Updatedgolang/​k8s.io/​client-go@​v0.36.1 ⏵ v0.36.27510010075100
Updatedgolang/​k8s.io/​api@​v0.36.1 ⏵ v0.36.276100100100100
Updatedgolang/​go.opentelemetry.io/​otel@​v1.44.0 ⏵ v1.47.076 +1100100100100
Updatedgolang/​golang.org/​x/​sys@​v0.46.0 ⏵ v0.49.084 +1100100100100
Updatedgolang/​github.com/​stretchr/​testify@​v1.11.1 ⏵ v1.12.189 -6100100100100
Updatedgolang/​go.opentelemetry.io/​otel/​sdk@​v1.44.0 ⏵ v1.47.098100 +1100100100
Updatedgolang/​go.opentelemetry.io/​otel/​trace@​v1.44.0 ⏵ v1.47.0100 +1100100100100
Updatedgolang/​golang.org/​x/​term@​v0.44.0 ⏵ v0.47.0100 +1100100100100
Updatedgolang/​github.com/​google/​uuid@​v1.6.0 ⏵ v1.6.1-0.20241114170450-2d3c2a9cc518100 +1100100100100
Updatedgolang/​github.com/​flanksource/​clicky/​aichat@​v1.21.82 ⏵ v1.21.91100100100100100

View full report

Comment thread pkg/gitagent/tunnel.go Fixed
Claude-Session-Id: 01a15cb6-ff42-75a0-8c3a-712b63716008
Gavel-Issue-Id: 9723fa02-92e0-4ae0-ae6f-1815602e2cba
Claude-Session-Id: 01a15ea7-403c-7d71-854f-08688a7af676
Claude-Session-Id: 01a15e89-a154-70d0-beff-58fa5d2ba7b1
Claude-Session-Id: 01a161f3-946a-7f80-8de1-6443c175cde5
Add the Captain Formation brand kit: horizontal, stacked, symbol, and wordmark masters,
dark and one-colour variants, a small-size drawing, and web and social icons.
Lettering is outlined vector geometry, so no font installation is required.
Web handover files are provided for manual integration; application code is unchanged.
PNG exports follow the existing *.png ignore rule. Trademark clearance and print
approval remain outstanding.
… review prompts

Presets gain an integer order (default 0) that sorts layers ahead of scope precedence, so the Lint preset can apply after prompt and request layers.
The Lint preset replaces output schemas with a violations contract that gavel lint prompt renders as lint results.
Five read-only document review prompts ship in pkg/ai/prompt/builtin, and local prompts with the same name shadow them.
Adds permissions explain and permissions convert commands. JSON/YAML null on schema fields now clears them explicitly.
With saved defaults, a missing token budget stays unset so the runtime applies its own default.
Add a portable access level (--access read-only|full, permissions.access) that compiles per runtime into native posture: tool denies on claude, a read-only sandbox that never asks on codex, and plan mode on gemini. Add `captain permissions explain` to show the compiled posture per runtime, and `captain permissions convert` to rewrite a permissions block into the portable form, refusing any conversion that would loosen access.

Ship the document review prompts as a read-only built-in source. A user copy in the config prompts directory shadows a built-in of the same name instead of making the name ambiguous. Expose --preset, --no-presets, --runtime-profile and --vars on prompt commands, and route prompt runs through a shared PromptInvocation so the CLI and HTTP paths resolve prompts the same way.

BREAKING CHANGE: an unset max-tokens no longer defaults to a built-in 4096. It is left to the runtime's own default (0 = runtime default), so output length can change for prompts with no saved or frontmatter value.
Ship reviewer prompts that Captain resolves by name through the new prompt.Builtin embed FS, so users can lint internal and public high-level and low-level specs and RFP proposals without copying prompt files into their repositories.

Each prompt is read-only, runs with a 30-turn budget, and reports violations against a fixed rule catalog. Shared rule ids (req/, doc/) keep findings consistent across document types, and audience-specific ids cover internal and public concerns.
Authors can state read-only workspace access once with permissions.access. CompileAccess
lowers it to each runtime's native dialect: per-tool denies on claude, a read-only sandbox
with approval never on codex, and the plan approval mode on gemini.

Layers resolve in order through ResolveAccessState, so a later layer can lift a read-only
intent to full. A runtime that cannot reach the posture is refused rather than silently
loosened, for example codex with the sandbox off or looser raw cmux flags. Fallback
candidates are compiled and validated as they will run, so an unreachable fallback fails
before the primary does.

ConvertToAccess rewrites dialect-specific denies or sandboxes into the portable form only
when the result is equivalent or tighter.

Fallback substitution keeps the original runtime before crossing providers, so an agent is
not moved to API mode and left without its tools. SpecLayer gains an Order field that sorts
before scope. The YAML marshaller no longer re-emits raw opaque fields.

BREAKING CHANGE: saved-spec resolution no longer defaults budget.maxTokens to 4096. The
runtime now chooses the value, so callers that relied on 4096 must set it explicitly.
… worktree workspaces

Wrap every provider candidate, primary and fallbacks, in an access decorator so permissions.access read-only is compiled for the runtime that candidate actually runs on. A fallback in another family now receives its own dialect instead of the primary's.

Explicitly supplied directories that are linked worktrees are recorded in the run workspace before the first turn, so active runs show their workspace while running. Detached HEAD is recorded as no branch. Active runs started before this change are reconciled without altering their execution state.

Runtime presets gain a sort_order column and a Lint built-in preset is added. Config home resolution moves to captainconfig.Home.
Codex execpolicy rules run matching commands outside the sandbox, even under a read-only sandbox with approval never. A user rule such as prefix_rule(["git","add"], decision="allow") could let a read-only run write the git index. `codex exec` can skip rules with --ignore-rules, but the app-server and TUI cannot.

Read-only runs for those modes now start in a captain-managed CODEX_HOME under captain's config directory. It links only auth.json, config.toml and AGENTS.md from the user's home, so it carries no rules. Runs refuse a project .codex/rules layer that allows commands, because the isolated home cannot hide project rules. Session discovery now also scans the isolated home so its rollouts remain visible.

BREAKING CHANGE: read-only runs fail when project execpolicy rules allow commands, and when the isolated home contains a rules directory.
…to the run's thread

Execpolicy allow rules could run commands outside the sandbox even under read-only, so read-only runs now start in an isolated CODEX_HOME and pass --ignore-rules.
A codex process cannot change CODEX_HOME, so a session refuses a turn that needs a different home. Notifications from sub-agent threads are dropped so they no longer replace the run's session id or end its turn.
…ead-only runs

Claude's tool denies do not follow sub-agents, teams, peer messages, crons or worktrees the agent creates, so read-only runs could still write through them. Those tools are now denied, while read-only listing tools stay allowed.
Codex execpolicy allow rules run commands outside the read-only sandbox. `codex exec` now passes --ignore-rules, and the app-server and cmux TUI start in an isolated CODEX_HOME without user rules.
BREAKING CHANGE: read-only codex runs are refused when project rules in the tree allow a command, and read-only Claude runs lose the newly listed tools.
Append the prompt source search paths to human-readable output of prompt list, so users can see where prompts are loaded from. JSON, YAML, and file exports are unchanged.
Replace the shared help for prompt subcommands with command-specific help that includes descriptions, examples, and usage. The root prompt help gains a Help and output section covering color, NO_COLOR, --json, and agent-session Markdown.
The help text now states that permissions.tools 'ask' is not enforced by native tool filters and that per-call approval goes through the broker. The sample prompt's Edit tool policy changes from ask to allow to match this.
Read-only codex runs write rollouts under captain's isolated CODEX_HOME, which the monitor did not watch or accept, so those transcripts were never ingested.
Watch day directories and resolve threads across both codex session roots.
Accept transcript paths under any provider root, and validate ingest paths against all of them.
Bring the docs site in line with the current prompt runtime and CLI.

- Add a Prompt CLI page covering discovery, authoring, render/run/observe, and help and color behavior.
- Document portable permissions.access (read-only/full), how it compiles per runtime, and the codex execpolicy handling.
- Replace runtimeProfile with presets and --preset, and add the Lint built-in preset.
- Update approvals for the broker's OnRunState hook and Deadline, and the read-only escalation rules.
- Add reference pages for Sandboxes, Configuration, Serve, Sessions, and Fixtures, and move them out of the placeholder section.
- Rewrite the Gavel TODO docs around the PostgreSQL-backed lifecycle, durable plans, and fixture verification.
- Correct the prompt API path to /api/v1/prompt and the prompt schema examples to typed variables and model/mode fields.

BREAKING CHANGE: runtimeProfile and --runtime-profile are deprecated and ignored; use presets in frontmatter or --preset instead.
Shorten the root README to an overview, quick start, prompt authoring, verification, and a command map. Detailed reference material (fixtures, sandbox credentials, git-agent deployment, whoami and configure details) moves to the docs site.

Update the runtimeprofiles README to the preset model. RequestedProfile, PinnedProfile, DefaultProfile, the prompt runtimeProfile field and --runtime-profile are deprecated in favor of RequestedPresets, frontmatter presets and --preset.

Mark the unified approval callback plans as historical design records that point to the current approvals guide.

Fix the DeepSeek attachment example to pass the prompt with -p, matching the current CLI.
Move the promptfile lint command into the rootcmd package; main.go referenced
a symbol from a sibling file, breaking the standalone entrypoint spec. Also
discard the unused String() result flagged by go vet in the version spec.
… catalog

Expose native provider configuration, reusable resource definitions and Captain portable and backend configuration alongside the execution schemas. Each catalog document gains a stable id and kind. Execution modes and existing URLs are unchanged.

Add a stateless POST /api/captain/ai/adapter-schemas/validate endpoint. It compiles local references only and returns instancePath and schemaPath errors without resolving, executing or persisting anything.

Generated OpenAI agent request types move to OpenAIAgentOptions* names, and union fields keep their JSON marshaling. Form annotations (help links, enum labels and icons, typed JSON editors) are generated from pinned sources by hack/adapterresources.

BREAKING CHANGE: GET adapter-schemas now also returns resource documents. Clients must key on id and kind rather than assuming a provider/mode pair. Go types ThreadStart, ThreadResume and TurnStart are renamed to OpenAIAgentOptionsThreadStart, OpenAIAgentOptionsThreadResume and OpenAIAgentOptionsTurnStart.

Claude-Session-Id: b00416a9-facd-49f8-9bc6-cd4ef7eba6b4
…w UI

Add POST /api/captain/ai/adapter-schemas/validate to check a preview value against an embedded schema without executing or saving it.

The schema page gains form, JSON, and YAML views with local drafts, resource search, and provenance links. Catalog entries now include id and kind, and mode is optional for portable resources.

BREAKING CHANGE: unknown provider/mode routes under /adapter-schemas now show an error instead of falling back to the first schema.

Claude-Session-Id: b00416a9-facd-49f8-9bc6-cd4ef7eba6b4
Prompts can now declare a `tools` mapping in frontmatter. Each tool runs its `exec` script with the tool input as JSON on stdin and returns stdout to the model, or parsed JSON when an output schema is set. Captain previously rejected dotprompt's list of registered tool names, so prompts had no way to ship their own tools.

Scripts run through the commons-db shell runner and inherit the run's setup (dotenv, env vars, connections), with per-tool values layered on top. Timeouts kill the whole process group. Retry supports backoff and exit-code filters. The readonly and destructive hints set the default permission, and toolPolicy still governs tools by name.

Inline tools are validated at parse and lint time: names, exec, hint conflicts, schemas, and a warning for retried destructive tools. Runs that would bypass the runner (chat launch, supplied providers) refuse them instead of silently dropping them.

Also included: symlinked prompt directories in local sources, self-contained draft renders, and CLI completion for fallback models, presets, sandboxes, and permission modes.

Claude-Session-Id: b00416a9-facd-49f8-9bc6-cd4ef7eba6b4
… launch API

Chat turns (mode "chat") settle their runs without ending their sessions: the chat outlives a turn and awaits the next message, so migration 84 keeps its sessions running and idle between turns. The chat writes their terminal lifecycle itself when it ends (cancelled if stopped, failed on error, otherwise as its last run ended), so a follower can hold one stream open across turns.

Add LaunchPrompt, AwaitPromptRun and StopPromptRun so Go callers can start an async prompt run, await its summary and stop it through the same broker the HTTP handler uses. PromptInvocation.Tools exposes caller tools to the agent on every runtime; runtimes that cannot expose them (CLI-only, chat, observe) are rejected instead of silently dropping them.

Local prompt sources now resolve read-only symlinked prompt files and immediate linked directories, reporting broken links and cycles.

Transcript messages are projected through the shared session.ConversationalMessages in ingestion, session read and live follow, so all three assign the same ids and a follow resumes after the read's newest message.

BREAKING CHANGE: a chat's sessions no longer go terminal after each turn; they stay running and idle until the chat ends, so clients that treated a settled chat turn as session completion must wait for the chat's end.

Claude-Session-Id: b00416a9-facd-49f8-9bc6-cd4ef7eba6b4
… SDK folds them into one result

Previously a turn counted prompts and expected one SDK result per prompt. The SDK folds prompts steered mid-turn into the running turn and reports them together in user_message_uuids, so a single result can settle several prompts and the count never reached zero.

Each prompt now carries a uuid and is tracked until a result names it. The turn ends on the idle that follows once every prompt it sent is settled. A steer the bridge rejects is withdrawn, so it cannot hold the turn open. An SDK query-loop error aborts the turn immediately.

Bridge protocol is bumped to v5 (prompt uuid, consumed uuids on turn/completed).

The logging middleware also logs rejected replies at debug level, since parse errors name only the first bad byte.

Claude-Session-Id: b00416a9-facd-49f8-9bc6-cd4ef7eba6b4
…t rendering

Document prompt lookup locations in root and prompt list help, and render unsaved drafts without a saved id.
Linked prompts are now read-only: update, delete, and create-in-place refuse them and symlinked destinations.
Caller tools are appended to every runtime variant, failing fast on runtimes that cannot expose them.
`prompt run --vars` derives its schema from the prompt's input schema and defaults.
BREAKING CHANGE: updating or deleting a prompt reached through a symlink now fails instead of writing through it.

Claude-Session-Id: b00416a9-facd-49f8-9bc6-cd4ef7eba6b4
Add history.FindTranscripts, an mtime-filtered discovery over Claude and
codex transcripts that stats files without opening them. Backfill now
scans transcripts modified since 24h before the newest ingested one, with
a full scan when nothing is ingested yet or the parser version changed,
and runs the auto-review header read only on files within that window.

Claude-Session-Id: 7bdc450f-69f4-481d-a1b9-591c3eee5f2b
…ive summary

Prompt runs only exposed their session id in the run frame and log, so task views could not link a run to its session or show its state.

Tasks and run-owning groups now carry a captain SessionRef with a summary folded from the run stream: model, context window, tool-call count and the latest part.

A registered session source lets /tasks/stream relay a named session's entries and state without each client opening its own follow.

PermissionCatalogHandler is exported so hosts can mount the catalog, and AIPromptOptions.Spec lets in-process callers layer a typed request beneath explicit flags.
Promote Claude Fable 5.2 as the preferred Fable model and keep 5.1 available as a non-preferred predecessor with its existing pricing.
Add Gemini Pro Latest and align DeepSeek context windows to the 1,048,576-token limit.
Update conformance and resolution expectations to the new registry defaults.
Stored and live verification reports now render in a per-iteration Verification tab instead of a standalone panel under the transcript. Live reports replace only their matching iteration, so earlier stored results stay visible. Rebuilt webapp dist assets to match.

Claude-Session-Id: 01a1cb54-9717-7c83-9636-a73169d81f9e
…s to v1.64.1

Claude-Session-Id: 754971f0-98ba-4fb1-bae2-399104179627
@moshloop
moshloop force-pushed the feat/transcripts-modified-since branch from fac550a to 80cfe9a Compare November 12, 2026 07:56
…ed lookup source

Claude-Session-Id: 754971f0-98ba-4fb1-bae2-399104179627
…r tests keep parallel workers and logs

Claude-Session-Id: 754971f0-98ba-4fb1-bae2-399104179627
…, static tables and Markdown escaping

Claude-Session-Id: 754971f0-98ba-4fb1-bae2-399104179627
Claude-Session-Id: 754971f0-98ba-4fb1-bae2-399104179627
… lists join items with one

Claude-Session-Id: 754971f0-98ba-4fb1-bae2-399104179627
…enial, native genkit constraints, Lint preset, provider-root messages and RemoteExecOptions

Claude-Session-Id: 754971f0-98ba-4fb1-bae2-399104179627
@github-actions

github-actions Bot commented Nov 12, 2026 •

Copy link
Copy Markdown

Gavel summary

Source Pass Fail Skip Duration
adapters 20 0 0 1.6s
agent 11 0 0 5ms
agentbrowser 38 0 0 14ms
agentcreds 11 0 0 810.45µs
agentsandbox 5 0 0 8ms
ai 130 0 0 79ms
aichat 147 0 2 59.9s
aiflags 38 0 0 14ms
anthropicmock 1 0 0 1ms
api 700 0 0 514ms
approval 81 0 0 9.3s
assistanttags 9 0 0 843.562µs
attachments 5 0 0 9ms
bash 9 0 0 243ms
cache 11 0 0 322ms
callertools 27 0 0 3.1s
captain 46 0 0 15.7s
captainconfig 4 0 0 543.048µs
claude 27 0 0 16ms
claudeagent 85 0 0 1.7s
claudeconfig 7 0 0 4ms
cli 723 0 0 1m17s
cmux 19 0 0 29ms
codexconfig 15 0 0 20ms
codexhome 10 0 0 18ms
collections 12 0 0 395.688µs
commit 7 0 0 672ms
compattest 1 0 0 1m13s
credentials 5 0 0 29ms
credsync 11 0 0 149ms
database 110 0 0 2m35s
deliver 15 0 0 2.0s
deploy 110 0 0 282ms
exectool 43 0 0 1.0s
genkit 58 0 0 526ms
gitagent 147 0 0 20.9s
github.com/flanksource/captain/migrations 11 0 0 4.5s
github.com/flanksource/captain/pkg/ai 255 0 0 810ms
github.com/flanksource/captain/pkg/ai/agent 27 0 0 450ms
github.com/flanksource/captain/pkg/ai/agent/commit 57 0 0 6.2s
github.com/flanksource/captain/pkg/ai/agent/setup 24 0 0 500ms
github.com/flanksource/captain/pkg/ai/agent/verify 36 0 0 380ms
github.com/flanksource/captain/pkg/ai/agent/worktree 6 0 0 -
github.com/flanksource/captain/pkg/ai/assistanttags 15 0 0 -
github.com/flanksource/captain/pkg/ai/fixture 43 0 0 260ms
github.com/flanksource/captain/pkg/ai/fixture/mcpproxy 6 0 0 -
github.com/flanksource/captain/pkg/ai/history 54 0 0 -
github.com/flanksource/captain/pkg/ai/internal/gen-model-registry 12 0 0 -
github.com/flanksource/captain/pkg/ai/middleware 34 0 0 50ms
github.com/flanksource/captain/pkg/ai/observation 3 0 0 -
github.com/flanksource/captain/pkg/ai/pricing 9 0 0 -
github.com/flanksource/captain/pkg/ai/prompt 29 0 0 30ms
github.com/flanksource/captain/pkg/ai/provider 183 0 1 10ms
github.com/flanksource/captain/pkg/ai/provider/claudeagent 61 0 0 2.2s
github.com/flanksource/captain/pkg/ai/provider/cmux 140 0 0 860ms
github.com/flanksource/captain/pkg/ai/provider/genkit 40 0 0 -
github.com/flanksource/captain/pkg/ai/provider/jsonrpc 6 0 0 50ms
github.com/flanksource/captain/pkg/ai/provider/openai 8 0 0 20ms
github.com/flanksource/captain/pkg/aichat 5 0 0 100ms
github.com/flanksource/captain/pkg/aiflags 9 0 0 -
github.com/flanksource/captain/pkg/aimock 50 0 7 270ms
github.com/flanksource/captain/pkg/aimock/anthropicmock 14 0 0 10ms
github.com/flanksource/captain/pkg/aimock/openaimock 18 0 0 60ms
github.com/flanksource/captain/pkg/api 152 0 0 4.3s
github.com/flanksource/captain/pkg/api/registry 134 0 0 20ms
github.com/flanksource/captain/pkg/bash 348 0 0 10ms
github.com/flanksource/captain/pkg/budgets 1 0 0 -
github.com/flanksource/captain/pkg/captainconfig 29 0 0 -
github.com/flanksource/captain/pkg/captaintoken 23 0 0 1.6s
github.com/flanksource/captain/pkg/claude 139 0 0 10ms
github.com/flanksource/captain/pkg/claude/tools 18 0 0 -
github.com/flanksource/captain/pkg/cli 857 0 1 1m24s
github.com/flanksource/captain/pkg/cmux 1 0 0 -
github.com/flanksource/captain/pkg/codexconfig 10 0 0 -
github.com/flanksource/captain/pkg/container 72 0 1 -
github.com/flanksource/captain/pkg/credproxy 23 0 0 50ms
github.com/flanksource/captain/pkg/credproxy/kubeproxy 3 0 0 50ms
github.com/flanksource/captain/pkg/database 154 0 0 48.1s
github.com/flanksource/captain/pkg/gitagent 31 0 0 510ms
github.com/flanksource/captain/pkg/monitor 73 0 0 8.7s
github.com/flanksource/captain/pkg/promptrun/remoterun 18 0 0 -
github.com/flanksource/captain/pkg/sandbox 13 0 0 -
github.com/flanksource/captain/pkg/sandbox/adapter 41 0 0 -
github.com/flanksource/captain/pkg/sandbox/presets 13 0 0 -
github.com/flanksource/captain/pkg/sandbox/substraterun 43 0 0 5.8s
github.com/flanksource/captain/pkg/session 70 0 0 10ms
github.com/flanksource/captain/pkg/substrate 31 0 4 2.6s
history 91 0 0 263ms
hookaction 16 0 0 3ms
jev 12 0 0 14ms
jsonl 6 0 0 80ms
load 60 0 0 7ms
middleware 39 0 0 174ms
migrations 51 0 0 34.6s
monitor 42 0 0 11.4s
openai 3 0 0 8ms
openaimock 2 0 0 169.945µs
plans 35 0 0 17.4s
process 25 0 0 32ms
prompt 109 0 0 126ms
promptcontext 16 0 0 8ms
promptfile 14 0 0 280ms
promptrun 198 0 0 40.5s
provider 127 0 0 73ms
query 52 0 0 10.5s
registry 133 0 0 7ms
runtimeprofiles 80 0 0 3.9s
session 59 0 0 46ms
sessiontree 15 0 0 573ms
setup 10 0 0 1.5s
tokens 5 0 0 704.099µs
tools 73 0 0 9ms
transcript 6 0 0 13ms
verify 43 0 0 546ms

Totals: 7472 passed · 0 failed · 16 skipped · 11m59s

View full results

… runnable golangci-lint

Claude-Session-Id: 754971f0-98ba-4fb1-bae2-399104179627
… leaves unescaped

Claude-Session-Id: 754971f0-98ba-4fb1-bae2-399104179627
…te directory at the read

Claude-Session-Id: 754971f0-98ba-4fb1-bae2-399104179627
Comment thread pkg/gitagent/tunnel.go Fixed
The presentation contract requires a title and x-help link on every node; the
hand-authored bash/api schema had neither, which the embedded-catalog spec
reports once the catalog loads again. Register bash's docs with the execution
annotator so regeneration keeps them.
…m to the schemas branch

resourceSchemas() read pkg/adapters/resources/anthropic.json, a 1.3 MB snapshot
that .gitignore keeps out of the repository, so Schemas() failed and every
catalog, validation and serve spec failed on CI.

Native provider resources (OpenAI, Anthropic, Google) are no longer committed
or embedded. A new Adapter schemas workflow captures the pinned sources (Claude
Agent SDK declarations via ts-json-schema-generator, Codex and Gemini release
schemas), applies the declarative JSON Patch layer in
hack/adapterresources/patches, projects the catalog via
adapters.NativeResourceSchemas, checks it with the adapterresources-tagged
specs, and on main publishes it to the orphan schemas branch.

The web UI loads native resources from
raw.githubusercontent.com/flanksource/captain/schemas/adapters/native-resources.json
beside the embedded catalog, reporting the URL when that fails. Validation
carries a published document's schema; external refs are never loaded.
…end git options before it

Claude-Session-Id: 754971f0-98ba-4fb1-bae2-399104179627
… into feat/transcripts-modified-since-schemas
…not a bare EOF

Claude-Session-Id: 754971f0-98ba-4fb1-bae2-399104179627
…in so Close does not fail on a never-used connection

Claude-Session-Id: 754971f0-98ba-4fb1-bae2-399104179627
@moshloop
moshloop merged commit aaf3ca3 into main Nov 12, 2026
14 checks passed
@moshloop
moshloop deleted the feat/transcripts-modified-since branch November 12, 2026 16:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants