Implement Forge repository foundation
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
# Architecture
|
||||
|
||||
`forge/` reserves a framework-independent core. `templates/` contains independent stack-specific packages; `flask-react/` is a reservation only. `skills/` is the canonical source for four future skills. `profiles/` holds minimal business and personal defaults. `scripts/` provides portable user-level skill distribution. `docs/specifications/` defines interfaces; integrations are optional.
|
||||
|
||||
The context skill owns project records, tasks, worktrees, profiles, and design approvals. New delegates lifecycle setup to context. Contributor uses the context lifecycle with Captain/Commander authority and isolated testing. Design uses context for approvals and records. These are contracts, not active skill implementations.
|
||||
@@ -0,0 +1,3 @@
|
||||
# Current state
|
||||
|
||||
FORGE-F001 foundation is accepted for integration. The repo initially contained only a five-byte README on `main`; no prior local task or decision files existed. Four skill directories are reserved with README files, so no Forge skills are installable. The installer, validator, specifications, profiles, and automated tests are present. No generator, design integration, or active skill migration has been implemented. Linux tests passed locally; Windows has not been tested.
|
||||
@@ -0,0 +1,18 @@
|
||||
# Architecture decisions
|
||||
|
||||
All five decisions were supplied as approved planning inputs on 2026-11-17. No earlier Forge decision records existed. None supersedes an earlier decision.
|
||||
|
||||
## FORGE-001 — Technology-Agnostic Architecture
|
||||
Status: Accepted. Date: 2026-11-17. Rationale: project lifecycle must apply across stacks. Consequences: Core has no Flask, React, React Native, or other framework dependency; templates own stack-specific behavior. Supersedes: none.
|
||||
|
||||
## FORGE-002 — Centralised Skill Management
|
||||
Status: Accepted. Date: 2026-11-17. Rationale: one canonical source avoids divergent skill copies. Consequences: Forge will maintain `bortstack-context`, `bortstack-new`, `bortstack-contributor`, and `bortstack-design`; existing `roborto-*` skills remain until validated migration. Supersedes: none.
|
||||
|
||||
## FORGE-003 — Penpot Integration
|
||||
Status: Accepted. Date: 2026-11-17. Rationale: Penpot is the selected visual design platform. Consequences: integration is optional and outside Core. Supersedes: none.
|
||||
|
||||
## FORGE-004 — Retrofittable Visual Design Workflow
|
||||
Status: Accepted. Date: 2026-11-17. Rationale: new and existing projects need the same design lifecycle. Consequences: context owns design references and approvals; design owns Penpot operations and handoffs; implementation needs approved design or recorded override; PitchInvader is the initial pilot. Supersedes: none.
|
||||
|
||||
## FORGE-005 — Business/Personal Profiles
|
||||
Status: Accepted. Date: 2026-11-17. Rationale: project settings vary by development context. Consequences: profile, ownership, branding, and contributor permissions are distinct; neither profile implies ownership. Supersedes: none.
|
||||
@@ -0,0 +1,5 @@
|
||||
# Handoff
|
||||
|
||||
Task: FORGE-F001. Worktree: `/tmp/bortstack-forge-f001`; branch: `codex-forge-f001`. Foundation implementation was accepted by the user for commit and merge into `main`. Run `python3 -m unittest discover -s tests -v`, `python3 scripts/validate-skills.py`, and `python3 scripts/install-skills.py --list`. No Forge skill can currently be installed. Do not migrate or replace existing `roborto-*` skills. Windows installer behavior remains unverified on Windows. Next: review this foundation, then separately authorize the first skill implementation.
|
||||
|
||||
No `testtask` or snapshot adapter was present in this new repository. The installed Roborto context skill normally provisions those for application repositories; Forge has no application runtime or Docker test environment yet. A separate task should resolve a Forge-specific manual-test adapter before treating this repository as enrolled in that full workflow.
|
||||
@@ -0,0 +1,3 @@
|
||||
# Project overview
|
||||
|
||||
Bortstack Forge will manage a framework-independent core, independently maintained application templates, four canonical Codex skills, project profiles, and optional integrations. This repository is the canonical source for future Forge skills. FORGE-F001 establishes contracts and distribution only. Flask/React code remains in its existing source repository. Penpot and repository-provider integrations are optional and absent.
|
||||
@@ -0,0 +1,7 @@
|
||||
# Tasks
|
||||
|
||||
## FORGE-F001 — Repository Foundation & Shared Skill Architecture
|
||||
Status: Complete; human acceptance received 2026-11-17. Approved scope: structure, specifications, portable installer and validation. Acceptance: documented architecture and decisions; safe installer that ignores reserved skills; tests pass; legacy skills and external repositories remain untouched. Task branch/worktree: `codex-forge-f001` at `/tmp/bortstack-forge-f001`. Skill implementation and migration are excluded.
|
||||
|
||||
## Suggested next task
|
||||
Implement `bortstack-context` as the first canonical skill, including compatibility checks against the existing `roborto-project-context`; authorize and scope separately.
|
||||
@@ -0,0 +1,5 @@
|
||||
# Integration and skill interfaces
|
||||
|
||||
`bortstack-context`: project overview/current state, decisions, tasks, handoffs, task-scoped branches/worktrees, design references/approvals, and profile interpretation for new and existing repositories. `bortstack-new`: template selection, generation orchestration, initial configuration and profile, optional Git repository configuration; delegates lifecycle conventions to context. `bortstack-contributor`: onboarding, permitted task creation and implementation, PR preparation, contributor tests and handoff; preserves JJ's task creation, Captain/Commander terminology, isolated branches, and disposable Docker test environments. Manual-testing containers remain available until the contributor is instructed to remove them. `bortstack-design`: visual design orchestration, optional Penpot/MCP operations, concepts, approved handoff, code guidance, and visual QA; delegates task status and approvals to context. Design-dependent implementation needs an approved design or an explicit recorded override.
|
||||
|
||||
Git providers and Penpot are optional adapters. A provider integration must declare authentication, supported operations, failure behavior, and local-only fallback; no provider is assumed. Penpot absence must not block context or non-design tasks. No MCP server or provider integration is configured in this task.
|
||||
@@ -0,0 +1,3 @@
|
||||
# Project profile contract
|
||||
|
||||
`profiles/business.yaml` and `profiles/personal.yaml` are flat records with `profile`, `development_context`, `ownership`, `branding`, `contributor_access`, `testing_expectations`, and `deployment_expectations`. The last five values are project-specific placeholders until explicit project configuration is recorded. Business does not imply Bortstack ownership. Profile selection is explicit for new or existing projects; existing repositories are never classified automatically. Profile, owner, brand, and contributor permissions are separate decisions. No inheritance or merge algorithm is defined.
|
||||
@@ -0,0 +1,5 @@
|
||||
# Skill package contract
|
||||
|
||||
An implemented package lives at `skills/<name>/SKILL.md`. Optional `references/`, `scripts/`, and `assets/` directories hold supporting content. The UTF-8 manifest starts with YAML front matter containing unique `name` and nonempty `description`; name must match the directory. A nonempty instruction body is required. The validator checks the minimum metadata and rejects symlinks or likely credential files; it is not a full YAML parser or secret scanner. Reserved directories contain README files only and are not discovered as packages.
|
||||
|
||||
Each skill has one clear responsibility and a distinct activation description. Shared lifecycle rules belong to context, with other skills referring to it rather than copying it. Document required skills and optional integrations in each future manifest. If a required skill is unavailable, report it; do not improvise. Use platform-neutral paths and commands or provide Linux and Windows variants. Repository providers are configurable; GitHub is not assumed. Framework behavior belongs only in a named template. Skills should operate outside Forge where their responsibility allows.
|
||||
@@ -0,0 +1,9 @@
|
||||
# Skill distribution and migration
|
||||
|
||||
Canonical source is `skills/` in this repository. Only directories with valid `SKILL.md` are installable. The current version identifier is the Forge Git commit or task branch revision; there is no independent package version yet. Record the source commit when installing or updating. Installer defaults to `$CODEX_HOME/skills` or `~/.codex/skills`, on Linux and Windows. It copies packages by default, requires no administrator rights for a writable user directory, and never overwrites an existing path. `--link` requests a development symlink and may fail where Windows symlink privileges are unavailable.
|
||||
|
||||
Linux: `python3 scripts/install-skills.py --list`, `--dry-run`, `--install NAME`, or `--all`; `sh scripts/install-skills.sh` forwards the same arguments. Windows PowerShell: `py -3 scripts/install-skills.py --list` or `./scripts/install-skills.ps1 --list`. Use `--dest "path with spaces"` for an isolated skills directory. `--dry-run` plans all implemented skills. Missing and invalid skills fail cleanly. An existing installation conflicts; no force switch exists.
|
||||
|
||||
Update procedure: identify and record the target Forge commit, validate and test that revision, inspect the installed package, move its destination to a user-controlled backup, install the selected new package, restart Codex if needed, test activation and compatibility, then delete the backup only after acceptance. On failure, remove the new package and restore the backup. The installer itself never removes old packages.
|
||||
|
||||
Migration plan: inventory actual installed `roborto-*` directories and internal references on each machine; map `roborto-project-context` to `bortstack-context`, `roborto-new-project` to `bortstack-new`, and `roborto-contributor` to `bortstack-contributor`. `bortstack-design` is new. Preserve context, task, handoff, snapshot, contributor permission, Captain/Commander, and Docker manual-testing behavior. Update internal cross-skill references only after matching implementations exist. Test legacy/new interaction in isolation before exposing both as active, then test Linux installation and JJ's Windows installation separately. Keep old installations until consumer references and user workflows pass; roll back by restoring backups and references. Retire old names only by separate accepted task. FORGE-F001 performs none of this migration.
|
||||
@@ -0,0 +1,5 @@
|
||||
# Template contract
|
||||
|
||||
A future template descriptor must identify template ID and version, supported project type, configuration variables, generation procedure, dependencies, development commands, validation/test commands, and optional capabilities. It must state platform requirements and how it produces initial context. No descriptor format or generation API is implemented yet.
|
||||
|
||||
The first migration source is the existing `flask-react-auth-base` repository. Its documented `scripts/create-project.sh` accepts a project name, destination, and optional `--git-init`, and refuses existing destinations. It remains external and unchanged. Migration of its code or generator is a separate task.
|
||||
Reference in New Issue
Block a user