Turns CRM state into a short work queue and hands research to specialists.
A1Growth System
A local operating system for finding paid design work. Twelve roles research the market, write drafts and store evidence in a CRM. Nothing leaves the system: every external action needs the owner's exact approval, and release v1.0.0 has no executor at all
01 / product scope
Research is free, acting outward needs permission
02 / pipeline
From a find to a draft that waits for a human
Research first, then verification, then evidence and a score. Only then does a draft appear. If a mandatory condition is unknown, the record stays under review.
- Research, A0Public sources: companies, studios, jobs. Read-only.
- VerificationIdentity and mandatory conditions. Unknown conditions stay for manual review.
- Evidence and scoreEvery find keeps its sources (evidence) and a score. An outreach draft needs a score of 65 or more.
- CRMDeduplication and 13 opportunity stages, from `discovered` to `archived`.
- Draft, A1An email, application, SEO patch or article. Built only from verified CRM data.
- Approval packet, A2 or A3Recipient, exact text, reason, sources and expiry.
- Owner decisionApproval covers only the text and target shown. Editing the draft voids it.
- StopThere is no executor: an approved record sends and publishes nothing.
03 / roles
Twelve roles, one job each
The MVP registry runs seven roles: orchestrator, leads, studios, jobs, outreach, SEO and analytics. The other five add content and links. All start at level A1, and any external step needs A2.
Finds companies that need design now or soon. Values quality and timing over list size.
A1Finds studios where a freelance or contract design partner is useful.
A1Finds current roles where the portfolio can credibly compete.
A1Writes personal drafts from verified CRM evidence only. Sends nothing.
A1 → A2Builds a ranked, evidence-backed SEO backlog. Never touches production.
A1Finds topics where search demand meets real expertise.
A1Turns approved briefs into publication-ready drafts for the site.
A1 → A2Improves and creates case studies from real project evidence.
A1 → A2Finds legitimate mentions, links and editorial opportunities.
A1 → A2Maintains public profiles and directories that bring trust and traffic.
A1 → A2Measures business outcomes, not vanity metrics.
A104 / approvals
Four approval levels: from reading to contracts
The policy lists 35 actions across the levels. A2 is approved in batches, A3 one action at a time.
Read only
8 actions- Market and competitor research
- Finding public jobs and studios
- Scoring leads from public data
Internal write
8 actions- Email and article drafts
- CRM records from public data
- Proposed site patches in a branch
Batch approval
9 actions- Sending an email or message
- Publishing an article or page
- Job application, contact form
One at a time
10 actions- Purchases and paid subscriptions
- Contracts, NDAs and price commitments
- DNS, billing, access and data deletion
Always prohibited without a new instruction: 9 items
Fake reviewsImpersonationBuying linksComment spamCAPTCHA bypassScraping private dataEvading anti-spam limitsSelling personal dataDeceptive opt-ins
What an approval request contains: 9 fields
approval_idlevelaction_typetargetreasonexact_payloadsource_evidencerisk_notesexpires_at
Approval covers only the text and target shown. Any material change needs a new approval
05 / crm & sql
A 13-table CRM: protection lives in the database
The schema targets Supabase and runs locally on PGlite. Every table belongs to a workspace, and four roles decide access: owner, admin, operator, viewer.
Workspace
workspacesworkspace_members
Who
companiespeople
What we look for
opportunitiesevidence
Actions
draftsapprovalstouchpointssuppressions
Operations
tasksagent_runsevents
001
Schema foundation
13 tables, 13 enum types and 11 indexes.
- Companies, people and opportunities are linked, and evidence is stored separately.
- 13 opportunity stages, from `discovered` to `archived`.
- 7 opportunity types: direct client, studio, job, SEO, content, backlink, other.
002
Functions and triggers
7 SQL functions and triggers that stop an approval from surviving a text edit.
- `compute_draft_payload_hash` hashes the draft text.
- `invalidate_approval_on_draft_change` voids the approval if the text changes.
- `approve_action`, `reject_action` and `is_suppressed`: the decision and the stop list.
003
Row-level security
12 policies (one more arrives in 005), RLS enabled on all 13 tables.
- Access follows workspace membership.
- The owner, admin, operator and viewer roles differ in rights.
004
Views
Three dashboard views: `v_pipeline`, `v_approval_queue`, `v_weekly_funnel`.
- Created with `security_invoker = true`, so row-level security still applies inside them.
005
Approval visibility
Members see the approval queue, but only owner and admin decide, through an RPC.
- One policy: `approvals_member_select`.
006
Integrity guards
5 functions and 6 triggers: links are checked even on server-side writes, and an approval cannot be swapped.
- Moving a record to another workspace is forbidden, and a reference into another workspace is rejected (code 23514).
- An ordinary user cannot set a draft to `approved` or `sent`.
- The approval payload is immutable: a change needs a new request. Default expiry is 7 days, and the stop list is checked on creation.
- `approve_action` and `reject_action` are closed to anonymous access.
007
Approval maintenance
The `refresh_approval_states` function can only retire approvals.
- Moves them to expired and invalidated, but never creates or grants an approval.
- Available to owner, admin and operator.
06 / run & verify
Run and verify: all local
Requires Node.js and npm. Installation creates no schedules, the daily run is disabled and external actions are switched off in the config.
npm ci --ignore-scripts
npm run setup # empty local database
npm run runtime:init
npm run dry-run # SQL migrations, rolled back
npm run pipeline:demo # synthetic pipeline
npm run test:approval-preflight
npm run crm:backup # export + restore check
npm run crm:report
npm run analytics:daily
npm run approval:maintain # rollback by default
npm run approval:preflight
Tests run on a separate synthetic database. They do not prove lead freshness, legal eligibility, content quality, scheduling or production readiness
Reference schedule: 8 jobs, not installed by default
| Job | Time | Role | Limits |
|---|---|---|---|
| Daily work queue | Mon–Fri 08:15 | orchestrator | from CRM state |
| Lead discovery | Mon, Tue, Thu, Fri 08:30 | lead_hunter | up to 30 candidates, target 8 |
| Studio discovery | Tue, Thu 09:30 | studio_hunter | up to 20, target 6 |
| Job discovery | Mon–Fri 10:00 | job_hunter | up to 30, target 10 |
| Outreach drafts | Mon–Fri 11:30 | outreach_writer | up to 10 drafts, then A2 |
| SEO audit | Mon 09:00 | seo_auditor | evidence-backed backlog |
| Daily analytics | Mon–Fri 17:30 | analytics | daily digest |
| Weekly analytics | Fri 16:00 | analytics | funnel, wins, losses |
Timezone Europe/Berlin. This is reference design: the cron jobs are not installed, and the `GROWTH_AUTOMATION_ENABLED` flag works as a kill switch
07 / limits
What the system does not do
- No external executor: an approved record sends and publishes nothing.
- No live model integration: this is infrastructure for an operator, not an autopilot.
- Tests do not check lead freshness, legal eligibility or text quality.
- Installation creates no schedule, and the daily run is off by default.
- The repository holds no owner CRM, keys, personal drafts, backups or list of researched companies.
08 / file map
Key files
09 / next projects