Skip to content

Archon Product Architecture Workflow

Archon as an independent product: how a project adopts it, how Archon understands project state, how demands are routed, and how engineering judgment becomes verified delivery.

Comic explainer: Archon product architecture map

This document complements architecture.md: that file explains Archon's internal mechanisms; this file explains the product workflow from an adopter's point of view. If you want to install Archon before reading the product view, start with adoption/quickstart.md.

Purpose

Archon is a repository-native AI engineering governance product. It does not replace the coding model and it does not run as a background daemon. Instead, it gives the model durable project context, hard engineering gates, independent review, and a repeatable way to turn delivery experience into stronger constraints.

Product Boundary

BoundaryArchon OwnsArchon Does Not Own
Project adoptionFramework kit, project-state templates, validation and commit gatesThe adopter's product decisions
Runtime judgmentRouting, Verdict, validation, Close-Out, review pressureBlind execution of user technical preferences
Project memoryManifest, drift, memos, debt, ADRs, cold archivesGit history replacement or chat transcript storage
ProductizationExport kit, installer/migrator, governance checker, platform adapters, dashboardA separate autonomous coding daemon

The product promise is: the user expresses intent; Archon supplies engineering ownership, context continuity, verification, and learning.

Core Product Modules

ModuleProduct RolePrimary Files
Core KitPortable governance runtime.archon/soul.md, .archon/soul/, domain lenses, contracts, templates
Platform AdapterIDE-specific activation and commands{platform}/commands, {platform}/rules, {platform}/skills, {platform}/agents
Project StateAdopter-specific facts and memorymanifest.md, drift.md, debt.md, memos.md, .archon/decisions.md
Runtime ProofPer-delivery commit permission.archon/runs/<run_id>/state.json, scripts/archon-run-state.mjs
Governance CheckerPortable mechanical enforcement.archon/contracts/governance-contract.yaml, scripts/archon-check.py
DashboardOptional visibility layer.archon/dashboard/

New Project Onboarding

Comic explainer: Archon new project onboarding

A new project starts with a clean install path:

  1. Copy or export the kit: install the project-agnostic core, platform adapter files, templates, governance checker, and run-state helper.
  2. Fill project state: complete manifest.md, initialize drift.md, debt.md, memos.md, and .archon/decisions.md.
  3. Install mechanical guards: register the manifest validation command, add governance checks, and wire the pre-commit lifecycle gate.
  4. Run first plan: /archon plan proves that Archon can load the right sections and infer the next project step from state.

Adoption is complete only when the first plan output is coherent and the validation command can enforce the declared governance contracts.

Existing Project Intake

Comic explainer: Archon legacy project intake

An existing project is not a blank template. Archon must understand it before governing it.

The intake flow is:

  1. Read reality first: inspect source layout, build and test commands, deployment path, docs, conventions, CI, and existing guardrails.
  2. Extract durable facts: write only current truths into manifest.md: product purpose, tech stack, directory responsibilities, validation command, knowledge assets, current state.
  3. Classify implicit knowledge: promote recurring conventions into the strongest fitting vehicle: type, test, lint, rule, skill, ADR, manifest, memo, or debt.
  4. Preserve compatibility: do not rewrite the project to match Archon. Register gaps as debt with deadlines and let future demands pay them down.
  5. Start with low-risk governance work: stabilize validation, sync manifest, index knowledge assets, then enter normal demand delivery.

The compatibility rule is simple: Archon adapts its project-state files to the real project first; it changes the project only after a Verdict says the change is justified.

Demand Execution

Comic explainer: Archon demand execution route

Every user-facing feature request, bug fix, or change request enters the same decision pipeline:

text
Wake / command
→ Drift Precheck
→ Router
→ Pre-Scan
→ Domain Lens classification
→ Fast-Path check
→ Verdict
→ Capability selector packet (optional, post-Verdict)
→ Self-directed execution
→ Validation Gate
→ Close-Out
→ Run-State commit permission
→ Git strategy

The execution interior is flexible: the agent chooses files, tools, helper scripts, test strategy, and backtracking. For broad reusable capability requests, the selected capability lens may ask a generic read-only selector to return a compact asset packet after Verdict=proceed; the packet can name at most the few skills or domain tools worth loading, but it cannot decide the delivery or implement changes. The boundaries are not flexible: no write before Verdict, no delivery without validation when files changed, no commit without Run-State permission, no self-review when independent review is required, and no permanent rule promotion without an evolution signal.

Routing And Judgment

User InputRouteJudgment
Status, next step, uncertaintyPlanRead-only state perception and priority ranking
Feature, bug, concrete changeDemandVerdict first, execute only if sound
Audit, quality, security, drift pressureReviewLight, Full, or Emergency based on drift and invocation
Ambiguous intentPlanSafe default; produces actionable demand candidates

Judgment is state-derived, not flag-driven. Archon infers build, harden, repair, or review pressure from manifest milestones, validation state, debt deadlines, and drift patterns.

Configuration Surface

Archon should feel configurable through project truth, not through a pile of mode switches.

NeedConfigure Through
What this project ismanifest.md §Product and §Concept Glossary
How to prove safetymanifest.md §Validation Command
How much context can stay hotmanifest.md §Context Budget
What reusable knowledge assets existmanifest.md §Knowledge Assets + platform skill metadata
How commits happenmanifest.md §Git Strategy
Which professional focus and domain tools are availabledomain-lenses/registry.yaml
Which project-local hooks run.archon/extensions/<id>/extension.md
Which baseline contracts must hold.archon/contracts/governance-contract.yaml

If a setting can be inferred from current project state, prefer inference. Add configuration only when state cannot express the decision reliably.

Productized Delivery Surfaces

For Archon as an independent product, the clean package shape is:

SurfaceResponsibility
Export KitReusable files copied into adopter projects
InstallerCreates the directory shape and initializes project-state templates
MigratorPerforms read-only intake for existing projects and drafts the first manifest/debt/memo set
CheckerRuns portable governance checks outside the authoring source
Platform AdapterConverts commands, rules, agents, and skills to each IDE's file format
DashboardShows current drift, runs, debt, milestones, and review pressure

This keeps the compatibility boundary at the repository files. Versioned packaging can come later; the current product unit is the exported kit plus mechanical checks.

Non-Goals

Archon should not become:

  • A background autonomous coding daemon
  • A chat transcript database
  • A replacement for Git history
  • A config-heavy policy engine
  • A workflow tool that makes users pick technical options
  • A separate memory protocol copied from another agent framework

Any proposed product feature must preserve the ownership model: Archon remains the engineering owner inside a project repository, with the user as product stakeholder.

Adoption Readiness Checklist

CheckNew ProjectExisting Project
Core kit copiedRequiredRequired
Project state initializedFrom templatesFrom repository intake
Validation command greenRequired before deliveryEstablish before high-risk delivery
Drift starts controlled0Initial value reflects known mismatch only if justified
Debt registry readyEmptySeed with real unresolved risks
Knowledge assets indexedStarter indexExisting rules/docs/skills mapped first
First /archon plan coherentInstall passIntake pass

The final adoption signal is not "files exist"; it is "Archon can explain the current project state and recommend the next engineering step without guessing."

Released under the Apache-2.0 License.