fix: use canonical dogfood seat identity (#1490)
ci/woodpecker/push/publish Pipeline was successful

Co-authored-by: marcie <[email protected]>
This commit was merged in pull request #1490.
This commit is contained in:
2026-08-30 23:43:22 +00:00
committed by orch-01
parent 736b0affc1
commit 9aa4983cf2
5 changed files with 22 additions and 21 deletions
+4 -4
View File
@@ -61,8 +61,8 @@ assert gateway.get("init") is True, "gateway must run below an init process for
env = gateway["environment"]
expected_env = {
"MOSAIC_AGENT_NAME": "stack-dogfood",
"MOSAIC_GIT_IDENTITY": "stack-dogfood",
"MOSAIC_AGENT_NAME": "code-dogfood-01",
"MOSAIC_GIT_IDENTITY": "code-dogfood-01",
"MOSAIC_BRAIN_HOME": "/opt/mosaic/brain",
"AGENT_FILE_SANDBOX_DIR": "/workspace/stack",
"AGENT_SHELL_ENABLED": "false",
@@ -98,7 +98,7 @@ assert common_git["type"] == "bind"
assert common_git["source"] == os.environ["EXPECT_COMMON_GIT"]
assert not common_git.get("read_only", False), "common Git directory must accept branch updates"
seat = mounts["/opt/mosaic/brain/fleet/agents/stack-dogfood"]
seat = mounts["/opt/mosaic/brain/fleet/agents/code-dogfood-01"]
assert seat["type"] == "bind"
assert seat["source"] == os.environ["EXPECT_SEAT"]
assert seat.get("read_only") is True, "seat credential slot must be read-only"
@@ -107,7 +107,7 @@ other_seat_mounts = [
target
for target in mounts
if target.startswith("/opt/mosaic/brain/fleet/agents/")
and target != "/opt/mosaic/brain/fleet/agents/stack-dogfood"
and target != "/opt/mosaic/brain/fleet/agents/code-dogfood-01"
]
assert other_seat_mounts == [], f"other seat mounts leaked: {other_seat_mounts}"
PY