Repository navigation
feat(profiles): edit and keep Gentle Shell's Controlled Engineering option - #267
Draft
FrankiNarvaez wants to merge 3 commits into
Draft
FrankiNarvaez wants to merge 3 commits into
FrankiNarvaez wants to merge 3 commits into
Conversation
…the store Gentle Shell stores a per-profile Controlled Engineering option in the profiles.json workflow entry, beside the orchestrator mode. The store only modelled the mode, so saving, renaming or duplicating a profile from the app silently dropped the option. Model each workflow entry as mode plus option, mirroring gentle-pi lib/agent-profiles.ts: only exactly true reads as on and drops nothing, the mode is written beside the option while it is on, off is never written, and rename, duplicate and delete carry it. Add set_controlled_engineering.
Add a 'Controlled Engineering: Off / On' line under the orchestrator mode. It is edited in the draft like the mode: it counts as an unsaved change, Save writes it with the routing and Discard restores it. Document the option in docs/integrations.md.
Contributor
Author
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Closes #266
What and why
Adopts Gentle Shell's per-profile Controlled Engineering option in the Profiles screen.
gentle-core): eachworkflowentry ofprofiles.jsonis now the orchestrator mode pluscontrolledEngineering, mirroring gentle-pilib/agent-profiles.ts: only literaltruereads as on and drops nothing (the entry keeps its mode); the mode is written beside the option while it is on; off is never written; an all-default entry is removed; rename, duplicate and delete carry it. Newset_controlled_engineering; changing the mode keeps the option and the other way round. Before this, saving, renaming or duplicating a profile from the app silently erased an option enabled through/gentle:profiles.docs/integrations.mddescribes the option, its storage and which section each agent gets.A profile that never enables the option is written exactly as before.
How it was tested
cargo fmt,cargo clippy --workspace --all-targets --locked -- -D warnings(clean),cargo test --workspace --locked(1336 passed, 0 failed).gentle-coretests (written first, failing): only-trueparsing without drops, serialized shape, and the option following its profile through rename, duplicate, delete and mode changes until theworkflowkey disappears.main: a scratch binary built against both versions ofgentle-coreparsed, re-serialized, mode-edited and duplicated profiles files without the option (including unknown keys and invalid/orphaned workflow entries); output byte-identical (297 lines).serialize_profiles).Security
Mark what this PR does; a maintainer reads those parts line by line (docs/security.md).
Cargo.toml/Cargo.lock): which and why:.github/),build.rs,packaging/or the self-updaterIt changes how the app writes Gentle Shell's existing
profiles.json(workflowentries only); no new file is read or written.Checklist
cargo fmt,cargo clippy --workspace --all-targets --locked -- -D warnings,cargo test --workspace --locked(no behavior change)