onto-mcp 0.4.12 → 0.4.13

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 (128) hide show
  1. package/.onto/authority/core-lexicon.yaml +1 -1
  2. package/.onto/authority/supported-models.yaml +137 -0
  3. package/.onto/domains/accounting-kr/competency_qs.md +153 -153
  4. package/.onto/processes/reconstruct/obligation-coverage-ledger.yaml +842 -0
  5. package/.onto/processes/reconstruct/obligation-coverage-recorded.yaml +225 -0
  6. package/.onto/processes/reconstruct/ontology-seeding-and-maturation-design.md +93 -54
  7. package/.onto/processes/reconstruct/reconstruct-contract-registry.yaml +169 -8
  8. package/.onto/processes/reconstruct/reconstruct-execution-ux-contract.md +72 -1
  9. package/.onto/processes/reconstruct/source-profiles/spreadsheet.md +35 -0
  10. package/.onto/processes/review/productized-live-path.md +9 -5
  11. package/.onto/processes/review/prompt-execution-runner-contract.md +32 -8
  12. package/.onto/processes/review/review-target-profile-contract.md +47 -4
  13. package/.onto/processes/shared/pipeline-execution-ledger-contract.md +11 -0
  14. package/.onto/processes/shared/target-material-kind-contract.md +1 -1
  15. package/README.md +64 -1
  16. package/dist/cli.js +11 -1
  17. package/dist/core-api/reconstruct-api.js +575 -24
  18. package/dist/core-api/review-api.js +70 -5
  19. package/dist/core-api/review-progress.js +7 -0
  20. package/dist/core-api/runtime-observation.js +7 -0
  21. package/dist/core-runtime/artifact-io.js +75 -3
  22. package/dist/core-runtime/cli/claude-code-review-unit-executor.js +19 -8
  23. package/dist/core-runtime/cli/materialize-review-prompt-packets.js +68 -14
  24. package/dist/core-runtime/cli/prepare-review-session.js +34 -1
  25. package/dist/core-runtime/cli/render-review-final-output.js +2 -1
  26. package/dist/core-runtime/cli/run-review-prompt-execution.js +758 -48
  27. package/dist/core-runtime/cli/run-seats.js +18 -0
  28. package/dist/core-runtime/cli/runtime-submit-context.js +10 -2
  29. package/dist/core-runtime/cli/unit-resubmit.js +269 -0
  30. package/dist/core-runtime/cli/worker-structured-output.js +80 -2
  31. package/dist/core-runtime/discovery/host-detection.js +71 -22
  32. package/dist/core-runtime/discovery/review-cert-assemble.js +208 -0
  33. package/dist/core-runtime/discovery/review-cert-record.js +442 -0
  34. package/dist/core-runtime/discovery/review-execution-units.js +22 -0
  35. package/dist/core-runtime/discovery/seat-inventory.js +167 -0
  36. package/dist/core-runtime/discovery/settings-chain.js +311 -52
  37. package/dist/core-runtime/discovery/supported-models.js +282 -29
  38. package/dist/core-runtime/discovery/synthesize-cert-assemble.js +197 -0
  39. package/dist/core-runtime/discovery/synthesize-cert-capsule.js +399 -0
  40. package/dist/core-runtime/discovery/synthesize-cert-judge.js +340 -0
  41. package/dist/core-runtime/discovery/synthesize-cert-loop.js +234 -0
  42. package/dist/core-runtime/discovery/synthesize-cert-mutation.js +117 -0
  43. package/dist/core-runtime/discovery/synthesize-cert-packet.js +182 -0
  44. package/dist/core-runtime/discovery/synthesize-cert-record.js +831 -0
  45. package/dist/core-runtime/discovery/synthesize-cert-sampler.js +336 -0
  46. package/dist/core-runtime/effort-calibration-ingest.js +135 -0
  47. package/dist/core-runtime/llm/dispatch-breaker.js +412 -0
  48. package/dist/core-runtime/llm/dispatch-fallback-adapter-capabilities.js +33 -0
  49. package/dist/core-runtime/llm/llm-caller.js +188 -47
  50. package/dist/core-runtime/llm/mock-llm-realization.js +35 -4
  51. package/dist/core-runtime/llm/model-switcher.js +1 -1
  52. package/dist/core-runtime/llm/openai-responses-incomplete-error.js +46 -0
  53. package/dist/core-runtime/llm/sealed-dispatch-capability.js +359 -0
  54. package/dist/core-runtime/llm/structured-dispatch-error.js +15 -0
  55. package/dist/core-runtime/onboard/claude-profile-scan.js +65 -0
  56. package/dist/core-runtime/onboard/cli-host.js +5 -2
  57. package/dist/core-runtime/onboard/configure-provider.js +33 -1
  58. package/dist/core-runtime/onboard/host-target.js +28 -3
  59. package/dist/core-runtime/onboard/register.js +54 -12
  60. package/dist/core-runtime/pipeline-execution-ledger.js +10 -0
  61. package/dist/core-runtime/reconstruct/artifact-types.js +35 -0
  62. package/dist/core-runtime/reconstruct/claim-projection-validation.js +17 -0
  63. package/dist/core-runtime/reconstruct/competency-projection-contract.js +63 -0
  64. package/dist/core-runtime/reconstruct/comprehension-artifact.js +321 -0
  65. package/dist/core-runtime/reconstruct/comprehension-reduce.js +367 -0
  66. package/dist/core-runtime/reconstruct/comprehension-semantic-map.js +771 -0
  67. package/dist/core-runtime/reconstruct/contract-registry.js +20 -0
  68. package/dist/core-runtime/reconstruct/dispatch-fallback-artifacts.js +640 -0
  69. package/dist/core-runtime/reconstruct/execution-telemetry.js +83 -9
  70. package/dist/core-runtime/reconstruct/final-output-sections.js +89 -0
  71. package/dist/core-runtime/reconstruct/governing-snapshot.js +36 -1
  72. package/dist/core-runtime/reconstruct/leaf-reader.js +305 -0
  73. package/dist/core-runtime/reconstruct/llm-dispatch-failure.js +270 -0
  74. package/dist/core-runtime/reconstruct/llm-touch-fingerprint.js +94 -0
  75. package/dist/core-runtime/reconstruct/material-admission-validation.js +18 -0
  76. package/dist/core-runtime/reconstruct/material-profile-validation.js +14 -0
  77. package/dist/core-runtime/reconstruct/materialize-preparation.js +304 -18
  78. package/dist/core-runtime/reconstruct/maturation-validation.js +1231 -53
  79. package/dist/core-runtime/reconstruct/mock-llm-realization.js +107 -3
  80. package/dist/core-runtime/reconstruct/obligation-assertion.js +18 -0
  81. package/dist/core-runtime/reconstruct/ontology-seed-validation.js +27 -0
  82. package/dist/core-runtime/reconstruct/output-budget.js +6 -0
  83. package/dist/core-runtime/reconstruct/pipeline-execution-ledger.js +87 -3
  84. package/dist/core-runtime/reconstruct/post-seed-validation.js +118 -5
  85. package/dist/core-runtime/reconstruct/purpose-authority-validation.js +117 -2
  86. package/dist/core-runtime/reconstruct/record.js +42 -0
  87. package/dist/core-runtime/reconstruct/registry-verification-validation.js +16 -0
  88. package/dist/core-runtime/reconstruct/run-control-validation.js +1011 -34
  89. package/dist/core-runtime/reconstruct/run.js +5198 -536
  90. package/dist/core-runtime/reconstruct/seed-authoring-readiness-validation.js +54 -3
  91. package/dist/core-runtime/reconstruct/semantic-quality-gate.js +105 -2
  92. package/dist/core-runtime/reconstruct/source-observation-delta-validation.js +41 -0
  93. package/dist/core-runtime/reconstruct/source-observations.js +166 -0
  94. package/dist/core-runtime/reconstruct/source-safety-validation.js +71 -183
  95. package/dist/core-runtime/reconstruct/source-scout-pack-validation.js +37 -1
  96. package/dist/core-runtime/reconstruct/terminal-validation.js +132 -2
  97. package/dist/core-runtime/review/continuation-plan.js +12 -5
  98. package/dist/core-runtime/review/issue-artifact-runtime.js +4 -1
  99. package/dist/core-runtime/review/materializers.js +100 -11
  100. package/dist/core-runtime/review/nesting-batch.js +6 -2
  101. package/dist/core-runtime/review/obligation-shardability.js +138 -0
  102. package/dist/core-runtime/review/pipeline-execution-ledger.js +42 -2
  103. package/dist/core-runtime/review/review-artifact-utils.js +217 -5
  104. package/dist/core-runtime/review/review-execution-steps.js +32 -8
  105. package/dist/core-runtime/review/review-progress-contract.js +8 -0
  106. package/dist/core-runtime/review/review-prompt-budget.js +97 -0
  107. package/dist/core-runtime/review/semantic-quality-gate.js +33 -7
  108. package/dist/core-runtime/review/spreadsheet-review-disposition.js +94 -0
  109. package/dist/core-runtime/route-identity.js +182 -0
  110. package/dist/core-runtime/spreadsheet-header-escalation.js +204 -0
  111. package/dist/core-runtime/spreadsheet-structure-observer.js +2689 -0
  112. package/dist/core-runtime/target-material-kind.js +58 -0
  113. package/dist/mcp/server.js +12 -5
  114. package/dist/tui/app.js +167 -0
  115. package/dist/tui/data/event-follower.js +116 -0
  116. package/dist/tui/data/node-detail.js +42 -0
  117. package/dist/tui/data/projection-poll.js +26 -0
  118. package/dist/tui/data/session-discovery.js +65 -0
  119. package/dist/tui/index.js +108 -0
  120. package/dist/tui/screens/log.js +25 -0
  121. package/dist/tui/screens/node-detail.js +17 -0
  122. package/dist/tui/screens/session-selector.js +26 -0
  123. package/dist/tui/screens/workflow-tree.js +90 -0
  124. package/dist/tui/view-model/reconstruct-adapter.js +162 -0
  125. package/dist/tui/view-model/review-adapter.js +270 -0
  126. package/dist/tui/view-model/tree-view-model.js +19 -0
  127. package/package.json +18 -3
  128. package/settings.example.json +77 -16
@@ -1088,7 +1088,7 @@ terms:
1088
1088
  korean_label: "소스 안전성 권한"
1089
1089
  axis: "reconstruct_source"
1090
1090
  term_status: "active"
1091
- definition: "Runtime authority for lifecycle, authorization, privacy, redaction, proof-sufficiency, replay, and consumption visibility of observed source records."
1091
+ definition: "Runtime authority for lifecycle, authorization, proof-sufficiency, replay, and consumption visibility of observed source records."
1092
1092
  notes:
1093
1093
  - "Consumption-specific rows distinguish prompt context, evidence support, public output, replay, and material claim use."
1094
1094
  - term_id: "reconstruct_run_control"
@@ -14,6 +14,10 @@
14
14
  # To add a model: run the benchmark, confirm a completed run, then add an entry
15
15
  # citing the benchmark record under benchmark_evidence_refs. Curated by humans;
16
16
  # the citation is the evidence, the entry is the authority.
17
+ #
18
+ # Optional model specification values are G4-protected and independently cite
19
+ # their published source: context_window_tokens scales reconstruct document
20
+ # projection; max_output_tokens bounds direct-API output headroom preflight.
17
21
  schema_version: "1"
18
22
  supported_models:
19
23
  - provider: openai
@@ -25,6 +29,16 @@ supported_models:
25
29
  Completed a full reconstruct pipeline run in the live medium baseline
26
30
  (1 of 6 attempts completed end to end); support verified. Performance
27
31
  evidence is PRELIMINARY in that record — support, not a performance claim.
32
+ context_window_tokens: 1050000
33
+ context_window_provenance: >-
34
+ OpenAI API model reference (developers.openai.com/api/docs/models/gpt-5.5,
35
+ retrieved 2026-06-17): 1,050,000-token context window, 128,000 max output
36
+ tokens. Cost note: inputs above 272,000 tokens incur 2x input / 1.5x
37
+ output pricing for the session.
38
+ max_output_tokens: 128000
39
+ max_output_tokens_provenance: >-
40
+ OpenAI API model reference (developers.openai.com/api/docs/models/gpt-5.5,
41
+ retrieved 2026-07-11): 128,000 maximum output tokens.
28
42
  - provider: anthropic
29
43
  model: claude-opus-4-8
30
44
  verified_at: "2026-06-15"
@@ -41,3 +55,126 @@ supported_models:
41
55
  (no unencoded env override required). Single-run completion proof
42
56
  (PRELIMINARY for any performance claim, INV-BENCH-1 needs >=3 reps /
43
57
  >=2 fixtures); support — model completes the pipeline — verified.
58
+ context_window_tokens: 1000000
59
+ context_window_provenance: >-
60
+ Anthropic model reference (platform.claude.com models overview): Claude
61
+ Opus 4.8 ships a 1,000,000-token (1M) context window.
62
+ - provider: anthropic
63
+ model: claude-sonnet-5
64
+ verified_at: "2026-07-08"
65
+ roles:
66
+ - semantic_map_synthesize
67
+ benchmark_evidence_refs:
68
+ - development-records/benchmark/synthesize-cert/20260708-sonnet5-live/synthesize-cert-record.json
69
+ - development-records/benchmark/synthesize-cert/20260708-sonnet5-live/rejudge-comparison.json
70
+ - development-records/benchmark/synthesize-cert/20260708-sonnet5-live/structured-grounding-comparison.json
71
+ notes: >-
72
+ Role-scoped certification for `semantic_map_synthesize` (INV-MODEL-1 B4).
73
+ Verified via the synthesize-cert/v1 live benchmark (3 reps x 2 fixtures =
74
+ 90 rows/arm) run with extended thinking DISABLED — the exact config the
75
+ record certifies (thinking:{type:"disabled"}; see scripts/b4-cert-run.mts
76
+ CANDIDATE). Support: the candidate arm completed the synthesize pipeline
77
+ end to end (candidate_output_status=ok for all 90 rows) and the cited
78
+ record recomputes to zero validateSynthesizeCertRecord violations. Quality
79
+ gate — candidate>=baseline on BOTH gated metrics: the raw original judge
80
+ (gpt-5.5) showed candidate grounding 89/90 vs baseline 90/90, but that is a
81
+ same-family judge bias (judge model == baseline model); a neutral
82
+ cross-family opus rejudge flips it to 90/90
83
+ (rejudge-comparison.json: metric_regression_flip.grounding.flipped=true)
84
+ and the domain-agnostic deterministic structural grounding is candidate
85
+ 89/89 = baseline (structured-grounding-comparison.json), with zero real
86
+ fabrications in the candidate arm. Boundary is candidate 90/90 = baseline,
87
+ including 30/30 on the merge stratum — the exact point where the earlier
88
+ claude-haiku-4-5 candidate fell short (3/90). Support and the
89
+ candidate>=baseline gate — verified; PRELIMINARY for any absolute
90
+ performance claim beyond the candidate>=baseline comparison.
91
+ - provider: anthropic
92
+ model: claude-fable-5
93
+ verified_at: "2026-07-13"
94
+ roles:
95
+ - review
96
+ benchmark_evidence_refs:
97
+ - development-records/benchmark/review-cert/20260712-215835/review-cert-record.json
98
+ notes: >-
99
+ Role-scoped certification for `review` (INV-MODEL-1 review-role
100
+ registration design §4; review-cert/v2 resubmit-enabled contract).
101
+ Verified via the two-arm live cert run 20260712-215835: contemporaneous
102
+ registry-anchored baseline gpt-5.5@medium vs candidate
103
+ claude-fable-5@medium on the claude OAuth CLI route, 3 reps × 2 fixtures
104
+ per arm, run_controls {salvage:false, resubmit:true} pinned in-record.
105
+ Support: all four arm×fixture keys at 3/3 completed reps; the cited
106
+ record recomputes to zero validateReviewCertRecord violations; the
107
+ arm-level dispatch witness held (declared == witnessed; 239 baseline /
108
+ 603 candidate worker dispatches). Quality gate: quality_pass=true —
109
+ candidate >= baseline on all 24 fixture×check pass-rates (22 equal incl.
110
+ the decisive recall spine at 1.0; 2 above baseline:
111
+ review-pipeline-target-v1 false_materiality_guard and
112
+ boundary_uncertainty_preservation 0.667 -> 1.0; zero regressions).
113
+ resubmit_usage disclosure: candidate 12/218 units (5.5%) vs baseline
114
+ 8/168 (4.8%) — symmetric, no disproportionate healing dependence. All 21
115
+ not_run rows in the run are environmental (codex 401 token revocation /
116
+ claude monthly spend limit), zero candidate capability failures — run
117
+ README carries the honest provenance. Support and the
118
+ candidate>=baseline gate — verified; PRELIMINARY for any absolute
119
+ performance claim beyond the candidate>=baseline comparison.
120
+ - provider: openai
121
+ model: gpt-5.6-sol
122
+ verified_at: "2026-07-13"
123
+ roles:
124
+ - review
125
+ benchmark_evidence_refs:
126
+ - development-records/benchmark/review-cert/20260713-095011/review-cert-record.json
127
+ notes: >-
128
+ Role-scoped certification for `review` (INV-MODEL-1 review-role
129
+ registration design §4; review-cert/v2 resubmit-enabled contract) at
130
+ reasoning_effort=medium via the codex OAuth route. Verified via the
131
+ two-arm live cert run 20260713-095011: contemporaneous registry-anchored
132
+ baseline gpt-5.5@medium vs candidate gpt-5.6-sol@medium, 3 reps × 2
133
+ fixtures per arm, run_controls {salvage:false, resubmit:true} pinned
134
+ in-record. Support: all four arm×fixture keys at 3/3 completed reps; the
135
+ cited record recomputes to zero validateReviewCertRecord violations; the
136
+ arm-level dispatch witness held (declared == witnessed at
137
+ reasoning_effort=medium; 130 baseline / 216 candidate worker dispatches).
138
+ Quality gate: quality_pass=true — candidate >= baseline on all 24
139
+ fixture×check pass-rates (20 equal incl. the decisive recall spine at 1.0;
140
+ 4 above baseline: false_materiality_guard and
141
+ boundary_uncertainty_preservation on BOTH fixtures 0.667 -> 1.0; zero
142
+ regressions). This medium-effort config passes the guard axis that the
143
+ earlier gpt-5.6-sol@high attempt (../20260711-140727, a support-axis
144
+ FAILURE) could not reach. resubmit_usage disclosure: candidate 2/186
145
+ units (1.1%) vs baseline 3/138 (2.2%). One not_run row (a single
146
+ non-recurring deliberation-participant degradation, r2) — see run README.
147
+ Support and the candidate>=baseline gate — verified; PRELIMINARY for any
148
+ absolute performance claim beyond the candidate>=baseline comparison.
149
+ - provider: openai
150
+ model: gpt-5.6-luna
151
+ verified_at: "2026-07-11"
152
+ roles:
153
+ - semantic_map_synthesize
154
+ benchmark_evidence_refs:
155
+ - development-records/benchmark/synthesize-cert/20260711-010535/synthesize-cert-record.json
156
+ - development-records/benchmark/synthesize-cert/20260711-010535/rejudge-comparison.json
157
+ notes: >-
158
+ Role-scoped certification for `semantic_map_synthesize` (INV-MODEL-1 B4).
159
+ Verified via the synthesize-cert/v1 live benchmark (3 reps x 2 fixtures =
160
+ 90 rows/arm; the SAME two fixture workbooks as the 20260708 sonnet-5 cert,
161
+ fixture ids match by content sha) with the candidate dispatched at
162
+ reasoning_effort=low via the codex OAuth route — and, first for this
163
+ registry, the certified dispatch is WITNESSED, not merely declared: the
164
+ record's arm_dispatch is projected from the run's live-call capture and a
165
+ declared-vs-witnessed guard held on both the fresh run and the rejudge
166
+ (effort-witness design 2026-07-10/11), so "low" is the dispatched effort,
167
+ not a host-TOML inherit. Support: the candidate arm completed the
168
+ synthesize pipeline (89/90 rows ok; 1 transport not_run, an honestly
169
+ recorded non-decisive loss) and the cited record recomputes to zero
170
+ validateSynthesizeCertRecord violations. Quality gate —
171
+ candidate>=baseline on BOTH gated metrics under BOTH judges: original
172
+ judge gpt-5.5 (same-family-as-candidate) grounding 89/89 vs baseline
173
+ 88/89 and boundary 89/89 = baseline; neutral cross-family opus rejudge
174
+ grounding 1.0 = baseline and boundary 1.0 = baseline with NO
175
+ metric_regression_flip in either direction (rejudge-comparison.json),
176
+ including the merge stratum where the earlier claude-haiku-4-5 candidate
177
+ fell short. The negative-control arm degrades as designed (grounding
178
+ 0.111 original / 0.578 opus) — the gated metrics are non-vacuous.
179
+ Support and the candidate>=baseline gate — verified; PRELIMINARY for any
180
+ absolute performance claim beyond the candidate>=baseline comparison.