1.9 KiB
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:
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.