Default the supervise flag to true #250

Merged
didericis merged 1 commits from remove-supervise-flag into main 2026-06-23 21:44:46 -04:00
Showing only changes of commit 369d332204 - Show all commits
+9 -9
View File
@@ -19,7 +19,7 @@ Bottle schema (frontmatter):
repos: { <name>: <git-gate-entry>, ... } # optional repos: { <name>: <git-gate-entry>, ... } # optional
egress: { routes: [ <egress-route>, ... ] } egress: { routes: [ <egress-route>, ... ] }
# route keys: host, matches, auth, role, dlp # route keys: host, matches, auth, role, dlp
supervise: <bool> # optional supervise: <bool> # optional (default true)
Agent schema (frontmatter): Agent schema (frontmatter):
bottle: <bottle-name> # required bottle: <bottle-name> # required
@@ -111,13 +111,13 @@ class ManifestBottle:
# identity without any git-gate.repos upstreams, and vice versa. # identity without any git-gate.repos upstreams, and vice versa.
git_user: ManifestGitUser = field(default_factory=ManifestGitUser) git_user: ManifestGitUser = field(default_factory=ManifestGitUser)
egress: ManifestEgressConfig = field(default_factory=ManifestEgressConfig) egress: ManifestEgressConfig = field(default_factory=ManifestEgressConfig)
# Opt-in per-bottle stuck-recovery sidecar (PRD 0013). When true, # Per-bottle stuck-recovery sidecar (PRD 0013). When true (the
# the launch step brings up a supervise sidecar that exposes MCP # default, issue #249), the launch step brings up a supervise
# tools to the agent (egress-block, capability-block) plus mounts # sidecar that exposes MCP tools to the agent (egress-block,
# the current-config dir read-only into the agent at # capability-block) plus mounts the current-config dir read-only
# /etc/bot-bottle/current-config. False (the default) skips the # into the agent at /etc/bot-bottle/current-config. Set
# sidecar and mount. # `supervise: false` to skip the sidecar and mount.
supervise: bool = False supervise: bool = True
@classmethod @classmethod
def from_dict(cls, name: str, raw: object) -> "ManifestBottle": def from_dict(cls, name: str, raw: object) -> "ManifestBottle":
@@ -190,7 +190,7 @@ class ManifestBottle:
else ManifestEgressConfig() else ManifestEgressConfig()
) )
supervise_raw = d.get("supervise", False) supervise_raw = d.get("supervise", True)
if not isinstance(supervise_raw, bool): if not isinstance(supervise_raw, bool):
raise ManifestError( raise ManifestError(
f"bottle '{name}' supervise must be a boolean " f"bottle '{name}' supervise must be a boolean "