Commit Graph
2 Commits
Author SHA1 Message Date
Beenu Arora 91014ddccf docs(quick-win): GitHub on-ramp fix — phases 1–3 + CI gates (#368)
Quick-win on-ramp fix landed in three squashed phases:

Phase 1 — Truth-up
  - Stopped advertising npm/PyPI packages that 404'd; added v8.0 publish-guards
  - Replaced missing screencast assets with placeholders + apps/web/public/demo/ stub
  - Added "Verified working as of <sha>" callout linked to green compose-smoke runs

Phase 2 — Visual proof + README diet
  - README cut from 1088 → ≤250 lines; long-form content moved to RELEASES.md and
    docs/architecture/overview.md / apps/docs/*
  - scripts/aisoc-demo.ts gained a --record flag (Playwright) wired into
    screencast.yml; product screenshots captured via apps/web/tests/

Phase 3 — Cut the friction
  - New packages/aisoc-sandbox: pip-installable, runs an offline in-memory agent
    investigation in <30 s, no Docker, no API key, 5 scenarios
  - examples/ expanded from 1 to 5 walkthroughs (lateral-movement, aws-cred-exfil,
    phishing-payload, k8s-privesc, github-token-theft)
  - Root tidy: 8 markdown files + 3 compose files moved into docs/ / .github/ /
    infra/compose/; every internal link updated
  - Prebuilt Codespaces image at ghcr.io/beenuar/aisoc-devcontainer:latest;
    new devcontainer-build.yml + devcontainer-coldstart.yml workflows
    keep cold-start under budget

CI gates
  - scripts/readme_gates.py + .github/workflows/readme-gates.yml enforce
    README line-count ≤ 250, package-reference reachability (or v8.0 guard),
    demo-asset presence, and an aisoc-sandbox offline smoke on Linux + macOS

Supersedes #366 (phase 1) and #367 (phase 2) — both were folded into this PR
during the rebase so we land one self-consistent change rather than three
half-stacks with conflicting line counts.
2026-06-30 16:13:26 +07:00
Beenu Arora 0612a2261f feat(installer): bulletproof zero-prereq one-click installer (#99)
Make the one-click installer (install.sh / install.ps1) safe to hand to a brand-new user with no prerequisites.

Hardening
- New cross-platform preflight library (scripts/install/preflight.{sh,ps1}) — checks OS, arch, RAM, disk, network, ports, Docker daemon, WSL on Windows, macOS Docker Desktop reachability before touching the system.
- install.sh: bash 3.2-safe, --diagnose / --skip-preflight / --non-interactive flags, friendly trap errors, idempotent git clone with retries, pnpm via corepack with npm fallback, auto-launch Docker Desktop on macOS.
- install.ps1: -Diagnose / -SkipPreflight / -NonInteractive flags, PSScriptAnalyzer-clean, robust winget UAC + WSL handling, Docker daemon poll loop, pnpm fallback.
- Both installers source preflight from local clone or fetch from GitHub when run via curl|bash / iwr|iex.
- aisoc-demo.ts: cross-platform docker info quoting, headless detection, browser-open fallback.

Uninstaller safety
- uninstall.sh + uninstall.ps1 audited for parity. Path safety check (is_dangerous_path / Test-DangerousPath), AiSOC-repo verification, safety refusals now exit code 3 for CI integration.

CI: .github/workflows/installer-smoke.yml
- shellcheck + bash -n on all shell scripts.
- PSScriptAnalyzer on all PowerShell scripts (PSUseApprovedVerbs excluded for Pf-* preflight functions, justified inline).
- install.sh --diagnose smoke-tested in clean ubuntu-24.04, ubuntu-22.04, debian-12, fedora-40, alpine-3.20, archlinux, opensuse-leap.
- install.ps1 -Diagnose smoke-tested on windows-latest.
- Uninstaller safety-refusal exit code regression test.

Docs
- docs/QUICK_INSTALL.md: documented flags, exit codes (0/1/2/3/4/5), preflight behaviour, Docker Desktop / WSL / port-conflict troubleshooting.

All 33 PR checks green, mergeable=clean.
2026-05-13 08:19:35 +08:00