Editing config in lookout
Four panes write rather than read: the shepherd's own settings, secrets, any Flockfile field on a running sheep, and a dog's own schema. All four are reached from the dashboard, and all four file a change set rather than writing as you type.
Settings
s opens a full-screen settings view over shep.toml: a tree with a row for every key the file accepts, each with a SOURCE column and a note on what it takes to apply, and one row per dog below it. s or Esc closes it again.
The tree is drawn from a JSON Schema of shep.toml, the way a sheep's config pane is drawn from the Flockfile schema, so a key added in a later release appears with no change to lookout. Each of [daemon], [whistle], [secrets], [style] and [interpreters] is a table row, then comes hosts. The four per-dog keys (enabled_dogs, adopted_dogs, channel_dogs, dog_grants) are not in it: each dog's own row is where a dog is switched on, granted, and configured.
Reading needs nothing, gate open or closed. Every edit and the dog toggle need the same gate the action keys do. A value shep.toml would refuse at boot is refused before the write, and comments and key order in the file are kept.
shep lookout /home/ada/.shep 6 in the flock
> ▾ daemon
boot_first_dogs none the default needs shep daemon reload
environment production the default needs shep daemon reload
log_json false the default needs shep daemon reload
log_level warn the default needs shep daemon reload
max_cron_sleep not set the default needs shep daemon reload
socket /home/ada/.shep/run/shep.sock the default needs the shepherd stopped and started
▾ whistle
allow_control false the default needs shep whistle restarted
▾ secrets
allow_read false the default the next command reads it
▾ style
level full the default the next command reads it
▾ interpreters 8 entries shep.toml the next command reads it
cjs node shep.toml the next command reads it
js node shep.toml the next command reads it
mjs node shep.toml the next command reads it
php php shep.toml the next command reads it
pl perl shep.toml the next command reads it
py python3 shep.toml the next command reads it
rb ruby shep.toml the next command reads it
sh sh shep.toml the next command reads it
+ add an entry
hosts none the default the next command reads it
... 3 below
esc/s close j/k select g/G first/last r refresh space cycle enter apply q quit control enabledSOURCE reads the default when shep.toml doesn't mention the field, and VALUE shows the compiled fallback. A fresh $SHEP_HOME ships a shep.toml holding only [interpreters], so that is the state you land in: every field outside that table is a guess about what the daemon assumes. Once a field is set, SOURCE switches to shep.toml.
shep lookout /home/ada/.shep 2 in the flock
> ▾ daemon
boot_first_dogs none the default needs shep daemon reload
environment production shep.toml needs shep daemon reload
log_json false the default needs shep daemon reload
log_level warn shep.toml needs shep daemon reload
max_cron_sleep 30s shep.toml needs shep daemon reload
socket /home/ada/.shep/run/shep.sock shep.toml needs the shepherd stopped and started
▾ whistle
allow_control false the default needs shep whistle restarted
▾ secrets
allow_read false the default the next command reads it
▾ style
level full shep.toml the next command reads it
▾ interpreters 1 entry shep.toml the next command reads it
py python3 shep.toml the next command reads it
+ add an entry
hosts none the default the next command reads it
[dogs]
space arms, Enter applies; e opens a dog; a dog needs no reload
▸ otel no adopted - online
▸ ledger yes adopted - not running
▸ bark yes built-in 1.0.0 silent
browse dogs Enter opens the dog index
esc/s close j/k select g/G first/last r refresh space cycle enter apply q quit control enabledA dog's row is the one place SOURCE isn't the whole story: IN FILE says whether [daemon] enabled_dogs names the dog, SOURCE is built-in, installed, installed, community or adopted, VERSION adds → <new> from the cached index, and RUNNING reads the live flock. IN FILE and RUNNING can disagree: otel above is running with nothing enabling it, ledger is enabled and not running, and bark is enabled, running, and still silent because it never finished a handshake. space arms a toggle on the selected dog and Enter sends it; this reaches the shepherd directly and needs no reload.
e opens a dog's row, and its other [daemon] keys appear under the header. boot first toggles. grants opens a checklist of the permissions the dog's manifest declares, and a tick runs the same check and the same record shep dogs grant and shep dogs revoke run, so this screen cannot grant what the verb would refuse. A dog with no dog_grants entry offers none: shep enable asks the first question. source and channel are read-only, because the path is shep adopt's to change and the channel is the dog's own answer.
Under those keys come the dog's own fields, the same tree e opens from the flock, written to dogs.toml the same way, comments where they are. The schema is asked for when the row opens and not when the screen does, so a screen listing six dogs runs none of their binaries until you open one. A dog whose probe fails keeps its row closed and says so on it, naming dogs.toml.
shep lookout /home/ada/.shep 3 in the flock
▾ daemon
boot_first_dogs none the default needs shep daemon reload
environment production the default needs shep daemon reload
log_json false the default needs shep daemon reload
log_level warn the default needs shep daemon reload
max_cron_sleep not set the default needs shep daemon reload
socket /home/ada/.shep/run/shep.sock the default needs the shepherd stopped and started
▾ whistle
allow_control false the default needs shep whistle restarted
▾ secrets
allow_read false the default the next command reads it
▾ style
level full the default the next command reads it
▾ interpreters none the default the next command reads it
+ add an entry
hosts none the default the next command reads it
[dogs]
space arms, Enter applies; e opens a dog; a dog needs no reload
> ▾ bark yes built-in 1.0.0 not running
boot first no the next boot reads it
grants 1 of 3 held its next start reads it
[x] flock.read
[ ] events:process.
[ ] events:log.
source built-in shep adopt writes it
channel no the dog's own answer
history_bytes 4096 dogs.toml, it is told
poll 60s dogs.toml, it is told
▸ rules (unset) read-only
sink_timeout (unset) dogs.toml, it is told
sinks <set> read-only
▸ metrics no built-in 1.0.0 not running
browse dogs Enter opens the dog index
esc/s close j/k select g/G first/last r refresh space cycle enter apply q quit control enabledAn adopted dog's row also carries an env table with a row per key of the env beside its path in shep.toml, each reading <set>. e on a key opens an empty editor, d removes it, and + new asks for the key, then the value; a key the file holds is refused by name. A built-in dog shows no env. A dog already up keeps the env it started with, and a reload leaves it running: shep disable then shep enable gives it the new one.
[daemon] edit only ever changes shep.toml.
The shepherd can be started with SHEP_LOG_LEVEL, SHEP_SOCKET, or the matching --log-level /
--socket flags, and those outrank the file. Lookout can't
see what the shepherd was booted with, so setting log_level here and running shep daemon reload
can do nothing, and nothing on screen will say so. [style] is different: --style and $SHEP_STYLE belong to lookout's own process, so lookout
sees them. SOURCE names the layer in force, the last column reads written, but outranked, and the confirm names the layer
that keeps winning.
The confirm names the risk when it's [daemon] that's armed:
shep lookout /home/ada/.shep 6 in the flock
▾ daemon
boot_first_dogs none the default needs shep daemon reload
environment production shep.toml needs shep daemon reload
log_json false the default needs shep daemon reload
> log_level warn shep.toml needs shep daemon reload
max_cron_sleep 30s shep.toml needs shep daemon reload
socket /home/ada/.shep/run/shep.sock shep.toml needs the shepherd stopped and started
▾ whistle
allow_control false the default needs shep whistle restarted
▾ secrets
allow_read false the default the next command reads it
▾ style
level full shep.toml the next command reads it
▾ interpreters 1 entry shep.toml the next command reads it
py python3 shep.toml the next command reads it
+ add an entry
hosts none the default the next command reads it
[dogs]
space arms, Enter applies; e opens a dog; a dog needs no reload
▸ bark no built-in 1.0.0 not running
▸ metrics yes built-in 1.0.0 not running
browse dogs Enter opens the dog index
set daemon.log_level to info? needs shep daemon reload, and will not apply if the shepherd was booted with SHEP_LOG_LEVEL or --log-level enter confirms, any other key cancels
set daemon.log_level to info? needs shep daemon reload, and will not apply if the shepherd was booted with SHEP_LOG_LEVEL or --log-level enter confirms, any other… control enabledA field is edited by what it holds. Booleans and fixed sets such as log_level cycle: space proposes the next value. Numbers, durations, paths and text open an editor on Enter. A list (hosts, boot_first_dogs) is typed comma-separated. An empty editor, or d on the row, arms putting any key back to the default.
[interpreters] is a map of file extension to program, so its rows are entries. Enter edits one, the + add an entry row takes name=value, and d arms removing one. A section or map folds with Enter or space and stays folded across r.
Keys, local to this screen while it's open:
sopens the screen, and closes it againj/k, arrows move the cursor one rowg/Gjump to the first or last rowspacefolds a section or map, or arms the cursor's field, dog toggle,boot firsttoggle or grants checklist item; again on the same field, it re-arms with the next candidateEnterfolds a section, opens the editor on a field or map entry, or sends an armed confirmdarms putting a field back to the default, or removing a map entryEsccancels an armed confirm, else abandons the text editor, else closes the screen; it never quits lookoutrre-readsshep.tomlfrom diskeopens a dog's row onto its keys and its own config, or closes it again
The dogs section ends in a browse dogs row, even with no dog adopted. Enter on it opens the dog catalogue, and Esc there returns to the flock view.
Any movement key, r or s cancels an armed candidate instead of acting on it, the same rule the dashboard's action keys follow. The confirm renders in the status bar, the row the dashboard's x/R/L confirm uses.
Secrets
S, s's neighbour, opens a full-screen view over the store the secrets page covers: the operator's own keys from secrets.json and each provider's from secrets-cache.json, one tab per environment. Esc or S again closes it.
shep lookout /home/ada/.shep 6 in the flock ██ SECRETS flock-wide values a Flockfile refers to and never carries store $SHEP_HOME/secrets.json · not encrypted · never printed to a log, never carried in a bleat · read at spawn, not now reveal [secrets] allow_read = true in shep.toml · change lookout.allow_control = true READ BY as of the roll, read 3m 4s ago all ci [production] 3 environments in this store · ←/→ KEY VALUE IN FORCE SET IN READ BY LANDS ──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── ▾ operator ×2 · you set these > DB_PASSWORD hunter2-not-really production 1 of 3 · production 1 (1 online) visible 10s ██████████ ELSEWHERE_ONLY not set here - 1 of 3 · ci - - + new key ▾ vercel (dog) ×1 · pushed by a provider · read-only here vercel/API_TOKEN ██████ 6 bytes production 1 of 3 · production - - ──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── FOCUSED DB_PASSWORD WHO READS IT DB_PASSWORD the value leaves the screen after 10s. nothing records that you looked. █ catcher online, was given a value at spawn the store is 0600: anyone who can reveal can also delete a log. the system clipboard is readable by every process on the desktop. set in production · length 18 bytes · named by 1 of the flock named in env, args, out_file or err_file esc/S close ←/→ tab z collapse v reveal for 10s ↵ set a value D delete y copy q quit control enabled
Two gates, and neither implies the other. Revealing a value needs [secrets] allow_read = true in shep.toml, off by default; changing anything (setting a key, deleting one, or adding a new one) needs the same lookout.allow_control gate the dashboard's action keys do, covered above. A read-only lookout with the reveal gate on can look but not touch; a controlling lookout without it can rotate a key it can never read back.
Sopens the pane, and closes it again←/→move the environment tabj/k,g/Gmove the cursorzcollapses the group under the cursor, hiding its membersvreveals the selected row's value for ten seconds, gated onallow_readEnteropens the key and value editor on an operator row, or confirms an armed deleteDarms deleting the selected key; like every other armed key in lookout, it expires after ten seconds unanswered,Enteris what actually confirms it, and any other key cancels itysends an already-revealed value to the terminal over OSC 52rreloads the storeqquits lookout
A reveal clears on far more than its own timeout: moving the selection, changing tabs, pressing Esc, reloading with r, closing the pane, quitting, or a write landing all drop it early, so a value never sits on screen describing a row it no longer belongs to.
y only says the value was sent to the terminal, never that it arrived: OSC 52 has no acknowledgement, and the system clipboard is readable by whatever else is running on the desktop, a wider exposure than the screen it just left. A provider row refuses both Enter and D outright; it's a cache of what a dog pushed, not something lookout can write back.
A row taking its value from the all slot refuses D and a rename on a named tab: removing that slot changes every environment at once, so the all tab is where you do it deliberately. A delete that finds no value to remove says so rather than reporting a success it did not have.
The config pane
e on a selected sheep opens its config over the dashboard: every Flockfile field, the value in force, and what changing it would cost. Fields sit under nine groups: process, logging, inputs, restart, readiness, shutdown, watch, cron, dogs. It writes as well, behind the same gate. Under --read-only the first key that would file an edit refuses the same way x does; the pane stays open and unchanged. A row marked = or ~ gives its own reason instead, in both states, because the flag would not have helped it.
No edit reaches the shepherd until the pane closes. An edit is filed into a change set the pane carries, not sent, and Esc writes the whole set at once when it closes the pane. u undoes the most recently filed edit, one at a time, and files nothing itself. r is not an edit: it re-reads the pane's config from the shepherd while the pane is still open, same as any other request.
A field whose grammar accepts a bare number, such as max_memory or kill_timeout, shows its resolved value rather than the digits on disk: 64 reads as 64 B, and 1600 as 1600ms, because a bare max_memory is bytes and a bare timer is milliseconds, neither of which is what most operators expect. The grammar itself is unchanged; only what the row draws is.
Two markers can sit in front of a key, and the pane's own key hint names both, so the meaning is on screen wherever the pane is:
*an operator has overridden it!it is parked until the next respawn, so the running child is not holding it yet
And one in the column before those, when the pane won't edit a field:
=shep refuses a config write to it anywhere, not just here. That isnameandinstances, and the cost column saysread-onlyto match.~the pane has no widget for the shape, and nothing more. A Flockfile writes these the usual way, so the cost column beside them reports a real cost rather thanread-only. Two fields:liveness_probeandreadiness_probe.›Enter opens a screen, not a value. Onlydogsuses it today.
Both are glyphs rather than a colour on purpose. The narrowest terminal the pane draws into has already dropped the cost column, and plain style has no colour to read, so a greyed-out row would be the only signal left in the case where it says least.
The last column is the field's class, which is what a change to it usually costs:
nowthe shepherd re-reads it at the next decisionnext startit reaches the next process this sheep spawnsrespawnthe running child holds it, so that instance has to be replacedread-onlyidentity or flock shape rather than a runtime knob. That isnameandinstances; the count moves withshep stock, not from here.
Read it before you write, not after. It says what kind of field this is, and a particular write can land differently: watch says now and waits for a reload if the cwd it needs is itself still parked, and autostart says next start and takes effect immediately, because shep reads it at muster. The status bar after the write is the one that reports what actually happened, and the ! flag on the row carries it afterwards.
cwd, script, out_file and err_file get one more line on that status bar when the shepherd looks at the path and it looks wrong: a directory that isn't there, or a script it can't find. The write still lands. A deploy that hasn't created the directory yet is a real config, not a typo, so this is a warning next to the write rather than a refusal of it.
A tab row above the fields names all nine groups, dogs last. Tab walks to the next one, Shift-Tab walks back to the previous one, and both wrap. 1 through 9 jump straight to a group by its position in that row. Each resets the cursor to the group's first field.
A panel to the right of a wide enough pane explains whichever field the cursor is on: its help text, its current value, its default, an example, what it accepts and refuses, and which other fields it interacts with. Below 90 columns there's no room for the panel, so the field's help text draws inline instead, in a row above the field list, wrapped, and still following the cursor. No key toggles it either way. The cost column carries every row's cost alone down there. From 90 up the panel draws and the cost column gives way to it, since the panel already names the focused field's own cost. From 160 up the pane is wide enough for both at once.
What the keys do here that h cannot tell you in one line:
rre-reads the config and leaves the cursor where it wasspacefiles the other value for a bool, the next one for a choice, or the next suggestion forkill_signalandcron_restart, straight into the change set. Press it again to walk another step. A suggestion is not a closed list:estill types anything else.eorEnteropens the editor on a text, integer or decimal field; a seconde/Enterfiles what was typed, or says why the field won't take it and leaves the editor open on it. Two keystrokes to change a field, never one. Inside the pane the two keys do exactly the same thing, so learning either is enough.eorEnteron an array field opens a list sub-screen instead:dremoves the selected element,K/Jmove it, ande/Enteredits it, or adds one from the+ newrow. Each of those files the whole array on the spot; there's no second key to send it. The rows show what you have filed rather than what the shepherd sent, so you can remove two elements or add several before leaving.uin here drops the array's whole entry and puts the shepherd's own back. An element its item schema rejects is refused, the rule named, and the editor stays open:minLength,pattern,enum, or an integer's range.don the field list restores the selected field to its default, filing that too rather than sending it. A field already at its default, or one shep refuses to write, files nothing.uundoes the most recently filed edit, one at a time.Esccloses whatever is innermost: a sub-screen back to the field list, then a question if anything the running child hasn't taken is outstanding, and last the pane itself, writing the whole change set as it closes. It never quits lookout.
Every filed edit is recorded as yours once it's sent: the key picks up the * marker here and in shep flock's CFG column, and a later shep start of the app's Flockfile leaves it alone. Nothing else in the config moves, instances included.
A field a write cannot reach in the running child parks until the next spawn, since the child was given its value at exec and holds it. If an edit still filed needs a respawn, or a field is already parked from an earlier write, Esc asks before it closes: restart now, reload, or leave it running with the edits parked. L reloads the sheep, R restarts it, c writes and leaves it running, and Esc again keeps editing and writes nothing. The restart or reload only fires once its write has landed, so it never respawns into the config it was meant to replace. The dialog shows up only with the gate open. shep reload <sheep> promotes an already-parked field from the CLI, any time after.
A sheep's env keys sit in the field list itself, beneath the process tab's fields and on no other tab, rather than behind their own row. No value ever appears there, because the shepherd never sends one: every key reads (set). e or Enter on a key opens the key and value editor the secrets pane also drives, and filing an empty value removes the key.
An env write files the same way a field does, a set as much as a removal, and waits with everything else for the pane to close. The old value is overwritten in the store as soon as the write lands, and this screen cannot read a value back to put it there again, so an overwrite loses as much as a delete does.
env is spawn-time in every case, so nothing set here reaches the running child until that child is replaced.
A group row opens one too. Every instance of a multi-instance app shares one stored spec, so the pane is about the app rather than about whichever instance the cursor was over.
A sheep's dogs tab
dogs is the last tab, reached with 9. It lists every dog that can hold a table on this sheep, collapsed. A row names its state and its table's keys, never a value. Listing spawns nothing: a dog's schema is asked for when its row is first opened.
shep lookout /home/ada/.shep 6 in the flock
██ api (sheep config)
process logging inputs restart readiness shutdown watch cron dogs tab/S-tab next / prev group 1…9 jump
──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
FIELD VALUE LANDS
>▸ deploy - (no table)
▸ jobs set concurrency, hours, merge, models
▸ legacy read-only url (publishes no sheep schema)
──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
= read-only, set it in the Flockfile ~ no widget for this shape ! parked, awaits a respawn * yours -> changed by you, not yet written
esc close j/k select g/G first/last r refresh enter open d remove q quit control enabledRead-only means no dog published a schema for that table, so it names keys only and opens nothing. d arms removing a table. Enter confirms, any other key cancels.
Enter, e or → on a set or unset row opens that dog's table inline, under its row. Enter or ← closes it, and its edits stay filed. Esc writes the sheep's edits and every dog's table together.
shep lookout /home/ada/.shep 6 in the flock
██ api (sheep config)
process logging inputs restart readiness shutdown watch cron dogs tab/S-tab next / prev group 1…9 jump
──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
FIELD VALUE LANDS
▸ deploy - (no table)
>▾ jobs set concurrency, hours, merge, models
concurrency 2
▾ hours table
end 17:00
start 09:00
merge ask
▾ models table
▸ worker table
▸ legacy read-only url (publishes no sheep schema)
──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
= read-only, set it in the Flockfile ~ no widget for this shape ! parked, awaits a respawn * yours -> changed by you, not yet written
esc close j/k select g/G first/last r refresh enter open d remove q quit control enabledA nested struct in the schema is a table row with its keys indented under it. The first level starts open. → opens a table, ← closes it or, on a key or a closed table, moves to its parent, and Enter toggles it. A secret reads <set>. A list of strings or integers opens the sheep pane's list sub-screen. A list of choices opens to a checklist under its row, and Space or Enter toggles a name. Esc writes the whole table and lands on the dashboard. If the table changed since the pane opened, nothing is written: the pane reloads it under your edits, and Esc again writes.
A setting that is one of several shapes, a tagged union, reads as its tag, such as kind = path, or (unset). It opens to its tag and that tag's fields; Space on the tag row picks the next tag, with that tag's fields at their defaults. A required field cannot be left empty: Esc waits until each has a value, andd on the union's row clears it. A tag no shape names reads as stored and marked (unknown); only picking a tag changes it. The dog config pane leaves a union read-only.
For a dog that follows the settings standard, the form is the dog's one schema without its dog-wide fields. Once the dog reads[<dog>] for the sheep, a row the sheep does not set shows that value and a ^ in the flag column, and the foot of the pane says where it comes from. Editing it writes the sheep's own table. d on a value the sheep set clears it, and the row goes back to the section's. A dog serving every sheep opens this form on a sheep with no table. One serving only sheep with a table opens it empty, and the first key written is what gives the sheep a table.
shep lookout /home/ada/.shep 6 in the flock
██ api (sheep config)
process logging inputs restart readiness shutdown watch cron dogs tab/S-tab next / prev group 1…9 jump
──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
FIELD VALUE LANDS
▸ deploy - (no table) FOCUSED models.worker.token text
▾ jobs set concurrency, hours, merge, models token
concurrency 2
▾ hours table now <set>
end 17:00 default (none)
start 09:00 example (none)
merge ask
▾ models table
▾ worker table
model small
> token <set>
▸ legacy read-only url (publishes no sheep schema)
──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
= read-only, set it in the Flockfile ~ no widget for this shape ! parked, awaits a respawn * yours -> changed by you, not yet written
esc close j/k select g/G first/last r refresh space cycle e edit d back to default u undo h help * yours ! parked q quit control enabledA dog declaring validate is asked before either of these writes lands, on its own channel, and its refusal is one of the writes that cannot land: the pane reports the dog's sentence and the file keeps what it had. A dog that declared nothing is never asked.
The dog config pane
e on a dog row opens its config, over that dog's [<name>] section in dogs.toml. It works the same from the dashboard's Dogs section. On the settings screen, e on a dog's row draws this same tree under that row rather than opening a pane over the screen. Inside the pane, e is the field list's own edit key, the same as on a sheep's config; only Esc closes it.
The form comes from the dog. Shep asks the binary for its schema when the pane opens rather than reading one it stored, because cargo install replaces a dog with nothing watching and a stale schema mislabels which field is a credential. A built-in dog answers without being spawned at all. A dog that publishes no schema gets no pane, and a line saying where its settings do live:
pydog publishes no schema; edit dogs.toml with $EDITOR
--schema, waits a second for an answer, then kills
it. That is a third party's code executing because you pressed a key,
and it is worth knowing before you browse the config of a dog you did
not write.
The pane has no section headers: a dog's schema carries no groups, and inventing some would be shep deciding how somebody else's config reads. The cost column is empty on every row, because shep does not know what a dog's field costs. The foot of the pane says so once, naming the dog:
shep publishes the change; bark decides what to reload
On a dog that follows the settings standard, the foot says instead that its values apply to every sheep it serves, and an @ marks each dog-wide key: one no sheep's table can override.
A nested table is a row marked ▸ closed or ▾ open, typed table, with its keys indented under it. The first level starts open, and r keeps what you opened. A credential reads <set> at any depth and never its value, and its editor opens empty and draws █ per typed character (Ctrl-r shows them). A list of strings or integers opens the list sub-screen. A map and a secret list get ~ and stay read-only. A decimal field edits like an integer one and files a float, so 10lands as 10.0. A list of numbers gets ~ and stays read-only.
An array or map of tables reads as a count, such as 3 entries, 1 entry or (unset), and never as JSON, so a credential inside one cannot show. → opens it onto one closed row per entry. A map's entries are named by key. An array's are named by name, else id, else #<index>, never by a secret. r keeps an entry open by its key or its position.
A scalar field inside an entry edits like any other row, with the same editors, validation and d. Applying one files it, and Esc writes the section once for every entry you edited. A list, a map or a nested array of tables inside an entry stays read-only. A refresh that finds an array's entry moved drops the edits filed under it, and says so.
d on an entry's row removes it, filed like any edit: the entries row reads 3 entries -> 2 entries, u puts the entry back along with the edits that folded in, and Esc deletes its table from dogs.toml, leaving the other entries' comments where they are. Edits filed under the array fold into the removal. The cursor moves to the next entry, the previous one after the last, or the entries row when none are left. Two identical tables in an array lose the later one.
The last row under an open array or map of tables is + new, and Enter on it adds an entry. An array appends one at once. A map asks for the key in a text editor: an empty key gives up, a key the map already holds is refused by name with the editor still open, and a key with a dot or a space is written quoted, such as [models."a.b"]. The new entry holds each property whose schema declares a default, and nothing else. Its row opens and the cursor lands on its first field. Required fields are the dog's to check: shep only checks that the section is TOML, so an entry missing one is written as it stands. An add files like a removal, as one change to the whole array or map, so u takes it back and adding then removing the same entry writes nothing. Esc appends the new table after the last existing one and leaves every comment where it is.
Edits file into the same change set a sheep's pane uses, and u undoes them the same way; nothing reaches the dog's section until Esc closes the pane. A section edited meanwhile is reloaded under your edits, not overwritten. However many fields changed, the write sends the section whole, in one request, so the comments and key order in dogs.toml survive it. Applying an empty value removes the key, which puts the dog back on its own default. A write that cannot land is refused whole. Neither* nor ! appears: a dog has no Flockfile to differ from, and dogs.toml is the one copy of its settings.
The explanation panel draws here too, at the same widths, with the dog's own help text, current value, default and example; only the impact sentence is missing, since shep doesn't know what a dog's field costs. A dog has no groups, so no group tabs; a pane adds two.
Under the fields, an adopted dog's pane carries the env an operator set beside its path in shep.toml, edited as on the settings screen. Esc writes that half to shep.toml first, then sends the field edits to dogs.toml.
r re-reads the section and not the schema, so a keystroke whose job is to re-read a file never respawns somebody else's binary.