Migrate Flask React template into Forge
This commit is contained in:
@@ -1,5 +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.
|
||||
`forge/` holds framework-independent helpers. `templates/` contains independent stack-specific packages; `flask-react/` now includes a descriptor, source payload, fresh context boilerplate, optional GitHub workflow, and a standalone generator. `skills/` is the canonical source for four skills. `profiles/` holds 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.
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
# Current state
|
||||
|
||||
FORGE-F001, FORGE-F002, and FORGE-F007 were human accepted and are present on `codex`. FORGE-F004 and FORGE-F003 implementation candidates are merged into local `codex`, with their external validation and human acceptance pending. Explicit business/personal profile configuration is implemented. `bortstack-context`, `bortstack-contributor`, and `bortstack-design` packages are present; one skill directory remains reserved. The repository `testtask` entry point is provisioned but blocked because Forge has no application runtime or manual-test hook. No generator or active legacy-skill migration has been implemented. F006 is briefed but not engaged; its optional email/hosting and neutral-default boundary is accepted. Captain reports successful external validation of local Penpot 2.18 Docker and its integrated MCP connection, including editable shape/text creation and preservation of existing design elements during modification. The MCP container runs locally, but no Penpot connector or browser is exposed to this session, so current-session Penpot edits have not been verified. Windows and JJ's hands-on workflow have not been tested. Decisions FORGE-001 through FORGE-009 remain accepted. Captain has authorised direct `codex` work for future Forge tasks until further notice.
|
||||
FORGE-F001, FORGE-F002, and FORGE-F007 were human accepted and are present on `codex`. F003 and F004 candidates are merged with external validation and acceptance pending. F006 has an independent Flask/React template package and generator candidate directly on `codex`; human acceptance and some generated-project checks remain pending. Explicit business/personal profile configuration is implemented. `bortstack-context`, `bortstack-contributor`, and `bortstack-design` packages are present; one skill directory remains reserved. The repository `testtask` entry point is provisioned but blocked because Forge has no application runtime or manual-test hook. No cross-template generator or active legacy-skill migration has been implemented. Captain reports successful external validation of local Penpot 2.18 Docker and integrated MCP, but this session has no Penpot connector/browser. Windows and JJ's hands-on workflow have not been tested. Decisions FORGE-001 through FORGE-009 remain accepted. Captain has authorised direct `codex` work until further notice.
|
||||
|
||||
+5
-5
@@ -1,11 +1,11 @@
|
||||
# Handoff
|
||||
|
||||
Current work: FORGE-F007 was committed as `d3a88fd` on `codex` under FORGE-008's direct-branch policy and human accepted on 2026-11-17. F002 and F007 are Complete. The profile command writes only to an explicitly named target directory; validation used temporary projects, not external applications.
|
||||
Current work: FORGE-F006 migrated the tracked `flask-react-auth-base` source at `ff139bf5f28f4604b4a7108f4ee26608dea9924e` into Forge on `codex`, starting from `bc6b6d2`. The original source repository was read and remained clean/unchanged. F006 is Ready to Finalise for Captain review, not Complete. Direct `codex` work follows FORGE-008. No external application, provider, or production infrastructure was modified.
|
||||
|
||||
Implementation: `forge/profile_config.py` and `scripts/configure-profile.py` record a selected business or personal profile at `.bortstack/profile.yaml` with explicit owner, brand, contributor policy, testing, and deployment values. The command supports dry-run, refuses placeholder values and overwrites, and leaves existing project files intact. The profile contract and `bortstack-context` now describe the record. No new dependency, generator, provider integration, access grant, or deployment was added.
|
||||
Implementation: `templates/flask-react/` now contains a descriptor, independent source payload, Python generator, fresh neutral context boilerplate, and optional GitHub workflow. Generated projects do not need GitHub, SWAG, Resend, a production host, or Forge at runtime. Email is disabled by default, branding is project-specific, and optional SWAG uses a separate Compose overlay. Existing `roborto-*` skills and Forge distribution tooling are untouched.
|
||||
|
||||
Validation: `python3 -m unittest discover -s tests -v` passed 12 tests, including business and personal examples with different owners/brands and an existing-project preservation check. `python3 scripts/validate-skills.py` accepted three implemented packages; `git diff --check` passed. Windows invocation is documented but not exercised on Windows.
|
||||
Validation: Forge `python3 -m unittest discover -s tests -v` passed 15 tests and `python3 scripts/validate-skills.py` passed. A disposable `Orion Starter` generated at `/tmp/forge-f006-orion2` passed 14 backend tests in an ephemeral Docker container, SQLite migration upgrades, Compose configuration, and API/nginx image builds. A fresh `/tmp/forge-f006-orion3` passed base and optional SWAG-overlay Compose configuration, clean `npm ci`, 16 frontend tests, lint, and build in a Node container. A further disposable `/tmp/forge-f006-browser-trial` passed 23 Playwright checks with one intentional skip after Chromium OS libraries were installed in the ephemeral runner. Generator tests cover local-only mode, optional local Git, collision refusal, copied capabilities, neutral identity, and no active GitHub workflow. `git diff --check` passed.
|
||||
|
||||
Status: F007 is Complete by Captain acceptance. F003 remains merged with Captain design approval and Penpot/Windows/visual validation pending. F004 remains merged with JJ's external validation pending. The repository `testtask` remains blocked by lack of an application runtime. No push or deployment has occurred.
|
||||
Limitations: Host Python lacked Flask, so a direct host test failed; an initial network-disabled pip install and API build also failed on dependency resolution. Container validation succeeded using available dependency/image cache and normal Docker networking. Host npm was absent, but a clean generated-project `npm ci` and subsequent checks passed inside Node Docker. `npm ci` reported 14 advisories in development dependencies (5 moderate, 7 high, 2 critical); `npm audit --omit=dev` reported zero production advisories. The first Playwright attempt failed because the minimal runner lacked Chromium libraries; after installing those libraries inside an ephemeral container, the suite passed. MySQL runtime tests, Windows generation, and live email/hosting remain unverified. The existing bootstrap workflow must stay available until Captain acceptance. Forge `testtask` remains blocked because Forge has no application runtime.
|
||||
|
||||
Next action: F006 is the remaining independent prerequisite for F005. F006 has been briefed; Captain accepted the optional email/hosting and neutral-default boundary in FORGE-009, but implementation has not been engaged. The external `flask-react-auth-base` repository was inspected read-only and remains unchanged. Future Forge work stays on `codex` until Captain says otherwise.
|
||||
Next action: Captain reviews and accepts F006 or requests changes. F005 may use the descriptor and generator after F006 acceptance. F003 and F004 still await their separate external validation and acceptance. No push or deployment has occurred.
|
||||
|
||||
@@ -1,3 +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 established contracts and distribution. Flask/React code remains in its existing source repository. Penpot and repository-provider integrations are optional; Forge's design integration is not implemented. Captain reports a validated local Penpot 2.18 Docker deployment and integrated MCP connection outside this repository.
|
||||
Bortstack Forge manages a framework-independent core, independently maintained application templates, four canonical Codex skills, project profiles, and optional integrations. This repository is the canonical source for Forge skills. The Flask/React source has been copied into Forge's template package for F006; its original repository remains unchanged and operational. Penpot and repository-provider integrations are optional. Captain reports a validated local Penpot 2.18 Docker deployment and integrated MCP connection outside this repository.
|
||||
|
||||
+3
-1
@@ -52,7 +52,7 @@ Orchestrate technology-independent generation: template selection, project confi
|
||||
Acceptance: generate and validate a project from the migrated template with either profile and a local-only Git option.
|
||||
|
||||
## FORGE-F006 — Migrate Flask/React Bootstrap Template
|
||||
Status: Planned (briefed; implementation not yet engaged). Priority: High. Dependencies: FORGE-F001. Migration defaults accepted in FORGE-009.
|
||||
Status: Ready to Finalise (human acceptance pending). Priority: High. Dependencies: FORGE-F001. Implemented directly on `codex` under FORGE-008, starting from `bc6b6d2`. Migration defaults accepted in FORGE-009.
|
||||
|
||||
Migrate `flask-react-auth-base` into Forge's template architecture. Preserve Flask backend/authentication, React/Vite frontend, Docker configuration, database support, automated tests, and documentation. Remove mandatory GitHub and immediate production-deployment assumptions. Validate generated applications before retiring the existing bootstrap workflow. No additional framework templates yet.
|
||||
|
||||
@@ -60,6 +60,8 @@ Acceptance: a generated application passes relevant checks and retains the liste
|
||||
|
||||
Accepted migration boundary (2026-11-17): preserve email and hosting foundations as optional configuration with neutral project-specific defaults. Generation must work locally without GitHub or production infrastructure and must not publish or deploy. Keep the source `flask-react-auth-base` repository unchanged.
|
||||
|
||||
Implementation record (2026-11-17): Copied the tracked source at `ff139bf5f28f4604b4a7108f4ee26608dea9924e` into Forge's independent template package without changing the original repository. Added a descriptor and Python generator, fresh neutral project context, optional GitHub workflow and SWAG overlay, disabled email by default, and removed mandatory external-network and Roborto branding defaults. Generated projects passed 14 backend tests, 16 frontend tests, frontend lint/build, 23 Playwright checks (one intentional skip), SQLite migrations, Compose base/optional-overlay configuration, and API/nginx image builds. Forge's 15 tests and skill validation passed. A fresh generated frontend passed `npm ci`; the install reported 14 advisories in development dependencies, while `npm audit --omit=dev` reported zero production advisories. A clean host Python install, MySQL runtime test, and Windows generation remain unverified in this session; prior source-repository evidence does not substitute for those generated-project checks. Do not retire the existing bootstrap workflow or mark F006 Complete before human acceptance.
|
||||
|
||||
## FORGE-F007 — Implement Business/Personal Profiles
|
||||
Status: Complete; human acceptance received 2026-11-17. Priority: Medium. Dependencies: FORGE-F002. Implemented directly on `codex` under FORGE-008 in commit `d3a88fd`.
|
||||
|
||||
|
||||
@@ -1,5 +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.
|
||||
A template descriptor identifies template ID and version, supported project type, configuration variables, generation procedure, dependencies, development commands, validation/test commands, optional capabilities, platform requirements, and initial context behavior. `templates/flask-react/template.json` is the first implemented descriptor; `templates/flask-react/generate.py` is its standalone generation API. F005 will orchestrate selection and project profiles across templates. Generated projects have no Forge runtime dependency.
|
||||
|
||||
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.
|
||||
The migration source is the existing `flask-react-auth-base` repository at the commit recorded in the descriptor. It remains external and unchanged. Forge's generator accepts a project name, new destination, and optional `--git-init`; it refuses existing destinations and paths inside Forge. Email and hosting foundations are optional per FORGE-009, with no active GitHub workflow or automatic deployment in generated projects.
|
||||
|
||||
Reference in New Issue
Block a user