instar 1.3.890 → 1.3.892

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 (71) hide show
  1. package/dashboard/index.html +35 -2
  2. package/dashboard/preferences-learning.js +2 -2
  3. package/dist/commands/server.d.ts.map +1 -1
  4. package/dist/commands/server.js +100 -2
  5. package/dist/commands/server.js.map +1 -1
  6. package/dist/config/ConfigDefaults.d.ts.map +1 -1
  7. package/dist/config/ConfigDefaults.js +12 -1
  8. package/dist/config/ConfigDefaults.js.map +1 -1
  9. package/dist/core/BackupManager.d.ts.map +1 -1
  10. package/dist/core/BackupManager.js +1 -5
  11. package/dist/core/BackupManager.js.map +1 -1
  12. package/dist/core/PostUpdateMigrator.d.ts.map +1 -1
  13. package/dist/core/PostUpdateMigrator.js +33 -7
  14. package/dist/core/PostUpdateMigrator.js.map +1 -1
  15. package/dist/core/devGatedFeatures.d.ts.map +1 -1
  16. package/dist/core/devGatedFeatures.js +8 -2
  17. package/dist/core/devGatedFeatures.js.map +1 -1
  18. package/dist/core/types.d.ts +13 -0
  19. package/dist/core/types.d.ts.map +1 -1
  20. package/dist/core/types.js.map +1 -1
  21. package/dist/monitoring/AutonomousThroughputFloor.d.ts +118 -0
  22. package/dist/monitoring/AutonomousThroughputFloor.d.ts.map +1 -0
  23. package/dist/monitoring/AutonomousThroughputFloor.js +147 -0
  24. package/dist/monitoring/AutonomousThroughputFloor.js.map +1 -0
  25. package/dist/monitoring/ClaimClauseArbiter.d.ts +11 -2
  26. package/dist/monitoring/ClaimClauseArbiter.d.ts.map +1 -1
  27. package/dist/monitoring/ClaimClauseArbiter.js +55 -9
  28. package/dist/monitoring/ClaimClauseArbiter.js.map +1 -1
  29. package/dist/monitoring/ClaimObservation.d.ts +181 -0
  30. package/dist/monitoring/ClaimObservation.d.ts.map +1 -0
  31. package/dist/monitoring/ClaimObservation.js +575 -0
  32. package/dist/monitoring/ClaimObservation.js.map +1 -0
  33. package/dist/monitoring/ClaimObservationAdmissionQueue.d.ts +38 -0
  34. package/dist/monitoring/ClaimObservationAdmissionQueue.d.ts.map +1 -0
  35. package/dist/monitoring/ClaimObservationAdmissionQueue.js +90 -0
  36. package/dist/monitoring/ClaimObservationAdmissionQueue.js.map +1 -0
  37. package/dist/monitoring/CompletionClaimVerifier.d.ts +45 -4
  38. package/dist/monitoring/CompletionClaimVerifier.d.ts.map +1 -1
  39. package/dist/monitoring/CompletionClaimVerifier.js +74 -29
  40. package/dist/monitoring/CompletionClaimVerifier.js.map +1 -1
  41. package/dist/monitoring/LlmQueue.d.ts +31 -0
  42. package/dist/monitoring/LlmQueue.d.ts.map +1 -1
  43. package/dist/monitoring/LlmQueue.js +41 -0
  44. package/dist/monitoring/LlmQueue.js.map +1 -1
  45. package/dist/monitoring/TurnEvidence.d.ts.map +1 -1
  46. package/dist/monitoring/TurnEvidence.js +12 -4
  47. package/dist/monitoring/TurnEvidence.js.map +1 -1
  48. package/dist/scaffold/templates.d.ts.map +1 -1
  49. package/dist/scaffold/templates.js +5 -1
  50. package/dist/scaffold/templates.js.map +1 -1
  51. package/dist/server/AgentServer.d.ts +3 -0
  52. package/dist/server/AgentServer.d.ts.map +1 -1
  53. package/dist/server/AgentServer.js +83 -2
  54. package/dist/server/AgentServer.js.map +1 -1
  55. package/dist/server/CapabilityIndex.js +1 -1
  56. package/dist/server/CapabilityIndex.js.map +1 -1
  57. package/dist/server/fileRoutes.d.ts.map +1 -1
  58. package/dist/server/fileRoutes.js +2 -0
  59. package/dist/server/fileRoutes.js.map +1 -1
  60. package/dist/server/routes.d.ts +2 -0
  61. package/dist/server/routes.d.ts.map +1 -1
  62. package/dist/server/routes.js +93 -21
  63. package/dist/server/routes.js.map +1 -1
  64. package/package.json +1 -1
  65. package/src/data/builtin-manifest.json +65 -65
  66. package/src/data/state-coherence-registry.json +18 -0
  67. package/src/scaffold/templates.ts +5 -1
  68. package/upgrades/1.3.891.md +30 -0
  69. package/upgrades/1.3.892.md +20 -0
  70. package/upgrades/side-effects/autonomous-throughput-floor.md +36 -0
  71. package/upgrades/side-effects/claim-verification-sentinel.md +93 -0
@@ -0,0 +1,20 @@
1
+ # Upgrade Guide — vNEXT
2
+
3
+ <!-- assembled-by: assemble-next-md -->
4
+ <!-- bump: patch -->
5
+
6
+ ## What Changed
7
+
8
+ - Adds observe-only factual-claim extraction and deterministic verification for the bounded v1 predicate set.
9
+ - Routes model evaluation through the shared metered queue with fair, expiring admission and no effect on outbound delivery.
10
+ - Records privacy-scrubbed local and pool-visible audit/corpus projections with explicit authoritative-outcome settlement.
11
+
12
+ ## What to Tell Your User
13
+
14
+ Instar can now observe and audit bounded factual claims after a response is authored. This release is dark and observe-only: it does not delay, rewrite, block, or authorize outbound messages.
15
+
16
+ ## Summary of New Capabilities
17
+
18
+ - General claim extraction with deterministic criticality floors.
19
+ - Exact verification for the supported v1 predicate set.
20
+ - Privacy-scrubbed benchmark and outcome corpus logging.
@@ -0,0 +1,36 @@
1
+ # Side-effects review: Autonomous Throughput Floor
2
+
3
+ ## Changed
4
+
5
+ - Adds bounded Git/GitHub and Telegram-history reads for eligible single-machine autonomous runs.
6
+ - Adds one constant-size 0600 machine-local sidecar per run plus a scrubbed JSONL audit row.
7
+ - Adds authenticated `GET /autonomous/throughput-floor` and dashboard consumption of that pull surface.
8
+ - Adds fleet-dark config, migration, guard posture, agent awareness, and release documentation.
9
+
10
+ ## Explicitly unchanged
11
+
12
+ - No Telegram or Slack message, attention item, notification, A2A message, dispatch, restart, remediation,
13
+ scheduler mutation, PR mutation, git fetch/checkout, or route write is possible from this feature.
14
+ - No personal SSH, repository worktree, conversation content, autonomous run document, or pairing state is written.
15
+ - HOLD authority is not added. Missing lane-saturation truth remains false/unavailable.
16
+
17
+ ## Resource and failure posture
18
+
19
+ - One tick at a time; PR/history bounds are fixed; failures back off 15m/30m/60m then open a persisted 6h breaker.
20
+ - Missing/corrupt/future state, incomplete history, invalid scope, moves, and multi-machine runs fail to
21
+ `unknown`/`ineligible`, never to a flatline claim.
22
+ - Audit/status expose only ids, durations, decision/failure enums, and timestamps—no raw messages, stderr,
23
+ repository paths, URLs, refs, or PR prose.
24
+ - The append-only observation audit is explicitly registered as machine-local state with bounded streamed
25
+ retention; the source annotation binds the write site to that declaration without changing runtime behavior.
26
+ - Expected bounded-read and fleet-dark initialization failures carry explicit fallback annotations: reads fail
27
+ closed to `unknown`, breaker accounting remains durable, and initialization failure is logged.
28
+ - The hand-authored dark-gate attribution map is advanced by the five ConfigDefaults lines introduced by this
29
+ feature; its 25-path set is unchanged, and the real-default resolver test verifies every attribution.
30
+
31
+ ## Follow-on gate
32
+
33
+ Proactive attention is not part of this change. It is named only as follow-on work gated on a separately
34
+ converged SelfHealGate; there is no dormant config path or callback that can enable it.
35
+
36
+ Decision-audit evidence is carried with the implementation commit and covers every behavior-changing file.
@@ -0,0 +1,93 @@
1
+ # Side-Effects Review — Claim Verification v1 dark observer
2
+
3
+ **Version / slug:** `claim-verification-sentinel`
4
+ **Date:** `2026-07-20`
5
+ **Author:** `Instar-codey`
6
+ **Second-pass reviewer:** `throughput_floor_build (independent final-delta concurrence after full review remediation)`
7
+
8
+ ## Summary of the change
9
+
10
+ This change extends the existing Completion Claim verifier into the converged v1 Claim Verification dark observer. It modifies the Stop hook, extraction arbiter, verifier queue, server routes/config, canonical metadata-only storage, backup/file-viewer exclusions, and informational dashboard copy. It adds factual extraction and assessment decision points but preserves the existing Action-Claim router as the only outbound authority.
11
+
12
+ ## Decision-point inventory
13
+
14
+ - `ClaimClauseArbiter.arbitrate` — modify — one bounded Claude call returns backward-compatible legacy labels plus the strict general-claim envelope.
15
+ - `parseGeneralClaimEnvelope` — add — deterministic schema, span, operand, selector, duplicate, and consequence invariants decide whether model output is admissible evidence.
16
+ - `applyClaimCriticalityFloor` — add — deterministic minimum severity; model suggestions can only raise it.
17
+ - `assessClaim` — add — exact supported adapters decide supported/refuted/unverifiable from structural evidence or fresh snapshots.
18
+ - `CompletionClaimVerifier.enqueue` — modify — bounded cost, fairness, idempotency, concurrency, and expiry admission for observe-only work.
19
+ - `routeActionClaim` — pass-through — remains the sole outbound-message authority and consumes only the legacy arbitration projection.
20
+
21
+ ## 1. Over-block
22
+
23
+ No block/allow surface — Claim Verification never blocks, delays, rewrites, retries, or sends an outbound message. Queue or provider refusal drops only an observation and records the denominator honestly.
24
+
25
+ ## 2. Under-block
26
+
27
+ The observer intentionally misses claims when the provider is unavailable, content exceeds the privacy boundary, the strict envelope is invalid, the queue/cost budget is exhausted, or a non-Claude framework resolves the general lane. Capacity and pull-request assertions remain `unverifiable:no-canonical-oracle`; v1 does not pretend that local configuration or prose is authoritative. Protected-cue coverage detects some extraction misses but does not prove saturation.
28
+
29
+ ## 3. Level-of-abstraction fit
30
+
31
+ This is a signal producer at the right layer. A model handles contextual extraction; deterministic code enforces schema and safety floors; exact adapters assess only canonical structural evidence. The result feeds local audit/corpus projections and does not run parallel to the existing outbound Action-Claim authority.
32
+
33
+ ## 4. Signal vs authority compliance
34
+
35
+ - [x] No — this change has no block/allow surface.
36
+
37
+ The observer's `disposition` is structurally fixed to `unchanged` and corpus rows are `automationEligible: false`. General assessments are never passed into `registerUnifiedFutureClaims`; only the established legacy projection is.
38
+
39
+ ## 4b. Judgment-point check (Judgment Within Floors standard)
40
+
41
+ Extraction is a judgment point handled by the Claude arbiter. Criticality and schema checks are enumerable invariants: irreversible premises and protected predicates have deterministic floors, and invalid shapes are not competing-signal judgments. Verifier adapters compare exact evidence within the uncertainty floor; unsupported subjects remain unverifiable.
42
+
43
+ ## 5. Interactions
44
+
45
+ - **Shadowing:** all nonempty Stop responses may enter observation, but the hook remains fire-and-forget and the server response cannot shadow message delivery.
46
+ - **Double-fire:** UUIDv7 attempt identity and content fingerprinting return the prior admission outcome for an exact retry; a collision with different content is refused.
47
+ - **Races:** work is globally bounded, one-at-a-time per topic, round-robin across topics, and expires after 120 seconds. Audit rotation and corpus bounds are machine-local synchronous writes; failures drop observation only.
48
+ - **Feedback loops:** corpus and pool projections are explicitly automation-ineligible. No v1 miner, calibration, promotion, or policy-writing lane exists.
49
+ - **Legacy behavior:** the same arbiter call supplies the old Completion Claim projection, and Action-Claim routing reads only that projection.
50
+
51
+ ## 6. External surfaces
52
+
53
+ The Stop hook sends a new bounded structural envelope to the local server. Persistent state is written beneath the dedicated claim-verification directory, excluded from backup and denied by file-serving routes. Pool reads expose only thresholded aggregates, cap peers and bytes, use short per-peer deadlines, and report omissions/failures. There are no new operator-facing actions, external sends, URLs, approvals, or destructive controls.
54
+
55
+ ## 6b. Operator-surface quality (Operator-Surface Quality standard)
56
+
57
+ 1. **Leads with the primary action?** Yes. This is an informational observation surface with no action; the heading immediately states what the counts represent.
58
+ 2. **Zero raw internals as primary content?** Yes. Dashboard copy uses plain-language observation and coverage terms; no UUIDs, hashes, raw claims, or corpus rows are displayed.
59
+ 3. **Destructive actions de-emphasized?** Yes. No destructive action exists on the surface.
60
+ 4. **Plain language + phone width?** Yes. Only existing responsive text blocks were relabeled; no tables, controls, fixed widths, or horizontal layouts were added.
61
+
62
+ ## 7. Multi-machine posture (Cross-Machine Coherence)
63
+
64
+ **proxied-on-read** — canonical audit and corpus state remain machine-local because observations describe that machine's admitted work. `GET /completion-claim/audit?scope=pool` merges only privacy-qualified aggregates from up to sixteen peers and explicitly reports partial coverage. It emits no user-facing notices, holds no topic-transfer authority, and generates no URLs. Topic pseudonyms are local grouping aids and never exposed as aggregate dimensions.
65
+
66
+ ## 8. Rollback cost
67
+
68
+ Disable Claim Verification and restart to stop new observations, or revert and ship a patch. Existing files are inert metadata-only logs excluded from backup and file serving; no migration or agent-state repair is required. The bounded housekeeper can remove only the exact legacy audit filenames after the grace period and writes receipts.
69
+
70
+ ## Conclusion
71
+
72
+ The review keeps v1 deliberately narrow: dark observation, a dedicated fair ingress queue over the shared metered LLM queue, scrubbed corpus logging, exact uncertainty, bounded retention, and signed privacy-qualified pool pages. Independent review findings closed the hostile-evidence, invalid-envelope, shared-metering, retention, pagination, and outcome-integrity gaps. It contains no v2 miner/subagent work and no v3 calibration, surfacing, or authority promotion.
73
+
74
+ ## Second-pass review (if required)
75
+
76
+ **Reviewer:** `throughput_floor_build`, following the original `claim_v1_independent_review`
77
+ **Independent read of the artifact: concur**
78
+
79
+ The original review iterated through every blocking contract. The final reviewer independently confirmed that ordinary observations cannot settle each other, only an explicit later authoritative receipt matching the original claim ID, predicate, and exact source revision can create T0, wrong revisions refuse, and settlement remains automation-ineligible with unchanged disposition.
80
+
81
+ Post-review CI hardening classified every intentional fail-safe in the new parsers and bounded stores, refreshed the hand-audited dark-gate line map after the six-line config insertion, removed a malformed pre-release guide in favor of the canonical `upgrades/next` fragment, and fixed the test cleanup import. These changes alter no runtime authority or reviewed settlement contract.
82
+
83
+ ## Evidence pointers
84
+
85
+ - `tests/unit/claim-observation-v1.test.ts`
86
+ - `tests/unit/turn-evidence-completion-verifier.test.ts`
87
+ - `tests/unit/PostUpdateMigrator-completionClaimHook.test.ts`
88
+ - `tests/unit/backup-manager.test.ts`
89
+ - `tests/unit/fileRoutes-never-served.test.ts`
90
+
91
+ ## Class-Closure Declaration (display-only mirror)
92
+
93
+ No agent-authored-artifact defect and no self-triggered action controller is added — not applicable. The periodic housekeeper is retention-only and cannot restart, swap, respawn, spawn, notify, retry, re-drive, kill, or affect delivery.