@wardby/cli 0.5.3 → 0.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.env.example +33 -0
- package/README.md +25 -14
- package/dist/claude-coding-worker/context.d.ts +22 -0
- package/dist/claude-coding-worker/context.js +92 -0
- package/dist/claude-coding-worker/driver.d.ts +7 -1
- package/dist/claude-coding-worker/driver.js +38 -5
- package/dist/claude-coding-worker/sdk.js +13 -4
- package/dist/cli-help.d.ts +1 -1
- package/dist/cli-help.js +5 -2
- package/dist/cli-native-mode.d.ts +9 -0
- package/dist/cli-native-mode.js +20 -0
- package/dist/cli.d.ts +3 -1
- package/dist/cli.js +141 -5
- package/dist/coding/claude-context.d.ts +45 -0
- package/dist/coding/claude-context.js +434 -0
- package/dist/coding/profile.d.ts +12 -0
- package/dist/coding/profile.js +6 -0
- package/dist/coding/protocol.d.ts +104 -0
- package/dist/coding/protocol.js +87 -3
- package/dist/coding-worker/artifact.d.ts +8 -0
- package/dist/coding-worker/artifact.js +2 -2
- package/dist/coding-worker/driver.js +2 -0
- package/dist/coding-worker/sdk.d.ts +6 -0
- package/dist/coding-worker/sdk.js +1 -0
- package/dist/coding-worker/skills.d.ts +23 -0
- package/dist/coding-worker/skills.js +117 -0
- package/dist/coding-worker/types.d.ts +2 -0
- package/dist/config/github-allowed-accounts.d.ts +15 -0
- package/dist/config/github-allowed-accounts.js +36 -0
- package/dist/config/low-power.d.ts +12 -0
- package/dist/config/low-power.js +18 -0
- package/dist/config/mobile.d.ts +12 -0
- package/dist/config/mobile.js +18 -0
- package/dist/config/providers.d.ts +53 -0
- package/dist/config/providers.js +92 -6
- package/dist/core/db.d.ts +16 -6
- package/dist/core/db.js +12 -10
- package/dist/core/dispatch.d.ts +11 -0
- package/dist/core/dispatch.js +36 -1
- package/dist/core/engine-native.js +9 -5
- package/dist/core/host-events.d.ts +49 -3
- package/dist/core/host-events.js +289 -15
- package/dist/core/issue-bridge.js +42 -2
- package/dist/core/issue-events.js +12 -1
- package/dist/core/issue-status.js +14 -3
- package/dist/core/merge-order-check.d.ts +129 -0
- package/dist/core/merge-order-check.js +336 -0
- package/dist/core/notification-dispatcher.d.ts +70 -0
- package/dist/core/notification-dispatcher.js +368 -0
- package/dist/core/notification-templates.d.ts +25 -0
- package/dist/core/notification-templates.js +105 -0
- package/dist/core/notifications.d.ts +10 -0
- package/dist/core/notifications.js +38 -0
- package/dist/core/pg-auth.d.ts +22 -0
- package/dist/core/pg-auth.js +152 -0
- package/dist/core/power-composition.d.ts +16 -0
- package/dist/core/power-composition.js +37 -0
- package/dist/core/power-idle.d.ts +14 -0
- package/dist/core/power-idle.js +30 -0
- package/dist/core/power.d.ts +71 -0
- package/dist/core/power.js +202 -0
- package/dist/core/reconciler.d.ts +4 -2
- package/dist/core/reconciler.js +29 -5
- package/dist/core/related-pull-requests.d.ts +48 -4
- package/dist/core/related-pull-requests.js +113 -11
- package/dist/core/repo-access.d.ts +15 -0
- package/dist/core/repo-access.js +66 -0
- package/dist/core/review-fix.d.ts +37 -0
- package/dist/core/review-fix.js +207 -6
- package/dist/core/review-host-tools.d.ts +20 -0
- package/dist/core/review-host-tools.js +58 -2
- package/dist/core/runner.d.ts +336 -3
- package/dist/core/runner.js +894 -317
- package/dist/core/secret-broker-config.d.ts +103 -0
- package/dist/core/secret-broker-config.js +112 -0
- package/dist/core/secrets.d.ts +39 -4
- package/dist/core/secrets.js +148 -40
- package/dist/core/workflow-event-recorder.d.ts +14 -0
- package/dist/core/workflow-event-recorder.js +120 -0
- package/dist/core/workflow-events.d.ts +82 -0
- package/dist/core/workflow-events.js +44 -0
- package/dist/core/workflow-run-events.d.ts +16 -0
- package/dist/core/workflow-run-events.js +40 -0
- package/dist/generated/prisma/browser.d.ts +58 -0
- package/dist/generated/prisma/client.d.ts +58 -0
- package/dist/generated/prisma/commonInputTypes.d.ts +150 -0
- package/dist/generated/prisma/enums.d.ts +27 -0
- package/dist/generated/prisma/enums.js +23 -0
- package/dist/generated/prisma/internal/class.d.ts +88 -0
- package/dist/generated/prisma/internal/class.js +4 -4
- package/dist/generated/prisma/internal/prismaNamespace.d.ts +772 -1
- package/dist/generated/prisma/internal/prismaNamespace.js +135 -4
- package/dist/generated/prisma/internal/prismaNamespaceBrowser.d.ts +139 -0
- package/dist/generated/prisma/internal/prismaNamespaceBrowser.js +135 -4
- package/dist/generated/prisma/models/Agent.d.ts +360 -1
- package/dist/generated/prisma/models/CodingAgentProfile.d.ts +73 -1
- package/dist/generated/prisma/models/CodingRun.d.ts +205 -1
- package/dist/generated/prisma/models/DeferredReview.d.ts +78 -1
- package/dist/generated/prisma/models/NativeGatewayCall.d.ts +1675 -0
- package/dist/generated/prisma/models/NativeGatewayCall.js +1 -0
- package/dist/generated/prisma/models/NativeGatewaySession.d.ts +1517 -0
- package/dist/generated/prisma/models/NativeGatewaySession.js +1 -0
- package/dist/generated/prisma/models/NativeWarmWorker.d.ts +1296 -0
- package/dist/generated/prisma/models/NativeWarmWorker.js +1 -0
- package/dist/generated/prisma/models/NotificationChannel.d.ts +1543 -0
- package/dist/generated/prisma/models/NotificationChannel.js +1 -0
- package/dist/generated/prisma/models/NotificationDelivery.d.ts +1502 -0
- package/dist/generated/prisma/models/NotificationDelivery.js +1 -0
- package/dist/generated/prisma/models/NotificationThread.d.ts +1090 -0
- package/dist/generated/prisma/models/NotificationThread.js +1 -0
- package/dist/generated/prisma/models/Run.d.ts +826 -1
- package/dist/generated/prisma/models/RunHostCheck.d.ts +36 -1
- package/dist/generated/prisma/models/Secret.d.ts +37 -1
- package/dist/generated/prisma/models/SecretBrokerChange.d.ts +1101 -0
- package/dist/generated/prisma/models/SecretBrokerChange.js +1 -0
- package/dist/generated/prisma/models/WorkflowEvent.d.ts +1422 -0
- package/dist/generated/prisma/models/WorkflowEvent.js +1 -0
- package/dist/generated/prisma/models.d.ts +8 -0
- package/dist/help/build.js +4 -2
- package/dist/help/catalog.d.ts +1 -1
- package/dist/help/catalog.js +31 -6
- package/dist/help-index.json +1363 -176
- package/dist/import/create.js +17 -0
- package/dist/import/neutral-schema.d.ts +6 -2
- package/dist/import/neutral-schema.js +2 -0
- package/dist/mcp/auth/access.d.ts +1 -0
- package/dist/mcp/auth/repo-authorization.js +14 -0
- package/dist/mcp/auth/resource-server.d.ts +2 -1
- package/dist/mcp/auth/resource-server.js +7 -2
- package/dist/mcp/auth/self-hosted/browser.d.ts +1 -1
- package/dist/mcp/auth/self-hosted/browser.js +19 -6
- package/dist/mcp/context.d.ts +6 -0
- package/dist/mcp/host-events/github-ingress.d.ts +23 -1
- package/dist/mcp/host-events/github-ingress.js +68 -0
- package/dist/mcp/index.d.ts +13 -0
- package/dist/mcp/index.js +59 -10
- package/dist/mcp/tools/agents.js +82 -11
- package/dist/mcp/tools/notification-channels.d.ts +2 -0
- package/dist/mcp/tools/notification-channels.js +293 -0
- package/dist/mcp/tools/power.d.ts +2 -0
- package/dist/mcp/tools/power.js +77 -0
- package/dist/mcp/tools/runs.d.ts +0 -6
- package/dist/mcp/tools/runs.js +7 -2
- package/dist/mcp/tools/secret-broker-compat.d.ts +12 -0
- package/dist/mcp/tools/secret-broker-compat.js +23 -0
- package/dist/mcp/tools/secret-elicitation-form.d.ts +22 -2
- package/dist/mcp/tools/secret-elicitation-form.js +200 -10
- package/dist/mcp/tools/secret-elicitation-server.js +8 -1
- package/dist/mcp/tools/secret-elicitation.d.ts +38 -3
- package/dist/mcp/tools/secret-elicitation.js +110 -12
- package/dist/mcp/tools/secrets.js +184 -7
- package/dist/mcp/tools/tools.d.ts +1 -1
- package/dist/mcp/tools/tools.js +22 -2
- package/dist/native-worker/composition.d.ts +23 -0
- package/dist/native-worker/composition.js +77 -0
- package/dist/native-worker/docker-isolation.d.ts +65 -0
- package/dist/native-worker/docker-isolation.js +183 -0
- package/dist/native-worker/docker-launcher.d.ts +74 -0
- package/dist/native-worker/docker-launcher.js +237 -0
- package/dist/native-worker/gateway-server.d.ts +39 -0
- package/dist/native-worker/gateway-server.js +315 -0
- package/dist/native-worker/gateway.d.ts +44 -0
- package/dist/native-worker/gateway.js +197 -0
- package/dist/native-worker/http-server.d.ts +22 -0
- package/dist/native-worker/http-server.js +109 -0
- package/dist/native-worker/http-transport.d.ts +17 -0
- package/dist/native-worker/http-transport.js +88 -0
- package/dist/native-worker/kubernetes-isolation.d.ts +90 -0
- package/dist/native-worker/kubernetes-isolation.js +218 -0
- package/dist/native-worker/kubernetes-launcher.d.ts +102 -0
- package/dist/native-worker/kubernetes-launcher.js +335 -0
- package/dist/native-worker/launch.d.ts +45 -0
- package/dist/native-worker/launch.js +44 -0
- package/dist/native-worker/ledger.d.ts +109 -0
- package/dist/native-worker/ledger.js +192 -0
- package/dist/native-worker/loopback.d.ts +12 -0
- package/dist/native-worker/loopback.js +49 -0
- package/dist/native-worker/main.d.ts +7 -0
- package/dist/native-worker/main.js +74 -0
- package/dist/native-worker/protocol.d.ts +744 -0
- package/dist/native-worker/protocol.js +200 -0
- package/dist/native-worker/sandbox-executor.d.ts +68 -0
- package/dist/native-worker/sandbox-executor.js +210 -0
- package/dist/native-worker/stdio.d.ts +29 -0
- package/dist/native-worker/stdio.js +188 -0
- package/dist/native-worker/warm-delivery.d.ts +16 -0
- package/dist/native-worker/warm-delivery.js +33 -0
- package/dist/native-worker/warm-pool-ledger.d.ts +39 -0
- package/dist/native-worker/warm-pool-ledger.js +73 -0
- package/dist/native-worker/warm-pool.d.ts +107 -0
- package/dist/native-worker/warm-pool.js +283 -0
- package/dist/native-worker/worker.d.ts +17 -0
- package/dist/native-worker/worker.js +115 -0
- package/dist/providers/auth/authorization-server.d.ts +3 -0
- package/dist/providers/auth/index.js +2 -0
- package/dist/providers/auth/self-hosted.d.ts +13 -1
- package/dist/providers/auth/self-hosted.js +54 -4
- package/dist/providers/chat/fake.d.ts +46 -0
- package/dist/providers/chat/fake.js +39 -0
- package/dist/providers/chat/index.d.ts +4 -0
- package/dist/providers/chat/index.js +8 -0
- package/dist/providers/chat/slack.d.ts +37 -0
- package/dist/providers/chat/slack.js +105 -0
- package/dist/providers/chat/types.d.ts +42 -0
- package/dist/providers/chat/types.js +19 -0
- package/dist/providers/engine/types.d.ts +19 -0
- package/dist/providers/engine/types.js +22 -0
- package/dist/providers/executor/composition.d.ts +24 -1
- package/dist/providers/executor/composition.js +39 -6
- package/dist/providers/executor/container.d.ts +24 -1
- package/dist/providers/executor/container.js +101 -11
- package/dist/providers/executor/dbos.d.ts +42 -0
- package/dist/providers/executor/dbos.js +118 -12
- package/dist/providers/executor/deferred.d.ts +56 -0
- package/dist/providers/executor/deferred.js +119 -0
- package/dist/providers/executor/routing.d.ts +37 -10
- package/dist/providers/executor/routing.js +73 -32
- package/dist/providers/executor/types.d.ts +12 -0
- package/dist/providers/jobs/docker.js +3 -3
- package/dist/providers/jobs/fake-kubernetes-api.d.ts +21 -2
- package/dist/providers/jobs/fake-kubernetes-api.js +42 -1
- package/dist/providers/jobs/kubernetes-api.d.ts +17 -1
- package/dist/providers/jobs/kubernetes-api.js +7 -0
- package/dist/providers/jobs/kubernetes-client.d.ts +10 -1
- package/dist/providers/jobs/kubernetes-client.js +52 -3
- package/dist/providers/jobs/kubernetes-dry-run-fixture.d.ts +6 -1
- package/dist/providers/jobs/kubernetes-dry-run-fixture.js +6 -3
- package/dist/providers/jobs/kubernetes-isolation.d.ts +3 -1
- package/dist/providers/jobs/kubernetes-isolation.js +6 -0
- package/dist/providers/jobs/kubernetes-platform.d.ts +4 -1
- package/dist/providers/jobs/kubernetes-platform.js +38 -1
- package/dist/providers/jobs/kubernetes-preflight.d.ts +2 -1
- package/dist/providers/jobs/kubernetes-preflight.js +4 -2
- package/dist/providers/jobs/kubernetes.d.ts +36 -1
- package/dist/providers/jobs/kubernetes.js +74 -4
- package/dist/providers/jobs/metadata-probes.d.ts +11 -0
- package/dist/providers/jobs/metadata-probes.js +13 -0
- package/dist/providers/jobs/types.d.ts +9 -0
- package/dist/providers/review-host/github.d.ts +11 -1
- package/dist/providers/review-host/github.js +50 -0
- package/dist/providers/review-host/types.d.ts +23 -0
- package/dist/providers/vcs/github.d.ts +32 -6
- package/dist/providers/vcs/github.js +74 -16
- package/dist/quickstart/coding-seed.d.ts +10 -3
- package/dist/quickstart/coding-seed.js +74 -3
- package/dist/quickstart/images.d.ts +2 -0
- package/dist/quickstart/images.js +7 -1
- package/dist/quickstart/reviewer-prompt.d.ts +1 -1
- package/dist/quickstart/reviewer-prompt.js +1 -1
- package/dist/quickstart-images.json +1 -1
- package/dist/sandbox/brokered-fetch.d.ts +23 -0
- package/dist/sandbox/brokered-fetch.js +37 -0
- package/dist/sandbox/host-functions.d.ts +34 -0
- package/dist/sandbox/host-functions.js +144 -80
- package/dist/sandbox/prelude.js +7 -1
- package/dist/sandbox/run-in-sandbox.d.ts +19 -0
- package/dist/sandbox/run-in-sandbox.js +28 -10
- package/dist/sandbox/safe-fetch.d.ts +2 -0
- package/dist/sandbox/safe-fetch.js +3 -1
- package/dist/sandbox/secret-broker-sigv4.d.ts +2 -0
- package/dist/sandbox/secret-broker-sigv4.js +49 -0
- package/dist/sandbox/secret-broker.d.ts +34 -0
- package/dist/sandbox/secret-broker.js +162 -0
- package/dist/sandbox/user-tool.d.ts +14 -0
- package/dist/sandbox/user-tool.js +32 -0
- package/dist/serve.js +18 -0
- package/dist/viewer/api-schema.d.ts +210 -14
- package/dist/viewer/api-schema.js +22 -0
- package/dist/viewer/build-schemas.js +4 -1
- package/dist/viewer/event-bus.d.ts +6 -0
- package/dist/viewer/event-bus.js +16 -7
- package/dist/viewer/graph.d.ts +5 -2
- package/dist/viewer/graph.js +7 -2
- package/dist/viewer/http.d.ts +0 -1
- package/dist/viewer/http.js +2 -2
- package/dist/viewer/infra.js +25 -2
- package/dist/viewer/limits.d.ts +4 -0
- package/dist/viewer/limits.js +4 -0
- package/dist/viewer/openapi.d.ts +15 -0
- package/dist/viewer/openapi.js +172 -0
- package/docs/README.md +7 -0
- package/docs/agent-recipes.md +57 -8
- package/docs/architecture-runtime.md +16 -1
- package/docs/code-review-agents.md +139 -5
- package/docs/coding-agent-setup.md +113 -5
- package/docs/coding-packages.md +4 -2
- package/docs/coding-services.md +3 -1
- package/docs/coding-worker-byo-images.md +198 -6
- package/docs/coding-worker-isolation.md +68 -14
- package/docs/getting-started-gke.md +225 -9
- package/docs/getting-started-identity-provider.md +21 -10
- package/docs/getting-started.md +5 -4
- package/docs/jira-agents.md +5 -1
- package/docs/native-sandbox.md +635 -0
- package/docs/release-verification.md +9 -0
- package/docs/security-deployment.md +113 -12
- package/docs/slack-notifications.md +252 -0
- package/docs/tool-secrets.md +252 -0
- package/docs/viewer-api.md +46 -5
- package/docs/viewer-api.openapi.yml +1404 -0
- package/help/admin-viewer.md +6 -2
- package/help/agent-recipes.md +27 -0
- package/help/architecture-agent.md +1 -1
- package/help/brokered-secrets.md +79 -0
- package/help/build-claude-code-image.md +131 -0
- package/help/build-worker-image.md +3 -6
- package/help/code-review-agents.md +68 -6
- package/help/deploy-gke.md +8 -1
- package/help/deployment-targets.md +25 -14
- package/help/errors/coding-provider-not-configured.md +2 -2
- package/help/errors/database-auth-invalid.md +28 -0
- package/help/errors/github-account-not-allowed.md +25 -0
- package/help/errors/low-power-disabled.md +29 -0
- package/help/errors/low-power-scale-forbidden.md +35 -0
- package/help/errors/low-power-wake-timeout.md +30 -0
- package/help/errors/mobile-disabled.md +31 -0
- package/help/errors/native-sandbox-capacity.md +22 -0
- package/help/errors/native-sandbox-deadline-exceeded.md +19 -0
- package/help/errors/native-sandbox-docker-failed.md +20 -0
- package/help/errors/native-sandbox-gateway-unavailable.md +21 -0
- package/help/errors/native-sandbox-image-not-pinned.md +19 -0
- package/help/errors/native-sandbox-isolation-mismatch.md +20 -0
- package/help/errors/native-sandbox-network-unenforced.md +22 -0
- package/help/errors/native-sandbox-requires-catalog.md +31 -0
- package/help/errors/native-sandbox-unavailable.md +19 -0
- package/help/errors/native-sandbox-warm-delivery-failed.md +21 -0
- package/help/errors/native-sandbox-worker-exited.md +20 -0
- package/help/errors/native-sandbox-worker-lost.md +20 -0
- package/help/errors/native-sandbox-worker-unready.md +22 -0
- package/help/errors/secret-broker-body-invalid.md +26 -0
- package/help/errors/secret-broker-changed.md +20 -0
- package/help/errors/secret-broker-config-invalid.md +30 -0
- package/help/errors/secret-broker-conflict.md +27 -0
- package/help/errors/secret-broker-destination-denied.md +28 -0
- package/help/errors/secret-broker-value-invalid.md +28 -0
- package/help/errors/secret-brokered.md +24 -0
- package/help/errors/secret-not-brokered.md +25 -0
- package/help/errors/slack-auth-failed.md +48 -0
- package/help/errors/slack-channel-unreachable.md +39 -0
- package/help/errors/slack-not-configured.md +33 -0
- package/help/getting-started.md +4 -5
- package/help/github.md +18 -1
- package/help/identity-and-access.md +5 -1
- package/help/local-repositories.md +2 -3
- package/help/low-power-mode.md +125 -0
- package/help/merge-order-check.md +117 -0
- package/help/mobile-app.md +54 -0
- package/help/native-sandbox.md +136 -0
- package/help/observability.md +8 -0
- package/help/related-pull-requests.md +70 -9
- package/help/repo-instructions-and-skills.md +91 -0
- package/help/review-fix-rounds.md +10 -0
- package/help/slack-notifications.md +62 -0
- package/help/troubleshooting/coding-workers.md +21 -0
- package/package.json +11 -4
- package/prisma/migrations/20261009000003_native_execution_mode/migration.sql +12 -0
- package/prisma/migrations/20261009000004_native_gateway_ledger/migration.sql +65 -0
- package/prisma/migrations/20261009000005_native_gateway_call_child_agent/migration.sql +5 -0
- package/prisma/migrations/20261009000006_run_deferred_start_stop/migration.sql +14 -0
- package/prisma/migrations/20261009000007_native_gateway_network_ready/migration.sql +5 -0
- package/prisma/migrations/20261010000001_workflow_notifications/migration.sql +99 -0
- package/prisma/migrations/20261011000001_native_gateway_session_status_index/migration.sql +2 -0
- package/prisma/migrations/20261012000001_native_warm_worker/migration.sql +32 -0
- package/prisma/migrations/20261013000001_coding_run_merge_order/migration.sql +2 -0
- package/prisma/migrations/20261013000001_secret_broker/migration.sql +17 -0
- package/prisma/migrations/20261013000002_deferred_review_request/migration.sql +4 -0
- package/prisma/migrations/20261014000000_repo_skills/migration.sql +15 -0
- package/prisma/migrations/20261015000001_coding_run_merge_order_index/migration.sql +2 -0
- package/prisma/migrations/20261015000002_no_change_rereview/migration.sql +2 -0
- package/prisma/schema.prisma +362 -91
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: errors/slack-channel-unreachable
|
|
3
|
+
title: Channel unreachable — bot not invited or archived
|
|
4
|
+
summary: wardby's bot can no longer post to a linked Slack channel — it was removed, archived, or never invited — and that channel's pending deliveries have failed.
|
|
5
|
+
audience: operator
|
|
6
|
+
tags: [error, notifications, channel, channel-error, not_in_channel, channel_not_found, is_archived]
|
|
7
|
+
appliesTo: ">=0.6.0"
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
# Channel unreachable — bot not invited or archived
|
|
11
|
+
|
|
12
|
+
Slack returned `channel_not_found`, `not_in_channel`, or `is_archived` when
|
|
13
|
+
wardby tried to post or update a message. This means the bot genuinely
|
|
14
|
+
cannot write to that channel right now — the channel was deleted or
|
|
15
|
+
archived, or (most commonly) the bot was never invited to a private
|
|
16
|
+
channel.
|
|
17
|
+
|
|
18
|
+
wardby fails that channel's pending deliveries immediately rather than
|
|
19
|
+
retrying forever, and stamps the error on every `NotificationChannel` link
|
|
20
|
+
pointing at it. `list_notification_channels` shows it in `lastError` until
|
|
21
|
+
you fix it.
|
|
22
|
+
|
|
23
|
+
## What to do
|
|
24
|
+
|
|
25
|
+
1. In Slack, confirm the channel still exists and isn't archived.
|
|
26
|
+
2. If it's private, invite the bot: `/invite @wardby` (or whatever you named
|
|
27
|
+
the app) in that channel.
|
|
28
|
+
3. Confirm it worked with `test_notification_channel` — it posts "✅ wardby
|
|
29
|
+
is connected to this channel."
|
|
30
|
+
4. New events deliver as soon as the bot can post there again. Deliveries
|
|
31
|
+
that already failed are not resent. To clear `lastError`, re-link the
|
|
32
|
+
channel with `link_notification_channel` using the same arguments as
|
|
33
|
+
before (a successful `test_notification_channel` in step 3 also clears it).
|
|
34
|
+
|
|
35
|
+
If the channel is gone for good, remove the link with
|
|
36
|
+
`unlink_notification_channel` instead.
|
|
37
|
+
|
|
38
|
+
See [Send workflow updates to Slack](../../docs/slack-notifications.md) for
|
|
39
|
+
the full guide.
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: errors/slack-not-configured
|
|
3
|
+
title: Notification bot token not configured
|
|
4
|
+
summary: link_notification_channel and test_notification_channel are refused because wardby has no Slack bot token configured.
|
|
5
|
+
audience: operator
|
|
6
|
+
tags: [error, notifications, configuration, config, setup, WARDBY_SLACK_BOT_TOKEN]
|
|
7
|
+
appliesTo: ">=0.6.0"
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
# Notification bot token not configured
|
|
11
|
+
|
|
12
|
+
`link_notification_channel` and `test_notification_channel` are refused when
|
|
13
|
+
the wardby server has no `WARDBY_SLACK_BOT_TOKEN` set. Without it, Slack workflow notifications are
|
|
14
|
+
entirely disabled: the notification dispatcher does not start, and any event
|
|
15
|
+
that would otherwise post to Slack is skipped — none are queued or
|
|
16
|
+
backfilled once you do configure it.
|
|
17
|
+
|
|
18
|
+
`list_notification_channels` and `unlink_notification_channel` still work,
|
|
19
|
+
so you can see and remove links created earlier, but nothing is delivered to
|
|
20
|
+
them while Slack is unconfigured.
|
|
21
|
+
|
|
22
|
+
## What to do
|
|
23
|
+
|
|
24
|
+
1. Create the Slack app from
|
|
25
|
+
[`deploy/slack/app-manifest.yaml`](../../deploy/slack/app-manifest.yaml)
|
|
26
|
+
and install it to your workspace.
|
|
27
|
+
2. Copy the Bot User OAuth Token (`xoxb-…`) and set
|
|
28
|
+
`WARDBY_SLACK_BOT_TOKEN`, stored like any other provider credential.
|
|
29
|
+
3. Restart wardby. The startup log line `chat notifications acting as`
|
|
30
|
+
confirms which Slack workspace and bot it authenticated as.
|
|
31
|
+
|
|
32
|
+
See [Send workflow updates to Slack](../../docs/slack-notifications.md) for
|
|
33
|
+
the full setup.
|
package/help/getting-started.md
CHANGED
|
@@ -47,11 +47,10 @@ Claude Code. Run `wardby doctor` afterwards to verify the local installation.
|
|
|
47
47
|
with webhooks, link a native agent to the repository with the `pull_request`
|
|
48
48
|
trigger, and open a pull request. See [Code review agents](code-review-agents.md).
|
|
49
49
|
|
|
50
|
-
- **D. Another language (Go, Java, Rust…).** Do A
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
[Build a custom worker image](build-worker-image.md). Codex agents only.
|
|
50
|
+
- **D. Another language (Go, Java, Rust…).** Do A, then build an image with
|
|
51
|
+
that toolchain and set the builder's `codingProfile.workerImageRef`. Ask your
|
|
52
|
+
assistant "Help me build a Wardby worker image for Go"; it follows
|
|
53
|
+
[Build a custom worker image](build-worker-image.md).
|
|
55
54
|
|
|
56
55
|
The quickstart ends with a menu of next steps to ask your assistant: run the
|
|
57
56
|
builder and reviewer, allow more packages, build a worker image, schedule an
|
package/help/github.md
CHANGED
|
@@ -3,7 +3,7 @@ id: github-integration
|
|
|
3
3
|
title: Connect GitHub repositories
|
|
4
4
|
summary: Authorize repository access and configure Wardby coding or review agents through a scoped GitHub App.
|
|
5
5
|
audience: operator
|
|
6
|
-
tags: [github, repositories, coding-agents, code-review]
|
|
6
|
+
tags: [github, repositories, coding-agents, code-review, WARDBY_GITHUB_ALLOWED_ACCOUNTS]
|
|
7
7
|
appliesTo: >=0.2.1
|
|
8
8
|
---
|
|
9
9
|
|
|
@@ -27,6 +27,17 @@ Set the App's credentials as `GITHUB_APP_ID` and `GITHUB_APP_PRIVATE_KEY` on
|
|
|
27
27
|
the wardby server. Without them, a coding run on a GitHub repository fails with
|
|
28
28
|
[`vcs_github_not_configured`](errors/vcs-github-not-configured.md).
|
|
29
29
|
|
|
30
|
+
From Wardby 0.6.0, wardby serves only trusted GitHub accounts through the App:
|
|
31
|
+
the App's owner, plus any accounts listed in `WARDBY_GITHUB_ALLOWED_ACCOUNTS`
|
|
32
|
+
(comma-separated logins). Other accounts' events are ignored and their
|
|
33
|
+
repositories are refused with `github_account_not_allowed` (help article
|
|
34
|
+
`errors/github-account-not-allowed`), including existing links and scheduled
|
|
35
|
+
runs after an upgrade. wardby removes the App when another account installs it
|
|
36
|
+
or changes its repository selection; remove installations that already exist
|
|
37
|
+
on other accounts by hand (App settings, **Install App**). After transferring
|
|
38
|
+
the App or renaming its owner, list the new owner in the variable or restart
|
|
39
|
+
wardby.
|
|
40
|
+
|
|
30
41
|
No GitHub App is needed for a git repository on the wardby host. See
|
|
31
42
|
[Use local git repositories](local-repositories.md).
|
|
32
43
|
|
|
@@ -62,4 +73,10 @@ opened. See [Automatic review fix rounds](review-fix-rounds.md).
|
|
|
62
73
|
finishes, and gates its ability to approve on CI passing. See
|
|
63
74
|
[Review after CI (`waitForCi`)](code-review-agents.md#review-after-ci-waitforci).
|
|
64
75
|
|
|
76
|
+
With Wardby 0.6.0 or later, a `pull_request` reviewer also holds its review, with or without
|
|
77
|
+
`waitForCi`, until the pull request's own delegating run finishes, when its
|
|
78
|
+
opening coding run was delegated by a lead agent. See [Reviewing a pull
|
|
79
|
+
request a delegated run
|
|
80
|
+
opened](code-review-agents.md#reviewing-a-pull-request-a-delegated-run-opened).
|
|
81
|
+
|
|
65
82
|
For Jira Cloud instead of GitHub, see [Run Jira agents](jira.md).
|
|
@@ -21,7 +21,7 @@ audience, and the granted Wardby scopes in `scope` or `scp`.
|
|
|
21
21
|
|
|
22
22
|
Scopes authorize normal operations such as managing agents, runs, tools,
|
|
23
23
|
datastores, secrets, webhooks, budgets, packages, services, memory, and
|
|
24
|
-
models.
|
|
24
|
+
models. Six sensitive permissions have an additional role requirement:
|
|
25
25
|
|
|
26
26
|
- `agents:admin` requires the Wardby `admin` role.
|
|
27
27
|
- `packages:approve` requires the `admin` or `package-approver` role.
|
|
@@ -31,6 +31,10 @@ models. Five sensitive permissions have an additional role requirement:
|
|
|
31
31
|
- `models:admin` requires the `admin` or `model-manager` role. It adds,
|
|
32
32
|
overrides, disables, and resets model catalog entries; see
|
|
33
33
|
[Models and pricing](models.md).
|
|
34
|
+
- `power:manage` requires the `admin` role. It reads low-power state and
|
|
35
|
+
sleeps the coding proxy and native gateway now (`power_status`,
|
|
36
|
+
`power_sleep`); see
|
|
37
|
+
[Low-power mode](../docs/getting-started-gke.md#low-power-mode).
|
|
34
38
|
|
|
35
39
|
Map roles only from an IdP claim that users cannot self-assign. Removing a
|
|
36
40
|
role affects the next token the caller receives.
|
|
@@ -143,9 +143,8 @@ then:
|
|
|
143
143
|
`CODING_CLAUDE_TOOL_RUNNER_IMAGE_NODE_PYTHON_3_12` (Claude Code); set them to
|
|
144
144
|
override. If this version has no Python image, quickstart says so and the
|
|
145
145
|
builder uses the Node workspace (it can edit but not run Python tests). Other
|
|
146
|
-
languages need a bring-your-own image via `workerImageRef
|
|
147
|
-
|
|
148
|
-
the BYO worker images guide in the long-form docs;
|
|
146
|
+
languages need a bring-your-own image via `workerImageRef`. See the BYO
|
|
147
|
+
worker images guide in the long-form docs;
|
|
149
148
|
- finds the repository: a trusted folder that is a git repository, or the
|
|
150
149
|
repositories directly inside a trusted folder (hidden folders are skipped).
|
|
151
150
|
With several it asks which to use; non-interactively it uses the first in
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: low-power-mode
|
|
3
|
+
title: Low power mode on GKE
|
|
4
|
+
summary: Low power mode: scale the coding proxy and native gateway to zero when idle to cut the cost of a lightly used GKE deployment, and what changes when they wake.
|
|
5
|
+
audience: operator
|
|
6
|
+
tags: [gke, cost, low-power, scale-to-zero, kubernetes, autoscaling, idle, power_sleep, power_status, sleep now, power:manage]
|
|
7
|
+
appliesTo: ">=0.6.0"
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
# Low-power mode on GKE
|
|
11
|
+
|
|
12
|
+
Low-power mode reduces the cost of a GKE Autopilot deployment that runs agents
|
|
13
|
+
only occasionally. When it is on, the coding proxy and the native gateway scale
|
|
14
|
+
to zero replicas after an idle window and wake when a run needs them. The
|
|
15
|
+
headroom placeholder is off, and the control plane runs 1 copy that scales to 2
|
|
16
|
+
under load.
|
|
17
|
+
|
|
18
|
+
It needs `JOB_LAUNCHER=kubernetes`. Without it Wardby logs `low_power_ignored`
|
|
19
|
+
and the mode does nothing.
|
|
20
|
+
|
|
21
|
+
## Turn it on or off
|
|
22
|
+
|
|
23
|
+
```sh
|
|
24
|
+
WARDBY_HOSTNAME=wardby.example.com WARDBY_LOW_POWER=1 deploy/gke/up.sh
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
Re-running `up.sh` without `WARDBY_LOW_POWER=1` turns it off: it removes the
|
|
28
|
+
autoscaler `wardby-control-plane` and the Role and RoleBinding `wardby-power`
|
|
29
|
+
and restores proxy 1, gateway 2, headroom 1, control plane 1.
|
|
30
|
+
|
|
31
|
+
`WARDBY_LOW_POWER` accepts only unset, `0` or `1`; anything else fails `up.sh`
|
|
32
|
+
and stops the control plane at start-up. `LOW_POWER_IDLE_MINUTES` is an integer
|
|
33
|
+
from 5 to 1440 (default 30) set on the control-plane Deployment; it is read
|
|
34
|
+
only when `WARDBY_LOW_POWER=1`.
|
|
35
|
+
|
|
36
|
+
## How it behaves
|
|
37
|
+
|
|
38
|
+
- **Sleep.** Every minute the scheduler leader scales the coding proxy
|
|
39
|
+
(`wardby-coding-proxy`) or native gateway (`wardby-native-gateway`) to 0 when
|
|
40
|
+
nothing is pending or running for it and nothing finished within the idle
|
|
41
|
+
window. The gateway also needs no active session. Either target sleeps only
|
|
42
|
+
once at least one idle window has passed since it was last woken (annotation
|
|
43
|
+
`wardby.io/power-woke-at`) and since the control plane started, whichever is
|
|
44
|
+
later. The check repeats just before scaling. Log: `power: proxy slept (idle 30m)`.
|
|
45
|
+
- **Wake.** A coding run scales the proxy to 1 and waits for a ready endpoint;
|
|
46
|
+
a sandbox run does the same for the gateway. The wait is at least 5 minutes.
|
|
47
|
+
A `KUBERNETES_READY_TIMEOUT_MS` (proxy) or `NATIVE_SANDBOX_READY_TIMEOUT_MS`
|
|
48
|
+
(gateway) above that, set on the control-plane Deployment, raises it. Expect
|
|
49
|
+
about 1 to 2 minutes extra on a cold node. Log: `power: proxy woke`.
|
|
50
|
+
- **Preflight.** The first coding run after a control-plane restart also runs
|
|
51
|
+
the cluster preflight canary, because start-up preflight is deferred while the
|
|
52
|
+
proxy sleeps (`kubernetes_preflight_deferred`).
|
|
53
|
+
- **Deploys.** Every `up.sh` run, including one that turns the mode off, marks
|
|
54
|
+
the proxy and gateway as just woken before it brings them back up, so the
|
|
55
|
+
control plane being replaced cannot scale them down mid-deploy. With the mode
|
|
56
|
+
on they stay up through the deploy (its database checks need them) and sleep
|
|
57
|
+
one idle window later.
|
|
58
|
+
- **Control plane.** It scales 1 to 2 on CPU (20% target, scale down
|
|
59
|
+
after 10 minutes). A run executes on the copy that started it, so scheduled
|
|
60
|
+
runs stay on the scheduler leader; webhook and MCP-started runs spread. The
|
|
61
|
+
autoscaler owns the replica count while the mode is on.
|
|
62
|
+
|
|
63
|
+
## Sleep now
|
|
64
|
+
|
|
65
|
+
To skip the idle window, for example right after a test, call `power_sleep`.
|
|
66
|
+
Pass `target: "proxy"` or `target: "gateway"` to sleep one; omit it for both.
|
|
67
|
+
|
|
68
|
+
- It scales the target to 0 at once, ignoring the idle window and the woke-at
|
|
69
|
+
grace.
|
|
70
|
+
- It never stops a run. A target with a pending or running run, or for the
|
|
71
|
+
gateway an active gateway session, stays up, and its run ids are returned:
|
|
72
|
+
`{ "slept": ["proxy"], "blocked": [{ "target": "gateway", "runIds": ["..."] }] }`.
|
|
73
|
+
Recently finished runs do not block it.
|
|
74
|
+
- The next run wakes the target as usual.
|
|
75
|
+
- Each call is logged with `event: "power.sleep"` and the caller's principal.
|
|
76
|
+
|
|
77
|
+
`power_status` returns, for each target, `replicas`, `ready`, `wokeAt` and
|
|
78
|
+
`blockers` (the run ids keeping it busy).
|
|
79
|
+
|
|
80
|
+
Both tools need the `power:manage` scope, which only the `admin` role grants
|
|
81
|
+
(see [Identity and access](identity-and-access.md)). With the mode off,
|
|
82
|
+
`power_sleep` fails with
|
|
83
|
+
[`409 low_power_disabled`](errors/low-power-disabled.md) and `power_status`
|
|
84
|
+
returns `{ "enabled": false }`.
|
|
85
|
+
|
|
86
|
+
## Trade-offs and requirements
|
|
87
|
+
|
|
88
|
+
- With headroom off, the control plane has less protection against preemption.
|
|
89
|
+
- The gateway runs 1 replica instead of 2 while awake: no redundancy.
|
|
90
|
+
- `NATIVE_SANDBOX_WARM_POOL_SIZE` must be 0, or the control plane refuses to
|
|
91
|
+
start.
|
|
92
|
+
- The gateway must be in the same namespace as `KUBERNETES_NAMESPACE`.
|
|
93
|
+
|
|
94
|
+
## Cost
|
|
95
|
+
|
|
96
|
+
Autopilot bills Pod requests while a Pod exists. At us-central1 list prices
|
|
97
|
+
($0.0445 per vCPU-hour, $0.0049225 per GiB-hour, 730 hours a month; use your
|
|
98
|
+
region's rates), always-on cost per workload is: control plane (1.1 vCPU / 2.125
|
|
99
|
+
GiB) $43.37, coding proxy (1.1 / 3.125) $46.96, native gateway (0.35 / 0.625 per
|
|
100
|
+
replica, two replicas) $27.23, headroom (0.25 / 0.5) $9.92. In low-power mode
|
|
101
|
+
the proxy costs $0.0643 an hour and a gateway replica $0.0187 an hour only
|
|
102
|
+
while awake, and headroom costs nothing. See
|
|
103
|
+
[Getting started on GKE](../docs/getting-started-gke.md#low-power-mode) for the
|
|
104
|
+
full table.
|
|
105
|
+
|
|
106
|
+
## Errors and log lines
|
|
107
|
+
|
|
108
|
+
- [`low_power_wake_timeout`](errors/low-power-wake-timeout.md): the target did
|
|
109
|
+
not become ready in time, or its Deployment does not exist.
|
|
110
|
+
- [`low_power_disabled`](errors/low-power-disabled.md): `power_sleep` was
|
|
111
|
+
called while the mode is off.
|
|
112
|
+
- [`low_power_scale_forbidden`](errors/low-power-scale-forbidden.md): the
|
|
113
|
+
control plane may not read or scale a Deployment or read its Endpoints
|
|
114
|
+
(Role `wardby-power` missing or out of date).
|
|
115
|
+
- Also: `power_sleep_failed`, `low_power_access_check_failed`,
|
|
116
|
+
`low_power_ignored`.
|
|
117
|
+
|
|
118
|
+
## Local kind
|
|
119
|
+
|
|
120
|
+
`WARDBY_LOW_POWER=1 deploy/kind-coding/up.sh` applies the Role. The kind control
|
|
121
|
+
plane runs on your host, so set `WARDBY_LOW_POWER=1` (and optionally
|
|
122
|
+
`LOW_POWER_IDLE_MINUTES`) in the environment of `wardby serve` too.
|
|
123
|
+
|
|
124
|
+
Related: [Deploy Wardby on GKE Autopilot](deploy-gke.md),
|
|
125
|
+
[Run native agents in a sandbox](native-sandbox.md).
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: merge-order-check
|
|
3
|
+
title: The wardby merge order check
|
|
4
|
+
summary: A per-pull-request `wardby merge order` check that tracks whether the pull requests a step depends on, by mergeOrder, have merged yet.
|
|
5
|
+
audience: operator
|
|
6
|
+
tags: [github, checks, branch protection, merge order, delegation, mergeOrder, pull-requests, related-pull-requests]
|
|
7
|
+
appliesTo: ">=0.6.0"
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
# The wardby merge order check
|
|
11
|
+
|
|
12
|
+
> **Requires Wardby 0.6.0 or later.**
|
|
13
|
+
|
|
14
|
+
When a delegating agent sets a `mergeOrder` on a request's pull requests
|
|
15
|
+
(see [Setting a merge
|
|
16
|
+
order](related-pull-requests.md#setting-a-merge-order)), Wardby posts a
|
|
17
|
+
check run named exactly **`wardby merge order`** on each open or draft pull
|
|
18
|
+
request of that [related set](related-pull-requests.md) that its own GitHub
|
|
19
|
+
App opened. The check tells you, per pull request, whether the steps it
|
|
20
|
+
depends on have merged yet — so you can tell at a glance, or gate a merge
|
|
21
|
+
on it, without reading every sibling pull request's state by hand.
|
|
22
|
+
|
|
23
|
+
## When it is posted
|
|
24
|
+
|
|
25
|
+
Only when the pull request's related set has **more than one distinct
|
|
26
|
+
`mergeOrder` value** across its members, merged and closed ones included.
|
|
27
|
+
A request whose pull requests all share one `mergeOrder`, or carry none at
|
|
28
|
+
all, gets no check. A pull request without a `mergeOrder` is never checked
|
|
29
|
+
itself, and is never any other pull request's dependency either.
|
|
30
|
+
|
|
31
|
+
A member with order _k_ depends on every other member of the set with a
|
|
32
|
+
strictly lower, non-null order. Members that share the same `mergeOrder`
|
|
33
|
+
have no order between them — neither is the other's dependency, and either
|
|
34
|
+
may merge first.
|
|
35
|
+
|
|
36
|
+
## The three states
|
|
37
|
+
|
|
38
|
+
- **Waiting for earlier steps (`in_progress`)** — one or more dependencies
|
|
39
|
+
(strictly lower `mergeOrder`) have not merged yet. The title reads
|
|
40
|
+
"Waiting for _N_ earlier pull request(s) to merge", and the summary lists
|
|
41
|
+
them by link.
|
|
42
|
+
- **Every earlier step has merged (`success`)** — every dependency has
|
|
43
|
+
merged, or the pull request is the set's lowest step and has nothing to
|
|
44
|
+
wait for. The check completes with conclusion `success`.
|
|
45
|
+
- **An earlier step was closed without merging (`failure`)** — a dependency
|
|
46
|
+
was closed and never merged. The check completes with conclusion
|
|
47
|
+
`failure` and names the closed pull request(s) in the summary.
|
|
48
|
+
|
|
49
|
+
Every state's summary also carries a step label, "Step _k_ of _n_ in the
|
|
50
|
+
merge order set by the delegating agent," counted over the whole set
|
|
51
|
+
(merged and closed pull requests included), so a pull request's step
|
|
52
|
+
number doesn't change as earlier steps merge.
|
|
53
|
+
|
|
54
|
+
### Waiting for the delegating run to finish
|
|
55
|
+
|
|
56
|
+
While the delegating (lead) agent's run that produced this set is still
|
|
57
|
+
running, it may still add or reorder steps. So, for every pull request
|
|
58
|
+
above the set's **lowest** step, a would-be `success` is held back: the
|
|
59
|
+
check stays `in_progress` with the title "Waiting for the delegating run
|
|
60
|
+
to finish" until that run ends, however it ends. Only a lead agent's run
|
|
61
|
+
holds later steps this way: a coding run that continues one of the set's
|
|
62
|
+
pull requests on its own (a review fix round, or an `@` mention picked up
|
|
63
|
+
by a coding link) never does, and its pushes update the check as they
|
|
64
|
+
land. The lowest step still
|
|
65
|
+
reports `success` right away ("First step: nothing to wait for") — it has
|
|
66
|
+
no dependency this hold could change. A pull request already `in_progress`
|
|
67
|
+
on an unmerged dependency, or `failure` on a closed one, is reported as
|
|
68
|
+
such regardless of whether the delegating run is still running.
|
|
69
|
+
|
|
70
|
+
## When it is updated
|
|
71
|
+
|
|
72
|
+
The check is recomputed and reposted, reading every member's current state
|
|
73
|
+
live from GitHub:
|
|
74
|
+
|
|
75
|
+
- when the delegating (lead) agent's run finishes;
|
|
76
|
+
- when any pull request in the set is closed or merged;
|
|
77
|
+
- on a new head or a reopen of any pull request in
|
|
78
|
+
the set, on every open or draft pull request Wardby's own GitHub App
|
|
79
|
+
opened; and
|
|
80
|
+
- by Wardby's own reconciliation sweep (below), for events the first three
|
|
81
|
+
points might have missed.
|
|
82
|
+
|
|
83
|
+
Reopening a closed, unmerged dependency moves any pull request that was
|
|
84
|
+
reported `failure` because of it back to `in_progress` — once that
|
|
85
|
+
dependency merges (or another dependency is still unmerged or closed), the
|
|
86
|
+
check moves on from there as usual.
|
|
87
|
+
|
|
88
|
+
### The reconciliation sweep
|
|
89
|
+
|
|
90
|
+
As a fallback for a missed GitHub event, Wardby periodically re-checks
|
|
91
|
+
merge-ordered sets in the background: at most once every 10 minutes per
|
|
92
|
+
process, covering the 50 most recently updated coding runs that carry a
|
|
93
|
+
`mergeOrder` and were updated within the last 7 days, resolved to their
|
|
94
|
+
request's run tree and synced a bounded number at a time, least-recently
|
|
95
|
+
swept first, so every covered set is revisited eventually. A set whose
|
|
96
|
+
pull requests haven't changed in over 7 days relies on its GitHub events
|
|
97
|
+
alone.
|
|
98
|
+
|
|
99
|
+
## Requiring it in branch protection
|
|
100
|
+
|
|
101
|
+
Posting the check never blocks a merge by itself — that's opt-in. To make
|
|
102
|
+
GitHub refuse a merge until a pull request's earlier steps have merged,
|
|
103
|
+
add `wardby merge order` as a required status check in the repository's
|
|
104
|
+
branch protection rules (or, on a repository using rulesets, its ruleset's
|
|
105
|
+
required status checks): **Settings → Branches** (or **Rules → Rulesets**)
|
|
106
|
+
**→ require status checks to pass → `wardby merge order`**. GitHub matches
|
|
107
|
+
required checks by name, so it must be exactly that string. Also set the
|
|
108
|
+
required check's expected source to your Wardby GitHub App, so a check of
|
|
109
|
+
the same name reported by anything else (another App, or a workflow in the
|
|
110
|
+
repository — any workflow with `checks: write`, such as one running on a
|
|
111
|
+
pull request author's `GITHUB_TOKEN`) cannot satisfy it. A request
|
|
112
|
+
without a `mergeOrder` on more than one pull request never posts this
|
|
113
|
+
check, so don't require it on a repository whose pull requests are never
|
|
114
|
+
ordered this way — GitHub would then wait on a check that never arrives.
|
|
115
|
+
|
|
116
|
+
See also [Branch protection](../docs/code-review-agents.md#branch-protection)
|
|
117
|
+
for requiring a passing _review_ the same way.
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: mobile-app
|
|
3
|
+
title: Use the wardby mobile app
|
|
4
|
+
summary: Let admins sign in to the wardby mobile app for a read-only live view of runs; enable it with WARDBY_MOBILE_ENABLED on self-hosted auth or register the redirect URI in your IdP.
|
|
5
|
+
audience: operator
|
|
6
|
+
tags: [mobile, ios, android, sign-in, oauth, WARDBY_MOBILE_ENABLED]
|
|
7
|
+
appliesTo: ">=0.6.0"
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
# Use the wardby mobile app
|
|
11
|
+
|
|
12
|
+
The mobile app is a read-only live view of runs for admins, built on the admin
|
|
13
|
+
viewer API (see `admin-viewer`). Sign-in needs the `admin` role and the
|
|
14
|
+
`admin:view` scope.
|
|
15
|
+
|
|
16
|
+
## Enable it with self-hosted auth
|
|
17
|
+
|
|
18
|
+
Mobile sign-in is off by default. Set `WARDBY_MOBILE_ENABLED=true` on the
|
|
19
|
+
control plane and restart it. The OAuth server then accepts exactly one extra
|
|
20
|
+
redirect URI, `com.wardby.mobile:/oauth`, by exact match only. On GKE, pass
|
|
21
|
+
`WARDBY_MOBILE_ENABLED=true` to `deploy/gke/up.sh` on every run; a run without it
|
|
22
|
+
turns mobile sign-in off.
|
|
23
|
+
|
|
24
|
+
`WARDBY_MOBILE_REDIRECT_URI` is for white-label builds only. It must be a
|
|
25
|
+
reverse-domain private-use URI, for example `com.example.app:/oauth`: a
|
|
26
|
+
lowercase scheme with at least one dot, then `:/`, then a path of letters,
|
|
27
|
+
digits, `/`, `_` or `-`, with no host, query or fragment. Changing it signs out
|
|
28
|
+
app clients registered under the old value; they must sign in again. A
|
|
29
|
+
malformed `WARDBY_MOBILE_ENABLED` or `WARDBY_MOBILE_REDIRECT_URI` stops startup
|
|
30
|
+
in every auth mode.
|
|
31
|
+
|
|
32
|
+
## Enable it with an external identity provider
|
|
33
|
+
|
|
34
|
+
Wardby needs no setting. Register `com.wardby.mobile:/oauth` (or your
|
|
35
|
+
white-label redirect) as an allowed redirect URI on the IdP client that
|
|
36
|
+
requests `admin:view`, and make sure the `admin:view` scope is defined and
|
|
37
|
+
mapped. See [Configure identity and privileged access](identity-and-access.md).
|
|
38
|
+
|
|
39
|
+
## Turning it off
|
|
40
|
+
|
|
41
|
+
Set `WARDBY_MOBILE_ENABLED=false` (or unset it). New sign-ins and token
|
|
42
|
+
refreshes are refused. Access tokens already issued keep working until they
|
|
43
|
+
expire, at most 10 minutes. Turning it back on lets existing sessions refresh
|
|
44
|
+
again; nothing is revoked.
|
|
45
|
+
|
|
46
|
+
## Troubleshooting
|
|
47
|
+
|
|
48
|
+
If the app's registration or sign-in is refused with `mobile_disabled`, see
|
|
49
|
+
[Mobile sign-in is not enabled](errors/mobile-disabled.md).
|
|
50
|
+
|
|
51
|
+
## See also
|
|
52
|
+
|
|
53
|
+
- [Watch live runs with the admin viewer API](admin-viewer.md)
|
|
54
|
+
- The viewer API reference in `docs/viewer-api.md`.
|
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: native-sandbox
|
|
3
|
+
title: Run native agents in a sandbox
|
|
4
|
+
summary: Turn on sandbox mode so a native agent's turn loop and tools run in a single-use, credential-free Docker container or Kubernetes pod behind a native gateway.
|
|
5
|
+
audience: operator
|
|
6
|
+
tags: [native-agents, sandbox, isolation, docker, kubernetes, native-gateway, security, warm-pool]
|
|
7
|
+
appliesTo: ">=0.5.4"
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
# Run native agents in a sandbox
|
|
11
|
+
|
|
12
|
+
By default a native agent runs inside the Wardby server. Set its
|
|
13
|
+
`nativeExecutionMode` to `sandbox` and its whole turn loop and user tools run in
|
|
14
|
+
a single-use Docker container or Kubernetes pod (the `wardby-native-worker`
|
|
15
|
+
image) instead. The
|
|
16
|
+
container has no credentials, no database access, no Docker socket, and no
|
|
17
|
+
network except the **native gateway**, a separate trusted container that holds
|
|
18
|
+
the LLM credentials and enforces each tool attachment's grants. The server and
|
|
19
|
+
gateway are trusted; the agent loop and user tool code are not.
|
|
20
|
+
|
|
21
|
+
## Turn it on
|
|
22
|
+
|
|
23
|
+
1. Run the gateway: `wardby native-gateway` in a container with the server's
|
|
24
|
+
database, LLM, secrets, and integration settings, listening on
|
|
25
|
+
`NATIVE_GATEWAY_LISTEN` (default `0.0.0.0:8790`; `GET /healthz`). Give it no
|
|
26
|
+
Docker socket.
|
|
27
|
+
2. On the server (`wardby serve` or `wardby scheduler`) set
|
|
28
|
+
`NATIVE_SANDBOX_LAUNCHER=docker`, `NATIVE_SANDBOX_WORKER_IMAGE` (a
|
|
29
|
+
`repo@sha256:...` digest or local image id), and `NATIVE_GATEWAY_CONTAINER`
|
|
30
|
+
(the gateway container's name). Optional: `NATIVE_GATEWAY_URL`,
|
|
31
|
+
`NATIVE_SANDBOX_CPUS` (1), `NATIVE_SANDBOX_MEMORY_MB` (512),
|
|
32
|
+
`NATIVE_SANDBOX_PIDS` (128).
|
|
33
|
+
3. Set the mode with `create_agent` or `update_agent` (`nativeExecutionMode`:
|
|
34
|
+
`control-plane` or `sandbox`; native agents only), or from the CLI with
|
|
35
|
+
`wardby agent create ... --native-execution-mode sandbox` or
|
|
36
|
+
`wardby agent mode <name> sandbox`. `sandbox` is refused when the server
|
|
37
|
+
(or, for the CLI, its environment) has no native sandbox configured. Each
|
|
38
|
+
run keeps the mode it started with; `get_run` shows it.
|
|
39
|
+
|
|
40
|
+
### Kubernetes
|
|
41
|
+
|
|
42
|
+
Set `NATIVE_SANDBOX_LAUNCHER=kubernetes` instead and the server starts one pod
|
|
43
|
+
per run. Run the gateway as a Deployment in the run namespace with a ClusterIP
|
|
44
|
+
Service that exposes both 8790 and the deny port 8791, and a NetworkPolicy that
|
|
45
|
+
admits `wardby.io/component: native-run` pods on both ports (keep the 8791
|
|
46
|
+
rule). On the server set `NATIVE_SANDBOX_WORKER_IMAGE` to a registry digest
|
|
47
|
+
(`repo@sha256:...`; a local image id is not accepted), and optionally
|
|
48
|
+
`NATIVE_SANDBOX_NAMESPACE` (default `KUBERNETES_NAMESPACE`, else
|
|
49
|
+
`wardby-coding`), `KUBERNETES_CONTEXT`, `NATIVE_SANDBOX_RUNTIME_CLASS` (for
|
|
50
|
+
example gVisor), `NATIVE_GATEWAY_SERVICE` (default `wardby-native-gateway`),
|
|
51
|
+
`NATIVE_SANDBOX_PRIORITY_CLASS` (not a `system-` class),
|
|
52
|
+
`NATIVE_SANDBOX_MAX_CONCURRENT` (cap on simultaneous sandbox runs across all
|
|
53
|
+
replicas; unset means no cap), `NATIVE_SANDBOX_READY_TIMEOUT_MS` (default 120000) and `NATIVE_SANDBOX_ENFORCEMENT_TIMEOUT_MS` (default 30000).
|
|
54
|
+
`NATIVE_SANDBOX_PIDS` applies to Docker only. On GKE Autopilot also set
|
|
55
|
+
`KUBERNETES_PLATFORM=gke-autopilot`: pod resources are conformed to Autopilot's
|
|
56
|
+
rules and the gVisor runtime class is required. On Amazon EKS with a gVisor node
|
|
57
|
+
group set `KUBERNETES_PLATFORM=eks`, which also requires the gVisor runtime class. The shipped GKE deployment
|
|
58
|
+
runs the gateway for you; see the GKE guide. The
|
|
59
|
+
server needs permission in that namespace to create, get, and delete pods,
|
|
60
|
+
Secrets, and NetworkPolicies, list pods, exec into pods, and get Services.
|
|
61
|
+
|
|
62
|
+
Each run starts "not ready": the gateway refuses the worker until the server
|
|
63
|
+
has verified the pod and its NetworkPolicy and proven from inside the pod that
|
|
64
|
+
the gateway answers while the deny port, the outside world, and the cloud
|
|
65
|
+
metadata endpoints do not. Failures
|
|
66
|
+
there are
|
|
67
|
+
[native_sandbox_network_unenforced](errors/native-sandbox-network-unenforced.md),
|
|
68
|
+
[native_sandbox_isolation_mismatch](errors/native-sandbox-isolation-mismatch.md),
|
|
69
|
+
[native_sandbox_gateway_unavailable](errors/native-sandbox-gateway-unavailable.md),
|
|
70
|
+
and [native_sandbox_worker_unready](errors/native-sandbox-worker-unready.md).
|
|
71
|
+
A start past the concurrent cap or the namespace quota fails with
|
|
72
|
+
[native_sandbox_capacity](errors/native-sandbox-capacity.md).
|
|
73
|
+
|
|
74
|
+
The full procedure, topology, and local compose overlay are in
|
|
75
|
+
[Native sandbox](../docs/native-sandbox.md).
|
|
76
|
+
|
|
77
|
+
### Warm pool
|
|
78
|
+
|
|
79
|
+
Set `NATIVE_SANDBOX_WARM_POOL_SIZE` (0 to 50, default 0 = off) to keep that many
|
|
80
|
+
idle, already-isolated workers ready, with either launcher. A run claims one
|
|
81
|
+
atomically through the database; its input and one-time gateway capability are
|
|
82
|
+
delivered over exec stdin only after the claim, and the worker is still
|
|
83
|
+
single-use. `NATIVE_SANDBOX_WARM_MAX_AGE_MS` (60000 to 21600000, default 1800000) replaces idle workers older than that. With no idle worker, or one that
|
|
84
|
+
fails the claim-time re-check, the run cold-launches as usual. If delivery fails
|
|
85
|
+
and the worker cannot be confirmed gone within 30 seconds, the run fails with
|
|
86
|
+
[native_sandbox_warm_delivery_failed](errors/native-sandbox-warm-delivery-failed.md).
|
|
87
|
+
|
|
88
|
+
Idle workers are extra pods or containers: the Kubernetes ResourceQuota needs
|
|
89
|
+
room for `NATIVE_SANDBOX_MAX_CONCURRENT` plus the pool size, and each idle
|
|
90
|
+
worker reserves its CPU and memory (billed on GKE Autopilot). Rebuild the worker
|
|
91
|
+
image so it can be a pool worker. Pool workers are named `wardby-nwarm-<token>`
|
|
92
|
+
and labelled `wardby.io/pool=warm`; logs use module `native-warm-pool`. Details
|
|
93
|
+
are in [Native sandbox](../docs/native-sandbox.md#warm-pool).
|
|
94
|
+
|
|
95
|
+
## What to expect
|
|
96
|
+
|
|
97
|
+
- The worker is read-only, non-root (uid 10001), has all capabilities dropped, a
|
|
98
|
+
size-capped `/tmp`, and CPU, memory, and PID limits. Each run gets its own
|
|
99
|
+
internal network shared only with the gateway.
|
|
100
|
+
- The gateway is the budget authority: it reserves each model call's worst-case
|
|
101
|
+
cost first and settles at actual usage. A call the budget cannot cover ends the
|
|
102
|
+
run `budget_exhausted`.
|
|
103
|
+
- Sub-agents of a sandboxed run are managed runs started by the scheduler
|
|
104
|
+
leader on its next tick (about every 10 seconds), so the server or scheduler
|
|
105
|
+
must be running.
|
|
106
|
+
- A sandbox run has a 60-minute maximum lifetime.
|
|
107
|
+
|
|
108
|
+
## Roll back
|
|
109
|
+
|
|
110
|
+
Set the agent back to `control-plane`. Only new runs are affected: runs
|
|
111
|
+
already started in sandbox mode finish there.
|
|
112
|
+
|
|
113
|
+
## Troubleshooting
|
|
114
|
+
|
|
115
|
+
Check the gateway with `GET /healthz`, list worker containers with
|
|
116
|
+
`docker ps --all --filter label=io.wardby.component=native-worker`, and read the
|
|
117
|
+
run's error with `get_run`. On Kubernetes list worker pods with
|
|
118
|
+
`kubectl get pods -n <namespace> -l wardby.io/component=native-run`. Error
|
|
119
|
+
codes:
|
|
120
|
+
|
|
121
|
+
- [native_sandbox_unavailable](errors/native-sandbox-unavailable.md)
|
|
122
|
+
- [native_sandbox_worker_exited](errors/native-sandbox-worker-exited.md)
|
|
123
|
+
- [native_sandbox_deadline_exceeded](errors/native-sandbox-deadline-exceeded.md)
|
|
124
|
+
- [native_sandbox_worker_lost](errors/native-sandbox-worker-lost.md)
|
|
125
|
+
- [native_sandbox_image_not_pinned](errors/native-sandbox-image-not-pinned.md)
|
|
126
|
+
- [native_sandbox_docker_failed](errors/native-sandbox-docker-failed.md)
|
|
127
|
+
- [native_sandbox_network_unenforced](errors/native-sandbox-network-unenforced.md)
|
|
128
|
+
- [native_sandbox_isolation_mismatch](errors/native-sandbox-isolation-mismatch.md)
|
|
129
|
+
- [native_sandbox_gateway_unavailable](errors/native-sandbox-gateway-unavailable.md)
|
|
130
|
+
- [native_sandbox_worker_unready](errors/native-sandbox-worker-unready.md)
|
|
131
|
+
- [native_sandbox_capacity](errors/native-sandbox-capacity.md)
|
|
132
|
+
- [native_sandbox_warm_delivery_failed](errors/native-sandbox-warm-delivery-failed.md)
|
|
133
|
+
- [native_sandbox_requires_catalog](errors/native-sandbox-requires-catalog.md)
|
|
134
|
+
|
|
135
|
+
See also [Use native agents, tools, and data](native-capabilities.md) and
|
|
136
|
+
[Understand Wardby security boundaries](security.md).
|
package/help/observability.md
CHANGED
|
@@ -37,5 +37,13 @@ Alert on proxy failures, budget cutoffs, cleanup failures, stalled runs, and
|
|
|
37
37
|
sustained latency or memory growth. Wardby's database remains the source of
|
|
38
38
|
truth for runs, budgets, and accounting.
|
|
39
39
|
|
|
40
|
+
With the durable executor (`EXECUTOR=dbos`), also watch the server logs for
|
|
41
|
+
the `run_ownership_lost` warning. It means a run's owner stalled long enough
|
|
42
|
+
for another process to adopt the run, and the stalled attempt stopped without
|
|
43
|
+
writing the run; the step it stopped at had its model spend discarded. The run
|
|
44
|
+
itself is unaffected. Repeated warnings point at event-loop or database-pool
|
|
45
|
+
starvation. See the durable executor section of
|
|
46
|
+
[`docs/security-deployment.md`](../docs/security-deployment.md).
|
|
47
|
+
|
|
40
48
|
Read [`docs/observability.md`](../docs/observability.md) for configuration and
|
|
41
49
|
the full production checklist.
|