Skip to content

Commit 2145867

Browse files
committed
fix(ka): remove simulated outcomes from existing algorithms
1 parent 429094a commit 2145867

55 files changed

Lines changed: 2171 additions & 1189 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

CHANGELOG.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,17 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
2626
## [Unreleased]
2727

2828
### Added
29+
- **Phase 18 CP18-C existing-honesty Batch 01**: qualified 11 existing
30+
Knowledge Algorithms that the authority inventory flagged for unrecorded
31+
randomness, mock operations, or unsupported success. Six now perform bounded
32+
deterministic analysis or caller-supplied normalization; five return stable
33+
effect proposals without claiming delivery, persistence, signing, backup,
34+
publication, or queueing. Added 11 individually named semantic tests,
35+
modernized the bulk schema fixture/loader for constrained Pydantic contracts,
36+
and recorded a 469-pass KA suite. The regenerated authority retains 213
37+
canonical capabilities, 132 existing implementations, 81 gaps, one alias,
38+
and zero duplicate collisions, unresolved duplicate candidates, unclassified
39+
surfaces, or static honesty flags. CP18-C remains active.
2940
- **Phase 18 CP18-B single Knowledge Algorithm runtime**: added one generated
3041
213-capability manifest, typed definition/request/context/budget/result/
3142
failure/artifact/effect/trace contracts, and one canonical controller.

HANDOFF.md

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
| Last reviewed | 2026-07-25 |
1818
| Next-review trigger | Every checkpoint, handoff, blocker, or release-decision change |
1919
| Requirements and evidence | Active plan, open-work ledger, and `reports/production-readiness/2026/` |
20-
| Active plan | `PRODUCTION_COMPLETION_PLAN_2026.md` v1.25.0 |
20+
| Active plan | `PRODUCTION_COMPLETION_PLAN_2026.md` v1.26.0 |
2121
| Completed phase | Object-store Replacement Control; SeaweedFS selected for rebuilt installed qualification |
2222
| Current phase | Phase 18 Knowledge Algorithm production completion; CP18-C active |
2323
| Release verdict | Production/public release: **NO-GO** |
@@ -65,6 +65,17 @@ and clean full-source qualification. Only that exit gate permits the signed
6565
rebuild; CP18-H and every retained installed/manual/independent gate still apply
6666
to the rebuilt artifact.
6767

68+
CP18-C Batch 01 passed on 2026-07-25. Eleven existing KAs no longer use
69+
unrecorded randomness, fabricate measurements/diagnostics/rendered assets, or
70+
claim operational effects without receipts. Six now produce bounded
71+
deterministic analysis/specification and five return honest effect proposals
72+
pending authoritative service application. All 11 have individually named
73+
semantic tests, the full KA suite passes 469 tests, and the regenerated
74+
authority reports zero static honesty flags, duplicate collisions, unresolved
75+
duplicate candidates, or unclassified surfaces. CP18-C remains active for the
76+
remaining existing implementations, 81 missing implementations, and real
77+
effect-service receipts.
78+
6879
Baseline evidence:
6980
`reports/production-readiness/2026/phase-18/baseline-and-plan.md`.
7081

@@ -682,10 +693,11 @@ replacement. See
682693

683694
## Exact next action
684695

685-
1. Execute Phase 18 CP18-C against the approved 213-capability manifest:
686-
qualify the 132 existing implementations and build the 81 explicit gaps in
687-
semantic batches with strict schemas, limits, failure behavior, and
688-
authoritative effect/service integration.
696+
1. Continue Phase 18 CP18-C against the approved 213-capability manifest:
697+
Batch 01 qualified 11 existing implementations; qualify the remaining
698+
existing implementations and build the 81 explicit gaps in semantic batches
699+
with strict schemas, limits, failure behavior, and authoritative
700+
effect/service integration.
689701
2. Preserve canonical IDs and behavior until parity proof permits each
690702
migration; keep the zero-duplicate gate mandatory and do not reintroduce
691703
ambiguous historical numeric aliases or private runtimes.

PRODUCTION_COMPLETION_PLAN_2026.md

Lines changed: 23 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
| Field | Value |
66
|---|---|
7-
| Document version | v1.25.0 |
7+
| Document version | v1.26.0 |
88
| Plan date | 2026-07-12 |
99
| Status | Active production completion program |
1010
| Product target | Local-first Windows 11 x64 governed LLM middleware with a desktop control, administration, audit, and validation application |
@@ -231,6 +231,20 @@ one-to-one implementation owners, 81 explicit gaps, one reviewed scoped alias,
231231
zero duplicate canonical collisions, and zero unclassified surfaces. CP18-C is
232232
active; these counts remain a work authority, not a production-readiness claim.
233233

234+
CP18-C Batch 01 passed on 2026-07-25 for 11 existing implementations previously
235+
flagged for unrecorded randomness, mock operational paths, or unsupported
236+
success claims. `KA-008`, `KA-012`, `KA-028`, `KA-091`, `KA-098`, and `KA-099`
237+
now provide bounded deterministic analysis or caller-supplied normalization.
238+
`KA-095`, `KA-097`, `KA-108`, `KA-110`, and `KA-112` return honest stable
239+
effect proposals and do not claim delivery, persistence, signing, backup,
240+
publication, or queueing before an authoritative service receipt exists. The
241+
full KA suite passes 469 tests; the regenerated authority retains 213 canonical
242+
capabilities, 132 existing implementations, 81 implementation gaps, one
243+
reviewed alias, and zero duplicate collisions, unresolved duplicate candidates,
244+
unclassified surfaces, or static honesty flags on existing implementations.
245+
CP18-C remains active because the other existing implementations, all 81 gaps,
246+
and authoritative effect application still require completion.
247+
234248
## 1. Purpose
235249

236250
This plan defines the complete program required to finish DataLogicEngine as a
@@ -3980,13 +3994,17 @@ artifact rather than against a known-incomplete subsystem.
39803994
trace/replay acceptance and binds the final manifest/hash to the release
39813995
record.
39823996

3983-
**Checkpoint status 2026-07-25:** CP18-A and CP18-B passed. The approved
3984-
capability authority is
3997+
**Checkpoint status 2026-07-25:** CP18-A and CP18-B passed. CP18-C Batch 01
3998+
also passed for 11 existing implementations, removing every CP18-A static
3999+
random/mock-honesty flag while preserving the canonical capability set. The
4000+
approved capability authority is
39854001
`reports/production-readiness/2026/phase-18/ka-capability-crosswalk.json`.
39864002
`scripts/verify_ka_capability_inventory.py` and
39874003
`scripts/verify_ka_runtime_authority.py` enforce the deduplicated identity and
3988-
single-runtime boundaries. CP18-C is active; CP18-C through CP18-H remain open,
3989-
and the signed rebuild remains blocked.
4004+
single-runtime boundaries. Batch evidence is
4005+
`reports/production-readiness/2026/phase-18/cp18-c-batch-01-existing-honesty.json`.
4006+
CP18-C is active; CP18-C through CP18-H remain open, and the signed rebuild
4007+
remains blocked.
39904008

39914009
### Stop conditions
39924010

README.md

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,11 @@ administration, audit, observability, and validation application.
5959
> collisions and unresolved duplicate candidates are zero. CP18-B has now
6060
> passed with one generated manifest, typed runtime contract, canonical
6161
> controller, generated Python/TypeScript clients, compatibility adapters, and
62-
> no private SDK handler runtime. CP18-C is active for production implementation
62+
> no private SDK handler runtime. CP18-C Batch 01 has qualified 11 existing KAs:
63+
> six now use bounded deterministic analysis/normalization and five return
64+
> honest effect proposals instead of simulated applied effects. Their 11 named
65+
> semantic tests and the full 469-test KA suite pass, while the no-duplicate
66+
> authority remains clean. CP18-C is active for the remaining implementation
6367
> completion. Phase 18 will finish production implementations and application
6468
> wiring, and require one named functional test per canonical KA before rebuild.
6569
> The completed checkpoint passes 2,192 backend tests with 18 skips, all 422
@@ -147,8 +151,9 @@ Current production-completion focus:
147151
Python/TypeScript SDK catalogs/clients, and compatibility adapters; 132
148152
implementation sources have unique canonical owners, the 81 gaps are explicit,
149153
and duplicate canonical collisions are zero
150-
- Phase 18 CP18-C production implementation parity is active; the
151-
release-candidate rebuild remains paused through CP18-G
154+
- Phase 18 CP18-C Batch 01 passed for 11 existing implementations with 469 KA
155+
tests passing and zero remaining static randomness/mock-honesty flags; CP18-C
156+
remains active and the release-candidate rebuild remains paused through CP18-G
152157
- Production behavior, dynamic application call path, and one individually
153158
named functional test for every canonical KA
154159
- Authenticated KA API/SDK and accessible Algorithms detail/input/plan/confirm/

TODO.md

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
| Last reviewed | 2026-07-25 |
1818
| Next-review trigger | Phase checkpoint, blocker disposition, or release-decision change |
1919
| Requirements and evidence | Active plan and `reports/production-readiness/2026/` |
20-
| Active plan | `PRODUCTION_COMPLETION_PLAN_2026.md` v1.25.0 |
20+
| Active plan | `PRODUCTION_COMPLETION_PLAN_2026.md` v1.26.0 |
2121
| Completed phase | Object-store Replacement Control; SeaweedFS selected for rebuilt installed qualification |
2222
| Current phase | Phase 18 Knowledge Algorithm production completion; CP18-C active |
2323
| Release decision | Production/public release: **NO-GO** |
@@ -56,6 +56,14 @@ catalog-only.
5656
- [ ] **CP18-C — implementation parity:** replace every placeholder, mock,
5757
metadata-only façade, and false operational effect with production
5858
behavior or honest prerequisite failure through authoritative services.
59+
- [x] Batch 01 qualified 11 existing KAs: six bounded deterministic analysis/
60+
normalization implementations and five honest effect proposals. The
61+
full KA suite passes 469 tests; all 11 have named semantic tests; the
62+
inventory now reports zero static randomness/mock-honesty flags on
63+
existing implementations and still reports zero duplicate collisions.
64+
- [ ] Qualify the remaining existing implementations, build all 81 explicit
65+
implementation gaps, and connect effect proposals to authoritative
66+
service application/receipt paths.
5967
- [ ] **CP18-D — dynamic integration:** give every canonical KA a real selector
6068
fixture and reachable production call path across the owning application
6169
subsystems; register all Layer-9/Layer-10 KAs and eliminate silent skips.
@@ -727,7 +735,7 @@ Details: `reports/production-readiness/2026/phase-15/deferred-gates.md`.
727735
| 15 | System qualification and release candidate | **Release-candidate engineering checkpoint complete 2026-07-14; installed/signed exit gates retained** |
728736
| 16 | Production documentation replacement and professional review dossier | **CP16-F replacement closure complete 2026-07-15; CP16-G exact-artifact binding and signed/manual/external exits retained** |
729737
| 17 | Documentation consolidation and release lock | **CP17-A through CP17-D complete 2026-07-15; CP17-E retained for clean signed installed walkthrough** |
730-
| 18 | Knowledge Algorithm production completion and dynamic integration | **Active; CP18-A/CP18-B passed 2026-07-25, CP18-C in progress** |
738+
| 18 | Knowledge Algorithm production completion and dynamic integration | **Active; CP18-A/CP18-B and CP18-C Batch 01 passed 2026-07-25, CP18-C in progress** |
731739
| 19 | Production launch and maintenance | Blocked by prior phases |
732740

733741
## Release blockers retained across phases
@@ -745,8 +753,9 @@ Details: `reports/production-readiness/2026/phase-15/deferred-gates.md`.
745753

746754
## Exact next action
747755

748-
Complete Phase 18 CP18-C against the approved 213-capability manifest: qualify
749-
the 132 existing implementations and build the 81 explicit gaps without
756+
Continue Phase 18 CP18-C against the approved 213-capability manifest. Batch 01
757+
qualified 11 existing implementations; qualify the remaining existing
758+
implementations and build the 81 explicit gaps without
750759
duplicate identities, private runtimes, placeholders, false effects, or
751760
capability loss. Every batch must add strict contracts, limits, failure
752761
semantics, authoritative service integration where applicable, and focused
Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,14 @@
11
{
2-
"backup_targets": ["postgresql", "redis", "elasticsearch", "s3_buckets"],
3-
"frequency": "daily",
4-
"retention_policy": "keep_last_30_days",
5-
"encryption_algorithm": "AES-256",
6-
"verification_enabled": true
2+
"backup_service": "managed_backup_service",
3+
"backup_targets": [
4+
"postgresql",
5+
"redis",
6+
"neo4j",
7+
"chroma",
8+
"object_store",
9+
"retained_files"
10+
],
11+
"encryption_required": true,
12+
"verification_required": true,
13+
"direct_execution": false
714
}
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
2-
"bus_type": "event_driven",
3-
"message_broker": "kafka_cluster",
2+
"bus_type": "postgresql_outbox_with_redis_materialization",
43
"topics": ["knowledge_updates", "system_events", "audit_logs"],
5-
"buffer_size": 1024,
6-
"reliable_delivery": true
4+
"max_message_size_bytes": 524288,
5+
"direct_publication": false,
6+
"authoritative_receipt_required": true
77
}
Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
{
2-
"broker_instance": "rabbitmq_cluster",
2+
"broker_instance": "postgresql_redis_job_coordinator",
33
"queues": {
4-
"high_priority": {"durable": true, "auto_delete": false},
4+
"high_priority": {"durable": true},
55
"background_tasks": {"durable": true}
66
},
7-
"max_message_size_kb": 512,
8-
"acknowledgment_mode": "manual_ack"
7+
"max_message_size_bytes": 524288,
8+
"acknowledgment_mode": "authoritative_receipt_required",
9+
"direct_enqueue": false
910
}
Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
{
2-
"profiling_modes": ["cpu", "memory", "latency", "call_graph"],
3-
"sampling_rate": 0.1,
4-
"max_depth": 20,
5-
"output_dir": "profiling/dumps/",
6-
"continuous_profiling": false
2+
"measurement_source": "caller_supplied_profiler_samples",
3+
"max_samples": 100000,
4+
"hidden_profiler_attachment": false,
5+
"profile_dump_created": false
76
}
Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
{
2-
"interactive_debugger": true,
3-
"remote_debugging_port": 5678,
4-
"stack_trace_depth": 50,
5-
"auto_capture_on_error": true,
6-
"snapshot_storage": "/tmp/debug_snapshots/"
2+
"capture_mode": "caller_supplied_redacted_diagnostics",
3+
"live_frame_introspection": false,
4+
"remote_debugging_enabled": false,
5+
"snapshot_persistence": false
76
}

0 commit comments

Comments
 (0)