P1: the carry-over leaves the licence manager (issue 1409)

The carry-over from the store database ran live once and carried every row, so its code, the gate that answered
"the carry-over has not ended", the condition carry-over-failed, the tool licences_carried, the opening of grants
with grant.key and the postgres driver leave the module, with its requirement of the database and of the secret
grant-key. The state carried stays as the carry-over's record; at its start the manager waits for nothing and
clears a carry-over-failed it finds kept.

Builds: design 39 parts §6 (the template files/database.url), §9, §10, §11
This commit is contained in:
2026-11-12 11:55:54 +01:00
parent f9dcbc2957
commit ce9f984363
20 changed files with 180 additions and 1610 deletions
+1 -32
View File
@@ -4,8 +4,6 @@
"slug": "licmgr",
"runs-as": "claude-licence-manager",
"requires": [
"postgres-database",
"secret",
{
"name": "licences",
"storage": "key-value",
@@ -68,24 +66,6 @@
"max-mib": 64
}
],
"contributes": {
"postgres-database": {
"name": "claude_licences",
"readable": [
"audit",
"binding"
]
}
},
"binds": {
"postgres-database": "${dir:state}/database.json"
},
"secrets": {
"postgres-database": "${dir:state}/database.secret",
"secret": {
"grant-key": "${dir:state}/grant.key"
}
},
"own-secrets": {
"broker": "${dir:state}/broker"
},
@@ -247,14 +227,6 @@
"place": ".",
"unknown": "program"
},
{
"id": "database-url",
"type": "file",
"path": "${dir:state}/database.url",
"mode": "0600",
"owner": "claude-licence-manager",
"template": "files/database.url"
},
{
"id": "settings",
"type": "file",
@@ -285,8 +257,7 @@
"licences_settings",
"licences_kept",
"licences_resync",
"licences_conditions",
"licences_carried"
"licences_conditions"
],
"build": {
"artifacts": [
@@ -301,9 +272,7 @@
"claude-licence-manager"
],
"env": {
"DATABASE_URL_FILE": "${dir:state}/database.url",
"MESH_LICENCE_STATE": "${dir:state}",
"MESH_LICENCE_KEY_FILE": "${dir:state}/grant.key",
"MESH_LICENCE_SETTINGS": "${dir:state}/settings.json"
}
},