Migrate Flask React template into Forge

This commit is contained in:
rob
2026-11-17 19:39:11 +00:00
parent bc6b6d26f1
commit 444406d2fc
109 changed files with 9427 additions and 13 deletions
+5 -5
View File
@@ -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.