Add ISAC mechanic gap handoff actions

This commit is contained in:
JB
2026-07-27 21:10:02 -04:00
parent 6e12b2f3b7
commit 36dd018a4a
9 changed files with 723 additions and 16 deletions
+15
View File
@@ -2041,6 +2041,11 @@ its state to assistive technology. Focus remains in the active field when the
generated script refreshes, and reduced-motion preferences remove expansion
and replacement transitions.
The recipe starter opens with no recipe selected. Keep its count, duration, and
distance parameters hidden until the author chooses a recipe. Disable `ADD
RECIPE BRANCH` while the selection is empty, and show `REPLACE PROGRAM` only
after the author selects a recipe and the current program contains a branch.
#### AI mechanic drafting
`MechanicProgramEditor` keeps its complete manual authoring controls available
@@ -2075,6 +2080,16 @@ The panel presents five explicit states:
- `DRAFT PREVIEW` shows assumptions, warnings, readiness, and the generated
script before an explicit `APPLY TO EDITOR` action.
The capability-gap state offers `COPY DEVELOPER PROMPT` and `SUBMIT TO ADMIN
TEAM` beside `REVISE SOURCE WORDING`. The copied prompt includes the exact
analyzed wording, clarification answers, gap evidence, and implementation
acceptance criteria. Submission sends one mandatory ISAC notification to each
active full administrator and records the report in the `ai_assistance` audit
history. Disable duplicate submission for the current assistant request.
Clipboard or network failures keep the handoff visible and show a specific
recovery message. Neither action changes the mechanic editor or saves the
parent record.
Applying a draft fills the structured fields in the current unsaved editor.
It does not save, publish, submit a proposal, close the editor, or discard
manual changes without confirmation. Show a concise before-and-after summary