@timurproko/a1 0.2.6 → 0.2.7-dev.746

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 (61) hide show
  1. package/bin/guardian.js +5 -0
  2. package/bin/tab-launch-context.d.ts +18 -0
  3. package/bin/tab-launch-context.js +36 -0
  4. package/bin/ui.js +14 -3
  5. package/dist/app/session-shell/helper-pool.d.ts +3 -5
  6. package/dist/app/session-shell/helper-pool.js +3 -5
  7. package/dist/app/session-shell/session-shell-root.d.ts +6 -1
  8. package/dist/app/session-shell/session-shell-root.js +3 -2
  9. package/dist/app/session-shell/session-shell.js +41 -24
  10. package/dist/app/session-shell/session-viewport-controller.d.ts +1 -1
  11. package/dist/app/session-shell/session-viewport-controller.js +3 -3
  12. package/dist/composition/owned-ui.d.ts +17 -0
  13. package/dist/composition/owned-ui.js +28 -1
  14. package/dist/foundation/launch-context/index.d.ts +6 -0
  15. package/dist/foundation/launch-context/index.js +15 -0
  16. package/dist/foundation/launch-guardian/main.d.ts +5 -0
  17. package/dist/foundation/launch-guardian/main.js +2 -1
  18. package/dist/foundation/release/bootstrap.d.ts +4 -0
  19. package/dist/foundation/release/bootstrap.js +33 -6
  20. package/dist/foundation/resident-tabs/bridge-client.d.ts +36 -0
  21. package/dist/foundation/resident-tabs/bridge-client.js +157 -0
  22. package/dist/foundation/resident-tabs/ensure-terminal-host.d.ts +28 -0
  23. package/dist/foundation/resident-tabs/ensure-terminal-host.js +115 -0
  24. package/dist/foundation/resident-tabs/index.d.ts +5 -0
  25. package/dist/foundation/resident-tabs/index.js +3 -0
  26. package/dist/foundation/resident-tabs/protocol.d.ts +12 -0
  27. package/dist/foundation/resident-tabs/protocol.js +195 -0
  28. package/dist/foundation/resident-tabs/routing.d.ts +10 -0
  29. package/dist/foundation/resident-tabs/routing.js +8 -0
  30. package/dist/foundation/resident-tabs/settings.d.ts +2 -0
  31. package/dist/foundation/resident-tabs/settings.js +17 -0
  32. package/dist/foundation/terminal-cleanup/index.d.ts +1 -1
  33. package/dist/foundation/terminal-cleanup/index.js +1 -1
  34. package/dist/foundation/terminal-cleanup/terminal-reset.d.ts +1 -0
  35. package/dist/foundation/terminal-cleanup/terminal-reset.js +1 -0
  36. package/dist/integrations/pi/components/owned-editor-ux.d.ts +1 -1
  37. package/dist/integrations/pi/components/owned-editor-ux.js +2 -2
  38. package/dist/integrations/pi/components/shell-shared-facade.d.ts +1 -1
  39. package/dist/native/darwin-arm64/manifest.json +1 -1
  40. package/dist/native/linux-x64/manifest.json +1 -1
  41. package/dist/native/win32-x64/manifest.json +2 -2
  42. package/dist/native/win32-x64/process-guardian.exe +0 -0
  43. package/dist/product-identity.d.ts +1 -1
  44. package/dist/product-identity.js +1 -1
  45. package/dist/product-identity.json +5 -0
  46. package/dist/ui/components/transcript-viewport.d.ts +6 -3
  47. package/dist/ui/components/transcript-viewport.js +13 -15
  48. package/dist/ui/settings/declarations.d.ts +13 -1
  49. package/dist/ui/settings/declarations.js +10 -1
  50. package/dist/ui/settings/index.d.ts +1 -1
  51. package/dist/ui/settings/index.js +1 -1
  52. package/dist/ui/settings/migrations.js +7 -0
  53. package/dist/ui/settings/resolution.d.ts +2 -0
  54. package/dist/ui/settings/resolution.js +13 -1
  55. package/docs/architecture/internal-naming.md +1 -1
  56. package/docs/architecture/resident-tabs-requirements.md +813 -0
  57. package/docs/architecture/resident-tabs.md +502 -0
  58. package/docs/architecture/terminal-host-proof-gate.md +2 -0
  59. package/docs/openspec-archive-automation.md +12 -11
  60. package/docs/validation.md +1 -1
  61. package/package.json +1 -1
@@ -8,9 +8,9 @@ Version-1 and version-2 deliveries and their existing comments, acceptance PRs,
8
8
 
9
9
  ## Version-3 lifecycle
10
10
 
11
- 1. **Draft plan:** create one normally named branch/PR such as `feature/...`, `fix/...`, or `chore/...`. Start the body with `## Proposal`, use it for one or two sentences of intent, follow it with `## Implementation` for the concrete planned work, omit quoted phase lines and routine validation command lists, and keep machine linkage under final collapsed `Automation`. Keep it draft and include only planning artifacts until the maintainer approves the plan and explicitly requests implementation.
12
- 2. **Same-PR implementation:** continue after explicit approval in the same worktree, branch, history, draft PR, and phase-free body. Reconcile approved refinements in proposal, design, deltas, and tasks before corresponding code edits.
13
- 3. **Complete evidence:** finish implementation, required tests/evidence, substantive tasks, and explicit known-gap disposition. CI success is objective evidence, not acceptance.
11
+ 1. **Draft plan:** create one normally named branch/PR such as `feature/...`, `fix/...`, or `chore/...`. Start the body with `## Proposal`, use it for one or two sentences of intent, and follow it with two to ten unchecked, outcome-sized task items under `## Implementation`. Omit generic process tasks, quoted phase lines, and routine validation command lists, and keep machine linkage under final collapsed `Automation`. Keep it draft and include only planning artifacts until the maintainer approves the plan and explicitly requests implementation.
12
+ 2. **Same-PR implementation:** continue after explicit approval in the same worktree, branch, history, draft PR, and phase-free body. Check an Implementation item only after its associated implementation, focused evidence, and detailed task bookkeeping are complete; an ordinary progress edit changes only `[ ]` to `[x]`. Adding, removing, reordering, or rewriting an item is a scope refinement requiring explicit approval and coherent planning updates, with affected scope left unchecked. Reconcile approved refinements before corresponding code edits.
13
+ 3. **Complete evidence:** finish implementation, required tests/evidence, substantive tasks, and explicit known-gap disposition, then ensure every Implementation item is checked. CI success is objective evidence, not acceptance.
14
14
  4. **Plain acceptance list:** keep the body phase-free and add final `## Acceptance` with one to ten concise implementation-specific behavior-and-result bullets. Do not use checkboxes, generic review/CI/approval/archive statements, URLs, mentions, or automated-test inventory.
15
15
  5. **Ready and automated finalization:** mark the PR ready. The trusted `OpenSpec finalization` workflow reconciles current `develop`, conservatively synchronizes all deltas, moves the active change into its dated archive, stages the conditional acceptance manifest, commits that to the same branch with the archive App identity, and writes the emitted paths into the body's implementation fence. Running the [finalization command](#finalization-command) locally first is optional and yields the same bytes.
16
16
  6. **Validate:** one normal exact-head workflow validates the finalized head: implementation, synchronized specs, archive, manifest, tasks/evidence, exact PR-body list, and every selected product/governance scope before emitting the stable protected aggregate. A new commit or acceptance-list change re-finalizes automatically when needed and requires full renewed validation; no lifecycle body edit or second workflow run is required.
@@ -27,7 +27,7 @@ The implementation, synchronized canonical specs, conditional acceptance record,
27
27
 
28
28
  ## Draft PR body
29
29
 
30
- The first screen should separate purpose from delivery detail, not foreground CI mechanics. Distill `Proposal` into one or two sentences answering why the PR exists, then put two to five concrete points under `Implementation` answering what it will deliver:
30
+ The first screen should separate purpose from delivery detail, not foreground CI mechanics. Distill `Proposal` into one or two sentences answering why the PR exists, then put two to ten unchecked, implementation-specific outcomes under `Implementation`. They are a coarse progress summary, not a copy of the detailed OpenSpec task ledger:
31
31
 
32
32
  ```markdown
33
33
  ## Proposal
@@ -36,9 +36,9 @@ Replace the multi-PR OpenSpec handoff with one manually merged development PR wh
36
36
 
37
37
  ## Implementation
38
38
 
39
- - Keep planning and implementation in the same draft PR.
40
- - Integrate implementation, synchronized specs, acceptance, and archive atomically.
41
- - Preserve standalone documentation auto-merge while forbidding automation-owned implementation auto-merge.
39
+ - [ ] Keep planning and implementation in the same draft PR.
40
+ - [ ] Integrate implementation, synchronized specs, acceptance, and archive atomically.
41
+ - [ ] Preserve standalone documentation auto-merge while forbidding automation-owned implementation auto-merge.
42
42
 
43
43
  ## Automation
44
44
 
@@ -50,7 +50,7 @@ Replace the multi-PR OpenSpec handoff with one manually merged development PR wh
50
50
  </details>
51
51
  ```
52
52
 
53
- Do not add a quoted phase line or a routine `Validation` section listing commands to an initial draft. Actual validation results belong in CI and the eventual implementation handoff. Continue with the same phase-free body after approval. When implementation is complete and ready for required tests, use this visible order:
53
+ Do not add a quoted phase line, generic CI/review/acceptance/merge/archive tasks, or a routine `Validation` section listing commands to an initial draft. Actual validation results belong in CI and the eventual implementation handoff. Continue with the same phase-free body after approval. Toggle only the exact marker when ordinary work completes; body history must not hide a scope change as progress. Historical version-3 bodies with only plain Implementation bullets remain readable, but new bodies use the task-list form. When implementation is complete and ready for required tests, use this visible order:
54
54
 
55
55
  ```markdown
56
56
  ## Proposal
@@ -59,7 +59,8 @@ Do not add a quoted phase line or a routine `Validation` section listing command
59
59
 
60
60
  ## Implementation
61
61
 
62
- <!-- concrete implementation bullets -->
62
+ - [x] <!-- completed implementation outcome -->
63
+ - [x] <!-- completed implementation outcome -->
63
64
 
64
65
  ## Acceptance
65
66
 
@@ -75,7 +76,7 @@ Do not add a quoted phase line or a routine `Validation` section listing command
75
76
  </details>
76
77
  ```
77
78
 
78
- Keep acceptance absent during proposal review so unfinished intent is not mistaken for final acceptance criteria. The finalization workflow rewrites only the implementation fence; keep the rest of the phase-free body unchanged through exact-head validation, maintainer review, and authorized integration. The same workflow run validates its finalized delivery record and applicable product/governance scopes before the stable protected aggregate succeeds. Do not add a lifecycle body edit or start a second validation run. After integration, trusted verification derives `Archived`; do not rewrite the accepted body.
79
+ Keep acceptance absent during proposal review so unfinished intent is not mistaken for final acceptance criteria. Every Implementation item must be checked before ready/finalization; those markers report implementation progress and never human acceptance. The finalization workflow rewrites only the implementation fence; keep the rest of the phase-free body unchanged through exact-head validation, maintainer review, and authorized integration. The same workflow run validates its finalized delivery record and applicable product/governance scopes before the stable protected aggregate succeeds. Do not add a lifecycle body edit or start a second validation run. After integration, trusted verification derives `Archived`; do not rewrite the accepted body.
79
80
 
80
81
  ## Agent scratch files
81
82
 
@@ -155,7 +156,7 @@ The `OpenSpec finalization` workflow (`.github/workflows/openspec-finalization.y
155
156
 
156
157
  The commit is pushed with a lease on the head the run read, so a developer push in between makes the run report `retry` and the next event finishes the work. Only after the push does the workflow `PATCH` the body fence with `finalizedHead` equal to that exact commit, and only when both the body and PR head still match the operation's expected values. The guaranteed head-binding change triggers native `pull_request: edited` validation even when a re-finalization reuses the same archive paths. The workflow's own body edit triggers further runs that report `already-finalized`; an intermediate run with a missing or stale binding defers before product suites and emits no protected aggregate. Every pushed commit is either a merge of the exact `develop` tip or confined to the change's active path, its archive path, and its declared canonical specs.
157
158
 
158
- Because the branch gains commits from the archive App, pull before pushing. A rebase that drops them is harmless: the next push is reconciled from whatever the head contains. Do not revert a finalization commit to make a fix; push the fix and let the workflow re-finalize. When the workflow fails, its summary names the finalization code (`tasks-incomplete`, `acceptance-*`, `delivery-known-gaps`, `openspec-operation`, `finalization-merge-conflict`, ...), nothing is pushed, and `Finalized delivery validation` on the unfinalized head reports that automated finalization is pending.
159
+ Because the branch gains commits from the archive App, pull before pushing. A rebase that drops them is harmless: the next push is reconciled from whatever the head contains. Do not revert a finalization commit to make a fix; push the fix and let the workflow re-finalize. When the workflow fails, its summary names the finalization code (`tasks-incomplete`, `implementation-progress-*`, `acceptance-*`, `delivery-known-gaps`, `openspec-operation`, `finalization-merge-conflict`, ...), nothing is pushed, and `Finalized delivery validation` on the unfinalized head reports that automated finalization is pending.
159
160
 
160
161
  A missing fence is not an ordinary ready PR when immutable base/head evidence shows that the candidate introduces or restores an active change, or mixes active-change edits with code or operational paths. Base-controlled readiness and finalization both fail with `missing-implementation-association`; deleting editable body metadata cannot bypass finalization. Existing active-change documentation-only revisions and ordinary code PRs without active delivery paths retain their established routes.
161
162
 
@@ -32,7 +32,7 @@ Conservative Development retains every pull-request owner but does not schedule
32
32
  node scripts/release/generate-validation-ownership-ledger.mjs --output .artifacts/validation/ownership-ledger.json
33
33
  ```
34
34
 
35
- The `terminal-host` owner is CI-only. A change under `native/terminal-host/` or to its run scripts selects the Windows x64 **Native terminal host (Windows)** job, which builds the crate with pinned Rust and Zig 0.15.2, runs `npm run test:terminal-host`, and uploads the debug executable. Local Windows builds fail in `build.rs` unless `TERMINAL_HOST_LOCAL_BUILD=1` is set, because Zig's package fetch unpacks test data that workstation antivirus quarantines along with the installed process guardian. See [`native/terminal-host/README.md`](../native/terminal-host/README.md).
35
+ The `terminal-host` owner is CI-only. A change under `native/terminal-host/` or to its run scripts selects Windows x64, Linux x64, and macOS arm64 **Native terminal host** jobs. Each builds the binary and Node-API lock artifact with Rust and Zig 0.15.2 for the lane's exact target and baseline CPU model, runs `npm run test:terminal-host`, and uploads the debug artifacts and frozen protocol manifest; Linux also runs bounded decoder fuzzing. Local Windows builds fail in `build.rs` unless `TERMINAL_HOST_LOCAL_BUILD=1` is set, because Zig's package fetch unpacks test data that workstation antivirus quarantines along with the installed process guardian. `TERMINAL_HOST_CONTRACTS_ONLY=1` is a library-only diagnostic and cannot substitute for selected CI. See [`native/terminal-host/README.md`](../native/terminal-host/README.md).
36
36
 
37
37
  ## Windows Full regression shards
38
38
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@timurproko/a1",
3
- "version": "0.2.6",
3
+ "version": "0.2.7-dev.746",
4
4
  "description": "Standalone terminal workspace for supervised native and managed agents",
5
5
  "type": "module",
6
6
  "privateLaunchContract": "neutral-launch-v1",