Files
portal/runs/contractor-planned-2026-09-24/r3/site/aggregates.yaml
T
Bendik Aagaard LynghaugandClaude Fable 5.1 4d22f4cb44 plan: a spectator role goes back to the model once; bare-word movers and unlabelled groups parse
Re-planning the contractor showed three wasted rounds: `moves_by: {
checking: submitter }` written as a bare word, a group without a
label, and the two featured owner roles left with nothing to play,
which the builder only warned about after the fact. The bare word and
the missing label now parse (a label defaults to the id), and a plan
that parses with spectator roles is sent back once with the finding;
on the contractor, round three fixed both.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-24 06:42:05 +02:00

179 lines
4.3 KiB
YAML

aggregates:
- bucket: enquiries
initial: open
states:
lost:
event: lost
mail:
body: |-
Hello {name},
What you sent about someone to look at the building and quote the work is now lost.
Ingrid Nordvik at ingrid@nordvikbygg.example
subject: 'Nordvik Bygg: Lost'
to: submitter
open:
event: received
mail:
body: |-
Hello {name},
We have received what you sent about someone to look at the building and quote the work.
What you can do next: {site}/decide/enquiry?chain={chain}&email={email}
Ingrid Nordvik at ingrid@nordvikbygg.example
subject: 'Nordvik Bygg: Open'
to: submitter
quoted:
event: quoted
surveyed:
event: surveyed
won:
event: won
mail:
body: |-
Hello {name},
What you sent about someone to look at the building and quote the work is now won.
Ingrid Nordvik at ingrid@nordvikbygg.example
subject: 'Nordvik Bygg: Won'
to: submitter
transitions:
open:
- surveyed
- lost
quoted:
- won
surveyed:
- quoted
- lost
- bucket: job_applications
initial: open
states:
declined:
event: declined
mail:
body: |-
Hello {name},
What you sent about to be considered for a job and invited to interview is now declined.
Ingrid Nordvik at ingrid@nordvikbygg.example
subject: 'Nordvik Bygg: Declined'
to: submitter
hired:
event: hired
mail:
body: |-
Hello {name},
What you sent about to be considered for a job and invited to interview is now hired.
Ingrid Nordvik at ingrid@nordvikbygg.example
subject: 'Nordvik Bygg: Hired'
to: submitter
interview:
event: interview
mail:
body: |-
Hello {name},
What you sent about to be considered for a job and invited to interview is now interview.
Ingrid Nordvik at ingrid@nordvikbygg.example
subject: 'Nordvik Bygg: Interview'
to: submitter
open:
event: received
mail:
body: |-
Hello {name},
We have received what you sent about to be considered for a job and invited to interview.
Ingrid Nordvik at ingrid@nordvikbygg.example
subject: 'Nordvik Bygg: Open'
to: submitter
transitions:
interview:
- hired
- declined
open:
- interview
- hired
- declined
- bucket: site_reports
initial: open
states:
closed:
event: closed
mail:
body: |-
Hello,
What you sent about to report a hazard, near miss or wrong delivery so it gets fixed is now closed.
Ingrid Nordvik at ingrid@nordvikbygg.example
subject: 'Nordvik Bygg: Closed'
to: submitter
in_progress:
event: in_progress
open:
event: received
transitions:
in_progress:
- closed
open:
- in_progress
- bucket: subcontractor_applications
initial: open
states:
approved:
event: approved
mail:
body: |-
Hello,
What you sent about to be approved as a subcontractor for electrical, plumbing or scaffolding work is now approved.
Ingrid Nordvik at ingrid@nordvikbygg.example
subject: 'Nordvik Bygg: Approved'
to: submitter
checking_papers:
event: checking_papers
open:
event: received
mail:
body: |-
Hello,
We have received what you sent about to be approved as a subcontractor for electrical, plumbing or scaffolding work.
What you can do next: {site}/decide/subcontractor-application?chain={chain}&email={email}
Ingrid Nordvik at ingrid@nordvikbygg.example
subject: 'Nordvik Bygg: Open'
to: submitter
turned_down:
event: turned_down
mail:
body: |-
Hello,
What you sent about to be approved as a subcontractor for electrical, plumbing or scaffolding work is now turned down.
Ingrid Nordvik at ingrid@nordvikbygg.example
subject: 'Nordvik Bygg: Turned down'
to: submitter
transitions:
checking_papers:
- approved
- turned_down
open:
- checking_papers
- approved
- turned_down