The one timer left is set for the earliest of three deadlines: a waiting proposal's end, an unanswered retirement's second ask, and a rename window's seven-day held finding, which is now judged at its deadline (JudgeHeldWindows) so it comes in a quiet mesh too. Its floor is the module's setting deadline-floor-seconds (default 60), not a constant. Tests: an integration test counts asks by key and fails on any `seat:git.*` over the whole run (ADR 0681, How it is checked, clause 1); a unit test shows an approved proposal records a hand act naming no pull request; another that a stored proposal naming a pull request is refused on approval, saying why. Claude-Session: https://claude.ai/code/session_01JG73KHUnBze48rdua8u2sy
141 lines
3.3 KiB
JSON
141 lines
3.3 KiB
JSON
{
|
|
"module": "mesh-config",
|
|
"version": "0.1",
|
|
"runs-as": "mesh-config",
|
|
"claims": [
|
|
{
|
|
"name": "mesh-config",
|
|
"scope": "mesh",
|
|
"serves": [
|
|
"config",
|
|
"renames"
|
|
]
|
|
}
|
|
],
|
|
"emits": [
|
|
"config-changed"
|
|
],
|
|
"uses": [
|
|
"operator-channel"
|
|
],
|
|
"consumes": [
|
|
"mesh-delivery-view.delivered",
|
|
"node-engine.manifest-reads-changed",
|
|
"mesh-catalog.manifest-accepted",
|
|
"mesh-delivery-indexer.views.predefined",
|
|
"mesh-delivery-assigner.views.assignments",
|
|
"mesh-delivery-assigner.views.wants",
|
|
"mesh-catalog.catalog-revision",
|
|
"mesh-catalog.registration-changed",
|
|
"mesh-delivery.source-moved",
|
|
"mesh-conditions.findings-asked"
|
|
],
|
|
"invokes": [
|
|
"seat:mesh-hand-acts.hand-act",
|
|
"seat:mesh-hand-acts.warranted",
|
|
"mesh-delivery-view.node_haves",
|
|
"seat:node-engine.manifest-reads",
|
|
"mesh-delivery-indexer.indexer_config_readers",
|
|
"seat:mesh-vault.retire",
|
|
"mesh-delivery-indexer.indexer_read_predefined",
|
|
"mesh-delivery-assigner.assigner_read_assignments",
|
|
"mesh-delivery-assigner.assigner_read_wants",
|
|
"seat:mesh-catalog.revision",
|
|
"seat:mesh-catalog.registrations",
|
|
"seat:mesh-catalog.entry",
|
|
"seat:mesh-delivery.source"
|
|
],
|
|
"tools": [
|
|
"config_declared",
|
|
"config_resync",
|
|
"config_renames",
|
|
"config_rename_again",
|
|
"config_rename_close",
|
|
"config_retiring",
|
|
"config_first_views",
|
|
"config_first_view_again",
|
|
"config_entry_again"
|
|
],
|
|
"state": [
|
|
"values",
|
|
"resolved",
|
|
"predefined",
|
|
"proposals",
|
|
"declared",
|
|
"renames",
|
|
"retiring",
|
|
"findings"
|
|
],
|
|
"logs": [
|
|
"history"
|
|
],
|
|
"own-secrets": {
|
|
"broker": "${dir:state}/broker"
|
|
},
|
|
"secrets-owner": "mesh-config",
|
|
"resources": [
|
|
{
|
|
"id": "account",
|
|
"type": "user",
|
|
"name": "mesh-config",
|
|
"shell": "/usr/bin/nologin",
|
|
"home": "/var/lib/mesh-config"
|
|
},
|
|
{
|
|
"id": "state",
|
|
"type": "directory",
|
|
"mode": "0700",
|
|
"owner": "mesh-config",
|
|
"place": ".",
|
|
"unknown": "program"
|
|
}
|
|
],
|
|
"build": {
|
|
"artifacts": [
|
|
{
|
|
"name": "tools",
|
|
"kind": "bundle",
|
|
"language": "go",
|
|
"system": "arch",
|
|
"from": "cmd/mesh-config",
|
|
"binary": "mesh-config",
|
|
"loads": [
|
|
"mesh-config"
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"streams": [
|
|
{
|
|
"name": "config-events",
|
|
"events": [
|
|
"renamed",
|
|
"retiring",
|
|
"retired"
|
|
],
|
|
"retention": "history"
|
|
},
|
|
{
|
|
"name": "mesh-config-findings",
|
|
"events": [
|
|
"finding-written.*",
|
|
"finding-cleared.*",
|
|
"findings-stated.*"
|
|
],
|
|
"max-age-days": 7,
|
|
"max-mib": 16
|
|
}
|
|
],
|
|
"config": {
|
|
"deadline-floor-seconds": {
|
|
"type": "number",
|
|
"description": "the least wait, in seconds, of mesh-config's one deadline timer: it is set for the earliest real deadline it holds (a waiting proposal's end, an unanswered retirement's second ask, a rename window's seven-day held finding) and never sooner than this after a look, so a deadline passed and not settled is tried again, not spun on (lead answer A-490l, ADR 0681).",
|
|
"minimum": 1,
|
|
"maximum": 3600,
|
|
"trusted": false,
|
|
"default": 60,
|
|
"runtime": true
|
|
}
|
|
}
|
|
}
|