Files
portal/runs/permits-plan-2026-09-30/site/aggregates.yaml
T
Bendik Aagaard LynghaugandClaude Fable 5.1 3dabcf7c58 build: one page holds every need that answers a record; runs: the kommune planned again by Opus
Two needs about the same record wrote the same page, and the last won.
The record's page now holds one form per answering need, under
words["forms"][need].

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GT37Z1Xtfd9pUuQtMTg6Yt
2026-09-30 08:58:55 +02:00

612 lines
16 KiB
YAML

aggregates:
- bucket: appeals
initial: open
states:
open:
event: received
mail:
to: submitter
subject: 'Vestmark kommune - Building and Planning: Open'
body: |-
Hello {name},
We have received what you sent about To appeal a decision we have made.
Solveig Hauge at byggesak@vestmark.example
under_review:
event: under_review
decision_changed:
event: decision_changed
mail:
to: submitter
subject: 'Vestmark kommune - Building and Planning: Decision changed'
body: |-
Hello {name},
What you sent about To appeal a decision we have made is now we changed our own decision.
Solveig Hauge at byggesak@vestmark.example
sent_to_board:
event: sent_to_board
mail:
to: submitter
subject: 'Vestmark kommune - Building and Planning: Sent to board'
body: |-
Hello {name},
What you sent about To appeal a decision we have made is now sent to the appeals board.
Solveig Hauge at byggesak@vestmark.example
upheld:
event: upheld
mail:
to: submitter
subject: 'Vestmark kommune - Building and Planning: Upheld'
body: |-
Hello {name},
What you sent about To appeal a decision we have made is now decision upheld by the board.
Solveig Hauge at byggesak@vestmark.example
overturned:
event: overturned
mail:
to: submitter
subject: 'Vestmark kommune - Building and Planning: Overturned'
body: |-
Hello {name},
What you sent about To appeal a decision we have made is now decision overturned by the board.
Solveig Hauge at byggesak@vestmark.example
dismissed:
event: dismissed
mail:
to: submitter
subject: 'Vestmark kommune - Building and Planning: Dismissed'
body: |-
Hello {name},
What you sent about To appeal a decision we have made is now dismissed.
Solveig Hauge at byggesak@vestmark.example
transitions:
open:
- under_review
- dismissed
sent_to_board:
- upheld
- overturned
under_review:
- sent_to_board
- dismissed
- decision_changed
- bucket: applications
initial: open
states:
open:
event: received
mail:
to: submitter
subject: 'Vestmark kommune - Building and Planning: Open'
body: |-
Hello {name},
We have received what you sent about Permission to build, demolish, divide a property or change what a building is used for.
What you can do next: {site}/decide/application?chain={chain}&email={email}
Solveig Hauge at byggesak@vestmark.example
papers_missing:
event: papers_missing
mail:
to: submitter
subject: 'Vestmark kommune - Building and Planning: Papers missing'
body: |-
Hello {name},
What you sent about Permission to build, demolish, divide a property or change what a building is used for is now papers missing, clock stopped.
What you can do next: {site}/decide/application?chain={chain}&email={email}
Solveig Hauge at byggesak@vestmark.example
papers_received:
event: papers_received
complete:
event: complete
mail:
to: submitter
subject: 'Vestmark kommune - Building and Planning: Complete'
body: |-
Hello {name},
What you sent about Permission to build, demolish, divide a property or change what a building is used for is now complete, clock running.
What you can do next: {site}/decide/application?chain={chain}&email={email}
Solveig Hauge at byggesak@vestmark.example
in_hearing:
event: in_hearing
mail:
to: submitter
subject: 'Vestmark kommune - Building and Planning: In hearing'
body: |-
Hello {name},
What you sent about Permission to build, demolish, divide a property or change what a building is used for is now out to neighbours and agencies.
What you can do next: {site}/decide/application?chain={chain}&email={email}
Solveig Hauge at byggesak@vestmark.example
after:
days: 42
to: hearing_over
hearing_over:
event: hearing_over
recommended:
event: recommended
approved:
event: approved
mail:
to: submitter
subject: 'Vestmark kommune - Building and Planning: Approved'
body: |-
Hello {name},
What you sent about Permission to build, demolish, divide a property or change what a building is used for is now approved.
Solveig Hauge at byggesak@vestmark.example
approved_with_conditions:
event: approved_with_conditions
mail:
to: submitter
subject: 'Vestmark kommune - Building and Planning: Approved with conditions'
body: |-
Hello {name},
What you sent about Permission to build, demolish, divide a property or change what a building is used for is now approved with conditions.
Solveig Hauge at byggesak@vestmark.example
refused:
event: refused
mail:
to: submitter
subject: 'Vestmark kommune - Building and Planning: Refused'
body: |-
Hello {name},
What you sent about Permission to build, demolish, divide a property or change what a building is used for is now refused.
Solveig Hauge at byggesak@vestmark.example
withdrawn:
event: withdrawn
mail:
to: submitter
subject: 'Vestmark kommune - Building and Planning: Withdrawn'
body: |-
Hello {name},
What you sent about Permission to build, demolish, divide a property or change what a building is used for is now withdrawn.
Solveig Hauge at byggesak@vestmark.example
transitions:
complete:
- in_hearing
- withdrawn
- papers_missing
hearing_over:
- recommended
- withdrawn
in_hearing:
- hearing_over
- withdrawn
- papers_missing
open:
- papers_received
- complete
- withdrawn
- papers_missing
papers_missing:
- papers_received
- complete
- withdrawn
papers_received:
- complete
- withdrawn
- papers_missing
recommended:
- approved
- approved_with_conditions
- withdrawn
- refused
- bucket: approved_firm_requests
initial: open
states:
open:
event: received
mail:
to: submitter
subject: 'Vestmark kommune - Building and Planning: Open'
body: |-
Hello {name},
We have received what you sent about To be approved by us and put on the list of firms that may file.
Solveig Hauge at byggesak@vestmark.example
checked:
event: checked
listed:
event: listed
mail:
to: submitter
subject: 'Vestmark kommune - Building and Planning: Listed'
body: |-
Hello {name},
What you sent about To be approved by us and put on the list of firms that may file is now on the list.
Solveig Hauge at byggesak@vestmark.example
grants: approved_firms
refused:
event: refused
mail:
to: submitter
subject: 'Vestmark kommune - Building and Planning: Refused'
body: |-
Hello {name},
What you sent about To be approved by us and put on the list of firms that may file is now refused.
Solveig Hauge at byggesak@vestmark.example
transitions:
checked:
- listed
- refused
open:
- checked
- refused
- bucket: completion_certificates
initial: open
states:
open:
event: received
mail:
to: submitter
subject: 'Vestmark kommune - Building and Planning: Open'
body: |-
Hello {name},
We have received what you sent about A completion certificate for the finished work.
Solveig Hauge at byggesak@vestmark.example
checked:
event: checked
issued:
event: issued
mail:
to: submitter
subject: 'Vestmark kommune - Building and Planning: Issued'
body: |-
Hello {name},
What you sent about A completion certificate for the finished work is now certificate signed.
Solveig Hauge at byggesak@vestmark.example
refused:
event: refused
mail:
to: submitter
subject: 'Vestmark kommune - Building and Planning: Refused'
body: |-
Hello {name},
What you sent about A completion certificate for the finished work is now refused.
Solveig Hauge at byggesak@vestmark.example
transitions:
checked:
- issued
- refused
open:
- checked
- refused
- bucket: exemptions
initial: open
states:
open:
event: received
mail:
to: submitter
subject: 'Vestmark kommune - Building and Planning: Open'
body: |-
Hello {name},
We have received what you sent about An exemption from the zoning rules, decided alongside their application.
Solveig Hauge at byggesak@vestmark.example
county_asked:
event: county_asked
mail:
to: submitter
subject: 'Vestmark kommune - Building and Planning: County asked'
body: |-
Hello {name},
What you sent about An exemption from the zoning rules, decided alongside their application is now county asked.
Solveig Hauge at byggesak@vestmark.example
after:
days: 42
to: county_heard
county_heard:
event: county_heard
granted:
event: granted
mail:
to: submitter
subject: 'Vestmark kommune - Building and Planning: Granted'
body: |-
Hello {name},
What you sent about An exemption from the zoning rules, decided alongside their application is now granted.
Solveig Hauge at byggesak@vestmark.example
refused:
event: refused
mail:
to: submitter
subject: 'Vestmark kommune - Building and Planning: Refused'
body: |-
Hello {name},
What you sent about An exemption from the zoning rules, decided alongside their application is now refused.
Solveig Hauge at byggesak@vestmark.example
transitions:
county_asked:
- county_heard
- refused
county_heard:
- granted
- refused
open:
- county_asked
- refused
- bucket: hearing_answers
initial: open
states:
open:
event: received
after:
days: 42
to: no_answer
answered:
event: answered
no_answer:
event: no_answer
transitions:
open:
- answered
- no_answer
- bucket: illegal_building
initial: open
states:
open:
event: received
inspected:
event: inspected
owner_written_to:
event: owner_written_to
explained:
event: explained
fined:
event: fined
applied_for:
event: applied_for
taken_down:
event: taken_down
nothing_illegal:
event: nothing_illegal
transitions:
explained:
- fined
- applied_for
- taken_down
- nothing_illegal
fined:
- applied_for
- taken_down
inspected:
- owner_written_to
- nothing_illegal
open:
- inspected
- nothing_illegal
owner_written_to:
- explained
- bucket: inspections
initial: open
states:
open:
event: received
to_put_right:
event: to_put_right
as_approved:
event: as_approved
transitions:
open:
- to_put_right
- as_approved
to_put_right:
- as_approved
- bucket: objections
initial: open
states:
open:
event: received
mail:
to: submitter
subject: 'Vestmark kommune - Building and Planning: Open'
body: |-
Hello {name},
We have received what you sent about To object to an application and have the objection answered in the decision.
Solveig Hauge at byggesak@vestmark.example
registered:
event: registered
mail:
to: '{applications.email}'
subject: 'Vestmark kommune - Building and Planning: Registered'
body: |-
A case in objections is now registered on the case: .
Solveig Hauge at byggesak@vestmark.example
answered:
event: answered
addressed:
event: addressed
mail:
to: submitter
subject: 'Vestmark kommune - Building and Planning: Addressed'
body: |-
Hello {name},
What you sent about To object to an application and have the objection answered in the decision is now addressed in the decision.
Solveig Hauge at byggesak@vestmark.example
transitions:
answered:
- addressed
open:
- registered
registered:
- answered
- addressed
- bucket: paper_objections
initial: open
states:
open:
event: received
registered:
event: registered
answered:
event: answered
addressed:
event: addressed
transitions:
answered:
- addressed
open:
- registered
registered:
- answered
- addressed
- bucket: pre_application_meetings
initial: open
states:
open:
event: received
mail:
to: submitter
subject: 'Vestmark kommune - Building and Planning: Open'
body: |-
Hello {name},
We have received what you sent about A meeting with a case officer, and a written note of what we told them.
What you can do next: {site}/decide/pre-application-meeting?chain={chain}&email={email}
Solveig Hauge at byggesak@vestmark.example
scheduled:
event: scheduled
mail:
to: submitter
subject: 'Vestmark kommune - Building and Planning: Scheduled'
body: |-
Hello {name},
What you sent about A meeting with a case officer, and a written note of what we told them is now time found.
What you can do next: {site}/decide/pre-application-meeting?chain={chain}&email={email}
Solveig Hauge at byggesak@vestmark.example
met:
event: met
written_up:
event: written_up
mail:
to: submitter
subject: 'Vestmark kommune - Building and Planning: Written up'
body: |-
Hello {name},
What you sent about A meeting with a case officer, and a written note of what we told them is now written down and sent.
Solveig Hauge at byggesak@vestmark.example
cancelled:
event: cancelled
mail:
to: submitter
subject: 'Vestmark kommune - Building and Planning: Cancelled'
body: |-
Hello {name},
What you sent about A meeting with a case officer, and a written note of what we told them is now cancelled.
Solveig Hauge at byggesak@vestmark.example
transitions:
met:
- written_up
open:
- scheduled
- cancelled
scheduled:
- met
- cancelled
- bucket: temporary_permissions
initial: open
states:
open:
event: received
mail:
to: submitter
subject: 'Vestmark kommune - Building and Planning: Open'
body: |-
Hello {name},
We have received what you sent about A temporary permission to use the building.
Solveig Hauge at byggesak@vestmark.example
checked:
event: checked
issued:
event: issued
mail:
to: submitter
subject: 'Vestmark kommune - Building and Planning: Issued'
body: |-
Hello {name},
What you sent about A temporary permission to use the building is now temporary permission signed.
Solveig Hauge at byggesak@vestmark.example
refused:
event: refused
mail:
to: submitter
subject: 'Vestmark kommune - Building and Planning: Refused'
body: |-
Hello {name},
What you sent about A temporary permission to use the building is now refused.
Solveig Hauge at byggesak@vestmark.example
transitions:
checked:
- issued
- refused
open:
- checked
- refused