Skip to content

About

Self-improving launch decision engine that balances growth upside, churn risk, and release safety.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

LaunchGuard

AI launch control for product teams — research the market, stress-test churn risk, validate release risk, then open the fix path.

LaunchGuard turns a launch candidate into one actionable call: Ship / Hold / Revise.
It is closest to a founder launch operating system, not a generic code rewriter: growth intelligence + retention risk + sandbox release checks + remediation tickets/PRs in one loop.

What it does

  • Growth market research — live You.com signals on demand, competitors, and opportunity
  • Next-feature recommendation — picks the top experiment and opens a feature proposal PR + Linear ticket
  • Churn risk mitigation — retention/revenue downside + concrete mitigations
  • Release risk scanning — Daytona sandbox validation before you ship
  • Fix path — auto-remediation branch/notes + Linear follow-up when the answer is Hold/Revise
  • Self-improvement — Run A → Run B learning with anonymized persistent rules

Specialist agents

  • Growth Strategist — upside experiments and market evidence (feeds next-feature recommendation)
  • Churn Analyst — retention risk and mitigations
  • Release Sentinel — technical launch blockers via sandbox checks

Why This Project

Founders usually separate growth ideas from release safety. That creates bad ship decisions. LaunchGuard unifies market research, risk analysis, next-feature recommendations, and remediation into one auditable workflow that improves across runs.

Required Stack Coverage

Tool Role in LaunchGuard
You.com Live search/research/finance intelligence + cited external evidence
CrewAI Multi-agent orchestration (Growth / Churn / Release)
Daytona Secure sandbox execution for release validation
One Auth, action execution, and delivery to Notion/Linear
Clean Data Permissioned, anonymized, verified, longitudinal learning

Clean Data (how we show it)

LaunchGuard operationalizes Clean Data Alliance principles:

  1. Permissioned — learning/memory writes are gated by consent settings (LAUNCHGUARD_REQUIRE_CONSENT)
  2. Anonymous — persistent store keeps abstract learned rules/scores, not raw customer PII (artifacts/generated/learned_rules_store.json)
  3. Verified — external claims carry You.com source citations in agent outputs
  4. Longitudinal — Run A → Run B deltas prove improvement over time (dashboard + delta_*.md)

Requirement Proof

See REQUIREMENT_PROOF.md for exact evidence expected per requirement during demo/submission.

Project Artifacts

Flagship Demo Path

Run one-shot readiness first:

make demo-readiness

Then run the flagship command:

source .venv/bin/activate
make atlas-demo-pr
  • Runs Run A -> Run B with adaptive feedback
  • Recommends the next feature from live You.com/Growth research
  • Opens a feature-proposal PR notes file + Linear feature ticket
  • Enforces approval gate on auto-remediation
  • Creates remediation branch/commit metadata
  • Creates a Linear follow-up ticket with decision rationale and rollout risk notes

Pre-record dry test (recommended)

For a 3-minute YouTube video, do not film the full live run uncut (agents + Ollama can take many minutes).

Best recording path:

  1. Run live once offline to refresh real artifacts (optional if you already have them)
  2. Record with the fast replay:
make demo-replay

Then cut to:

  • dashboard (demo_dashboard.html)
  • learned_rules_store.json
  • Linear/Notion tabs if tickets/pages already exist from a prior live run

Live command (offline validation, not for uncut 3-min filming):

make smoke
make demo-readiness-pr
make atlas-demo-pr
make dashboard-open

Backup commands:

make atlas-demo
make atlas-demo-full

Open the visual dashboard after any demo run:

make dashboard-open

Approval gate options (single script):

python scripts/launchguard_demo.py --live --approval approve
python scripts/launchguard_demo.py --live --approval deny
python scripts/launchguard_demo.py --live --approval prompt

First Local Run

source .venv/bin/activate
python scripts/ollama_smoke.py
python scripts/launchguard_dry_run.py

The dry run prints structured output for:

  • growth (upside score + experiments)
  • churn (risk score + mitigations)
  • release (risk score + blockers/checks)
  • deterministic final decision (SHIP, REVISE, HOLD)
  • rollout_plan (canary mode, rollout %, monitoring window, rollback triggers)

Live Run (One + You + Daytona + Notion)

  1. Add ONE_SECRET and LAUNCHGUARD_NOTION_PARENT_PAGE_ID in .env.

  2. Run with live integrations enabled:

source .venv/bin/activate
python scripts/launchguard_dry_run.py \
  --live \
  --run-label runA \
  --launch-candidate "New paywall and onboarding flow for activation lift"
  1. Re-run with feedback to show learning:
python scripts/launchguard_dry_run.py \
  --live \
  --run-label runB \
  --feedback "Run A showed release risk from missing rollback; reduce release confidence unless rollback check passes." \
  --compare-to artifacts/generated/<runA_file>.json

Outputs are written to artifacts/generated/ (JSON run artifacts + markdown delta).

Create the local visual dashboard from generated artifacts:

make dashboard

Command Shortcuts

Use these targets to avoid long commands:

  • make smoke -> verifies Ollama/model
  • make run -> single dry run
  • make live -> single live run
  • make demo -> Run A + Run B locally with summary
  • make demo-live -> Run A + Run B with live integrations
  • make demo-pr -> live demo + forced auto-PR path
  • make atlas-demo -> founder workflow for Atlas with automatic Run A -> Run B adaptation
  • make atlas-demo-pr -> founder workflow + next-feature recommendation + auto-PR + Linear tickets
  • make atlas-demo-full -> Atlas founder workflow with full Daytona validation command set
  • make preview-local -> offline-ish local rehearsal without live writes
  • make profile-from-atlas -> auto-generate a transferable profile (APP_PATH=../Atlas by default)
  • make gh-check -> verify GitHub CLI auth status
  • make demo-readiness -> one-shot pre-demo checks (One, Notion, Linear, Ollama)
  • make demo-readiness-pr -> readiness checks + GitHub CLI auth validation
  • make dashboard -> generate local HTML dashboard for Run A/Run B artifacts
  • make dashboard-open -> generate dashboard and open it in the default browser
  • make scout -> run with prioritized capability suggestions

Transferable App Profiles

LaunchGuard can load custom integration and validation rules from profile JSON files.

  • Built-in profiles:
    • profiles/atlas.json
    • profiles/generic.json
  • Use a profile explicitly:
python scripts/launchguard_demo.py --live --profile atlas
  • Generate a new profile from another app path:
python scripts/launchguard_demo.py \
  --app-path /path/to/your/app \
  --app-name "YourApp" \
  --save-generated-profile profiles/yourapp.generated.json \
  --only-generate-profile

Then run LaunchGuard with that generated profile:

python scripts/launchguard_demo.py --live --profile-path profiles/yourapp.generated.json

Auto-PR Remediation Mode

LaunchGuard can convert REVISE / HOLD outcomes into a remediation branch and commit:

python scripts/launchguard_dry_run.py \
  --live \
  --run-label runB \
  --feedback "Rollback check failed in staging." \
  --auto-pr

Options:

  • --force-auto-pr runs even when decision is SHIP
  • --open-pr attempts gh pr create
  • --base-branch main sets PR base target

Current implementation updates:

  • ops/release_checks.json (guardrails expanded from blockers)
  • ops/remediation_notes/<run_label>.md (review context)

Preflight behavior:

  • If repo has no initial commit yet, LaunchGuard generates the patch but returns a clear blocked status for PR creation.

Capability Scout Mode

Generate prioritized practical expansion ideas after each run:

python scripts/launchguard_dry_run.py --scout-features

Demo Artifacts Produced Automatically

  • artifacts/generated/<runLabel>_*.json (full run outputs)
  • artifacts/generated/delta_*.md (Run A vs Run B)
  • artifacts/generated/demo_summary_*.md (judge-friendly summary)
  • artifacts/generated/learned_rules_store.json (persistent learned-rules memory)
  • artifacts/generated/demo_dashboard.html (visual timeline + score deltas + remediation view)
  • ops/remediation_notes/<runLabel>.md (auto-PR reviewer context)

What You Will See

  • Terminal summary lines for the exact decision, auto-PR status, and Linear issue URL/state.
  • Notion run entries for each live run (if LAUNCHGUARD_NOTION_PARENT_PAGE_ID is set).
  • Linear issue payload containing rationale, rollback triggers, and remediation context.
  • Dashboard cards showing Run A/Run B timeline, confidence/score deltas, learned-rule evidence, and git remediation summary.

Planned Architecture

flowchart TB
  founderInput[Launch candidate] --> orchestrator[CrewAI Orchestrator]
  orchestrator --> growthAgent[GrowthStrategist]
  orchestrator --> churnAgent[ChurnAnalyst]
  orchestrator --> releaseAgent[ReleaseSentinel]
  growthAgent --> policy[Policy combiner]
  churnAgent --> policy
  releaseAgent --> policy
  policy --> decision[Ship Hold Revise]
  decision --> ruleStore[Persistent learned-rules store]
  ruleStore --> policy
  decision --> integration[One integrations]
  decision --> dashboard[Visual dashboard artifacts]
  decision --> feedback[Outcome feedback]
  feedback --> memory[Consent-gated memory]
Loading

Implementation Status

  • PRD and submission artifacts
  • Environment setup path documented (One, Daytona, CrewAI, integrations)
  • Core multi-agent workflows (growth/churn/release + deterministic policy)
  • Run A vs Run B learning loop with delta artifacts
  • Auto-PR remediation path (branch/commit, optional PR create)
  • One-command demo runner and workflow diagrams

About

Self-improving launch decision engine that balances growth upside, churn risk, and release safety.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages