Skip to content

feat(profiles): edit and keep Gentle Shell's Controlled Engineering option - #267

Draft
FrankiNarvaez wants to merge 3 commits into
Gentleman-Programming:mainfrom
FrankiNarvaez:feat/controlled-engineering
Draft

FrankiNarvaez wants to merge 3 commits into
Gentleman-Programming:mainfrom
FrankiNarvaez:feat/controlled-engineering

Conversation

@FrankiNarvaez

Copy link
Copy Markdown
Contributor

Closes #266

What and why

Adopts Gentle Shell's per-profile Controlled Engineering option in the Profiles screen.

  • Store (gentle-core): each workflow entry of profiles.json is now the orchestrator mode plus controlledEngineering, mirroring gentle-pi lib/agent-profiles.ts: only literal true reads 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. New set_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.
  • Editor: a "Controlled Engineering: Off / On" line under the orchestrator mode, edited in the draft like the mode: it counts as an unsaved change, Save writes it with the routing, Discard restores it. The tooltip says where Gentle Shell applies it.
  • Docs: docs/integrations.md describes 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

  • macOS: cargo fmt, cargo clippy --workspace --all-targets --locked -- -D warnings (clean), cargo test --workspace --locked (1336 passed, 0 failed).
  • Two new gentle-core tests (written first, failing): only-true parsing without drops, serialized shape, and the option following its profile through rename, duplicate, delete and mode changes until the workflow key disappears.
  • Differential against main: a scratch binary built against both versions of gentle-core parsed, re-serialized, mode-edited and duplicated profiles files without the option (including unknown keys and invalid/orphaned workflow entries); output byte-identical (297 lines).
  • Independent read-through of the store against the reference contract, every draft-mode path in the editor, and the RPC/files write paths (all through serialize_profiles).
  • Not yet done: an isolated-copy smoke test of the editor and screenshots; Windows and Linux not tried. Kept as a Draft until then.

Security

Mark what this PR does; a maintainer reads those parts line by line (docs/security.md).

  • Adds or bumps dependencies (Cargo.toml / Cargo.lock): which and why:
  • Starts processes, opens network connections or downloads files
  • Reads or writes files outside the app's data dir (configs, credentials, home)
  • Touches CI (.github/), build.rs, packaging/ or the self-updater
  • Adds binary files (images, fonts, archives): where they come from:
  • None of the above

It changes how the app writes Gentle Shell's existing profiles.json (workflow entries only); no new file is read or written.

Checklist

  • cargo fmt, cargo clippy --workspace --all-targets --locked -- -D warnings, cargo test --workspace --locked
  • One change per PR; refactors separate and marked (no behavior change)

…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.
@FrankiNarvaez

Copy link
Copy Markdown
Contributor Author

Controlled Engineering profile option
Screenshot 2026-11-25 at 23 02 00

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat(profiles): edit and keep Gentle Shell's Controlled Engineering option

1 participant