Repository navigation
Description
Observed problem
Building the Windows shell with shell-runtime generates 16 command permission TOML files under apps/shell/src-tauri/permissions/autogenerated/. They are untracked and are not covered by an ignore rule. After a terminal build, the managed backend cleanup correctly refuses to remove a source checkout with these files, retaining the checkout and build outputs until the owner manually exports and removes the generated files. After those files are retired, cleanup next refuses the ignored apps/shell/src-tauri/gen/ schema output because verify_disposable_source declares only the Desktop host generated roots.
Observed on 2026-11-05 while validating PR #393, at source 16f47107dbc847651ef63b56e48308f76338ca6a. The selected command was:
cargo check --locked --target x86_64-pc-windows-msvc -p hiroute-shell --features shell-runtime --lib --testsThe cross-compiler attempt stopped at an unavailable C compiler prerequisite. validation.py backend cleanup RUN_ID subsequently reported Source changes/untracked files retained. The only untracked files were the 16 generated shell command permissions, matching the command list in apps/shell/src-tauri/build.rs. The only ignored roots were the allowed target/ and unregistered shell gen/ output. These are successive checks in the same encounter, not separate recurrences.
Ownership and expected behavior
This belongs to HiRoute's generated-output/validation conventions, not the issue-spec CLI. The safe refusal to delete changed source should remain. Routine generated permission files should have a declared output location or a narrow generated-output policy so an otherwise clean terminal run can be retired through the existing owner cleanup flow. Do not ignore authored permissions or weaken dirty-checkout protection.
Installed issue-spec revision: 4af4df86b0c0d52246cef057b8b01f420db48253; generated workflow source: d8aa3056e12678c4442349282a14d7bdbd0751f0. Neither revision difference caused this observation.
Recurrence
One confirmed encounter, including its cleanup attempt. Retries of that run are not independent occurrences. Bounded open/closed discussion searches for permissions autogenerated and cleanup untracked found no matching report; returned discussions concerned unrelated launch/data ownership.
Suggested improvement and acceptance
Declare the shell's automatically generated command-permission and schema outputs in the existing disposable-output policy (including the ignored-file check), or direct them to an existing registered generated-output root. An ignore entry alone does not satisfy the runner's safety policy. Keep authored manifests, unknown source files and changed tracked files protected.
From a clean checkout, run the configured Windows-shell compilation, inspect generated file status, preserve unique evidence and run managed owner cleanup after the run terminates. Cleanup should retire only its owned inactive outputs without a manual generated-permission export/removal. A genuine source edit must still prevent cleanup.
Activity
[-]Declare generated shell permissions so managed cleanup can retire clean builds[/-][+]Declare generated shell metadata so managed cleanup can retire clean builds[/+]