This repository was archived by the owner on Jul 24, 2026. It is now read-only.
Commit dab96f0
key
`buildDeclaration` always populates `host` (`--host` ?? this machine), so
keying liveness on the args-built agent file computed a this-machine bus id
for an agent declared `host = otherbox` — whose catalog file is present
locally via fabric sync. `convoy run --identity <that agent>` would find
nothing live and launch a DUPLICATE alongside the real session.
That falsified the property this design rests on: `run` and `up` must agree
on what "already running" means. `up` reconciles on `entry.af.host ?? thisHost`
— the declaration's host — so `run` now reads the existing declaration BEFORE
computing the bus id and keys off it.
The choice is a named, exported function (`livenessAgentFile`) rather than an
inline `??`: it is the single point where the two verbs agree or diverge, so
it deserves to be visible and directly testable. Reverting it to return the
args-built file turns two tests red.
Also, while reading the existing declaration up front:
· reuse it for `effective` instead of re-reading the file
· warn when a positional ROLE differs from the declared one — the role is not
a flag, so `passedDeclarationFlags` could not see it and it was silently
dropped on resume
· print `session:` / `bus:` ids, so a declaration owned by another host is
visible before anything launches
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014ePNMmLYa7qVT3h7bRCWUJ
agent-session-id: 0abcedc7-6b71-4046-9e7c-f645268c0b15
agent-tool: Claude Code
agent-tool-version: 2.1.215
agent-model: claude-opus-4-8
agent-runtime-profile: /nix/store/acr8a3l2v366jgmwiq8xdrhgz1py0db5-coding-agent-runtime-profile/share/coding-agents/profile.json
agent-skills-manifest: /nix/store/sj1v5j91h8v8d1w9lca4040302lwrd6v-agent-skills-corpus/share/agent-skills/manifest.json
tooling-profile: dotfiles@unknown-dirtyrun's liveness on the DECLARATION's host, as reconcile does1 parent f3c7664 commit dab96f0
3 files changed
Lines changed: 86 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | | - | |
| 33 | + | |
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
| |||
972 | 972 | | |
973 | 973 | | |
974 | 974 | | |
975 | | - | |
| 975 | + | |
| 976 | + | |
| 977 | + | |
| 978 | + | |
| 979 | + | |
| 980 | + | |
| 981 | + | |
| 982 | + | |
| 983 | + | |
| 984 | + | |
| 985 | + | |
| 986 | + | |
| 987 | + | |
| 988 | + | |
| 989 | + | |
| 990 | + | |
| 991 | + | |
| 992 | + | |
976 | 993 | | |
977 | 994 | | |
978 | 995 | | |
| |||
987 | 1004 | | |
988 | 1005 | | |
989 | 1006 | | |
990 | | - | |
| 1007 | + | |
991 | 1008 | | |
992 | | - | |
993 | | - | |
994 | | - | |
995 | | - | |
996 | | - | |
997 | | - | |
998 | | - | |
| 1009 | + | |
| 1010 | + | |
| 1011 | + | |
| 1012 | + | |
| 1013 | + | |
| 1014 | + | |
999 | 1015 | | |
1000 | 1016 | | |
1001 | 1017 | | |
| |||
1005 | 1021 | | |
1006 | 1022 | | |
1007 | 1023 | | |
| 1024 | + | |
| 1025 | + | |
| 1026 | + | |
1008 | 1027 | | |
1009 | 1028 | | |
1010 | 1029 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
| 9 | + | |
9 | 10 | | |
10 | 11 | | |
11 | 12 | | |
| |||
93 | 94 | | |
94 | 95 | | |
95 | 96 | | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
96 | 120 | | |
97 | 121 | | |
98 | 122 | | |
| |||
225 | 249 | | |
226 | 250 | | |
227 | 251 | | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
228 | 268 | | |
229 | 269 | | |
230 | 270 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
111 | 111 | | |
112 | 112 | | |
113 | 113 | | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
114 | 129 | | |
115 | 130 | | |
116 | 131 | | |
| |||
0 commit comments