# Kestrel · node kestrel.example · no index yet · lens: level 1
kestrel$ cairnfield pin https://git.fellbeck-notes.example/fellbeck-sync --branch main --commit 9f3c1e7a…
kestrel> {
"component": "9f3c1e7a…",
"checkout": ".cairnfield/checkouts/9f3c1e7a…",
"files": 5,
"leftOut": [],
"registered": false
}
# Kestrel's own review agent writes four findings to the outbox, a local folder
kestrel$ cairnfield validate
kestrel> {
"records": 4,
"rejected": []
}
kestrel$ cairnfield publish
kestrel> {
"records": 4,
"head": "5d10c3…",
"published": [
"records/9f3c1e7a…/finding/5b7e….json",
…
],
"notice": "none"
}
# the bundled agent patches one of those findings
kestrel$ cairnfield patch 9f3c1e7a… --finding 5b7e…
kestrel> {
"claim": "e2f9…",
"number": 2914603317,
"patch": "7c1d…",
"commit": "b02e…",
"patchId": "93cd…",
"kind": "adds-or-changes",
"size": 2,
"paths": [
"plugin.json"
],
"recording": ".cairnfield/recordings/kestrel/9f3c1e7a…/5b7e….json",
"note": "written",
"records": 1,
"head": "a41f…",
"published": [
"records/9f3c1e7a…/patch/7c1d….json"
],
"notice": "none"
}
kestrel$ cairnfield assemble 9f3c1e7a…
# the full diff of the copy goes to standard error, for a person to read
--- a/plugin.json
+++ b/plugin.json
@@ -13,1 +13,1 @@
- "env": { "read": ["*"] }
+ "env": { "read": ["FELLBECK_TOKEN"] }
kestrel> {
"component": "9f3c1e7a…",
"level": 1,
"patches": [
{
"patchId": "93cd…",
"node": "https://kestrel.example",
"commit": "b02e…",
"kind": "adds-or-changes",
"size": 2
}
],
"refused": [],
"skipped": [],
"tree": "d3051c…",
"commit": "6fa0…",
"copy": ".cairnfield/copies/9f3c1e7a…",
"paths": [
"plugin.json"
],
"recipe": "c8e1…",
"records": 1,
"head": "0b5d…",
"published": [
"records/9f3c1e7a…/recipe/c8e1….json"
],
"notice": "none"
}
# a person read the diff and gave the verdict
kestrel$ cairnfield decide 9f3c1e7a… --verdict approved-with-required-mitigations --tree d3051c…
kestrel> {
"url": "https://git.fellbeck-notes.example/fellbeck-sync",
"commit": "9f3c1e7a…",
"verdict": "approved-with-required-mitigations",
"date": "2026-10-12T16:20:41.000Z",
"tree": "d3051c…"
}
# Later: an index in the config, and pin run again to register there
# Kestrel has patched a second finding, and its lens names Northfork at level 2
kestrel$ cairnfield assemble 9f3c1e7a…
kestrel> {
"component": "9f3c1e7a…",
"level": 2,
"patches": [
{
"patchId": "2e91…",
"node": "https://kestrel.example",
"commit": "c5a8…",
"kind": "removes-only",
"size": 1
},
{
"patchId": "4a07…",
"node": "https://northfork.example",
"commit": "1b7f…",
"kind": "adds-or-changes",
"size": 2
},
{
"patchId": "93cd…",
"node": "https://kestrel.example",
"commit": "b02e…",
"kind": "adds-or-changes",
"size": 2
}
],
"refused": [],
"skipped": [],
"tree": "71aa09…",
…
}
# the new copy has another tree, so a person read its diff and gave the verdict again
kestrel$ cairnfield decide 9f3c1e7a… --verdict approved-with-required-mitigations --tree 71aa09…
kestrel> {
"url": "https://git.fellbeck-notes.example/fellbeck-sync",
"commit": "9f3c1e7a…",
"verdict": "approved-with-required-mitigations",
"date": "2026-10-13T09:14:52.000Z",
"tree": "71aa09…"
}
# the table of verdicts: Kestrel saves it as approvals.json and shares that file by its own means
kestrel$ cairnfield approvals
kestrel> {
"version": "1",
"decisions": [
{
"url": "https://git.fellbeck-notes.example/fellbeck-sync",
"commit": "9f3c1e7a…",
"verdict": "approved-with-required-mitigations",
"date": "2026-10-13T09:14:52.000Z",
"tree": "71aa09…"
}
]
}
# On another machine, with that file and no config file, no key and no node
engineer: fetches the copy Kestrel published, with the read token its node gives anyone, into fellbeck-sync/
engineer$ cairnfield verify https://git.fellbeck-notes.example/fellbeck-sync fellbeck-sync --approvals approvals.json
engineer> {
"url": "https://git.fellbeck-notes.example/fellbeck-sync",
"commit": "9f3c1e7a…",
"verdict": "approved-with-required-mitigations",
"tree": "71aa09…"
}
# one file in that folder is changed
engineer$ cairnfield verify https://git.fellbeck-notes.example/fellbeck-sync fellbeck-sync --approvals approvals.json
engineer> {
"error": "copy-differs",
"url": "https://git.fellbeck-notes.example/fellbeck-sync",
"commit": "9f3c1e7a…",
"approved": "71aa09…",
"found": "8d02c7…"
}
# exit 11 · the folder is not the copy Kestrel approved
# The plugin releases again
kestrel$ cairnfield carry 9f3c1e7a… e41b09d2… --branch main
kestrel> {
"older": "9f3c1e7a…",
"newer": "e41b09d2…",
"findings": [
{
"finding": "5b7e…",
"carried": true,
"reason": "content-unchanged",
"as": "a9d3…",
"path": "plugin.json"
},
{
"finding": "7ab0…",
"carried": false,
"reason": "content-changed"
},
…
],
"patches": [
{
"patch": "7c1d…",
"patchId": "93cd…",
"carried": true,
"reason": "content-unchanged",
"as": "d0a4…",
"commit": "f31c…",
"paths": [
"plugin.json"
]
},
…
],
"records": 5,
"head": "9e2a…",
"published": [
…
],
"notice": "sent",
"leftBehind": [
"4a07…"
],
"paths": {
"added": 0,
"changed": 1,
"removed": 0
}
}