Implement F007 explicit project profiles

This commit is contained in:
rob
2026-11-17 18:02:56 +00:00
parent 27dd40dd8f
commit d3a88fdeaf
9 changed files with 214 additions and 8 deletions
+1 -1
View File
@@ -1,3 +1,3 @@
# Current state
FORGE-F001 and FORGE-F002 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. `bortstack-context`, `bortstack-contributor`, and `bortstack-design` packages are present. The repository `testtask` entry point is provisioned but blocked because Forge has no application runtime or manual-test hook. One skill directory remains reserved. No generator or active legacy-skill migration has been implemented. 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-008 remain accepted. Captain has authorised direct `codex` work for future Forge tasks until further notice.
FORGE-F001 and FORGE-F002 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. FORGE-F007 has a profile configurator candidate directly on `codex`, with human acceptance pending. `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. 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-008 remain accepted. Captain has authorised direct `codex` work for future Forge tasks until further notice.
+5 -5
View File
@@ -1,11 +1,11 @@
# Handoff
FORGE-F003's candidate was committed on `codex-forge-f003` and merged into local `codex` at Captain's request. It remains open pending Captain design approval and Penpot/Windows/visual validation. The separate planning branch remains intact. F002 is Complete and does not block F003; F004's pending JJ validation also does not block it. No external application project, installed skill, distribution tooling, or production service was modified. Captain authorised direct `codex` work for future Forge tasks until further notice; FORGE-008 and `AGENTS.md` record this.
Current work: FORGE-F007 profile configuration candidate on `codex`, starting from `27dd40d` under FORGE-008's direct-branch policy. The checkout was clean before implementation. F002 is Complete; F007 has no dependency blocker. The new command writes only to an explicitly named target directory; validation used temporary projects, not external applications.
Candidate: `bortstack-design` skill and references; a Forge-owned task-overview example with editable SVG concepts A and B, refined A, PNG previews, and an unapproved handoff draft. The example is not an application feature. Captain approval is pending and no design approval has been recorded in `bortstack-context`.
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.
Validation: `python3 -m unittest discover -s tests -v` passed 9 tests; `python3 scripts/validate-skills.py` accepted all three implemented skills; installer dry-run included `bortstack-design`; `git diff --check` and the task-ID/worktree audit passed. SVGs were rendered with ffmpeg, and A-refined and B were visually inspected. The SVG structure test confirms separate text/shapes and preservation of A's original IDs. This does not prove native Penpot editability or visual agreement with an approved implementation.
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.
Limitations: Local Penpot containers run, including MCP, but this Codex session exposes no Penpot connector or browser. Current-session MCP edits and Penpot SVG import were not possible to verify. The non-MCP fallback is documented and its source files were exercised locally, but Penpot UI import remains pending. Windows setup and a post-approval implementation comparison remain unverified. Existing repository `testtask` remains blocked by lack of application runtime.
Status: F007 is Ready to Finalise for Captain acceptance, not Complete. 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.
Next actions: Captain reviews the concepts and explicitly approves a named version or requests refinement; record that approval through `bortstack-context`. Once Penpot MCP or UI access is available, import/edit the Forge example and record file/board references, exercise the fallback, then perform the approved-source visual comparison. Keep F003 open until those acceptance gates pass. No push or deployment has occurred.
Next action: Captain reviews F007's profile contract and temporary-project evidence, then accepts or requests changes. Future Forge work stays on `codex` until Captain says otherwise.
+3 -1
View File
@@ -59,12 +59,14 @@ Migrate `flask-react-auth-base` into Forge's template architecture. Preserve Fla
Acceptance: a generated application passes relevant checks and retains the listed capabilities before the existing bootstrap is retired.
## FORGE-F007 — Implement Business/Personal Profiles
Status: Planned. Priority: Medium. Dependencies: FORGE-F002.
Status: Ready to Finalise (human acceptance pending). Priority: Medium. Dependencies: FORGE-F002. Implemented directly on `codex` under FORGE-008, starting from `27dd40d`.
Implement FORGE-005 for new and existing repositories: profile-specific documentation and conventions, independent ownership and branding, contributor access, and configurable testing/deployment expectations. Business profile does not imply Bortstack ownership.
Acceptance: both profiles work with separately configured ownership and branding.
Implementation record (2026-11-17): Added a dependency-free flat profile configurator and read/write module, updated the profile contract and context skill, and tested business and personal records in temporary new/existing directories with different owners and brands. The command requires explicit contributor, testing, and deployment values, preserves existing project files, and refuses to overwrite an existing profile. Linux tests passed; Windows command and filesystem behavior have not been exercised on Windows. No real external project was changed. Awaiting human acceptance; do not mark Complete from tests alone.
## FORGE-F008 — Standardise Local Testing and `act`
Status: Planned. Priority: Medium. Dependencies: FORGE-F006.
+13
View File
@@ -1,3 +1,16 @@
# 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.
F007 records a selected project profile at `.bortstack/profile.yaml` inside the target project. It requires the profile plus explicit owner, brand, contributor-access policy, testing expectation, and deployment expectation. `profile` and `development_context` must match `business` or `personal`. The file documents project context; it does not grant permissions, start tests, or deploy. The configurator uses a dependency-free, flat string-only YAML subset and refuses to overwrite an existing record or follow a symlinked profile directory. Existing projects retain their other files. Do not infer the selection from repository contents or copy the placeholder values as policy.
Example for an existing or newly created project directory:
```sh
python3 scripts/configure-profile.py --project /path/to/project --profile business \
--owner 'Independent Ltd' --brand 'Northstar' \
--contributor-access 'Captain approval required' \
--testing 'local unit tests' --deployment 'manual approval' --dry-run
```
Remove `--dry-run` to write the record. On Windows, use `py -3 scripts/configure-profile.py` with the same arguments. Run the command from the Forge checkout; it writes only to the explicitly named project. A future `bortstack-new` may invoke this interface after generating a project, but F007 does not generate projects.