A permit about to be granted by the town hall's silence
Goal Be warned seven days before an undecided planning application becomes a tacit decision, by its type and its legal period.
A town hall instructs planning applications. With no decision notified in the period, silence counts as a non-opposition or a tacit permit. A town hall that loses track of a file has decided without meaning to: the warning is worth something only before.
- the period in months, computed at the door by the operator's script
- the warning seven days before the deadline
- the ABF exception written once
dossier_no;type;objet;complete_on;abf;status DP-2026-041;DP;Pose d'une clôture, 12 rue des Lilas;2026-10-25;non;EN_INSTRUCTION PCMI-2026-017;PCMI;Maison individuelle, lotissement Les Prés;2026-11-01;non;EN_INSTRUCTION PC-2026-008;PC;Hangar agricole, chemin du Moulin;2026-08-25;non;EN_INSTRUCTION DP-2026-039;DP;Ravalement de façade, place de l'Église;2026-10-23;non;ACCORDE PCMI-2026-015;PCMI;Extension, abords de la chapelle;2026-09-24;oui;EN_INSTRUCTION
manifests/tacit-deadline.kts
// Operator-provided: when a town hall's silence on a planning application becomes a tacit decision, and when to warn.// Code de l'urbanisme R*423-23: 1 month for a prior declaration (DP), 2 for a house (PCMI) or a demolition (PD),// 3 for any other building permit (PC) or a development permit (PA), from the day the file is complete.// R*424-1: silence then counts as non-opposition or a tacit permit. R*424-3: with the ABF's opinion, silence is a// refusal — no tacit decision, so no warning. The warning falls 7 days before the deadline.@Suppress("UNCHECKED_CAST")val cells = bindings["cells"] as MutableMap<String, Any?>val months = when ((cells["type"] as String?)?.trim()) { "DP" -> 1L "PCMI", "PD" -> 2L "PC", "PA" -> 3L else -> null}val complete = (cells["complete_on"] as String?)?.trim()val abf = (cells["abf"] as String?)?.trim() == "oui"val deadline = if (months == null || complete.isNullOrEmpty()) null else java.time.LocalDate.parse(complete).plusMonths(months)cells["deadline_on"] = deadline?.toString()cells["warn_on"] = if (deadline == null || abf) null else deadline.minusDays(7).toString()cells["tacit_issue"] = when { months == null -> "unknown type" complete.isNullOrEmpty() -> "file not complete" abf -> "ABF opinion: silence is a refusal (R*424-3)" else -> null}manifests/10-register.yaml
apiVersion: connectors.lumnik.io/v1kind: Connectormetadata: name: scenario-urbanisme-a connector_type: csv-file scopes: [urbanisme-a]spec: transport: kind: sftp host: host.docker.internal port: 2229 user: mairie path: /exports/registre-urbanisme.csv password_env: SCENARIO_URBANISME_A_SFTP # The fingerprint the town hall's export server presents, read out of band (ssh-keyscan | ssh-keygen -lf -). host_key_fingerprint: "SHA256:FINGERPRINT_READ_AT_REPLAY" parser: has_header: true delimiter: ";" encoding: UTF-8 after_process: none mapping: cell: - kotlin: script: hooks:tacit-deadline-a.kts # the operator's script: R*423-23 periods, R*424-3 exception - parse-date: { column: complete_on, formats: ["yyyy-MM-dd"] } - parse-date: { column: deadline_on, formats: ["yyyy-MM-dd"] } - parse-date: { column: warn_on, formats: ["yyyy-MM-dd"] }manifests/20-instruction.yaml
apiVersion: apps.lumnik.io/v1kind: Workflowmetadata: name: scenario-urbanisme-tacit-aspec: scope: urbanisme-a provenance: declared on: table: connector.t_scenario_urbanisme_a column: status key: dossier_no due: column: warn_on # seven days before silence becomes a tacit decision states: [EN_INSTRUCTION] zone: Europe/Paris message: "{doc_key} ({type}, {objet}): without a decision notified by {deadline_on}, silence becomes a tacit decision" fields: [complete_on, tacit_issue] states: - { code: EN_INSTRUCTION, label: "Under instruction", initial: true } - { code: ACCORDE, label: "Granted", terminal: true } - { code: REFUSE, label: "Refused", terminal: true }$ lm hook scripts
NAME SIZE SHA256
cfonb-amount-b.kts 784 3f94b73a8a923324f6750648e230e3d91026299ed636627a4562b14552d493ba
cfonb-amount-c.kts 784 3f94b73a8a923324f6750648e230e3d91026299ed636627a4562b14552d493ba
coordinates-c.kts 5076 cc87f4a8e8ccbb38f3306d4dce5a013dab984c36a8cd72afd72e8bd142504542
ean-check-b.kts 477 58c3d6b83a0df5c9ae779aada8604f6bd850db7c52ca258b5bc6dc45fd8ea23c
ean-check-c.kts 477 58c3d6b83a0df5c9ae779aada8604f6bd850db7c52ca258b5bc6dc45fd8ea23c
ean-check-d.kts 477 58c3d6b83a0df5c9ae779aada8604f6bd850db7c52ca258b5bc6dc45fd8ea23c
ean-draft-b.kts 476 c8692d84859f810de8903ded14a03a1ec4db93e1282aa88b4fb9f5e42b6586ea
ean-draft-c.kts 476 c8692d84859f810de8903ded14a03a1ec4db93e1282aa88b4fb9f5e42b6586ea
ean-draft-d.kts 526 90a58aae66c5feec5e52017e90d86b9ee93e46ce7d97dc0c1eb4b5faefb636a7
promised-date-b.kts 1407 44ceece5d17c40d337374d02f942aef41b092b6708ff7dbc48efc8b43aef1ac9
shipping-fee-c.kts 333 c1c59e5c7b81302d5a284c9c722ca8cacaca0fe859c8ae1c393cd1d54a1ad9ad
shipping-fee-p.kts 333 c1c59e5c7b81302d5a284c9c722ca8cacaca0fe859c8ae1c393cd1d54a1ad9ad
tacit-deadline-a.kts 1337 a8a09729abec39c1ea34b898c52e4342b26884a0dc6880d65f1f2f6b541b687c
$ lm apply -f 10-register.yaml
Applied connector "scenario-urbanisme-a" — 1 endpoint
$ lm connector run scenario-urbanisme-a
run scheduled: 7a28fdc2-8832-4750-a023-3e9b8ddc9789
$ lm run get 7a28fdc2-8832-4750-a023-3e9b8ddc9789 --wait-evaluated
ID CONNECTOR ENDPOINT STATUS IN OUT SKIPPED DEAD-LETTERS STARTED ENDED EVALUATED
7a28fdc2 scenario-urbanisme-a default Completed 5 5 0 0 2026-11-21 23:14 2026-11-21 23:14 yes
• script hooks:tacit-deadline-a.kts sha256 a8a09729abec39c1ea34b898c52e4342b26884a0dc6880d65f1f2f6b541b687c
$ lm workflow apply -f 20-instruction.yaml -o json
{
"name": "scenario-urbanisme-tacit-a",
"scope": "urbanisme-a",
"table": "connector.t_scenario_urbanisme_a",
"column": "status",
"dataTruth": {
"undeclared": [],
"unobserved": [
"REFUSE"
],
"nullOrBlank": 0,
"tableMissing": false,
"keyColumnMissing": false,
"keyNullOrBlank": 0,
"checkUnavailable": false,
"unavailableReason": null,
"dueProblem": null,
"invalidOrderValues": null,
"keysWithSeveralRows": null,
"columnsUnverified": []
}
}- run
- IN 5 · OUT 5 · cell errors 0
- DP-2026-041
- tacit on 2026-11-25
- PCMI-2026-017
- tacit on 2027-01-01
- PC-2026-008
- tacit on 2026-11-25
- DP-2026-039
- tacit on 2026-11-23
- PCMI-2026-015
- tacit on 2026-11-24
evidence: replay.log, 00-check-deadlines.txt, 01-hook-scripts.txt, 02-run.json, 03-workflow-apply.json, 04-decisions.json · transform v1
$ lm inbox --process workflow:scenario-urbanisme-tacit-a
ID WHEN PROCESS MESSAGE ENTITY_KEY
31747 just now workflow:scenario-urbanisme-tacit-a PC-2026-008 (PC, Hangar agricole, chemin du Moulin): without a decision notified by 2026-11-25, silence becomes a tacit decision PC-2026-008
31746 just now workflow:scenario-urbanisme-tacit-a DP-2026-041 (DP, Pose d'une clôture, 12 rue des Lilas): without a decision notified by 2026-11-25, silence becomes a tacit decision DP-2026-041- decision
- DP-2026-041 (DP, Pose d'une clôture, 12 rue des Lilas): without a decision notified by 2026-11-25, silence becomes a tacit decision
- decision
- PC-2026-008 (PC, Hangar agricole, chemin du Moulin): without a decision notified by 2026-11-25, silence becomes a tacit decision
- check_deadlines.py
- DP-2026-041 PC-2026-008
evidence: replay.log, 00-check-deadlines.txt, 01-hook-scripts.txt, 02-run.json, 03-workflow-apply.json, 04-decisions.json · transform v1
Limits
- Extended periods (a commission, a monument, another authorisation) are not read: the script takes the common-law periods.
- A request for documents that restarts the period is not read: the register gives the day the file was complete.
- The hundreds of other "silence means consent" procedures are not covered: this scenario takes planning.
- No decision is taken: lumnik warns the team, the mayor decides and notifies.
- Five synthetic files, dated from the day of the replay.
This scenario needs lumnik Pro.
See the editions →