Take the catalogue's composition rules into the node-engine

ADR 0593 §7: the composer with its refusals leaves mesh-sdk, so mesh-sdk
carries no composition rule. The catalogue functions only the
node-engine's composition reaches (Resolve, Resolution's Compose,
Declaration, DataItems, LeftOut, Rules and the rest, the settings,
placeholder and template refusals, the rendering helpers) are copied
with their tests into internal/compose/resolution; a method of a
mesh-sdk shape becomes a function taking it first. The composition
calls its own copies, and the captured catalogue its tests read lives
here now, shared by mesh-compose's tests.

Claude-Session: https://claude.ai/code/session_01NcbgfJ9Gum47zkFKWRaovL
This commit is contained in:
2026-11-02 19:15:55 +01:00
parent be0226b624
commit d68e241724
686 changed files with 35703 additions and 80 deletions
@@ -0,0 +1,79 @@
{
"module": "telegram",
"version": "1",
"slug": "tgrm",
"runs-as": "telegram",
"claims": [
{
"name": "channel",
"scope": "mesh",
"kind": "telegram",
"capabilities": [
"deliver",
"reaches-away",
"silent",
"edit",
"max-length:4096",
"choice",
"verified-sender",
"exact-render",
"code-factor"
]
},
{
"name": "intake",
"scope": "mesh",
"kind": "telegram"
}
],
"state": [
"offset",
{
"name": "messages",
"ttl-seconds": 2592000
}
],
"own-secrets": {
"broker": "${dir:state}/broker",
"telegram-token": "${dir:state}/telegram-token"
},
"secrets-owner": "telegram",
"tools": [
"telegram_status"
],
"resources": [
{
"id": "account",
"type": "user",
"name": "telegram",
"shell": "/usr/bin/nologin",
"home": "/var/lib/telegram"
},
{
"id": "state",
"type": "directory",
"mode": "0700",
"owner": "telegram",
"place": ".",
"unknown": "program"
}
],
"build": {
"artifacts": [
{
"name": "tools",
"kind": "bundle",
"language": "go",
"system": "arch",
"from": "cmd/telegram",
"binary": "telegram",
"loads": [
"telegram"
],
"env": {
"MESH_TELEGRAM_TOKEN_FILE": "${dir:state}/telegram-token"
}
}
]
}
}