Conversation
…view New comply-start binary: detects tech stack from project files, runs a 9-question founder interview, writes PHI data flows and vendor registry to SQLite, and generates a startup compliance report. Updates /hipaa skill to route first-time users through the onramp flow. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Greptile SummaryThis PR introduces the The previous review cycle's major findings have all been resolved:
One minor issue remains: the Confidence Score: 4/5Safe to merge after the report test guard is removed; all prior P1 issues from the previous review cycle have been resolved The three P1 issues from the previous review (missing table creation, always-empty blockers, tautological apply tests) are fully addressed. The one remaining finding — the test/comply-start.test.ts lines 360–373 — the conditional guard in the report test should be removed to match the unconditional pattern now used in all apply tests Important Files Changed
Flowchart%%{init: {'theme': 'neutral'}}%%
flowchart TD
A([User runs /hipaa]) --> B[Step 1: comply-db summary]
B --> C{DB exists with controls?}
C -- No: first-time --> D[Step 2: comply-start scan]
D --> E[Present detected technologies]
E --> F[AskUserQuestion: confirm stack]
F --> G[Step 3: 9-question interview\none question at a time]
G --> H{Q9: B2B2C?}
H -- Yes --> I[Q9a–d: covered entities,\nsubcontractors, breach,\nBAA templates]
H -- No --> J[Step 4: Build answers JSON]
I --> J
J --> K[comply-start apply --answers file]
K --> L[CREATE TABLE IF NOT EXISTS\nphi_data_flows / vendor_registry / action_items]
L --> M[Transaction: DELETE existing rows]
M --> N[INSERT phi_data_flows\nINSERT vendor_registry\nINSERT action_items]
N --> O[comply-start report]
O --> P[Present PHI Flow Map,\nVendor Inventory,\nTop 5 Blockers,\n30-Day Action Plan]
P --> Q[rm temp answers file]
C -- Yes: returning user --> R[Step 5: comply-db init + status]
R --> S[Step 6: Recommend next step\nauto / assess / scan / fix / report]
Reviews (5): Last reviewed commit: "fix: apply idempotency and deduplicate f..." | Re-trigger Greptile |
…tests, tmp path - P0: Add CREATE TABLE IF NOT EXISTS for phi_data_flows, vendor_registry, action_items in apply() — these tables were never created by comply-db init - P1: Fix top_5_blockers filter to handle null status column - P1: Replace tautological test assertions with unconditional expects - P2: Remove noisy stderr warning for missing plain-english.json - P2: Use mktemp for answers file instead of hardcoded /tmp path - Add test/comply-start.test.ts to package.json test script Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
- Clear phi_data_flows, vendor_registry, action_items before re-inserting so retry/re-run doesn't accumulate duplicate rows - Remove firebase-admin from gcp vendor patterns (already in firebase) Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Summary
bin/comply-startbinary: detects tech stack, runs 9-question founder interview, generates startup compliance report/hipaaskill to route first-time users through the onramp flow instead of jumping straight to controlsTest plan
bun test test/comply-start.test.ts/hipaaon a fresh project — should trigger onramp/hipaaon existing project — should show returning user flowbin/comply-start scandetects technologies from package.json🤖 Generated with Claude Code