← All seeds & suites
assocdesk ADL 0.5.1 Community Association Management

Assoc Desk

Community association (HOA/condo) management where AI flags violations from patrol photos and drafts owner letters, and managers and boards decide: no letter about an unverified violation, and no fine without notice, a missed cure date and a hearing.

Resources (8)
association, home, assessment, violation, notice, arcrequest, motion, workorder
Roles (3)
manager, board, admin
Features (10)
suitepermissionsstate_machinevalidationrules_engineviewsscheduled_tasksaudithistory_eventsindexes

assoc-desk.infinity-sdg.com — community association management where AI patrols and drafts, and managers and boards decide.

association → homes → assessments: billed → paid | delinquent → referred to collections
violations: reported (inspection · complaint · AI patrol photo)
  → verified by a manager → letter sent → cure period
  → cured   |   cure date passes → hearing notice → hearing → fined | dismissed
letters: drafted (AI or manager) → approved → sent
architectural requests → under review → approved | approved with conditions | denied
board motions → passed (quorum + majority) | failed;  big contracts need one
nightly: billed dues 30 days past due turn delinquent

What it enforces

RuleWhy
AI-detected violations report a confidence and must be verified by a managerCameras and models misread; an owner never hears about an unverified flag
No letter about a violation that hasn’t been verified, and every AI-drafted letter is approved before sendingPeople own what goes out
A violation counts as noticed only when a notice was actually sentNotice is recorded, not assumed
A hearing only after the cure date passes and a hearing notice is sent; only the board can fineDue process before money changes hands
Collections only after a late-payment notice was sent to that homeOwners get a chance to pay first
Motions pass only with a quorum and more votes for than againstBoard actions are valid
Work over $10,000 needs a passed board motionSpending authority
Denials and conditional approvals of architectural requests state their reasons or conditionsOwners know why

Every resource is audited. Violations keep a readable history from report to outcome.

Resources, views, roles

  • Resources: association, home, assessment, violation, notice, arcrequest, motion, workorder
  • Views:
    • aiPatrolToVerify
    • noticesToApprove
    • delinquencies
    • openViolations
  • Roles:
    • manager: the community manager, who handles day-to-day operations
    • board: hearings, fines, architectural decisions, votes
    • admin

Demo data

The demo portfolio has 10 associations (HOAs, condos and a co-op in NC, SC, GA, FL and TX) and 26 homes.

  • Dues: two months of dues, mostly paid. Some are delinquent, and one was referred to collections after its late notice was sent.
  • Violations, 12 in every state:
    • AI-patrol detections waiting for a manager
    • an AI false positive that a manager dismissed (it was a recycling bin on collection day)
    • letters still in their cure period
    • two hearings
    • one fine, after a missed hearing
    • two cures
  • Letters: AI-drafted letters waiting for approval.
  • Architectural requests: 10, approved, conditional, denied and pending.
  • Board motions: 10. Six passed, and two failed on their votes.
  • Work orders: 10. The roof, pool and elevator contracts are each backed by a passed motion, and a $58K repaving job waits for its vote.

Everyone and everything is invented. Phone numbers use the 555 range. To regenerate the data, run python3 seeds/gen_seed.py.

Run it

scripts/kalos.sh validate    # static checks
scripts/kalos.sh start       # kalosd on :9216
scripts/kalos.sh verify      # live checks

By default, KALOS_REPO is ../kalos.

Sign in with admin / Admin123!. The other users are manager1 and board1, both with password Demo123!.

Domain Resource Summary

ResourcePurpose & Lifecycle
associationA homeowners or condominium association under management.
homeA home or unit and its owner of record.
assessmentA dues or special-assessment charge on a home. (States: billed, delinquent, referred, paid)
violationA suspected breach of the governing documents, handled with notice and a hearing. (States: reported, verified, noticed, hearing, cured, fined, dismissed)
noticeA letter to an owner. AI may draft it; a manager approves it before it is sent. (States: draft, approved, sent)
arcrequestAn architectural review request: an owner asks to change their home’s exterior. (States: submitted, under_review, approved, conditional, denied)
motionA board motion and its vote. (States: proposed, passed, failed)
workorderMaintenance or a contract for common areas. (States: open, approved, completed)
Inspect domain.yaml (442 lines)
# assoc-desk/backend/domain.yaml
#
# Assoc Desk — community association (HOA / condo) management.
#
#   association → homes → assessments (billed → paid | delinquent → referred)
#   violations: reported (inspection, complaint or AI patrol photo)
#     → verified by a manager → notice sent → cured
#     → cure date passes → hearing → fined | dismissed
#   notices: drafted (AI or manager) → approved → sent
#   architectural requests: submitted → under review → approved / conditions / denied
#   board motions: proposed → passed (quorum + majority) | failed
#   work orders: large contracts need a passed motion
#
# The AI patrols and drafts; people decide. AI-detected violations must be
# verified by a manager, AI-drafted notices must be approved before they go
# out, and no fine is levied without a notice, a missed cure date and a
# hearing. Delinquent accounts go to collections only after a sent late
# notice. Billed dues 30 days past due turn delinquent nightly.
#
# An ISDG product for community association management companies.
# query() filter keys are single lowercase words.

domain:
  name: assocdesk
  version: "1.0.0"
  description: >
    Community association management: dues and delinquency, violations with
    AI-drafted notices and due process, architectural review, board votes
    and work orders.

  resources:

    association:
      description: "A homeowners or condominium association under management."
      object:
        id:        { type: uuid, primaryKey: true, protected: true, allowUserProvided: true }
        name:      { type: string, required: true, unique: true, maxLength: 120 }
        kind:      { type: string, required: true, enum: [hoa, condo, coop] }
        city:      { type: string, required: true, maxLength: 80 }
        state:     { type: string, required: true, pattern: "^[A-Z]{2}$" }
        monthlyDues: { type: money, required: true, min: 0 }
        manager:   { type: string, required: true, maxLength: 100 }
      permissions:
        list:   [manager, board, admin]
        get:    [manager, board, admin]
        create: [admin]
        update: [manager, admin]
        delete: [admin]
      features: { audit: true }

    home:
      description: "A home or unit and its owner of record."
      object:
        id:          { type: uuid, primaryKey: true, protected: true, allowUserProvided: true }
        association:
          type: reference
          references: "adl.assocdesk.assocdesk.association"
          required: true
        address:     { type: string, required: true, maxLength: 160 }
        ownerName:   { type: string, required: true, maxLength: 120 }
        email:       { type: email, required: true }
        phone:       { type: phone, required: true }
      permissions:
        list:   [manager, board, admin]
        get:    [manager, board, admin]
        create: [manager, admin]
        update: [manager, admin]
        delete: [admin]
      features: { audit: true }
      indexes:
        - { fields: [association] }

    assessment:
      description: "A dues or special-assessment charge on a home."
      object:
        id:       { type: uuid, primaryKey: true, protected: true, allowUserProvided: true }
        home:
          type: reference
          references: "adl.assocdesk.assocdesk.home"
          required: true
        period:   { type: string, required: true, pattern: "^[0-9]{4}-[0-9]{2}$" }
        kind:     { type: string, required: true, enum: [regular, special] }
        amount:   { type: money, required: true, min: 0 }
        dueOn:    { type: date, required: true }
        paidAt:   { type: datetime }
        receipt:  { type: string, maxLength: 30 }
        status:   { type: string, required: true, default: billed }
      stateMachine:
        field: status
        initial: billed
        states:
          billed:
            transitions:
              pay:            { to: paid, guards: [manager, admin], requiredFields: [receipt], sets: { paidAt: now() } }
              markDelinquent: { to: delinquent, guards: [manager, admin] }
          delinquent:
            transitions:
              pay:   { to: paid, guards: [manager, admin], requiredFields: [receipt], sets: { paidAt: now() } }
              refer: { to: referred, guards: [manager, admin] }
          referred:
            transitions:
              pay: { to: paid, guards: [manager, admin], requiredFields: [receipt], sets: { paidAt: now() } }
          paid: {}
      permissions:
        list:   [manager, board, admin]
        get:    [manager, board, admin]
        create: [manager, admin]
        update: [manager, admin]
        delete: [admin]
      features: { audit: true }
      indexes:
        - { fields: [home] }
        - { fields: [status, dueOn] }

    violation:
      description: "A suspected breach of the governing documents, handled with notice and a hearing."
      object:
        id:          { type: uuid, primaryKey: true, protected: true, allowUserProvided: true }
        home:
          type: reference
          references: "adl.assocdesk.assocdesk.home"
          required: true
        ruleCited:   { type: string, required: true, maxLength: 120 }
        description: { type: text, required: true }
        source:      { type: string, required: true, enum: [inspection, complaint, ai_patrol] }
        confidence:  { type: percentage }
        observedOn:  { type: date, required: true }
        verifiedBy:  { type: string, maxLength: 100 }
        cureBy:      { type: date }
        hearingOn:   { type: date }
        fineAmount:  { type: money, min: 0 }
        outcome:     { type: text }
        status:      { type: string, required: true, default: reported }
      validation:
        aiReportsConfidence:
          rule: "source != 'ai_patrol' || confidence != null"
          message: "An AI-detected violation must report its confidence."
      stateMachine:
        field: status
        initial: reported
        states:
          reported:
            transitions:
              verify:  { to: verified, guards: [manager, admin], sets: { verifiedBy: $user.id } }
              dismiss: { to: dismissed, guards: [manager, admin], requiredFields: [outcome] }
          verified:
            transitions:
              markNoticed: { to: noticed, guards: [manager, admin], requiredFields: [cureBy] }
              dismiss:     { to: dismissed, guards: [manager, admin], requiredFields: [outcome] }
          noticed:
            transitions:
              cure:            { to: cured, guards: [manager, admin] }
              scheduleHearing: { to: hearing, guards: [manager, admin], requiredFields: [hearingOn] }
          hearing:
            transitions:
              fine:    { to: fined, guards: [board, admin], requiredFields: [fineAmount, outcome] }
              dismiss: { to: dismissed, guards: [board, admin], requiredFields: [outcome] }
              cure:    { to: cured, guards: [manager, board, admin] }
          cured: {}
          fined: {}
          dismissed: {}
      permissions:
        list:   [manager, board, admin]
        get:    [manager, board, admin]
        create: [manager, admin]
        update: [manager, board, admin]
        delete: [admin]
      features: { audit: true }
      history:
        events:
          verified: { trigger: transition, transition: verify, severity: info }
          noticed:  { trigger: transition, transition: markNoticed, capture: [cureBy], label: "Notice sent; cure by {cureBy}", severity: warning }
          hearing:  { trigger: transition, transition: scheduleHearing, capture: [hearingOn], label: "Hearing set for {hearingOn}", severity: warning }
          fined:    { trigger: transition, transition: fine, capture: [fineAmount], label: "Fined {fineAmount}", severity: error }
          cured:    { trigger: transition, transition: cure, severity: success }
          dismissed: { trigger: transition, transition: dismiss, capture: [outcome], label: "Dismissed: {outcome}", severity: info }
      indexes:
        - { fields: [home] }
        - { fields: [status] }

    notice:
      description: "A letter to an owner. AI may draft it; a manager approves it before it is sent."
      object:
        id:         { type: uuid, primaryKey: true, protected: true, allowUserProvided: true }
        home:
          type: reference
          references: "adl.assocdesk.assocdesk.home"
          required: true
        violation:
          type: reference
          references: "adl.assocdesk.assocdesk.violation"
        kind:       { type: string, required: true, enum: [courtesy, violation, hearing, fine, late_payment] }
        origin:     { type: string, required: true, enum: [ai, manager] }
        body:       { type: text, required: true }
        approvedBy: { type: string, maxLength: 100 }
        sentAt:     { type: datetime }
        status:     { type: string, required: true, default: draft }
      stateMachine:
        field: status
        initial: draft
        states:
          draft:
            transitions:
              approve: { to: approved, guards: [manager, admin], sets: { approvedBy: $user.id } }
          approved:
            transitions:
              send: { to: sent, guards: [manager, admin], sets: { sentAt: now() } }
          sent: {}
      permissions:
        list:   [manager, board, admin]
        get:    [manager, board, admin]
        create: [manager, admin]
        update: [manager, admin]
        delete: [admin]
      features: { audit: true }
      indexes:
        - { fields: [home] }
        - { fields: [violation] }

    arcrequest:
      description: "An architectural review request: an owner asks to change their home's exterior."
      object:
        id:          { type: uuid, primaryKey: true, protected: true, allowUserProvided: true }
        home:
          type: reference
          references: "adl.assocdesk.assocdesk.home"
          required: true
        project:     { type: text, required: true }
        submittedOn: { type: date, required: true }
        conditions:  { type: text }
        reason:      { type: text }
        status:      { type: string, required: true, default: submitted }
      stateMachine:
        field: status
        initial: submitted
        states:
          submitted:
            transitions:
              review: { to: under_review, guards: [manager, admin] }
          under_review:
            transitions:
              approve:               { to: approved, guards: [board, admin] }
              approveWithConditions: { to: conditional, guards: [board, admin], requiredFields: [conditions] }
              deny:                  { to: denied, guards: [board, admin], requiredFields: [reason] }
          approved: {}
          conditional: {}
          denied: {}
      permissions:
        list:   [manager, board, admin]
        get:    [manager, board, admin]
        create: [manager, admin]
        update: [manager, board, admin]
        delete: [admin]
      features: { audit: true }

    motion:
      description: "A board motion and its vote."
      object:
        id:           { type: uuid, primaryKey: true, protected: true, allowUserProvided: true }
        association:
          type: reference
          references: "adl.assocdesk.assocdesk.association"
          required: true
        title:        { type: string, required: true, maxLength: 200 }
        kind:         { type: string, required: true, enum: [budget, contract, policy, collections, fine_schedule] }
        quorum:       { type: integer, required: true, min: 1 }
        votesFor:     { type: integer, required: true, min: 0, default: 0 }
        votesAgainst: { type: integer, required: true, min: 0, default: 0 }
        abstain:      { type: integer, required: true, min: 0, default: 0 }
        status:       { type: string, required: true, default: proposed }
      stateMachine:
        field: status
        initial: proposed
        states:
          proposed:
            transitions:
              pass: { to: passed, guards: [board, admin] }
              fail: { to: failed, guards: [board, admin] }
          passed: {}
          failed: {}
      permissions:
        list:   [manager, board, admin]
        get:    [manager, board, admin]
        create: [manager, board, admin]
        update: [board, admin]
        delete: [admin]
      features: { audit: true }

    workorder:
      description: "Maintenance or a contract for common areas."
      object:
        id:        { type: uuid, primaryKey: true, protected: true, allowUserProvided: true }
        association:
          type: reference
          references: "adl.assocdesk.assocdesk.association"
          required: true
        title:     { type: string, required: true, maxLength: 160 }
        vendor:    { type: string, required: true, maxLength: 120 }
        cost:      { type: money, required: true, min: 0 }
        motion:
          type: reference
          references: "adl.assocdesk.assocdesk.motion"
        status:    { type: string, required: true, default: open }
      stateMachine:
        field: status
        initial: open
        states:
          open:
            transitions:
              approve: { to: approved, guards: [manager, admin] }
          approved:
            transitions:
              complete: { to: completed, guards: [manager, admin] }
          completed: {}
      permissions:
        list:   [manager, board, admin]
        get:    [manager, board, admin]
        create: [manager, admin]
        update: [manager, admin]
        delete: [admin]
      features: { audit: true }

  rules:

    noticeOnlyAfterSentLetter:
      description: "A violation counts as noticed only when a notice for it has actually been sent."
      trigger: { resource: violation, events: [transition], transition: markNoticed }
      condition: "len(query('notice', { violation: $record.id, status: 'sent' })) == 0"
      action: reject
      severity: error
      message: "Send the owner a notice first."

    noLettersAboutUnverifiedViolations:
      description: "Nothing is sent to an owner about a violation a manager hasn't verified — AI detections included."
      trigger: { resource: notice, events: [transition], transition: send }
      condition: "$record.violation != null
                  && some(query('violation', { id: $record.violation }), v => v.status == 'reported' || v.status == 'dismissed')"
      action: reject
      severity: error
      message: "Verify the violation before sending a letter about it."

    hearingOnlyAfterCureDate:
      description: "Owners get their full cure period before a hearing is scheduled."
      trigger: { resource: violation, events: [transition], transition: scheduleHearing }
      condition: "$record.cureBy >= today()"
      action: reject
      severity: error
      message: "The cure period has not ended."

    hearingNeedsHearingNotice:
      description: "A hearing is scheduled only after the owner has been sent a hearing notice."
      trigger: { resource: violation, events: [transition], transition: scheduleHearing }
      condition: "len(query('notice', { violation: $record.id, kind: 'hearing', status: 'sent' })) == 0"
      action: reject
      severity: error
      message: "Send a hearing notice first."

    collectionsAfterLateNotice:
      description: "No referral to collections without a late-payment notice sent to that home."
      trigger: { resource: assessment, events: [transition], transition: refer }
      condition: "len(query('notice', { home: $record.home, kind: 'late_payment', status: 'sent' })) == 0"
      action: reject
      severity: error
      message: "Send a late-payment notice first."

    motionNeedsQuorumAndMajority:
      description: "A motion passes only with a quorum present and more votes for than against."
      trigger: { resource: motion, events: [transition], transition: pass }
      condition: "$record.votesFor + $record.votesAgainst + $record.abstain < $record.quorum
                  || $record.votesFor <= $record.votesAgainst"
      action: reject
      severity: error
      message: "No quorum, or the motion lacks a majority."

    bigContractsNeedAVote:
      description: "Work over $10,000 needs a passed board motion."
      trigger: { resource: workorder, events: [transition], transition: approve }
      condition: "$record.cost > 10000
                  && ($record.motion == null || some(query('motion', { id: $record.motion }), m => m.status != 'passed'))"
      action: reject
      severity: error
      message: "Contracts over $10,000 need a passed board motion."

  schedules:

    markLateDues:
      description: "Billed dues 30 days past due turn delinquent every night."
      recurrence: daily at 02:30
      source:
        resource: assessment
        filter: "status == 'billed' && dueOn < dateSub(today(), 30, 'day')"
      action: transition
      transition: markDelinquent

  views:

    aiPatrolToVerify:
      description: "Violations the AI flagged from patrol photos, waiting for a manager."
      source: violation
      filter: "status == 'reported' && source == 'ai_patrol'"
      permissions: [manager, admin]
      columns:
        - { field: ruleCited,   label: "Rule" }
        - { field: description, label: "What the AI saw" }
        - { field: confidence,  label: "Confidence" }
        - { field: observedOn,  label: "Observed" }
      defaultLimit: 200

    noticesToApprove:
      description: "Draft letters awaiting a manager."
      source: notice
      filter: "status == 'draft'"
      permissions: [manager, admin]
      columns:
        - { field: kind,   label: "Kind" }
        - { field: origin, label: "Drafted by" }
        - { field: body,   label: "Letter" }
      defaultLimit: 200

    delinquencies:
      description: "Past-due accounts."
      source: assessment
      filter: "status == 'delinquent' || status == 'referred'"
      permissions: [manager, board, admin]
      columns:
        - { field: period, label: "Period" }
        - { field: amount, label: "Amount" }
        - { field: dueOn,  label: "Due" }
        - { field: status, label: "State" }
      defaultLimit: 500

    openViolations:
      description: "Violations in progress."
      source: violation
      filter: "status == 'verified' || status == 'noticed' || status == 'hearing'"
      permissions: [manager, board, admin]
      columns:
        - { field: ruleCited, label: "Rule" }
        - { field: cureBy,    label: "Cure by" }
        - { field: hearingOn, label: "Hearing" }
        - { field: status,    label: "State" }
      defaultLimit: 500

Download seed bundle