instar 1.3.2018 → 1.3.2020

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 (31) hide show
  1. package/dashboard/console/notifications.js +7 -1
  2. package/dist/core/MultiMachineCoordinator.d.ts.map +1 -1
  3. package/dist/core/MultiMachineCoordinator.js +2 -0
  4. package/dist/core/MultiMachineCoordinator.js.map +1 -1
  5. package/dist/core/PostUpdateMigrator.d.ts +1 -1
  6. package/dist/core/PostUpdateMigrator.d.ts.map +1 -1
  7. package/dist/core/PostUpdateMigrator.js +8 -1
  8. package/dist/core/PostUpdateMigrator.js.map +1 -1
  9. package/dist/data/standards-guard-index.json +1 -1
  10. package/dist/data/standards-guard-index.meta.json +2 -2
  11. package/dist/data/standards-registry.meta.json +1 -1
  12. package/dist/localVerify/LocalVerifyService.js +1 -1
  13. package/dist/localVerify/LocalVerifyService.js.map +1 -1
  14. package/dist/localVerify/orchestrator.d.ts +6 -3
  15. package/dist/localVerify/orchestrator.d.ts.map +1 -1
  16. package/dist/localVerify/orchestrator.js +7 -7
  17. package/dist/localVerify/orchestrator.js.map +1 -1
  18. package/dist/native/InstarWedgeCanary.app/Contents/MacOS/InstarWedgeCanary +0 -0
  19. package/dist/native/instar-desktop-host +0 -0
  20. package/dist/scaffold/templates.js +1 -1
  21. package/package.json +1 -1
  22. package/src/data/builtin-manifest.json +21 -21
  23. package/src/data/standards-guard-index.json +1 -1
  24. package/src/data/standards-guard-index.meta.json +2 -2
  25. package/src/data/standards-registry.meta.json +1 -1
  26. package/src/scaffold/templates.ts +1 -1
  27. package/upgrades/1.3.2019.md +20 -0
  28. package/upgrades/1.3.2020.md +24 -0
  29. package/upgrades/side-effects/local-verify-five-integration-shards.md +60 -0
  30. package/upgrades/side-effects/notification-navigation.md +51 -0
  31. package/upgrades/side-effects/preferred-lease-tick-deferral.md +12 -0
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "$schema": "./builtin-manifest.schema.json",
3
3
  "schemaVersion": 1,
4
- "generatedAt": "2026-11-24T22:44:39.851Z",
5
- "instarVersion": "1.3.2018",
4
+ "generatedAt": "2026-11-25T01:56:55.591Z",
5
+ "instarVersion": "1.3.2020",
6
6
  "entryCount": 210,
7
7
  "entries": {
8
8
  "hook:session-start": {
@@ -11,7 +11,7 @@
11
11
  "domain": "identity",
12
12
  "sourcePath": "src/core/PostUpdateMigrator.ts",
13
13
  "installedPath": ".instar/hooks/instar/session-start.sh",
14
- "contentHash": "346bc2c7adbb0803c2a47c58bfff4336c3c77205e93498fd24e160924d11b41e",
14
+ "contentHash": "ba6223f77aafbf481242e55785d55937044ad7a1f1f7feeba0c1c216d5bb01e5",
15
15
  "since": "2025-01-01"
16
16
  },
17
17
  "hook:dangerous-command-guard": {
@@ -20,7 +20,7 @@
20
20
  "domain": "safety",
21
21
  "sourcePath": "src/core/PostUpdateMigrator.ts",
22
22
  "installedPath": ".instar/hooks/instar/dangerous-command-guard.sh",
23
- "contentHash": "346bc2c7adbb0803c2a47c58bfff4336c3c77205e93498fd24e160924d11b41e",
23
+ "contentHash": "ba6223f77aafbf481242e55785d55937044ad7a1f1f7feeba0c1c216d5bb01e5",
24
24
  "since": "2025-01-01"
25
25
  },
26
26
  "hook:grounding-before-messaging": {
@@ -29,7 +29,7 @@
29
29
  "domain": "safety",
30
30
  "sourcePath": "src/core/PostUpdateMigrator.ts",
31
31
  "installedPath": ".instar/hooks/instar/grounding-before-messaging.sh",
32
- "contentHash": "346bc2c7adbb0803c2a47c58bfff4336c3c77205e93498fd24e160924d11b41e",
32
+ "contentHash": "ba6223f77aafbf481242e55785d55937044ad7a1f1f7feeba0c1c216d5bb01e5",
33
33
  "since": "2025-01-01"
34
34
  },
35
35
  "hook:compaction-recovery": {
@@ -38,7 +38,7 @@
38
38
  "domain": "identity",
39
39
  "sourcePath": "src/core/PostUpdateMigrator.ts",
40
40
  "installedPath": ".instar/hooks/instar/compaction-recovery.sh",
41
- "contentHash": "346bc2c7adbb0803c2a47c58bfff4336c3c77205e93498fd24e160924d11b41e",
41
+ "contentHash": "ba6223f77aafbf481242e55785d55937044ad7a1f1f7feeba0c1c216d5bb01e5",
42
42
  "since": "2025-01-01"
43
43
  },
44
44
  "hook:external-operation-gate": {
@@ -47,7 +47,7 @@
47
47
  "domain": "safety",
48
48
  "sourcePath": "src/core/PostUpdateMigrator.ts",
49
49
  "installedPath": ".instar/hooks/instar/external-operation-gate.js",
50
- "contentHash": "346bc2c7adbb0803c2a47c58bfff4336c3c77205e93498fd24e160924d11b41e",
50
+ "contentHash": "ba6223f77aafbf481242e55785d55937044ad7a1f1f7feeba0c1c216d5bb01e5",
51
51
  "since": "2025-01-01"
52
52
  },
53
53
  "hook:deferral-detector": {
@@ -56,7 +56,7 @@
56
56
  "domain": "safety",
57
57
  "sourcePath": "src/core/PostUpdateMigrator.ts",
58
58
  "installedPath": ".instar/hooks/instar/deferral-detector.js",
59
- "contentHash": "346bc2c7adbb0803c2a47c58bfff4336c3c77205e93498fd24e160924d11b41e",
59
+ "contentHash": "ba6223f77aafbf481242e55785d55937044ad7a1f1f7feeba0c1c216d5bb01e5",
60
60
  "since": "2025-01-01"
61
61
  },
62
62
  "hook:self-stop-guard": {
@@ -65,7 +65,7 @@
65
65
  "domain": "coherence",
66
66
  "sourcePath": "src/core/PostUpdateMigrator.ts",
67
67
  "installedPath": ".instar/hooks/instar/self-stop-guard.js",
68
- "contentHash": "346bc2c7adbb0803c2a47c58bfff4336c3c77205e93498fd24e160924d11b41e",
68
+ "contentHash": "ba6223f77aafbf481242e55785d55937044ad7a1f1f7feeba0c1c216d5bb01e5",
69
69
  "since": "2025-01-01"
70
70
  },
71
71
  "hook:post-action-reflection": {
@@ -74,7 +74,7 @@
74
74
  "domain": "evolution",
75
75
  "sourcePath": "src/core/PostUpdateMigrator.ts",
76
76
  "installedPath": ".instar/hooks/instar/post-action-reflection.js",
77
- "contentHash": "346bc2c7adbb0803c2a47c58bfff4336c3c77205e93498fd24e160924d11b41e",
77
+ "contentHash": "ba6223f77aafbf481242e55785d55937044ad7a1f1f7feeba0c1c216d5bb01e5",
78
78
  "since": "2025-01-01"
79
79
  },
80
80
  "hook:external-communication-guard": {
@@ -83,7 +83,7 @@
83
83
  "domain": "safety",
84
84
  "sourcePath": "src/core/PostUpdateMigrator.ts",
85
85
  "installedPath": ".instar/hooks/instar/external-communication-guard.js",
86
- "contentHash": "346bc2c7adbb0803c2a47c58bfff4336c3c77205e93498fd24e160924d11b41e",
86
+ "contentHash": "ba6223f77aafbf481242e55785d55937044ad7a1f1f7feeba0c1c216d5bb01e5",
87
87
  "since": "2025-01-01"
88
88
  },
89
89
  "hook:telegram-origin-guard": {
@@ -101,7 +101,7 @@
101
101
  "domain": "coherence",
102
102
  "sourcePath": "src/core/PostUpdateMigrator.ts",
103
103
  "installedPath": ".instar/hooks/instar/scope-coherence-collector.js",
104
- "contentHash": "346bc2c7adbb0803c2a47c58bfff4336c3c77205e93498fd24e160924d11b41e",
104
+ "contentHash": "ba6223f77aafbf481242e55785d55937044ad7a1f1f7feeba0c1c216d5bb01e5",
105
105
  "since": "2025-01-01"
106
106
  },
107
107
  "hook:scope-coherence-checkpoint": {
@@ -110,7 +110,7 @@
110
110
  "domain": "coherence",
111
111
  "sourcePath": "src/core/PostUpdateMigrator.ts",
112
112
  "installedPath": ".instar/hooks/instar/scope-coherence-checkpoint.js",
113
- "contentHash": "346bc2c7adbb0803c2a47c58bfff4336c3c77205e93498fd24e160924d11b41e",
113
+ "contentHash": "ba6223f77aafbf481242e55785d55937044ad7a1f1f7feeba0c1c216d5bb01e5",
114
114
  "since": "2025-01-01"
115
115
  },
116
116
  "hook:free-text-guard": {
@@ -119,7 +119,7 @@
119
119
  "domain": "safety",
120
120
  "sourcePath": "src/core/PostUpdateMigrator.ts",
121
121
  "installedPath": ".instar/hooks/instar/free-text-guard.sh",
122
- "contentHash": "346bc2c7adbb0803c2a47c58bfff4336c3c77205e93498fd24e160924d11b41e",
122
+ "contentHash": "ba6223f77aafbf481242e55785d55937044ad7a1f1f7feeba0c1c216d5bb01e5",
123
123
  "since": "2025-01-01"
124
124
  },
125
125
  "hook:claim-intercept": {
@@ -128,7 +128,7 @@
128
128
  "domain": "coherence",
129
129
  "sourcePath": "src/core/PostUpdateMigrator.ts",
130
130
  "installedPath": ".instar/hooks/instar/claim-intercept.js",
131
- "contentHash": "346bc2c7adbb0803c2a47c58bfff4336c3c77205e93498fd24e160924d11b41e",
131
+ "contentHash": "ba6223f77aafbf481242e55785d55937044ad7a1f1f7feeba0c1c216d5bb01e5",
132
132
  "since": "2025-01-01"
133
133
  },
134
134
  "hook:claim-intercept-response": {
@@ -137,7 +137,7 @@
137
137
  "domain": "coherence",
138
138
  "sourcePath": "src/core/PostUpdateMigrator.ts",
139
139
  "installedPath": ".instar/hooks/instar/claim-intercept-response.js",
140
- "contentHash": "346bc2c7adbb0803c2a47c58bfff4336c3c77205e93498fd24e160924d11b41e",
140
+ "contentHash": "ba6223f77aafbf481242e55785d55937044ad7a1f1f7feeba0c1c216d5bb01e5",
141
141
  "since": "2025-01-01"
142
142
  },
143
143
  "hook:stop-gate-router": {
@@ -146,7 +146,7 @@
146
146
  "domain": "safety",
147
147
  "sourcePath": "src/core/PostUpdateMigrator.ts",
148
148
  "installedPath": ".instar/hooks/instar/stop-gate-router.js",
149
- "contentHash": "346bc2c7adbb0803c2a47c58bfff4336c3c77205e93498fd24e160924d11b41e",
149
+ "contentHash": "ba6223f77aafbf481242e55785d55937044ad7a1f1f7feeba0c1c216d5bb01e5",
150
150
  "since": "2025-01-01"
151
151
  },
152
152
  "hook:attribution-gate": {
@@ -155,7 +155,7 @@
155
155
  "domain": "safety",
156
156
  "sourcePath": "src/core/PostUpdateMigrator.ts",
157
157
  "installedPath": ".instar/hooks/instar/attribution-gate.js",
158
- "contentHash": "346bc2c7adbb0803c2a47c58bfff4336c3c77205e93498fd24e160924d11b41e",
158
+ "contentHash": "ba6223f77aafbf481242e55785d55937044ad7a1f1f7feeba0c1c216d5bb01e5",
159
159
  "since": "2025-01-01"
160
160
  },
161
161
  "hook:auto-approve-permissions": {
@@ -164,7 +164,7 @@
164
164
  "domain": "safety",
165
165
  "sourcePath": "src/core/PostUpdateMigrator.ts",
166
166
  "installedPath": ".instar/hooks/instar/auto-approve-permissions.js",
167
- "contentHash": "346bc2c7adbb0803c2a47c58bfff4336c3c77205e93498fd24e160924d11b41e",
167
+ "contentHash": "ba6223f77aafbf481242e55785d55937044ad7a1f1f7feeba0c1c216d5bb01e5",
168
168
  "since": "2025-01-01"
169
169
  },
170
170
  "job:health-check": {
@@ -1628,7 +1628,7 @@
1628
1628
  "type": "subsystem",
1629
1629
  "domain": "updates",
1630
1630
  "sourcePath": "src/core/PostUpdateMigrator.ts",
1631
- "contentHash": "346bc2c7adbb0803c2a47c58bfff4336c3c77205e93498fd24e160924d11b41e",
1631
+ "contentHash": "ba6223f77aafbf481242e55785d55937044ad7a1f1f7feeba0c1c216d5bb01e5",
1632
1632
  "since": "2025-01-01"
1633
1633
  },
1634
1634
  "subsystem:scheduler": {
@@ -1684,7 +1684,7 @@
1684
1684
  "type": "subsystem",
1685
1685
  "domain": "coordination",
1686
1686
  "sourcePath": "src/core/MultiMachineCoordinator.ts",
1687
- "contentHash": "608fff098f85835864a47903f7541f10c31b0d3fb9a9294553d424a0d6d5053e",
1687
+ "contentHash": "35525ed3bf705b313d2ab1b7d2806457a1ea037538d24f8da7d32a9e3b5621e7",
1688
1688
  "since": "2025-01-01"
1689
1689
  },
1690
1690
  "subsystem:backup-manager": {
@@ -2,7 +2,7 @@
2
2
  "schemaVersion": 1,
3
3
  "generatedFrom": "source-tree",
4
4
  "registrySha256": "11e2a45ab1345e2ded6499404ee9962e4e48bcfed4677a4d31dac4492565d2fa",
5
- "packageVersion": "1.3.2018",
5
+ "packageVersion": "1.3.2020",
6
6
  "guards": [
7
7
  {
8
8
  "ref": "docs/audits/phase-b/f10-triage.md",
@@ -1,5 +1,5 @@
1
1
  {
2
- "sha256": "aaaa232fccfcd93c93951a9b5d8642448c9cedfdd83d7222f3aea2068800ff2c",
2
+ "sha256": "29125c06f7fb9e13df4c09028ba7b544218073af00beca8cbe1aa5a9bcfb6269",
3
3
  "registrySha256": "11e2a45ab1345e2ded6499404ee9962e4e48bcfed4677a4d31dac4492565d2fa",
4
- "packageVersion": "1.3.2018"
4
+ "packageVersion": "1.3.2020"
5
5
  }
@@ -2,5 +2,5 @@
2
2
  "sha256": "11e2a45ab1345e2ded6499404ee9962e4e48bcfed4677a4d31dac4492565d2fa",
3
3
  "articleCount": 102,
4
4
  "generatedFrom": "docs/STANDARDS-REGISTRY.md",
5
- "packageVersion": "1.3.2018"
5
+ "packageVersion": "1.3.2020"
6
6
  }
@@ -961,7 +961,7 @@ ${PREFERENCES_LIST_CLAUDEMD_LINE(port)}
961
961
  - Local Verify waiting list: a PR refused because the queue is full (\`queue-full\`, HTTP 429) keeps its place on a waiting list, ordered by when it was first refused. When a slot frees, the PR refused earliest gets it; a newer PR asking first is refused again with the audit row \`queue-full-waiting\`. A waiter keeps its place only while it keeps being offered (within 30 minutes of running time while \`main\` is healthy); one that stops being offered, closes or merges gives the place up, so a waiter can never hold a slot empty. A pushed head keeps the place. The read surface (\`GET /local-verify\` → \`waiting\`) lists the waiters; the admitted entry carries \`firstRefusedAt\`, so the wait before entering the queue can be measured. A \`merge-throughput\` PR, a repair while \`main\` is red, and a re-queued head are admitted exactly as before. When the user asks "why is my PR still not in the verify queue?" → read \`waiting\` for its place in line.
962
962
  - **Focused PR preflight.** Optional \`monitoring.localVerify.preflightMode: off|observe|enforce\` (default off) runs bounded changed tests after build/lint and before the full suite; \`main\` never uses it. Observe records a diagnostic and always continues. Enforce can stop an automatically rediscoverable PR on a repeated assertion failure, then schedules a full-suite replay without preflight; only the complete full-suite record can authorize a green merge. A skipped preflight is not a passed check. \`GET /local-verify\` → \`preflight\` shows mode and replay obligations. When a PR is red with \`preflight-red\` or appears to be waiting on a replay, read this status and its exact-head record before describing the result.
963
963
  - **Failed-file diagnosis.** Optional \`monitoring.localVerify.failedFileDiagnosis: off|observe|auto\` (default off) asks one idle peer to rerun one to three failed test files against the exact PR merge and base. It is advisory: \`GET /local-verify/record?pr=&head=&base=\` includes a separate \`diagnosis\` projection, and \`GET /local-verify/diagnosis?pr=&head=&base=\` reads it directly. Labels such as \`pr-reproducible\` or \`machine-or-flake\` describe file-level evidence only; no diagnosis changes the red record, merge gate, or main health. When a PR fails in named files and the user asks whether it reproduces elsewhere, read this projection before explaining. A full verify preempts peer diagnosis.
964
- - **Balanced shards.** The integration lane runs as 2 processes and the e2e lane as 3, each given files planned from the per-file times of earlier runs on this machine (\`<verifyRoot>/file-durations.json\`, ignored above 2 MB) so the processes finish together; with too little history the lanes use vitest \`--shard\`. The history decides only which process runs a file, never whether it runs. Live setting \`monitoring.localVerify.laneShards\` (e.g. \`{"integration": 1, "e2e": 2}\` restores the old split; 1..4 each; read at each start). When the user asks "why is each verify faster / why are there more test processes?" → this; if runs get slower or flaky under load, lower the counts.
964
+ - **Balanced shards.** The integration lane runs as 2 processes and the e2e lane as 3, each given files planned from the per-file times of earlier runs on this machine (\`<verifyRoot>/file-durations.json\`, ignored above 2 MB) so the processes finish together; with too little history the lanes use vitest \`--shard\`. The history decides only which process runs a file, never whether it runs. Live setting \`monitoring.localVerify.laneShards\` (e.g. \`{"integration": 1, "e2e": 2}\` restores the old split; integration 1..5 and e2e 1..4; read at each start). When the user asks "why is each verify faster / why are there more test processes?" → this; if runs get slower or flaky under load, lower the counts.
965
965
  - **When to use** (PROACTIVE): before telling the user a PR "passed" or is "waiting on CI", read its record here; a full verify takes about 45 minutes.
966
966
 
967
967
  **Skip Ledger** — Track computational work to avoid repeating expensive operations. When a job or session processes items (files, messages, records), log what was processed so the next run can skip already-handled items.
@@ -0,0 +1,20 @@
1
+ # Upgrade Guide — vNEXT
2
+
3
+ <!-- assembled-by: assemble-next-md -->
4
+ <!-- bump: patch -->
5
+
6
+ ## What Changed
7
+
8
+ Local Verify accepts an opt-in fifth integration test process through `monitoring.localVerify.laneShards.integration`. Teams can try this setting on a machine with spare capacity when integration tests determine how long verification takes.
9
+
10
+ ## What to Tell Your User
11
+
12
+ The test line can try a fifth integration test process on a machine that has room for it. Existing machines keep their configured counts until an operator changes the setting.
13
+
14
+ ## Summary of New Capabilities
15
+
16
+ The existing integration process setting accepts five.
17
+
18
+ ## Evidence
19
+
20
+ Targeted tests cover the service, runner, and the agent-guide refresh.
@@ -0,0 +1,24 @@
1
+ # Upgrade Guide — vNEXT
2
+
3
+ <!-- assembled-by: assemble-next-md -->
4
+ <!-- bump: patch -->
5
+
6
+ ## What Changed
7
+
8
+ A slow Mark read save on Notifications could refresh that page after the person had already opened another page. Refresh now belongs to the exact view that started the save. The save completes normally and active views still refresh.
9
+
10
+ A standby now checks whether the preferred machine still holds a healthy lease before trying to take over during its regular lease checks.
11
+
12
+ ## What to Tell Your User
13
+
14
+ Marking a notification read no longer pulls you back to Notifications if you open another page before the save finishes.
15
+
16
+ The standby waits while it can verify that the preferred machine is serving. It can still take over when the preferred machine's lease expires.
17
+
18
+ ## Summary of New Capabilities
19
+
20
+ No new capability; repair of delayed notification refresh behavior.
21
+
22
+ ## Evidence
23
+
24
+ Deferred-response rendered-page tests reproduce navigation, newer filter and removed-page cases. Existing active-view save coverage remains. Full shared verification and released live checks remain pending.
@@ -0,0 +1,60 @@
1
+ # Side-Effects Review — a fifth integration test process
2
+
3
+ **Version / slug:** local-verify-five-integration-shards
4
+ **Date:** 2026-11-24
5
+ **Author:** Echo
6
+ **Second-pass reviewer:** Independent Codex reviewer
7
+
8
+ ## Summary of the change
9
+
10
+ Tier 1. The existing per-machine integration process setting accepts five. The staged change is small and reversible. One targeted review pass checked the service and runner limits, defaults, migration, and test-file coverage. The first commit attempt identified the missing review artifact and trace.
11
+
12
+ ## Decision-point inventory
13
+
14
+ The runner and service share a maximum for each lane and fall back to existing defaults on an invalid override. A documentation migration updates the old setting range in agent guides.
15
+
16
+ ## 1. Over-block
17
+
18
+ The accepted integration range expands by one. The runner accepts all counts it previously accepted.
19
+
20
+ ## 2. Under-block
21
+
22
+ An operator can choose five on a machine where it increases resource contention. The existing host protections still apply, and the trial needs live wall-time and failure measurements.
23
+
24
+ ## 3. Level-of-abstraction fit
25
+
26
+ The service validates the live run input and the runner validates inputs from its other callers. Both read the same lane limits.
27
+
28
+ ## 4. Signal vs authority compliance
29
+
30
+ There is no new blocking authority. The numerical range defines a configuration value. Merge evidence still comes from the existing verification result. [Signal vs authority](../../docs/signal-vs-authority.md)
31
+
32
+ ## 4b. Judgment-point check
33
+
34
+ There is no new static heuristic at a competing-signals decision point.
35
+
36
+ ## 5. Interactions
37
+
38
+ The runner uses one configuration snapshot per run. Its existing assignment code partitions the same file set across the configured process count. Report joins still check for missing and repeated files. An extra configured process increases peak resource use.
39
+
40
+ ## 6. External surfaces
41
+
42
+ The agent guide documents the expanded setting. The migration updates matching guide lines idempotently. No operator interface or status response shape changes.
43
+
44
+ ## 7. Multi-machine posture
45
+
46
+ The setting is machine-local by design because capacity differs by machine. There are no new notices, links, or persistent run records.
47
+
48
+ ## 8. Rollback cost
49
+
50
+ Return the integration count to four for the next run. Reverting the code restores the old upper limit. No recorded verification state requires repair.
51
+
52
+ ## Evidence
53
+
54
+ Seven targeted service and runner tests and three agent-guide tests passed. A TypeScript check and the normal commit checks verify the updated code. The five-process result is a planning estimate until a live comparison is complete.
55
+
56
+ ## Second-pass review of the opt-in trial
57
+
58
+ **Reviewer:** Independent Codex reviewer, read-only subagent
59
+
60
+ An independent read-only reviewer checked commit `784dd9596`. Verdict: **concur**. The service and child use the same integer and per-lane limits. Existing valid settings and defaults are preserved. Five processes use the same file partition, first-part exclusion, deadlines, coverage checks, and failure handling. The agent-guide migration is narrowly scoped to the previous wording and is idempotent. The merged diff passes git's whitespace check. This review establishes correctness of the setting path. Wall time and resource contention require the live comparison.
@@ -0,0 +1,51 @@
1
+ # Side-Effects Review — Notification Navigation
2
+
3
+ **Version / slug:** notification-navigation
4
+ **Date:** 2026-11-23
5
+ **Author:** echo
6
+ **Second-pass reviewer:** SMALL independent review
7
+
8
+ ## Summary of the change
9
+ Tier1 SMALL, a reversible lifecycle repair. One runtime file and its rendered-page tests, plus overview, side-effects and release note. A delayed Mark read completion could replace the current page through an unconditional refresh. Refresh now verifies that its rendered root is still connected and belongs to main. One review and one red/green implementation cycle planned; no new authority.
10
+
11
+ ## Decision-point inventory
12
+ Only the decision to repaint an existing screen changes. Identity is structural: the original root must still be attached to the same main. Existing authenticated owner-scoped PATCH, preference writes and action permissions pass through unchanged.
13
+
14
+ ## 1. Over-block
15
+ No server write or legitimate permission is blocked. An active view still refreshes. Detached or replaced views cannot repaint; these are obsolete displays, not rejected user actions.
16
+
17
+ ## 2. Under-block
18
+ No validation is added. Existing server routes remain responsible for authority. Initial feed reads only append to their own root and cannot replace another page after navigation.
19
+
20
+ ## 3. Level-of-abstraction fit
21
+ The renderer owns its view lifecycle and knows the root it created. No server, router or scheduler change is needed. A fixed delay or global route string would be less precise than actual root ownership.
22
+
23
+ ## 4. Signal vs authority compliance
24
+ Complies with docs/signal-vs-authority.md. No action gate or brittle blocking detector is introduced. This is a structural display ownership condition, never authority to deny or cancel an operation.
25
+
26
+ ## 5. Interactions
27
+ Normal active refresh remains unchanged. The pending notification-preview change touches the same renderer and test file, but does not modify this refresh closure; retain both changes when integrated. Changing filter creates a new root, preventing the earlier save from resetting the newer view or clearing its cursor. Request completion and errors do not acquire a new retry. No new polling, cleanup or event listeners.
28
+
29
+ ## 6. External surfaces
30
+ Only the web page response to a delayed save changes. Requests, response formats and durable state are unchanged. The existing Mark read control remains phone-completable; there is no new operator action. Failed saves report to the original view's existing status element.
31
+
32
+ ## 6b. Operator-surface quality
33
+ 1. The existing Mark read action remains visible on every notice. No action moves or collapses.
34
+ 2. No new visible identifiers, internals or technical language.
35
+ 3. No destructive control is added or promoted.
36
+ 4. Existing labels and44pixel target remain unchanged. Four real Chrome fixtures at390/1280pixels in both themes verify that the current page remains Accounts after the delayed save, with no additional refresh requests and no overflow. Private screenshots/results are under .instar/dashboard-makeover/notification-navigation in the agent home. No native app claim.
37
+
38
+ ## 7. Multi-machine posture (Cross-Machine Coherence)
39
+ Replicated: dashboard assets follow normal package installation. The existing pooled feed and owner-machine PATCH routing are unchanged. Slow peer responses are exactly why view ownership matters. No new notices, durable state, URLs, status, health, capabilities or channels answers. No state can strand on topic transfer.
40
+
41
+ ## 8. Rollback cost
42
+ Revert the code and release a patch. No state migration, permissions cleanup or agent repair. Existing read acknowledgements remain valid.
43
+
44
+ ## Conclusion
45
+ A narrow lifecycle fix preserves navigation without altering saved intent. 159focused checks,3integration cases, the production build and four browser cases passed before commit; one existing production notification-preferences lifecycle test also passed. Complete shared verification and released live checks remain pending.
46
+
47
+ ## Second-pass review
48
+ Reviewer review_plan_approval concurred: structural root ownership preserves active-view refresh and server writes; all three stale-view race cases are covered. No runtime concerns raised.
49
+
50
+ ## Class-Closure Declaration (display-only mirror)
51
+ No agent-authored-artifact defect — not applicable. No self-triggered controller added or modified.
@@ -0,0 +1,12 @@
1
+ # Restore preferred-machine lease deferral during regular ticks
2
+
3
+ The recurring standby tick now uses the same healthy-holder predicate that already guards boot acquisition. A verified live, unreleased lease for the configured preferred machine defers this standby's call into acquisition. Once that evidence expires or is replaced, normal acquisition resumes. The holder's renewal and the existing rules for resolving an actual same-epoch contest stay available.
4
+
5
+ The guard uses the coordinator's existing effective lease view. A stale local view can still make a standby wait until the verified lease expires. A partition can still leave the standby without a live view, in which case the existing acquisition fences decide. Rollback reverts the one branch condition. This requires no stored-state migration.
6
+
7
+ ## Second-pass review
8
+
9
+ **Reviewer:** Independent lease authority reviewer.
10
+ **Result:** Concur. The recurring guard reuses verified live-lease evidence and preserves the existing tie-break when the peers disagree. The regression uses a signed preferred-captain lease at epoch 23813 and checks that acquisition becomes eligible again once it expires.
11
+
12
+ The preference follows the signed lease expiry, including a valid planned-restart extension. It takes precedence on this tick over optional early takeover based on stale renewal observations. An expired or released lease allows the standby to evaluate acquisition again.