mirror of
https://github.com/bitbaum/causius.git
synced 2026-12-04 02:47:39 +01:00
A new workflow for someone whose residence status may limit self-employment or founding a company: the agent researches, with cited provisions, what this status may do and what each route needs, sets out every lawful way to reach the actual goal (earn, invoice, pay tax, comply), never one that breaks the law, and names the provision that closes a route where none is open, so it can be changed. /matters?in=CH-ZH chooses the place, so a place's page on Solon can open a matter already set there. Only a code the picker offers is taken. Claude-Session: https://claude.ai/code/session_019MDtmvTCDbJAYNKQpNyKzz Co-authored-by: Claude <noreply@anthropic.com>
64 lines
5.4 KiB
TypeScript
64 lines
5.4 KiB
TypeScript
/**
|
|
* Repeatable workflows: the common problems people bring, each a way to start
|
|
* a matter that already knows what has to be established.
|
|
*
|
|
* NO LAW LIVES HERE. Not a deadline, not an article number, not an amount.
|
|
* A brief says what the agent must FIND OUT and what it must produce; the rule
|
|
* itself is researched and cited each time (agent SYSTEM prompt), so a brief
|
|
* cannot go stale when the law changes, and Solon can later supply the rules as
|
|
* data. What the person reads (name, what to have ready) is in messages/*.json
|
|
* under `Workflows`, keyed by id.
|
|
*/
|
|
export const WORKFLOWS = [
|
|
{
|
|
id: "debt-collection",
|
|
area: "debt",
|
|
brief:
|
|
"The person received a payment order or similar debt-collection notice. First establish the exact date it was served and whether the claim is owed in full, in part or not at all. Research the objection procedure and its deadline in this jurisdiction from the official source, record the deadline with record_deadline quoting its source, and say plainly how to object (how, where, in what form). If they dispute the claim, draft the objection; if they owe it, explain the options to pay or agree instalments. Propose filing with request_approval.",
|
|
},
|
|
{
|
|
id: "rent-increase",
|
|
area: "tenancy",
|
|
brief:
|
|
"The person's landlord announced a rent increase or other change to the lease. Ask for the notice and the lease. Research whether the notice is valid in form (official form, reasons given), the grounds the law allows for an increase, and the deadline and authority for contesting it in this jurisdiction, each with a cited official source. Record the deadline. If contesting is worth it, draft the submission to the competent conciliation authority; propose filing with request_approval.",
|
|
},
|
|
{
|
|
id: "tax-assessment",
|
|
area: "tax",
|
|
brief:
|
|
"The person received a tax assessment they think is wrong. Ask for the assessment and the return it was based on. Identify which tax and which level (federal, cantonal, communal) it concerns, find each difference between return and assessment, research the objection deadline and form in this jurisdiction with a cited official source, and record the deadline. Draft the objection with reasons for each disputed item; propose filing with request_approval.",
|
|
},
|
|
{
|
|
id: "dismissal",
|
|
area: "employment",
|
|
brief:
|
|
"The person was dismissed or fears dismissal. Establish the dates (contract start, notice given, notice received), the contract terms and any illness, accident, pregnancy or military service. Research the notice period, protected periods, and the rules on abusive dismissal and the deadline to object to it in this jurisdiction, each with a cited source. Record every deadline. Draft what is needed (written objection, request for reasons, certificate of employment); propose sending with request_approval.",
|
|
},
|
|
{
|
|
id: "insurance-refusal",
|
|
area: "social",
|
|
brief:
|
|
"An insurer refused or cut a payment. Ask for the decision and the policy or the relevant social-insurance law. Identify whether it is private insurance or social insurance and research the remedy and its deadline accordingly, with a cited source. Record the deadline. Draft the objection or complaint with the facts and reasons; propose sending with request_approval.",
|
|
},
|
|
{
|
|
id: "own-account",
|
|
area: "migration",
|
|
brief:
|
|
"The person wants to work for themselves, invoice clients or start a business, and their residence status may limit what they may do (for example an asylum seeker, a provisionally admitted person, a short-term permit, a cross-border commuter, or no permit yet). Ask for the country and region, their residence status as written on their permit, and what they want to do; ask nothing more about them than the answer needs. Research from the official sources, each with a cited provision: whether this status may work self-employed, found a company, hold shares in one, manage one, or be employed; which authorisation each needs, from which authority, on which form, at what cost and how long it usually takes. Then set out every lawful way to reach the person's actual goal (earning, invoicing, paying tax and social contributions, complying with the rules of the trade), and for each say whether it is open to this status and on which provision that rests. Never propose a way that breaks the law or keeps the activity from the authorities. Where no lawful way is open, say so plainly, name the provision that closes it and what would have to change, so the person can support changing it. Draft the application for the route the person chooses and record every deadline with its source; propose filing with request_approval.",
|
|
},
|
|
{
|
|
id: "association",
|
|
area: "company",
|
|
brief:
|
|
"The person wants to found an association (or similar non-profit body). Ask for its name, purpose, seat and founders. Research the minimum legal requirements for statutes and founding in this jurisdiction with cited sources, check the name's domains with check_domain, and draft the statutes and the founding minutes. Registration, if it is required or wanted, is a step for the person: propose it with request_approval.",
|
|
},
|
|
] as const;
|
|
|
|
export type Workflow = (typeof WORKFLOWS)[number];
|
|
export type WorkflowId = Workflow["id"];
|
|
export const WORKFLOW_IDS = WORKFLOWS.map((w) => w.id) as [WorkflowId, ...WorkflowId[]];
|
|
|
|
export function workflowById(id: string | undefined): Workflow | undefined {
|
|
return WORKFLOWS.find((w) => w.id === id);
|
|
}
|