Files
mesh-delivery/modules/mesh-delivery-teller/module.json
T
jschoubben 0f4a33ce48 TL5: the teller carries the assigner's asks only, follows the view's answers and says its own on views.answers
The merge-ask path goes whole with the Approve per merge: the reads of
mesh-delivery-gate.asks and mesh-delivery-view.answers, OnAsk, OnAskGone, the
gate branches of Answer and the room list, and the merge words. The teller
follows the view's answers through view_read_answers and views.answers, says
its state answers as views.answers from its state teller-marks, and serves the
read tool teller_read_answers. The room list stays for the assigner's asks
(the lead's answer). viewstate gains the names the view's own commit gives it
(the same hunk, so the two merge cleanly).

Builds: design 47 G §653, §431, §512; lead answers A-172, A-175, A-178

Claude-Session: https://claude.ai/code/session_01NcbgfGKaxw984XyAPfLm4h
2026-11-12 05:52:42 +01:00

148 lines
3.0 KiB
JSON

{
"module": "mesh-delivery-teller",
"version": "0.1",
"slug": "teller",
"tools": [
"teller_end_ask",
"teller_answers",
"teller_read_answers",
"teller_first_views",
"teller_first_view_again",
"teller_widens_said"
],
"invokes": [
"mesh-delivery-assigner.assigner_read_asks",
"mesh-delivery-view.view_read_answers",
"seat:mesh-hand-acts.hand-act",
"seat:mesh-catalog.registrations",
"seat:operator-channel.notify"
],
"consumes": [
"mesh-conditions.findings-asked",
"mesh-delivery-assigner.views.asks",
"mesh-delivery-view.views.answers",
"mesh-catalog.registration-changed",
"mesh-pipeline-runner.pipeline-ended",
"mesh-delivery.recovery-merged",
"mesh-delivery.record-opened"
],
"emits": [
"answered",
"ask-ended",
"views.answers"
],
"state": [
{
"name": "answers",
"history": 5
},
{
"name": "asked",
"history": 1
},
{
"name": "ends",
"history": 1
},
{
"name": "first-views",
"history": 1
},
{
"name": "widens-said",
"history": 1
},
{
"name": "teller-marks",
"history": 1
}
],
"uses": [
"operator-channel"
],
"own-secrets": {
"broker": "${dir:state}/broker"
},
"secrets-owner": "mesh-delivery-teller",
"resources": [
{
"id": "account",
"type": "user",
"name": "mesh-delivery-teller",
"shell": "/usr/bin/nologin",
"home": "/var/lib/mesh-delivery-teller"
},
{
"id": "state",
"type": "directory",
"mode": "0700",
"owner": "mesh-delivery-teller",
"place": ".",
"unknown": "program"
},
{
"id": "teller",
"type": "process",
"name": "mesh-delivery-teller",
"artifact": "program",
"run": [
"./mesh-delivery-teller"
],
"env": {
"MESH_BROKER_FILE": "${dir:state}/broker"
},
"user": "mesh-delivery-teller",
"health": {
"kind": "unit"
}
}
],
"build": {
"artifacts": [
{
"name": "program",
"kind": "bundle",
"language": "go",
"system": "arch",
"from": "cmd/mesh-delivery-teller",
"binary": "mesh-delivery-teller"
},
{
"name": "tools",
"kind": "bundle",
"language": "go",
"system": "arch",
"from": "cmd/mesh-delivery-teller-tools",
"binary": "mesh-delivery-teller-tools",
"loads": [
"mesh-delivery-teller-tools"
]
}
]
},
"requires": [
{
"name": "findings",
"storage": "key-value",
"template": "state",
"options": {
"history": 1
}
},
{
"name": "finding-events",
"storage": "stream",
"template": "events",
"options": {
"events": [
"finding-written.*",
"finding-cleared.*",
"findings-stated.*"
],
"max-age-days": 7,
"max-mib": 16
}
}
]
}