instar 1.3.901 → 1.3.903

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 (37) hide show
  1. package/.claude/skills/autonomous/hooks/autonomous-stop-hook.sh +17 -4
  2. package/dist/core/FeatureRolloutReconciler.d.ts +8 -2
  3. package/dist/core/FeatureRolloutReconciler.d.ts.map +1 -1
  4. package/dist/core/FeatureRolloutReconciler.js +35 -1
  5. package/dist/core/FeatureRolloutReconciler.js.map +1 -1
  6. package/dist/core/InitiativeTracker.d.ts +24 -1
  7. package/dist/core/InitiativeTracker.d.ts.map +1 -1
  8. package/dist/core/InitiativeTracker.js +5 -0
  9. package/dist/core/InitiativeTracker.js.map +1 -1
  10. package/dist/core/featureRolloutScan.d.ts.map +1 -1
  11. package/dist/core/featureRolloutScan.js +23 -1
  12. package/dist/core/featureRolloutScan.js.map +1 -1
  13. package/dist/monitoring/BlockerLifecycleLedger.d.ts +3 -3
  14. package/dist/monitoring/BlockerLifecycleLedger.d.ts.map +1 -1
  15. package/dist/monitoring/BlockerLifecycleLedger.js +43 -2
  16. package/dist/monitoring/BlockerLifecycleLedger.js.map +1 -1
  17. package/dist/monitoring/BlockerLifecycleService.d.ts +9 -0
  18. package/dist/monitoring/BlockerLifecycleService.d.ts.map +1 -1
  19. package/dist/monitoring/BlockerLifecycleService.js +77 -10
  20. package/dist/monitoring/BlockerLifecycleService.js.map +1 -1
  21. package/dist/monitoring/CompletionClaimVerifier.d.ts +5 -1
  22. package/dist/monitoring/CompletionClaimVerifier.d.ts.map +1 -1
  23. package/dist/monitoring/CompletionClaimVerifier.js +40 -9
  24. package/dist/monitoring/CompletionClaimVerifier.js.map +1 -1
  25. package/dist/server/AgentServer.d.ts +1 -0
  26. package/dist/server/AgentServer.d.ts.map +1 -1
  27. package/dist/server/AgentServer.js +85 -1
  28. package/dist/server/AgentServer.js.map +1 -1
  29. package/dist/server/routes.d.ts.map +1 -1
  30. package/dist/server/routes.js +66 -4
  31. package/dist/server/routes.js.map +1 -1
  32. package/package.json +1 -1
  33. package/src/data/builtin-manifest.json +47 -47
  34. package/upgrades/1.3.902.md +26 -0
  35. package/upgrades/1.3.903.md +27 -0
  36. package/upgrades/side-effects/claim-verification-general-verdict-metrics.md +86 -0
  37. package/upgrades/side-effects/nine-feature-rollout-closure.md +127 -0
@@ -0,0 +1,127 @@
1
+ # Side-Effects Review — Nine-feature rollout placement closure
2
+
3
+ **Version / slug:** `nine-feature-rollout-closure`
4
+ **Date:** `2026-07-21`
5
+ **Author:** `Instar-codey`
6
+ **Second-pass reviewer:** `throughput_second_pass (concurred)`
7
+
8
+ ## Summary of the change
9
+
10
+ This change accounts for source PRs 1531–1539 in the existing rollout scanner,
11
+ InitiativeTracker, and D7 lifecycle ledger. Five independently controlled features
12
+ are active, three owner-controlled components are composed, and one documentation-only
13
+ source is excluded. Existing owner services provide bounded numeric projections; no
14
+ new rollout control or persistence authority is introduced.
15
+
16
+ ## Decision-point inventory
17
+
18
+ - `featureRolloutScan` contract parsing — modified — classifies explicit rollout
19
+ accounting metadata and rejects malformed contracts as invalid evidence.
20
+ - `FeatureRolloutReconciler` placement — modified — maps active controls to rungs while
21
+ preserving null rungs for composed and excluded rows.
22
+ - `BlockerLifecycleService.evaluateMaturation` — modified — evaluates active and
23
+ composed evidence through the existing D7 authority; excluded rows remain visible
24
+ but ineligible.
25
+ - Pool-summary sanitizer — modified — rejects structurally dishonest peer summaries.
26
+
27
+ ## 1. Over-block
28
+
29
+ Malformed or future-version peer accounting rows are rejected from the pool summary.
30
+ That is intentional boundary validation: accepting a row whose claimed disposition,
31
+ rung, counts, or descriptors disagree would corrupt the denominator. Local legacy rows
32
+ remain supported explicitly through `legacyEligible`.
33
+
34
+ ## 2. Under-block
35
+
36
+ A structurally valid peer can still report inaccurate underlying owner measurements;
37
+ this change validates the contract envelope, not remote machine integrity. Freshness,
38
+ sample floors, and owner-local projection semantics keep missing or stale evidence from
39
+ becoming green, but Byzantine peers are outside this trusted-agent pool model.
40
+
41
+ ## 3. Level-of-abstraction fit
42
+
43
+ The scanner owns declarative contract discovery, InitiativeTracker owns placement
44
+ accounting, existing feature services own operational truth, and D7 remains the sole
45
+ maturation evaluator. The implementation extends those existing layers instead of
46
+ adding a parallel registry, synthetic flag, or child-owned promotion authority.
47
+
48
+ ## 4. Signal vs authority compliance
49
+
50
+ Required reference: [docs/signal-vs-authority.md](../../docs/signal-vs-authority.md)
51
+
52
+ - [x] No — this change produces a signal consumed by an existing smart gate.
53
+
54
+ The new projections are numeric observations. They do not promote, block, or mutate
55
+ their owner systems. D7 consumes them under persisted contracts and produces the
56
+ existing HOLD/READY/REGRESSED lifecycle decision. Pool validation is a hard structural
57
+ API invariant, which the principle explicitly permits at system boundaries.
58
+
59
+ ## 4b. Judgment-point check
60
+
61
+ No new static heuristic is added at a competing-signals judgment point. Thresholds and
62
+ sample floors are explicit feature contracts; disposition/rung relations and peer
63
+ schema checks are enumerable invariants. Promotion remains outside this change.
64
+
65
+ ## 5. Interactions
66
+
67
+ - **Shadowing:** contract errors become `invalid-contract` before metric evaluation;
68
+ they cannot be misreported as ordinary missing evidence.
69
+ - **Double-fire:** projections are read-only snapshots and do not trigger owner actions.
70
+ - **Races:** each snapshot tolerates concurrent owner updates; it records a bounded
71
+ point-in-time value and D7 applies its existing evaluation transaction.
72
+ - **Feedback loops:** maturation output does not write into source metrics or promote a
73
+ rollout, so no control loop is introduced.
74
+ - **Degradation visibility:** a throwing owner projection or failed bounded recovery-log
75
+ read reports through `DegradationReporter`; the observation remains absent/HOLD.
76
+
77
+ ## 6. External surfaces
78
+
79
+ The blocker lifecycle local and pool summary responses gain accounting rows, metric
80
+ descriptors, exact counts, nullable rungs, and promotion-authority labels. Existing
81
+ legacy response semantics remain represented. The D7 SQLite schema migrates its source
82
+ CHECK and nullable-rung constraint transactionally while preserving rows and indexes.
83
+ There are no new operator actions, URLs, notices, or external-service writes.
84
+
85
+ ## 6b. Operator-surface quality
86
+
87
+ No operator surface — not applicable.
88
+
89
+ ## 7. Multi-machine posture
90
+
91
+ **Proxied-on-read:** source observations are machine-local truths, while
92
+ `/blocker-lifecycle/summary?scope=pool` merges and strictly validates peer summaries.
93
+ The response preserves per-origin accounting rather than pretending local counters are
94
+ replicated. This emits no user-facing notices, creates no generated URLs, and strands
95
+ no topic-owned state. The existing D7 ledger remains machine-local evidence history;
96
+ pool reads are the cross-machine answer surface.
97
+
98
+ ## 8. Rollback cost
99
+
100
+ Revert and ship a patch. The ledger migrations are additive/compatibility-preserving;
101
+ older code ignores accounting stored in initiative JSON and can read the recreated D7
102
+ tables. No external state repair or user notification is required.
103
+
104
+ ## Conclusion
105
+
106
+ The change is clear to ship. Review tightened classified-claim causality, hostile-peer
107
+ invariants, mixed legacy/accounted denominators, nullable-rung migrations, and explicit
108
+ promotion authority. Focused typecheck and 38 rollout/migration tests pass.
109
+
110
+ ## Second-pass review
111
+
112
+ **Reviewer:** `throughput_second_pass`
113
+ **Independent read of the artifact: concur**
114
+
115
+ The independent implementation review completed three passes and concurred after the
116
+ claim, pool-integrity, denominator, and migration findings were repaired and tested.
117
+
118
+ ## Evidence pointers
119
+
120
+ - `tests/unit/featureRolloutScan.test.ts`
121
+ - `tests/unit/feature-rollout-reconciler.test.ts`
122
+ - `tests/unit/BlockerLifecycleMaturation.test.ts`
123
+ - `tests/integration/blocker-throughput-pool-routes.test.ts`
124
+
125
+ ## Class-Closure Declaration
126
+
127
+ No agent-authored-artifact defect and no self-triggered controller — not applicable.