Skip to content

YSCJRH/skylattice

Repository files navigation

Skylattice

CI License Python 3.11+

Skylattice is a local-first AI agent runtime for builders who want persistent memory, governed repo tasks, and Git-native self-improvement without hidden autonomy.

It is still early, but it now ships a stable non-pre-release public baseline: you can verify the local runtime with zero credentials, inspect representative task and radar outputs, and see how memory, governance, and Git history fit together before you trust it with real work.

Skylattice hero

Public surfaces:

  • docs and AI-friendly landing pages: yscjrh.github.io/skylattice
  • GitHub repository and release history: YSCJRH/skylattice
  • latest stable release: v0.4.1 Stable
  • same-repo hosted web app foundation: apps/web for GitHub sign-in, pairing, authenticated control-plane UX, a read-only demo preview path, and Hosted Alpha deployment envs
  • easiest local first-look command: npm run web:preview
  • preview proof-data check: npm run web:preview:check
  • Hosted Alpha env check: npm run web:hosted-alpha:check
  • Hosted Alpha database bootstrap: npm run web:hosted-alpha:bootstrap

Why Star Skylattice

  • It treats governance, auditability, and reversibility as product features instead of afterthoughts.
  • It is a useful reference repo if you care about local-first agents, durable memory, or Git-native automation boundaries.
  • It already shows a concrete pattern for bounded self-improvement through tracked configs, ledgers, and rollbackable Git changes.
  • It is small enough to inspect end to end, but opinionated enough to be worth following as the design matures.

What Works Today

  • local SQLite-backed runtime state plus layered memory under .local/
  • CLI commands for doctor, task ..., and radar ...
  • reviewed local memory commands via skylattice memory ... for profile proposals, search, export, and rollback
  • deterministic task edit modes: rewrite, replace_text, insert_after, and append_text
  • explicit repo ops: create_file, copy_file, move_file, and delete_file, with separate destructive approval for move/delete
  • halted task runs now expose recovery guidance, retry metadata, and resume-safe GitHub sync behavior
  • tracked validation now uses stable command ids and profiles shared by runtime and CI
  • when GitHub is configured, planning can see bounded open issue/PR context and issue comments preflight their targets
  • append-only ledger and run inspection for task and radar workflows
  • read-only FastAPI endpoints for runtime, memory, and radar inspection
  • authenticated local bridge endpoints under /bridge/v1 for hosted-app-safe task, radar, and memory operations
  • read-only auth preflight via skylattice doctor auth plus an explicit skylattice doctor github-bridge helper for GitHub token-enabled setup
  • skylattice web status, web pair, and web connector ... for pairing a local agent to the hosted control plane
  • Windows-first CI driven by tracked validation commands in configs/task/validation.yaml
  • same-repo Next.js web app foundation under apps/web/ with Playful Geometric tokens, GitHub login scaffolding, pairing flows, and browser command queueing
  • Hosted Alpha deployment contract under apps/web/.env.example plus docs/ops/hosted-alpha-runbook.md, with production-style blocked mode instead of silent local-file fallback
  • tracked radar scheduling via configs/radar/schedule.yaml plus skylattice radar schedule ...
  • scheduled radar runs now record trigger_mode and schedule_id for later inspection
  • skylattice radar schedule validate now exports a local weekly-cycle validation report under .local/radar/validations/
  • weekly validation output now points to a tracked note template plus a suggested record path, without writing tracked docs automatically
  • tracked radar provider selection via configs/radar/providers.yaml, with GitHub as the default live source and GitLab available as a second live radar provider
  • provider-neutral radar candidate and evidence identity surfaces alongside the current GitHub-shaped fields
  • adoption matching and scoring boosts now prefer provider-neutral source identity, with repo_slug kept as a compatibility fallback
  • normalized radar evidence taxonomy now uses provider-neutral kind names such as discovery-hit, object-metadata, and release-metadata
  • a Windows-first schedule runbook in docs/radar-scheduling.md so operators can register and verify local radar tasks without hidden shell glue

Visual Proof

Runtime health Task and radar proof
Doctor snapshot Task and radar snapshot

Runtime architecture

Representative app preview

5-Minute No-Credential Quick Start

You do not need API keys to verify that the project is real.

  1. Install the project:
python -m pip install -e .[dev]
  1. Check local runtime health:
python -m skylattice.cli doctor

Expected: a JSON status report like examples/redacted/doctor-output.json with status: ok, a local .local/state/skylattice.sqlite3 path, and tracked validation commands.

  1. Run the smoke tests and public validation suite:
python -m pytest -q
python tools/run_validation_suite.py

Expected: passing smoke tests plus the Windows-first baseline from configs/task/validation.yaml.

  1. Inspect sample outputs before adding credentials:

Token-Enabled Workflow

Skylattice keeps meaningful writes behind explicit credentials and approval gates.

PowerShell example:

$env:OPENAI_API_KEY = "..."
$env:GITHUB_TOKEN = "..."
$env:SKYLATTICE_GITHUB_REPOSITORY = "YSCJRH/skylattice"
$env:GITLAB_TOKEN = "..."

Recommended read-only preflight before any live adapter use:

python -m skylattice.cli doctor auth

If gh auth status is already healthy and you intentionally want copyable exports for the current shell:

python -m skylattice.cli doctor github-bridge --format env

gh auth login alone does not configure Skylattice runtime access. Skylattice only uses explicit env vars or tracked config, even when the GitHub CLI is already logged in.

Task workflow:

skylattice task run --goal "Refresh README and prepare a draft PR" --allow repo-write --allow external-write

If a task plan needs destructive tracked-file lifecycle steps such as move_file or delete_file, add --allow destructive-repo-write when you approve or resume that run.

Radar workflow:

skylattice radar scan --window weekly --limit 20

Optional read-only authenticated smoke:

python tools/run_authenticated_smoke.py --provider github
python tools/run_authenticated_smoke.py --provider gitlab
python tools/run_authenticated_smoke.py --provider openai
python -m skylattice.cli web status

Expected results:

  • task run creates a governed branch, records materialized edits, validates the repo, observes existing branch-scoped PR state, and can prepare or update a draft PR when GitHub write access is configured
  • radar scan discovers repositories from the configured live provider, records evidence, validates bounded experiments, and can promote tracked changes through a rollbackable path
  • radar schedule run resolves tracked local schedule intent into the same bounded radar scan path without introducing a resident scheduler, and preserves schedule_id plus trigger_mode for later inspection
  • radar schedule validate checks the latest or named radar run against tracked schedule intent and writes a local validation report for weekly-cycle review
  • doctor auth explains which live capabilities are still blocked by missing credentials or repo-hint setup without changing the zero-credential doctor surface
  • run_authenticated_smoke.py performs opt-in read-only checks against the live GitHub, GitLab, and OpenAI adapters when credentials are configured
  • web status reports whether the local machine is paired to a hosted control plane, whether local bridge auth is configured, and which local runtime capabilities remain available to the connector

If you want to see the shape before using real tokens, compare your output to the redacted samples under examples/redacted/.

Sample Outputs

Public Site

Use Cases

Skylattice is most compelling if you want one of these outcomes:

  • a local-first personal agent runtime that keeps durable memory outside tracked Git history
  • a governed task agent that can edit a repo through auditable, deterministic text operations
  • a GitHub-aware radar workflow that promotes reusable open-source patterns through tracked configs and rollbackable commits

More detail: docs/use-cases.md

How Skylattice Differs

Skylattice is not trying to be the broadest agent platform.

  • it is narrower than generic agent frameworks and chat wrappers
  • it is more governance-heavy than typical repo automation bots
  • it treats Git as a review and rollback surface, not just a deployment transport
  • it separates tracked system behavior from private runtime memory on purpose

Comparison details: docs/comparison.md

Architecture And Governance

Feedback Wanted

If you read the repo and hit a confusing point before or after cloning, that is valuable signal. The fastest routes are:

  • open an early-feedback issue using .github/ISSUE_TEMPLATE/early_feedback.md
  • open a feature request for a bounded improvement
  • open a bug report if a documented path fails

Project Status

Status: early-stage runtime with a stable non-pre-release public baseline and a tracked external authority kit.

Good fit today:

  • builders exploring local-first agent infrastructure
  • people who want a reference implementation for governed agent behavior
  • contributors interested in memory, repo automation, and bounded self-improvement patterns

Not a fit yet:

  • teams looking for a polished hosted product
  • users who want zero-config autonomous agents
  • workflows that require AST refactors, arbitrary shell automation, or hands-off production GitHub operations

Release notes: docs/releases/v0.4.1-stable.md Latest stable release: docs/releases/v0-4-1.md Changelog: CHANGELOG.md Roadmap: docs/roadmap.md

Documentation Map

  • README.md: operator-facing overview, quick start, and public proof surfaces
  • mkdocs.yml: GitHub Pages configuration for the public distribution layer
  • docs/index.md: canonical landing page for search engines and AI answer systems
  • docs/what-is-skylattice.md: direct-answer overview page
  • docs/quickstart.md: canonical no-credential and token-enabled quick start
  • docs/faq.md: query-aligned public FAQ
  • docs/proof.md: proof surfaces, demo, and sample outputs
  • docs/web-control-plane.md: hosted app, pairing, connector, and local-first browser architecture
  • docs/ops/hosted-alpha-runbook.md: Vercel, Neon, GitHub OAuth, and live Hosted Alpha acceptance checklist
  • docs/overview.md: product narrative and positioning
  • docs/use-cases.md: who should care and what Skylattice is good for
  • docs/comparison.md: category-level comparison and positioning boundaries
  • docs/architecture.md: runtime modules and data flow
  • docs/governance.md: approval model, budgets, freeze mode, and safety gates
  • docs/memory-model.md: memory layers, write triggers, and rollback rules
  • docs/technology-radar.md: radar workflow, scoring, promotion gates, rollback, schedule intent, and source abstraction
  • docs/github-workflow.md: GitHub audit, CI, Pages, and collaboration behavior
  • docs/releases/v0.4.1-stable.md: tracked GitHub release notes source for the latest stable cut
  • docs/releases/v0-4-1.md: canonical stable release page for the Pages site
  • docs/releases/v0.3.0-stable.md: tracked GitHub release notes source for the previous stable cut
  • docs/releases/v0-3-0.md: historical stable release page
  • docs/releases/v0.2.2-stable.md: tracked GitHub release notes source for the previous stable follow-up
  • docs/releases/v0-2-2.md: historical stable follow-up page
  • docs/releases/v0.2.1-stable.md: tracked GitHub release notes source for the first stable baseline
  • docs/releases/v0-2-1.md: historical stable baseline page
  • docs/releases/v0.2.0-public-preview.md: historical preview release notes source
  • docs/releases/v0-2-0.md: historical preview release page
  • docs/ai-distribution-ops.md: weekly discoverability loop plus homepage, social preview, sitemap, and search-console alignment
  • docs/ai-search-benchmark.md: isolated-agent query clusters and scorecard for weekly discoverability reviews
  • docs/outreach/: launch posts, directory blurbs, posting runbook, community posts, and distribution targets
  • evals/ai-search/: tracked discoverability baselines, post-release reviews, and summary templates
  • docs/roadmap.md: staged delivery plan
  • docs/adrs/: architecture decision records
  • CITATION.cff: repository citation metadata for GitHub and downstream citation tools

Repository Layout

Tracked surface:

  • docs/: architecture, governance, task briefs, comparison pages, release notes, and ADRs
  • apps/web/: hosted web control plane, design system tokens, app routes, and pairing UX
  • apps/web/.env.example: Hosted Alpha env template for Vercel + Neon + GitHub OAuth
  • apps/web/sql/hosted-alpha-bootstrap.sql: tracked bootstrap SQL for the hosted control-plane tables
  • tools/check_hosted_alpha_setup.mjs: prints Hosted Alpha readiness and fails when deployment blockers remain
  • tools/bootstrap_hosted_alpha_db.mjs: applies the tracked control-plane bootstrap SQL to DATABASE_URL
  • configs/: tracked defaults, governance baselines, task validation, and radar scoring and promotion policy
  • prompts/: versioned core prompts and reflection templates
  • skills/: tracked skill definitions and conventions
  • evals/: scenario specs and redacted reports
  • .github/: CI workflow plus PR and Issue templates
  • examples/redacted/: public-safe example outputs and walkthroughs
  • src/: runtime code, adapters, providers, radar services, and repositories
  • tests/: smoke, radar, and public-readiness coverage
  • tools/: repo-local utility scripts such as tracked validation runners
  • package.json: workspace-level scripts for the hosted web app

Local-only surface:

  • .local/state/: runtime SQLite database and local snapshots
  • .local/memory/: local memory artifacts and indexes
  • .local/work/: temporary work products and sandboxes
  • .local/logs/: run logs and diagnostics
  • .local/overrides/: local config overlays that must never be committed

Public Readiness Checklist

  • python -m pytest -q
  • python -m compileall src/skylattice
  • python -m skylattice.cli doctor
  • python tools/run_validation_suite.py
  • npm run web:preview:check
  • python -m mkdocs build --strict
  • review tests/test_public_readiness.py
  • git ls-files .local
  • confirm the GitHub repository description and topics still match the current public positioning
  • confirm the GitHub homepageUrl points to the Pages site
  • confirm the repository social preview still uses the custom public asset
  • confirm robots.txt, sitemap.xml, llms.txt, and llms-full.txt are present in the built site
  • keep Issues enabled
  • keep Discussions disabled initially
  • keep Wiki disabled initially

Development Conventions

  • prefer branch names like codex/<topic>
  • prefer commit prefixes like docs:, arch:, kernel:, memory:, gov:, radar:, eval:
  • create a task brief under docs/tasks/ before non-trivial work
  • any architecture boundary change must update docs and, when durable, add an ADR
  • keep public examples redacted and sanitized

Project Home

About

Local-first AI agent runtime for persistent memory, governed repo tasks, and Git-native self-improvement.

Topics

Resources

License

Contributing

Security policy

Stars

Watchers

Forks

Packages

 
 
 

Contributors