@frankzhang2026/opencode-android-orchestrator 0.3.0 → 0.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (46) hide show
  1. package/CHANGELOG.md +29 -0
  2. package/README.md +81 -20
  3. package/THIRD_PARTY_NOTICES.md +1 -1
  4. package/dist/cli.js +2 -0
  5. package/dist/cli.js.map +1 -1
  6. package/dist/index.d.ts +2 -1
  7. package/dist/index.d.ts.map +1 -1
  8. package/dist/index.js +2 -1
  9. package/dist/index.js.map +1 -1
  10. package/dist/installer/android-project.js +1 -1
  11. package/dist/installer/android-project.js.map +1 -1
  12. package/dist/installer/gradle-verification.d.ts +23 -0
  13. package/dist/installer/gradle-verification.d.ts.map +1 -0
  14. package/dist/installer/gradle-verification.js +231 -0
  15. package/dist/installer/gradle-verification.js.map +1 -0
  16. package/dist/installer/index.d.ts +1 -1
  17. package/dist/installer/index.d.ts.map +1 -1
  18. package/dist/installer/index.js +1 -1
  19. package/dist/installer/index.js.map +1 -1
  20. package/dist/installer/init.d.ts +6 -1
  21. package/dist/installer/init.d.ts.map +1 -1
  22. package/dist/installer/init.js +144 -19
  23. package/dist/installer/init.js.map +1 -1
  24. package/dist/installer/opencode-config.d.ts +3 -3
  25. package/dist/installer/opencode-config.js +1 -1
  26. package/docs/MIGRATION.md +11 -11
  27. package/docs/SECURITY.md +21 -4
  28. package/docs/TROUBLESHOOTING.md +28 -2
  29. package/package.json +1 -1
  30. package/templates/.opencode/agents/scheduled-coder.md +3 -0
  31. package/templates/.opencode/agents/scheduled-reviewer.md +5 -4
  32. package/templates/.opencode/skills/scheduled-quality-coder/SKILL.md +10 -6
  33. package/templates/.opencode/skills/scheduled-quality-reviewer/SKILL.md +7 -4
  34. package/templates/AGENTS.md.fragment +4 -0
  35. package/templates/README.md +16 -0
  36. package/templates/automation/config.json +1 -0
  37. package/templates/automation/tasks/TASK-TEMPLATE.json.example +1 -0
  38. package/templates/scripts/automation/abort-task.sh +5 -10
  39. package/templates/scripts/automation/accept-and-integrate.sh +1 -1
  40. package/templates/scripts/automation/acceptance-report.sh +2 -9
  41. package/templates/scripts/automation/approve-and-run.sh +3 -0
  42. package/templates/scripts/automation/lib.sh +285 -8
  43. package/templates/scripts/automation/orchestrate-task.sh +1 -1
  44. package/templates/scripts/automation/scope-gate.sh +12 -9
  45. package/templates/scripts/automation/status.sh +4 -0
  46. package/templates/scripts/automation/tests/run-tests.sh +138 -0
@@ -1 +1 @@
1
- {"version":3,"file":"init.js","sourceRoot":"","sources":["../../src/installer/init.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAC/C,OAAO,EACL,SAAS,EACT,WAAW,EACX,YAAY,GACb,MAAM,SAAS,CAAC;AACjB,OAAO,EACL,UAAU,EACV,IAAI,EACJ,QAAQ,EACR,OAAO,EACP,GAAG,GACJ,MAAM,WAAW,CAAC;AACnB,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAEzC,OAAO,EACL,kBAAkB,EAClB,SAAS,GAGV,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EACL,4BAA4B,GAI7B,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACL,qBAAqB,GAEtB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EACL,mCAAmC,EACnC,yBAAyB,EACzB,qBAAqB,EACrB,2BAA2B,EAC3B,wBAAwB,EACxB,2BAA2B,GAM5B,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EACL,yBAAyB,EACzB,4BAA4B,EAC5B,uBAAuB,GAExB,MAAM,sBAAsB,CAAC;AAE9B,MAAM,mBAAmB,GAAG;IAC1B,WAAW;IACX,oBAAoB;CACZ,CAAC;AACX,MAAM,mBAAmB,GAAG;IAC1B,+BAA+B;IAC/B,sCAAsC;IACtC,sBAAsB;CACd,CAAC;AASX,MAAM,OAAO,0BAA2B,SAAQ,KAAK;IAC1C,IAAI,CAAiC;IACrC,OAA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"0.3.0";
3
- export declare const ORCHESTRATOR_PLUGIN_REFERENCE = "@frankzhang2026/opencode-android-orchestrator@0.3.0";
2
+ export declare const ORCHESTRATOR_PACKAGE_VERSION = "0.5.0";
3
+ export declare const ORCHESTRATOR_PLUGIN_REFERENCE = "@frankzhang2026/opencode-android-orchestrator@0.5.0";
4
4
  export declare const OPENCODE_CONFIG_SCHEMA_URL = "https://opencode.ai/config.json";
5
5
  export declare const SUPERPOWERS_PLUGIN_REFERENCE = "superpowers@git+https://github.com/obra/superpowers.git#v6.2.0";
6
- export declare const REQUIRED_PLUGIN_REFERENCES: readonly ["superpowers@git+https://github.com/obra/superpowers.git#v6.2.0", "@frankzhang2026/opencode-android-orchestrator@0.3.0"];
6
+ export declare const REQUIRED_PLUGIN_REFERENCES: readonly ["superpowers@git+https://github.com/obra/superpowers.git#v6.2.0", "@frankzhang2026/opencode-android-orchestrator@0.5.0"];
7
7
  export type OpenCodeConfigMergeErrorCode = "AMBIGUOUS_CONFIG" | "CONFIG_NOT_FILE" | "CONFIG_READ_FAILED" | "CONFIG_SYMLINK" | "DUPLICATE_PLUGIN" | "DUPLICATE_PROPERTY" | "INVALID_JSONC" | "INVALID_PLUGIN_ENTRY" | "PLUGIN_NOT_ARRAY" | "PLUGIN_VERSION_CONFLICT" | "ROOT_NOT_OBJECT" | "TARGET_NOT_DIRECTORY";
8
8
  export declare class OpenCodeConfigMergeError extends Error {
9
9
  readonly code: OpenCodeConfigMergeErrorCode;
@@ -2,7 +2,7 @@ import { lstatSync, readFileSync, statSync } from "node:fs";
2
2
  import { join, resolve } from "node:path";
3
3
  import { applyEdits, findNodeAtLocation, getNodeValue, modify, parseTree, printParseErrorCode, } from "jsonc-parser";
4
4
  export const ORCHESTRATOR_PACKAGE_NAME = "@frankzhang2026/opencode-android-orchestrator";
5
- export const ORCHESTRATOR_PACKAGE_VERSION = "0.3.0";
5
+ export const ORCHESTRATOR_PACKAGE_VERSION = "0.5.0";
6
6
  export const ORCHESTRATOR_PLUGIN_REFERENCE = `${ORCHESTRATOR_PACKAGE_NAME}@${ORCHESTRATOR_PACKAGE_VERSION}`;
7
7
  export const OPENCODE_CONFIG_SCHEMA_URL = "https://opencode.ai/config.json";
8
8
  export const SUPERPOWERS_PLUGIN_REFERENCE = "superpowers@git+https://github.com/obra/superpowers.git#v6.2.0";
package/docs/MIGRATION.md CHANGED
@@ -1,7 +1,7 @@
1
1
  # Migration guide
2
2
 
3
3
  This guide covers migration to
4
- `@frankzhang2026/opencode-android-orchestrator@0.3.0`. Pin the exact version and
4
+ `@frankzhang2026/opencode-android-orchestrator@0.5.0`. Pin the exact version and
5
5
  prove the migration in a disposable clone before changing a long-lived
6
6
  repository.
7
7
 
@@ -9,9 +9,9 @@ repository.
9
9
 
10
10
  | Current state | Correct command after release | Important distinction |
11
11
  | --- | --- | --- |
12
- | No orchestrator files or manifest | `npx @frankzhang2026/opencode-android-orchestrator@0.3.0 init .` | Normal new installation; all detected Android modules are enabled by default. |
12
+ | No orchestrator files or manifest | `npx @frankzhang2026/opencode-android-orchestrator@0.5.0 init .` | Normal new installation; all detected Android modules and registered debug verification tasks are discovered automatically. |
13
13
  | Published `0.1.0` scaffold only | Remove any project-local `@0.1.0` plugin reference after review, then run `init`. | `0.1.0` did not create a usable managed installation and cannot be upgraded. |
14
- | Healthy `0.2.0` manifest-managed installation | Run the fixed `0.3.0` doctor, then `upgrade`. | The missing module-scope field is treated as `primary` unless the upgrade explicitly selects `all`. |
14
+ | Healthy `0.2.0`, `0.3.0`, or `0.4.0` manifest-managed installation | Run the fixed `0.5.0` doctor, then `upgrade`. | A missing module-scope field is treated as `primary`; existing module scope and verification tasks are preserved unless explicitly changed. |
15
15
  | Manually copied V3 files, no `.automation-plugin/manifest.json` | Finish active tasks, preserve historical evidence separately, then run `init`. | Exact files can be reused; differing managed files fail as conflicts. |
16
16
  | Healthy older manifest-managed installation | Run `doctor`, then the fixed target version's `upgrade`. | `upgrade` requires a valid installed manifest and intact original backups. |
17
17
  | Healthy current-version manifest | Run `doctor`; repeated `init` or same-version `upgrade` is verification-only and byte-idempotent. | Do not reinstall or delete the manifest. |
@@ -36,7 +36,7 @@ removes unchanged plugin-created files, and retains drift for manual review.
36
36
  5. If a managed manifest already exists, run:
37
37
 
38
38
  ```sh
39
- npx @frankzhang2026/opencode-android-orchestrator@0.3.0 doctor . --json
39
+ npx @frankzhang2026/opencode-android-orchestrator@0.5.0 doctor . --json
40
40
  ```
41
41
 
42
42
  Do not proceed with `upgrade` unless the installation checks pass.
@@ -52,14 +52,14 @@ scaffold, not as an older managed installation.
52
52
  If the project OpenCode configuration contains an exact
53
53
  `@frankzhang2026/opencode-android-orchestrator@0.1.0` entry, save the file and
54
54
  remove only that obsolete entry in a reviewed Git change before running
55
- `0.3.0 init`. The merger deliberately rejects a different version of the same
55
+ `0.5.0 init`. The merger deliberately rejects a different version of the same
56
56
  managed package; it will not silently replace the reference. A global npm
57
57
  installation of `0.1.0` alone does not require project-file cleanup.
58
58
 
59
59
  After release, initialize with the fixed version:
60
60
 
61
61
  ```sh
62
- npx @frankzhang2026/opencode-android-orchestrator@0.3.0 init .
62
+ npx @frankzhang2026/opencode-android-orchestrator@0.5.0 init .
63
63
  ```
64
64
 
65
65
  New installations default to all-module scope, so multiple application modules
@@ -105,15 +105,15 @@ installer to guess which customization should survive.
105
105
  Use the lifecycle command selected by the active manifest:
106
106
 
107
107
  ```sh
108
- npx @frankzhang2026/opencode-android-orchestrator@0.3.0 doctor . --json
109
- npx @frankzhang2026/opencode-android-orchestrator@0.3.0 upgrade . --json
108
+ npx @frankzhang2026/opencode-android-orchestrator@0.5.0 doctor . --json
109
+ npx @frankzhang2026/opencode-android-orchestrator@0.5.0 upgrade . --json
110
110
  ```
111
111
 
112
112
  `upgrade` verifies the installed manifest, every managed file, and every
113
113
  first-install backup before it creates recovery state. It reconstructs merged
114
114
  OpenCode and AGENTS content from the original pre-install files, carries that
115
115
  recovery lineage forward, snapshots the current version, writes the new
116
- resources, and reruns the 38 automation tests plus the shadow run.
116
+ resources, and reruns the 42 automation tests plus the shadow run.
117
117
 
118
118
  Upgrade preserves an installed `androidProject.moduleScope`. A legacy
119
119
  manifest-managed configuration without that field is treated as `primary`,
@@ -138,7 +138,7 @@ the source of drift and use the recorded recovery data.
138
138
  Run all checks from the detected Git root:
139
139
 
140
140
  ```sh
141
- npx @frankzhang2026/opencode-android-orchestrator@0.3.0 doctor .
141
+ npx @frankzhang2026/opencode-android-orchestrator@0.5.0 doctor .
142
142
  opencode debug config
143
143
  opencode debug agent scheduled-planner
144
144
  opencode debug agent scheduled-coder
@@ -153,7 +153,7 @@ Verify all of the following before switching normal work to the plugin:
153
153
  - doctor has no failed check;
154
154
  - all three agents, four commands, and required skills are discoverable;
155
155
  - both read-only custom tools resolve for the scheduled agents;
156
- - the Shell suite ends with `1..38`;
156
+ - the Shell suite ends with `1..42`;
157
157
  - shadow output contains `"mutationPerformed": false`;
158
158
  - `git status --short` contains only the reviewed installation diff;
159
159
  - no Git push, launchd registration, extra candidate worktree, or copied Android
package/docs/SECURITY.md CHANGED
@@ -1,9 +1,9 @@
1
1
  # Security model
2
2
 
3
3
  This document describes the security properties of
4
- `@frankzhang2026/opencode-android-orchestrator@0.3.0`. The lifecycle foundation
4
+ `@frankzhang2026/opencode-android-orchestrator@0.5.0`. The lifecycle foundation
5
5
  completed the real OpenCode `1.14.22` and `1.15.13` release matrix in `0.2.0`;
6
- `0.3.0` retains that compatibility boundary.
6
+ `0.5.0` retains that compatibility boundary.
7
7
 
8
8
  ## Security goals and non-goals
9
9
 
@@ -52,7 +52,7 @@ modify local files; this package does not claim to protect against that actor.
52
52
 
53
53
  OpenCode permission prompts are also not semantic workflow approval. They can
54
54
  be accepted for the remainder of a session and may be auto-approved. For that
55
- reason `0.3.0` exposes only `android_orchestrator_status` and
55
+ reason `0.5.0` exposes only `android_orchestrator_status` and
56
56
  `android_orchestrator_doctor` as custom tools. State-changing wrappers remain a
57
57
  NO-GO until a one-use, non-model-forgeable receipt can bind the approval kind,
58
58
  task, session/message, sealed SHA or branch, time, and nonce.
@@ -112,6 +112,13 @@ while Gradle settings/build files and orchestration resources remain protected.
112
112
  legacy configuration with no scope field as `primary`, preventing an implicit
113
113
  permission expansion.
114
114
 
115
+ The optional repository-root `.automation-worktree-allowlist` is controlled by
116
+ the local human operator, not by task agents. It accepts at most 256 exact,
117
+ normalized repository-relative file paths in a regular file no larger than 64
118
+ KiB. Patterns, directories, duplicates, Git metadata, planning artifacts, and
119
+ configured protected paths fail closed. The control file itself is protected
120
+ and excluded from orchestration change views.
121
+
115
122
  The installed manifest is `0600`. Installer control, backup, recovery, and
116
123
  history directories are created with private `0700` defaults; backup files
117
124
  preserve the original file mode where recovery requires it. Shell resources
@@ -121,7 +128,7 @@ non-executable.
121
128
  ## Transaction and recovery safety
122
129
 
123
130
  `init` writes original-file backups before publishing a prepared manifest. It
124
- then applies validated files, runs the 38-case transaction suite and a shadow
131
+ then applies validated files, runs the 42-case transaction suite and a shadow
125
132
  run, verifies final hashes/modes, and only then marks the manifest installed.
126
133
  Failure before completion restores originals and removes safely unchanged new
127
134
  files.
@@ -151,6 +158,13 @@ the recorded before/after hashes and Git refs.
151
158
  ready. Successful integration creates exactly one combined local commit.
152
159
  - Scope gates inspect tracked and untracked changes, reject protected paths and
153
160
  obvious test weakening, and bind the accepted result to a diff SHA.
161
+ - An approved task snapshots the validated worktree allowlist. Listed local
162
+ changes are excluded consistently from cleanliness, scope, hashes, evidence,
163
+ archival, and commits; explicit commit pathsets preserve allowlisted staged
164
+ entries, and rename detection cannot hide an unlisted source path. Changing
165
+ the control file mid-task cannot widen the active snapshot. Status exposes
166
+ the effective list to Coder and Reviewer sessions and returns an empty list
167
+ inside isolated task worktrees.
154
168
  - Integration reruns verification before a fast-forward. It never pushes.
155
169
  - A successfully integrated task branch is deleted only after the original
156
170
  branch reaches the verified commit. Failure preserves the branch for
@@ -209,6 +223,9 @@ commit installer recovery data unless an explicit internal policy requires it.
209
223
  validating its storage and cleanup policy.
210
224
  - Recovery evidence improves auditability but increases local sensitive-data
211
225
  retention.
226
+ - A human can intentionally hide a product-file change by allowlisting its
227
+ exact path. Such a file is outside the task's reviewed and committed result;
228
+ remove it from the list before any task that is expected to modify it.
212
229
  - Real dual-version end-to-end acceptance and a clean install from the final
213
230
  tarball remain mandatory release gates.
214
231
 
@@ -1,7 +1,7 @@
1
1
  # Troubleshooting
2
2
 
3
3
  Use this guide for
4
- `@frankzhang2026/opencode-android-orchestrator@0.3.0`.
4
+ `@frankzhang2026/opencode-android-orchestrator@0.5.0`.
5
5
 
6
6
  ## Start with read-only evidence
7
7
 
@@ -11,7 +11,7 @@ From the repository root, capture:
11
11
  git status --short --branch
12
12
  git rev-parse HEAD
13
13
  opencode --version
14
- npx @frankzhang2026/opencode-android-orchestrator@0.3.0 doctor . --json
14
+ npx @frankzhang2026/opencode-android-orchestrator@0.5.0 doctor . --json
15
15
  ```
16
16
 
17
17
  If installation never completed, doctor will correctly report a missing or
@@ -42,6 +42,7 @@ remain human-readable on stderr with a stable code such as `[FILE_CONFLICT]`.
42
42
  | `MODULE_SCOPE_INVALID` or an invalid `--module-scope` argument | The value is not `all` or `primary`. | Use `all` for the default all-module contract or `primary` for an intentional single-module restriction. |
43
43
  | `PRIMARY_MODULE_AMBIGUOUS` | Restrictive `primary` scope has multiple possible Android modules. | Supply an exact Gradle path, for example `--module-scope primary --primary-module :mobile`, or use the default `all` scope. |
44
44
  | `PRIMARY_MODULE_NOT_FOUND` | The selected Gradle path was not detected. | Use a module path reported by doctor/project detection; do not pass a filesystem directory. |
45
+ | `GRADLE_DISCOVERY_FAILED` | The temporary read-only Gradle configuration failed, or registered tasks could not form every required verification group. | Run `./gradlew help --console=plain` and fix the reported project/JDK/dependency issue. Use `--gradle-verification-config` only for an intentional nonstandard task policy, and keep that file inside the target repository. |
45
46
  | Android SDK failure | No valid explicit SDK, `ANDROID_HOME`, `ANDROID_SDK_ROOT`, or `local.properties` `sdk.dir` was found. | Configure one real SDK root containing `platforms/` and `build-tools/`. Do not publish `local.properties`. |
46
47
  | Missing `git`, `jq`, `rg`, `shasum`, or Java | Required deterministic command is unavailable on `PATH`. | Install or restore the missing command, record its version, and rerun the read-only checks. |
47
48
 
@@ -60,6 +61,31 @@ plugins, required skills, agent permissions, and both read-only custom tools.
60
61
  If it fails, preserve its exact output. Do not broaden an agent's default-deny
61
62
  permissions to make discovery pass.
62
63
 
64
+ ## Worktree allowlist failures
65
+
66
+ Use `.automation-worktree-allowlist` only for intentional local changes that
67
+ must remain outside every task diff and commit. `init` creates a comment-only
68
+ starter file in the Git repository root when it is missing and preserves an
69
+ existing regular file. Add one exact repository-relative file path per line;
70
+ leaving the generated file comment-only is valid.
71
+
72
+ | Symptom | Likely cause | Safe response |
73
+ | --- | --- | --- |
74
+ | `Git worktree is dirty` | At least one tracked or untracked change is not listed. | Inspect `git status --short`. Commit/revert the task-relevant change, or add only an intentionally local exact file path to the allowlist. |
75
+ | `must be exact file paths, not patterns` | An entry contains `*`, `?`, or bracket syntax. | Replace it with each exact file path; directory-wide bypasses are intentionally unsupported. |
76
+ | `must not include a protected path` or `reserved or unsafe` | The entry targets orchestration, Gradle, Git metadata, a plan, or another protected path. | Remove the entry. Protected control and planning files must remain visible to the gates. |
77
+ | `must be a regular file, not a symlink` | The control file is a symlink or another unsupported file type. | Replace it with a small regular text file at the repository root. |
78
+ | A task does not include a file you expected it to edit | The path was in the snapshot taken at contract approval. | Finish/abort the active task, remove the entry, then start and approve a new task. |
79
+ | A local rename still blocks startup | Only the new or old name is listed. | Add both exact paths; rename detection treats the source deletion and destination addition independently. |
80
+ | `WORKTREE_ALLOWLIST_INVALID` during `init` | The target path is a directory, symlink, or another non-regular file. | Replace it with a regular text file or remove it and rerun `init` so the starter file can be created safely. |
81
+
82
+ The control file itself does not block orchestration and does not require a
83
+ `.gitignore` entry for that purpose. Git may still display it in ordinary
84
+ `git status`, which is separate from the orchestrator's filtered view. Staged
85
+ allowlisted entries remain staged and are not consumed by task or abort commits.
86
+ The file is human-owned after bootstrap, remains outside managed-resource
87
+ integrity hashes, and is preserved by upgrade and uninstall.
88
+
63
89
  ## Installation conflicts
64
90
 
65
91
  Common fail-closed codes include:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@frankzhang2026/opencode-android-orchestrator",
3
- "version": "0.3.0",
3
+ "version": "0.5.0",
4
4
  "description": "Reusable OpenCode orchestration for Android projects",
5
5
  "license": "MIT",
6
6
  "author": "frankzhang2026",
@@ -111,5 +111,8 @@ non-interactive run. If anything is ambiguous or blocked, stop and report the ex
111
111
  reason; the deterministic scripts own state transitions.
112
112
 
113
113
  You may edit only paths allowed both by this agent and by the task contract.
114
+ Treat `.automation-worktree-allowlist` and the status JSON's
115
+ `runtime.effectiveWorktreeAllowlist` paths as human-owned local state: never
116
+ edit, stage, report, or use them as task evidence.
114
117
  Passing tests never grants permission to push, merge, create worktrees, alter
115
118
  automation rules, or declare the task ready for review yourself.
@@ -82,7 +82,8 @@ The orchestrator message must contain exactly one task ID or the compatibility
82
82
  selector token `NEXT_REVIEWING`. Load
83
83
  `scheduled-quality-reviewer` before reviewing. Treat coder summaries as
84
84
  untrusted claims: inspect the approved contract, actual Git diff, and original
85
- evidence, then obtain fresh verification through the deterministic submission
86
- script. Never edit the repository and never repair findings yourself. Submit
87
- exactly one evidence-backed decision before spending steps on optional report
88
- navigation.
85
+ evidence, excluding `.automation-worktree-allowlist` and the status JSON's
86
+ `runtime.effectiveWorktreeAllowlist` paths from findings, then obtain fresh
87
+ verification through the deterministic submission script. Never edit the
88
+ repository and never repair findings yourself. Submit exactly one
89
+ evidence-backed decision before spending steps on optional report navigation.
@@ -35,11 +35,14 @@ it with `./scripts/automation/block-task.sh <TASK-ID> <reason>` before stopping.
35
35
  3. Branch by deterministic state:
36
36
 
37
37
  - For `PENDING`, run `./scripts/automation/claim-task.sh <TASK-ID>`. It
38
- performs preflight, verifies that the only initial worktree changes are
39
- the two sealed, uncommitted planning artifacts, captures the green
40
- baseline, and changes the task to `CODING`. Never edit, stage, or remove
41
- those planning artifacts; the integrator will include them in the final
42
- combined commit.
38
+ performs preflight, verifies that the only orchestration-visible initial
39
+ changes are the two sealed, uncommitted planning artifacts, captures the
40
+ green baseline, and changes the task to `CODING`. The status JSON's
41
+ `runtime.effectiveWorktreeAllowlist` contains human-owned local paths that
42
+ are outside the task; do not edit, stage, report, or reason from those
43
+ paths or from `.automation-worktree-allowlist`. Never edit, stage, or
44
+ remove the planning artifacts; the integrator will include them in the
45
+ final combined commit.
43
46
  - For `CODING` with reviewer feedback, read `review.json` and implement only
44
47
  the requested in-contract repair. Do not claim again and do not replace
45
48
  the original RED evidence.
@@ -72,7 +75,8 @@ it with `./scripts/automation/block-task.sh <TASK-ID> <reason>` before stopping.
72
75
  Stop immediately when any of these occur:
73
76
 
74
77
  - requirement ambiguity or conflict;
75
- - any initial task-root change beyond the two sealed planning artifacts;
78
+ - any orchestration-visible initial task-root change beyond the two sealed
79
+ planning artifacts;
76
80
  - missing plugin, skill, tool, device, or dependency;
77
81
  - a requested edit outside `allowedPaths` or inside protected paths;
78
82
  - no meaningful failing test can be written;
@@ -28,10 +28,13 @@ you review.
28
28
  sealed-SHA comparison. Use that compact evidence object; do not try to read
29
29
  the external shared evidence directory or search generated Gradle report
30
30
  directories. Inspect the actual tracked product change with exactly
31
- `git diff`. The plan and task contract remain uncommitted and are included
32
- in the sealing scripts' full task SHA even when plain `git diff` does not
33
- render those untracked files; their hashes are protected, and only product
34
- paths count against `allowedPaths` and `maxChangedFiles`.
31
+ `git diff`, but exclude `.automation-worktree-allowlist` and every exact
32
+ path in `runtime.effectiveWorktreeAllowlist` from findings; they are
33
+ human-owned local state outside the sealed task. The plan and task contract
34
+ remain uncommitted and are included in the sealing scripts' full task SHA
35
+ even when plain `git diff` does not render those untracked files; their
36
+ hashes are protected, and only product paths count against `allowedPaths`
37
+ and `maxChangedFiles`.
35
38
  5. Check each acceptance criterion against observable behavior. Inspect for
36
39
  regression risk, missing edge cases, out-of-scope changes, test deletion,
37
40
  ignored tests, relaxed assertions, and implementation-shaped tests.
@@ -13,6 +13,10 @@ and this managed block as orchestration infrastructure. Product tasks must not
13
13
  modify them unless an explicitly approved task is scoped to maintaining the
14
14
  orchestrator itself.
15
15
 
16
+ `.automation-worktree-allowlist` is a human-maintained control file. Agents
17
+ must not create or edit it. Its exact repository-relative file entries are
18
+ excluded from orchestration changes for the next approved task.
19
+
16
20
  Only a fresh OpenCode single-choice `question` selection can grant an
17
21
  orchestration approval. Approval-like text in ordinary chat is not approval.
18
22
  The orchestrator must not push Git changes or register scheduler/launchd jobs.
@@ -31,6 +31,22 @@ a primary selection. `primary` scope restricts paths to one module and retains
31
31
  the ambiguity guard. The selected/default module still supplies the focused
32
32
  test placeholder in both modes.
33
33
 
34
+ The lifecycle `init` path first asks Gradle for its registered debug unit,
35
+ assemble, lint, and connected-device tasks through a temporary read-only init
36
+ script. The resulting exact task paths replace the baseline matrix before the
37
+ adaptive render. This covers product flavors without shipping a project name,
38
+ an absolute configuration path, or a hand-maintained JSON file. The packaged
39
+ matrix remains the deterministic fallback for the read-only planning API;
40
+ callers may still pass an explicit matrix when they intentionally need a custom
41
+ policy.
42
+
43
+ After read-only planning succeeds, `init` creates a comment-only
44
+ `.automation-worktree-allowlist` if it is missing and preserves any existing
45
+ regular file. This user-editable control file remains outside the managed
46
+ resource manifest so its exact-path entries can change without causing package
47
+ integrity drift; failed first-install verification removes a newly bootstrapped
48
+ file during rollback.
49
+
34
50
  The legacy Scheduler field has been removed while Superpowers remains pinned.
35
51
  The scope gates consume generated source-set arrays, and the Shell test fixture
36
52
  uses a neutral custom module and package. No shipped template contains a local
@@ -47,6 +47,7 @@
47
47
  ]
48
48
  },
49
49
  "protectedPaths": [
50
+ ".automation-worktree-allowlist",
50
51
  ".opencode/",
51
52
  ".automation-plugin/",
52
53
  "automation/",
@@ -13,6 +13,7 @@
13
13
  "**/src/androidTest/**"
14
14
  ],
15
15
  "forbiddenPaths": [
16
+ ".automation-worktree-allowlist",
16
17
  ".opencode/**",
17
18
  ".automation-plugin/**",
18
19
  "automation/**",
@@ -59,6 +59,7 @@ if [[ -d "$task_root" ]]; then
59
59
  changed_paths=()
60
60
  changed_path_count=0
61
61
  product_path_count=0
62
+ changed_path_list="$(automation_changed_paths_at "$task_root")"
62
63
  while IFS= read -r path; do
63
64
  if [[ -n "$path" ]]; then
64
65
  changed_paths+=("$path")
@@ -67,16 +68,10 @@ if [[ -d "$task_root" ]]; then
67
68
  product_path_count=$((product_path_count + 1))
68
69
  fi
69
70
  fi
70
- done < <(automation_changed_paths_at "$task_root")
71
+ done <<< "$changed_path_list"
71
72
 
72
- git -C "$task_root" status --short --branch > "$evidence_dir/abort-status.txt"
73
- {
74
- git -C "$task_root" diff --binary HEAD --
75
- while IFS= read -r path; do
76
- [[ -n "$path" ]] || continue
77
- git -C "$task_root" diff --binary --no-index -- /dev/null "$task_root/$path" || [[ "$?" -eq 1 ]]
78
- done < <(git -C "$task_root" ls-files --others --exclude-standard | LC_ALL=C sort)
79
- } > "$evidence_dir/aborted.diff"
73
+ automation_worktree_status_at "$task_root" > "$evidence_dir/abort-status.txt"
74
+ automation_worktree_patch_at "$task_root" > "$evidence_dir/aborted.diff"
80
75
 
81
76
  if [[ "$changed_path_count" -gt 0 ]]; then
82
77
  for path in "${changed_paths[@]}"; do
@@ -92,7 +87,7 @@ if [[ -d "$task_root" ]]; then
92
87
  done
93
88
  if [[ "$product_path_count" -gt 0 ]]; then
94
89
  git -C "$task_root" add -- "${changed_paths[@]}"
95
- git -C "$task_root" commit -m "Archive aborted work for $task_id"
90
+ git -C "$task_root" commit --only -m "Archive aborted work for $task_id" -- "${changed_paths[@]}"
96
91
  recovery_commit="$(git -C "$task_root" rev-parse HEAD)"
97
92
  else
98
93
  plan_rel="$(jq -er '.planPath' "$origin_file")"
@@ -134,7 +134,7 @@ done < <(automation_changed_paths_at "$task_root")
134
134
  [[ "${#commit_paths[@]}" -ge 3 ]] || automation_die "final commit must contain product changes and both planning artifacts"
135
135
  git -C "$task_root" add -- "${commit_paths[@]}"
136
136
  title="$(jq -er '.title' "$task_root/automation/tasks/$task_id.json")"
137
- git -C "$task_root" commit -m "Implement $title ($task_id)"
137
+ git -C "$task_root" commit --only -m "Implement $title ($task_id)" -- "${commit_paths[@]}"
138
138
  product_commit="$(git -C "$task_root" rev-parse HEAD)"
139
139
  automation_worktree_is_clean "$task_root" || automation_die "task root is dirty after the combined task commit"
140
140
  git -C "$task_root" merge-base --is-ancestor "$baseline_head" "$product_commit" || automation_die "combined task commit is not based on the recorded pre-task baseline"
@@ -52,17 +52,10 @@ while IFS= read -r path; do
52
52
  done < <(automation_product_changed_paths_at "$task_id" "$AUTOMATION_ROOT")
53
53
  changed_paths_json="$(printf '%s\n' "${changed_paths[@]}" | jq -Rsc 'split("\n") | map(select(length > 0))')"
54
54
  planning_artifacts_json="$(jq -c '[.planPath, .contractPath]' "$origin_file")"
55
- diff_stat="$(git -C "$AUTOMATION_ROOT" diff --stat HEAD --)"
56
- untracked_paths="$(git -C "$AUTOMATION_ROOT" ls-files --others --exclude-standard | LC_ALL=C sort)"
55
+ diff_stat="$(automation_worktree_diff_stat_at "$AUTOMATION_ROOT")"
57
56
 
58
57
  sealed_diff="$evidence_dir/sealed.diff"
59
- {
60
- git -C "$AUTOMATION_ROOT" diff --binary HEAD --
61
- while IFS= read -r path; do
62
- [[ -n "$path" ]] || continue
63
- git -C "$AUTOMATION_ROOT" diff --binary --no-index -- /dev/null "$AUTOMATION_ROOT/$path" || [[ "$?" -eq 1 ]]
64
- done <<< "$untracked_paths"
65
- } > "$sealed_diff"
58
+ automation_worktree_patch_at "$AUTOMATION_ROOT" > "$sealed_diff"
66
59
 
67
60
  report_file="$evidence_dir/acceptance-report.json"
68
61
  jq -n \
@@ -48,6 +48,7 @@ for planning_path in "$plan_rel" "$contract_rel"; do
48
48
  automation_die "planning artifact must remain a new untracked file until the combined task commit: $planning_path"
49
49
  fi
50
50
  done
51
+ worktree_allowlist_json="$(automation_worktree_allowlist_file_json_at "$source_root")"
51
52
 
52
53
  automation_require_command git
53
54
  automation_require_command jq
@@ -159,11 +160,13 @@ jq -n \
159
160
  --arg taskBranch "$task_branch" \
160
161
  --arg worktreeBase "$worktree_base" \
161
162
  --arg createdAt "$(automation_now)" \
163
+ --argjson worktreeAllowlist "$worktree_allowlist_json" \
162
164
  '{taskId: $taskId, sourceRoot: $sourceRoot, originalBranch: $originalBranch,
163
165
  baselineHead: $baselineHead, workspaceStrategy: $workspaceStrategy,
164
166
  taskRoot: $taskRoot, repositoryLeaseRequired: true,
165
167
  planningArtifactsCommitPolicy: "withProductChanges",
166
168
  taskBranch: $taskBranch, worktreeBase: $worktreeBase,
169
+ worktreeAllowlist: $worktreeAllowlist,
167
170
  codingCycle: 0, reviewCycles: 0, createdAt: $createdAt}' \
168
171
  | automation_record_json "$workspace_file"
169
172