b3-prosaic-runtime 0.9.1__tar.gz
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.
- b3_prosaic_runtime-0.9.1/CHANGELOG.md +209 -0
- b3_prosaic_runtime-0.9.1/LICENSE +202 -0
- b3_prosaic_runtime-0.9.1/LICENSE-MIT +21 -0
- b3_prosaic_runtime-0.9.1/MANIFEST.in +24 -0
- b3_prosaic_runtime-0.9.1/NOTICE.md +16 -0
- b3_prosaic_runtime-0.9.1/PKG-INFO +655 -0
- b3_prosaic_runtime-0.9.1/README.md +633 -0
- b3_prosaic_runtime-0.9.1/docs/accounting.md +105 -0
- b3_prosaic_runtime-0.9.1/docs/adr-cli-sandbox.md +73 -0
- b3_prosaic_runtime-0.9.1/docs/cli-tools.md +368 -0
- b3_prosaic_runtime-0.9.1/docs/conformance.md +123 -0
- b3_prosaic_runtime-0.9.1/docs/conversations.md +84 -0
- b3_prosaic_runtime-0.9.1/docs/package-index.md +132 -0
- b3_prosaic_runtime-0.9.1/docs/production-acceptance.md +100 -0
- b3_prosaic_runtime-0.9.1/docs/release-0.7.1.md +22 -0
- b3_prosaic_runtime-0.9.1/docs/security.md +197 -0
- b3_prosaic_runtime-0.9.1/docs/structured-tools.md +91 -0
- b3_prosaic_runtime-0.9.1/docs/telemetry.md +77 -0
- b3_prosaic_runtime-0.9.1/docs/tool-effects.md +114 -0
- b3_prosaic_runtime-0.9.1/docs/workflow-factory-runtime-implementation.md +53 -0
- b3_prosaic_runtime-0.9.1/examples/.prosaic/subagents/acquire-pilot.md +13 -0
- b3_prosaic_runtime-0.9.1/examples/.prosaic/subagents/acquired-reviewer.md +15 -0
- b3_prosaic_runtime-0.9.1/examples/.prosaic/subagents/catalog-reader.md +17 -0
- b3_prosaic_runtime-0.9.1/examples/.prosaic/subagents/cli-spec-reviewer.md +18 -0
- b3_prosaic_runtime-0.9.1/examples/.prosaic/subagents/launch-analyst.md +24 -0
- b3_prosaic_runtime-0.9.1/examples/.prosaic/subagents/launch-briefer.md +19 -0
- b3_prosaic_runtime-0.9.1/examples/.prosaic/subagents/launch-decision.md +25 -0
- b3_prosaic_runtime-0.9.1/examples/.prosaic/subagents/launch-skeptic.md +25 -0
- b3_prosaic_runtime-0.9.1/examples/.prosaic/subagents/native-summarizer.md +10 -0
- b3_prosaic_runtime-0.9.1/examples/.prosaic/subagents/preloaded-reviewer.md +15 -0
- b3_prosaic_runtime-0.9.1/examples/.prosaic/subagents/reviewer.md +22 -0
- b3_prosaic_runtime-0.9.1/examples/.prosaic/subagents/summarizer.md +11 -0
- b3_prosaic_runtime-0.9.1/examples/.prosaic/tools/analyze-spec.yml +20 -0
- b3_prosaic_runtime-0.9.1/examples/README.md +519 -0
- b3_prosaic_runtime-0.9.1/examples/anthropic.yml +18 -0
- b3_prosaic_runtime-0.9.1/examples/catalog.json +1 -0
- b3_prosaic_runtime-0.9.1/examples/catalog_tools.py +38 -0
- b3_prosaic_runtime-0.9.1/examples/cli-tool/prosaic_example_analyzer.py +37 -0
- b3_prosaic_runtime-0.9.1/examples/cli-tool/pyproject.toml +16 -0
- b3_prosaic_runtime-0.9.1/examples/cli-tools-sandboxed.yml +19 -0
- b3_prosaic_runtime-0.9.1/examples/cli-tools.yml +23 -0
- b3_prosaic_runtime-0.9.1/examples/custom-tools.yml +20 -0
- b3_prosaic_runtime-0.9.1/examples/evidence/launch/brief.md +183 -0
- b3_prosaic_runtime-0.9.1/examples/evidence/launch/field-notes.md +186 -0
- b3_prosaic_runtime-0.9.1/examples/evidence/launch/metrics.md +184 -0
- b3_prosaic_runtime-0.9.1/examples/evidence/pilot.md +7 -0
- b3_prosaic_runtime-0.9.1/examples/evidence/requirements.md +7 -0
- b3_prosaic_runtime-0.9.1/examples/prosaic-runtime.yaml +18 -0
- b3_prosaic_runtime-0.9.1/examples/run_acquisition.py +52 -0
- b3_prosaic_runtime-0.9.1/examples/run_cli_tool.py +47 -0
- b3_prosaic_runtime-0.9.1/examples/run_custom_tool.py +48 -0
- b3_prosaic_runtime-0.9.1/examples/run_examples.py +79 -0
- b3_prosaic_runtime-0.9.1/examples/run_sandbox_probe.py +117 -0
- b3_prosaic_runtime-0.9.1/examples/run_tiers.py +97 -0
- b3_prosaic_runtime-0.9.1/examples/tokenproxy.yml +43 -0
- b3_prosaic_runtime-0.9.1/examples/understanding/.prosaic/subagents/reviewer.md +17 -0
- b3_prosaic_runtime-0.9.1/examples/understanding/.prosaic/tools/understanding.yml +20 -0
- b3_prosaic_runtime-0.9.1/examples/understanding/runtime.yml +12 -0
- b3_prosaic_runtime-0.9.1/examples/with-tools.yml +18 -0
- b3_prosaic_runtime-0.9.1/pyproject.toml +34 -0
- b3_prosaic_runtime-0.9.1/scripts/conversation_wheel_smoke.py +114 -0
- b3_prosaic_runtime-0.9.1/scripts/production_wheel_smoke.py +246 -0
- b3_prosaic_runtime-0.9.1/scripts/release_artifacts.py +592 -0
- b3_prosaic_runtime-0.9.1/scripts/wheel_smoke.py +54 -0
- b3_prosaic_runtime-0.9.1/setup.cfg +4 -0
- b3_prosaic_runtime-0.9.1/src/b3_prosaic_runtime.egg-info/PKG-INFO +655 -0
- b3_prosaic_runtime-0.9.1/src/b3_prosaic_runtime.egg-info/SOURCES.txt +159 -0
- b3_prosaic_runtime-0.9.1/src/b3_prosaic_runtime.egg-info/dependency_links.txt +1 -0
- b3_prosaic_runtime-0.9.1/src/b3_prosaic_runtime.egg-info/entry_points.txt +2 -0
- b3_prosaic_runtime-0.9.1/src/b3_prosaic_runtime.egg-info/requires.txt +10 -0
- b3_prosaic_runtime-0.9.1/src/b3_prosaic_runtime.egg-info/top_level.txt +1 -0
- b3_prosaic_runtime-0.9.1/src/prosaic_runtime/__init__.py +35 -0
- b3_prosaic_runtime-0.9.1/src/prosaic_runtime/accounting.py +256 -0
- b3_prosaic_runtime-0.9.1/src/prosaic_runtime/accounting_capture.py +281 -0
- b3_prosaic_runtime-0.9.1/src/prosaic_runtime/adapter.py +200 -0
- b3_prosaic_runtime-0.9.1/src/prosaic_runtime/admission.py +57 -0
- b3_prosaic_runtime-0.9.1/src/prosaic_runtime/anthropic.py +219 -0
- b3_prosaic_runtime-0.9.1/src/prosaic_runtime/anthropic_stream.py +179 -0
- b3_prosaic_runtime-0.9.1/src/prosaic_runtime/anthropic_usage.py +96 -0
- b3_prosaic_runtime-0.9.1/src/prosaic_runtime/artifacts.py +56 -0
- b3_prosaic_runtime-0.9.1/src/prosaic_runtime/budgets.py +67 -0
- b3_prosaic_runtime-0.9.1/src/prosaic_runtime/cli.py +153 -0
- b3_prosaic_runtime-0.9.1/src/prosaic_runtime/cli_tools.py +313 -0
- b3_prosaic_runtime-0.9.1/src/prosaic_runtime/config.py +127 -0
- b3_prosaic_runtime-0.9.1/src/prosaic_runtime/conformance.py +314 -0
- b3_prosaic_runtime-0.9.1/src/prosaic_runtime/console.py +37 -0
- b3_prosaic_runtime-0.9.1/src/prosaic_runtime/conversation.py +327 -0
- b3_prosaic_runtime-0.9.1/src/prosaic_runtime/conversation_preparation.py +224 -0
- b3_prosaic_runtime-0.9.1/src/prosaic_runtime/diagnostics.py +132 -0
- b3_prosaic_runtime-0.9.1/src/prosaic_runtime/events.py +56 -0
- b3_prosaic_runtime-0.9.1/src/prosaic_runtime/execution.py +461 -0
- b3_prosaic_runtime-0.9.1/src/prosaic_runtime/http_bounds.py +66 -0
- b3_prosaic_runtime-0.9.1/src/prosaic_runtime/openai_compatible.py +2415 -0
- b3_prosaic_runtime-0.9.1/src/prosaic_runtime/openai_compatible_compaction.py +219 -0
- b3_prosaic_runtime-0.9.1/src/prosaic_runtime/openai_compatible_filters.py +147 -0
- b3_prosaic_runtime-0.9.1/src/prosaic_runtime/openai_compatible_progress.py +405 -0
- b3_prosaic_runtime-0.9.1/src/prosaic_runtime/openai_compatible_transcript.py +79 -0
- b3_prosaic_runtime-0.9.1/src/prosaic_runtime/operation_context.py +39 -0
- b3_prosaic_runtime-0.9.1/src/prosaic_runtime/policy.py +50 -0
- b3_prosaic_runtime-0.9.1/src/prosaic_runtime/provider_types.py +19 -0
- b3_prosaic_runtime-0.9.1/src/prosaic_runtime/runtime.py +713 -0
- b3_prosaic_runtime-0.9.1/src/prosaic_runtime/sandbox.py +179 -0
- b3_prosaic_runtime-0.9.1/src/prosaic_runtime/smoke_prose/pilot.md +7 -0
- b3_prosaic_runtime-0.9.1/src/prosaic_runtime/smoke_prose/subagents/native-summarizer.md +10 -0
- b3_prosaic_runtime-0.9.1/src/prosaic_runtime/smoke_prose/subagents/reviewer.md +22 -0
- b3_prosaic_runtime-0.9.1/src/prosaic_runtime/smoke_prose/subagents/summarizer.md +11 -0
- b3_prosaic_runtime-0.9.1/src/prosaic_runtime/structured_tools.py +193 -0
- b3_prosaic_runtime-0.9.1/src/prosaic_runtime/telemetry.py +128 -0
- b3_prosaic_runtime-0.9.1/src/prosaic_runtime/tool_effects.py +112 -0
- b3_prosaic_runtime-0.9.1/src/prosaic_runtime/tool_registry.py +87 -0
- b3_prosaic_runtime-0.9.1/src/prosaic_runtime/tools.py +284 -0
- b3_prosaic_runtime-0.9.1/src/prosaic_runtime/turn_capture.py +237 -0
- b3_prosaic_runtime-0.9.1/src/prosaic_runtime/types.py +23 -0
- b3_prosaic_runtime-0.9.1/tests/support/conversation_server.py +174 -0
- b3_prosaic_runtime-0.9.1/tests/support/tool_journal.py +50 -0
- b3_prosaic_runtime-0.9.1/tests/test_accounting.py +213 -0
- b3_prosaic_runtime-0.9.1/tests/test_acquisition.py +193 -0
- b3_prosaic_runtime-0.9.1/tests/test_anthropic.py +249 -0
- b3_prosaic_runtime-0.9.1/tests/test_anthropic_accounting.py +265 -0
- b3_prosaic_runtime-0.9.1/tests/test_anthropic_package.py +78 -0
- b3_prosaic_runtime-0.9.1/tests/test_anthropic_stream.py +233 -0
- b3_prosaic_runtime-0.9.1/tests/test_artifact_admission.py +170 -0
- b3_prosaic_runtime-0.9.1/tests/test_cli_sandbox.py +277 -0
- b3_prosaic_runtime-0.9.1/tests/test_cli_tool_example.py +48 -0
- b3_prosaic_runtime-0.9.1/tests/test_cli_tools.py +193 -0
- b3_prosaic_runtime-0.9.1/tests/test_cli_tools_boundaries.py +125 -0
- b3_prosaic_runtime-0.9.1/tests/test_config.py +73 -0
- b3_prosaic_runtime-0.9.1/tests/test_conformance.py +419 -0
- b3_prosaic_runtime-0.9.1/tests/test_conversation_bounds.py +94 -0
- b3_prosaic_runtime-0.9.1/tests/test_conversation_contracts.py +232 -0
- b3_prosaic_runtime-0.9.1/tests/test_conversation_distribution.py +18 -0
- b3_prosaic_runtime-0.9.1/tests/test_conversation_failure_evidence.py +307 -0
- b3_prosaic_runtime-0.9.1/tests/test_conversation_review_regressions.py +152 -0
- b3_prosaic_runtime-0.9.1/tests/test_conversation_tool_batches.py +225 -0
- b3_prosaic_runtime-0.9.1/tests/test_conversation_turns.py +132 -0
- b3_prosaic_runtime-0.9.1/tests/test_custom_tool_example.py +73 -0
- b3_prosaic_runtime-0.9.1/tests/test_custom_tool_transport.py +206 -0
- b3_prosaic_runtime-0.9.1/tests/test_custom_tools.py +166 -0
- b3_prosaic_runtime-0.9.1/tests/test_distribution_metadata.py +92 -0
- b3_prosaic_runtime-0.9.1/tests/test_features.py +245 -0
- b3_prosaic_runtime-0.9.1/tests/test_http_boundaries.py +246 -0
- b3_prosaic_runtime-0.9.1/tests/test_input_boundary.py +12 -0
- b3_prosaic_runtime-0.9.1/tests/test_invocation_budgets.py +518 -0
- b3_prosaic_runtime-0.9.1/tests/test_package_compatibility.py +46 -0
- b3_prosaic_runtime-0.9.1/tests/test_production_smoke.py +75 -0
- b3_prosaic_runtime-0.9.1/tests/test_prompt_injection.py +106 -0
- b3_prosaic_runtime-0.9.1/tests/test_provider_execution.py +14 -0
- b3_prosaic_runtime-0.9.1/tests/test_read_provenance.py +82 -0
- b3_prosaic_runtime-0.9.1/tests/test_redirect_safety.py +48 -0
- b3_prosaic_runtime-0.9.1/tests/test_release_artifacts.py +528 -0
- b3_prosaic_runtime-0.9.1/tests/test_run_adapter.py +126 -0
- b3_prosaic_runtime-0.9.1/tests/test_runtime.py +278 -0
- b3_prosaic_runtime-0.9.1/tests/test_sample_program.py +52 -0
- b3_prosaic_runtime-0.9.1/tests/test_sandbox_probe_example.py +80 -0
- b3_prosaic_runtime-0.9.1/tests/test_structured_tools.py +211 -0
- b3_prosaic_runtime-0.9.1/tests/test_telemetry.py +289 -0
- b3_prosaic_runtime-0.9.1/tests/test_tier_examples.py +93 -0
- b3_prosaic_runtime-0.9.1/tests/test_tool_effect_workers.py +53 -0
- b3_prosaic_runtime-0.9.1/tests/test_tool_effects.py +468 -0
- b3_prosaic_runtime-0.9.1/tests/test_transport.py +1282 -0
- b3_prosaic_runtime-0.9.1/tests/test_usage_integrity.py +48 -0
|
@@ -0,0 +1,209 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
## 0.9.1 — 2026-10-13
|
|
4
|
+
|
|
5
|
+
- Add versioned `RuntimeAdapter` for trusted host projections and normalization
|
|
6
|
+
around an unmodified Runtime. Execution callbacks can only reduce authority.
|
|
7
|
+
- Share deadline, request/tool allowances and reported-token evidence across all
|
|
8
|
+
adapter attempts; preserve known partial and unknown usage and callback failures.
|
|
9
|
+
- Ordinary execution, conversation APIs, accounting and PostgreSQL remain unchanged.
|
|
10
|
+
- Publish only the SDK distribution; retain adapter compatibility qualification.
|
|
11
|
+
|
|
12
|
+
## Unreleased historical candidates
|
|
13
|
+
|
|
14
|
+
- Prepare Runtime 0.8.1 and the paired PostgreSQL recorder 0.2.1 patch candidates.
|
|
15
|
+
- Recheck cancellation and absolute deadlines after observer/accounting preparation,
|
|
16
|
+
immediately before dispatch. Count provider requests only at actual attempts.
|
|
17
|
+
- Bound JSON and SSE reads by the absolute execution deadline and preserve usage
|
|
18
|
+
already observed before cancellation, timeout or a later preparation failure.
|
|
19
|
+
|
|
20
|
+
## 0.8.0 — 2026-10-10
|
|
21
|
+
|
|
22
|
+
- Rename the distribution to `b3-prosaic-runtime` with the index dependency
|
|
23
|
+
`b3-prosaic>=0.4,<0.5`; Python imports and the `prosaic-runtime` CLI stay unchanged.
|
|
24
|
+
- Rename the separate PostgreSQL recorder to `b3-prosaic-runtime-postgres` 0.2.0,
|
|
25
|
+
selecting Runtime 0.8.x. Include local Apache license and provenance notices.
|
|
26
|
+
- Export source versions and qualify clean Git archive wheels/sdists with matching
|
|
27
|
+
metadata, source payloads, license files and installed import ownership.
|
|
28
|
+
- Migrate using a fresh environment or image: legacy and renamed distributions
|
|
29
|
+
share import paths. Candidate artifacts remain unpublished until qualification.
|
|
30
|
+
|
|
31
|
+
## 0.7.1 — 2026-10-10
|
|
32
|
+
|
|
33
|
+
- Export validate_execution_artifact, validate_custom_tools and custom_descriptors
|
|
34
|
+
for pure admission without model calls or CLI discovery.
|
|
35
|
+
- Reuse execution validation for effort, routing and selected-provider controls,
|
|
36
|
+
including acquisition inheritance of the final agent's execution context.
|
|
37
|
+
- Pin Prosaic 0.3.2 with the public canonical artifact-definition validator.
|
|
38
|
+
|
|
39
|
+
## 0.7.0 — 2026-10-09
|
|
40
|
+
|
|
41
|
+
- Ship recorder adapter 0.1.1 with read-only catalog/type/constraint/grant readiness
|
|
42
|
+
checks; incompatible schema or missing runtime privileges fail before dispatch.
|
|
43
|
+
|
|
44
|
+
- Native Anthropic Messages profiles support text, streaming, and Runtime-managed
|
|
45
|
+
builtin, custom, and CLI tools through the shared bounded execution loop.
|
|
46
|
+
Existing profiles continue to default to OpenAI-compatible Chat Completions.
|
|
47
|
+
- Anthropic usage capture handles cumulative SSE snapshots and distinct cache
|
|
48
|
+
categories. Cache-write and unsupported pricing categories remain unpriced;
|
|
49
|
+
conflicting or partial evidence cannot produce a trusted cost estimate.
|
|
50
|
+
- Anthropic supports `temperature: null` to omit sampling parameters; unsupported
|
|
51
|
+
effort, thinking, JSON mode, and server tools fail explicitly. Durable CLI
|
|
52
|
+
accounting accepts `--accounting-provider anthropic`.
|
|
53
|
+
|
|
54
|
+
## 0.6.0 — 2026-10-08
|
|
55
|
+
|
|
56
|
+
- Optional trusted execution context records customer/account, user/project and
|
|
57
|
+
workflow lineage; omitted IDs resolve to configured defaults or `default`.
|
|
58
|
+
Existing unmetered SDK/CLI calls and serialized Result fields remain compatible.
|
|
59
|
+
- Per-provider-call accounting captures UTC timestamps, requested/reported model
|
|
60
|
+
and input/output/cache/reasoning token usage across HTTP, SSE and tool loops.
|
|
61
|
+
Unknown/partial evidence is retained; duplicate-key/conflicting usage is quarantined.
|
|
62
|
+
- Separate `prosaic-runtime-postgres` 0.1.0 adapter persists intent before dispatch,
|
|
63
|
+
immutable scoped observations and decimal cost estimates with frozen rate cards.
|
|
64
|
+
Replay is idempotent, queries are bounded and reporting uses a consistent snapshot.
|
|
65
|
+
- Recorder failure never automatically retries a paid model request. Accounting
|
|
66
|
+
remains opt-in; customer charging, billing export and monetary caps are not enabled.
|
|
67
|
+
|
|
68
|
+
## 0.5.3 — 2026-10-07
|
|
69
|
+
|
|
70
|
+
- Pin Python Prosaic 0.3.1 at immutable commit
|
|
71
|
+
`ee145ef29a62dbcf7f5e8abdf1d979749398718d` and refresh installation guidance.
|
|
72
|
+
|
|
73
|
+
## 0.5.2 — 2026-10-07
|
|
74
|
+
|
|
75
|
+
- Public `StructuredToolLoop` for explicitly selected JSON tool-request transport:
|
|
76
|
+
closed envelopes, registered-tool authorization, bounded history/deadlines,
|
|
77
|
+
correction and repeated-call detection. Final domain admission remains host-owned;
|
|
78
|
+
native calling remains a separate explicit transport, not an automatic fallback.
|
|
79
|
+
- Host-controlled `cli_sandbox_v1`: optional required-mode Seatbelt (macOS) or
|
|
80
|
+
Bubblewrap >= 0.12.0 (Linux, including ARM64), private scratch/HOME, read-only
|
|
81
|
+
evidence/dependencies, no host IP network and fail-closed preflight. Default is
|
|
82
|
+
off; callbacks/validators/native coding providers remain outside this boundary.
|
|
83
|
+
- Sandboxed CLI walkthroughs, synthetic containment probe and Linux/macOS CI gates;
|
|
84
|
+
Ubuntu CI grants user namespaces only to its trusted Bubblewrap executable,
|
|
85
|
+
retaining host-wide AppArmor restrictions.
|
|
86
|
+
- Retains the immutable Python Prosaic 0.3.0 dependency; no Node/npm required.
|
|
87
|
+
- Supports macOS framework Python startup with an exact framework-library read
|
|
88
|
+
grant; no broad interpreter-prefix or workspace access is added.
|
|
89
|
+
|
|
90
|
+
## 0.5.1 — 2026-10-01
|
|
91
|
+
|
|
92
|
+
- Pin the Python Prosaic 0.3.0 release, replacing the TypeScript CLI dependency.
|
|
93
|
+
|
|
94
|
+
## 0.5.0 — 2026-10-01
|
|
95
|
+
|
|
96
|
+
- Operator-trusted YAML CLI-tool manifests, fixed executable/argv execution
|
|
97
|
+
without a shell, explicit environment grants, read-root validation, bounded
|
|
98
|
+
subprocess output/time, cancellation and offline availability/version preflight.
|
|
99
|
+
Runtime `preflight` checks an agent or all tools without model requests.
|
|
100
|
+
- Complete installable CLI analyzer, neutral Markdown, HTTP/SSE runner and optional
|
|
101
|
+
actual Understanding adapter; host Python callback and CLI-tool guides.
|
|
102
|
+
- CLI descriptors bind manifest semantics and resolved executable paths; relative
|
|
103
|
+
PATH lookup is canonicalized before changing the tool's working directory.
|
|
104
|
+
Tools remain trusted host code, not an OS sandbox or complete injection defense.
|
|
105
|
+
- Release verification: 265 Runtime tests pass, including native HTTP/SSE and
|
|
106
|
+
CLI boundary cases; source distribution and wheel build successfully. The
|
|
107
|
+
earlier development campaign results below are retained as dated observations.
|
|
108
|
+
|
|
109
|
+
- Immutable host-registered `CustomTool` API, strict closed-schema validation,
|
|
110
|
+
finite JSON/result bounds, authorization predicate, native HTTP/SSE execution,
|
|
111
|
+
versioned structural events, and a runnable catalogue example. Registration
|
|
112
|
+
grants no authority; prose, YAML and host policy must agree.
|
|
113
|
+
- Callbacks are trusted synchronous code, not sandboxed or forcibly preemptible.
|
|
114
|
+
Fixed safe error envelopes have an independent 256-byte ceiling, even when
|
|
115
|
+
the configured successful-result bound is smaller.
|
|
116
|
+
- Stage-1 source verification: 207 Runtime / 101 Harness tests, real local
|
|
117
|
+
HTTP/SSE examples, both package builds. All four TokenProxy models tested in
|
|
118
|
+
both modes; 6/8 Runtime invocations and 6/8 Harness cases succeeded/admitted.
|
|
119
|
+
Explicit-first-tool failures and fabricated no-tool answers stayed blocked;
|
|
120
|
+
no admission rule was relaxed. Wider adversarial hardening/MCP remain queued.
|
|
121
|
+
- Fresh review fixes: preserve malformed custom-call shapes through HTTP/SSE
|
|
122
|
+
parsing (including invalid stream fragments), and redact callback cancellation
|
|
123
|
+
messages while retaining exit 130/known usage. Final source tests: 220 Runtime /
|
|
124
|
+
101 Harness. A second unchanged-policy all-model matrix succeeded in 5/8 Runtime
|
|
125
|
+
cases and admitted 6/8 Harness cases; zero-call endpoint misses stayed blocked.
|
|
126
|
+
|
|
127
|
+
## 0.4.0 — 2026-10-01
|
|
128
|
+
|
|
129
|
+
- Prosaic inspection deadlines return an unsuccessful `inspection_timeout`
|
|
130
|
+
result instead of leaking a subprocess timeout exception from `run()`.
|
|
131
|
+
|
|
132
|
+
- Public Runtime inference rejects HTTP redirects rather than forwarding
|
|
133
|
+
endpoint bearer credentials to another destination. Diagnostics already
|
|
134
|
+
rejected redirects; real two-server tests cover tool and no-tool inference.
|
|
135
|
+
|
|
136
|
+
- No-tool HTTP requests now enforce the serialized input-byte limit, including
|
|
137
|
+
request overhead, just like tool-loop requests.
|
|
138
|
+
|
|
139
|
+
- Public usage totals stay unknown when any completed turn lacks complete,
|
|
140
|
+
nonnegative integer usage. Genuine reported zero remains zero; known partial
|
|
141
|
+
sums are diagnostic metadata, not a complete invocation total.
|
|
142
|
+
|
|
143
|
+
- Opt-in Prosaic `acquisition` artifact: perform an explicitly granted first
|
|
144
|
+
native tool call before disclosing full agent prose, resources and arguments.
|
|
145
|
+
One conversation/model/deadline/tool budget; failed acquisition blocks with
|
|
146
|
+
no fallback. `acquisition_v1` capability, HTTP/SSE ordering and denial tests,
|
|
147
|
+
staged and explicit no-tool preloading examples. Completed-turn reported usage
|
|
148
|
+
is retained when a later cancellation, input limit or timeout stops execution.
|
|
149
|
+
|
|
150
|
+
- An explicit initial tool choice now fails with `tool_choice_not_honored` if
|
|
151
|
+
the endpoint omits, substitutes or adds first-turn calls. No returned call is
|
|
152
|
+
executed on a mismatch and no automatic retry is made. Reported usage is kept.
|
|
153
|
+
Automatic tool selection remains optional. `initial_tool_enforcement_v1`
|
|
154
|
+
advertises the stricter contract.
|
|
155
|
+
|
|
156
|
+
## 0.3.0 — 2026-09-30
|
|
157
|
+
|
|
158
|
+
- Successful `read_file` results and events bind the file path, byte SHA-256,
|
|
159
|
+
offset, lines read and total line count. Structural events omit file content
|
|
160
|
+
and raw arguments.
|
|
161
|
+
- `RunPolicy.initial_tool` requests a granted function on the first turn only;
|
|
162
|
+
permission intersection remains unchanged. Capability flags let consumers
|
|
163
|
+
require read provenance and initial-tool support explicitly.
|
|
164
|
+
- Four-tier Markdown examples, a larger synthetic launch dossier, TokenProxy
|
|
165
|
+
YAML profiles and `examples/run_tiers.py` demonstrate independent bounded
|
|
166
|
+
agents with and without read tools. This is not recursive agent execution.
|
|
167
|
+
- Live basic native-read probes passed for all four TokenProxy model IDs with
|
|
168
|
+
streaming on/off and automatic/explicit tool choice (16 combinations).
|
|
169
|
+
- Known limitation: some richer reader prompts returned text without the
|
|
170
|
+
explicitly requested tool call. This version requests tool choice but does
|
|
171
|
+
not itself reject its omission; consumers must verify tool execution/events.
|
|
172
|
+
A successful read does not establish answer correctness.
|
|
173
|
+
|
|
174
|
+
## 0.2.0 — 2026-09-29
|
|
175
|
+
|
|
176
|
+
### Breaking changes
|
|
177
|
+
|
|
178
|
+
- Runtime configuration now uses YAML/YML exclusively. TOML support was removed
|
|
179
|
+
without a migration layer. Default discovery checks `prosaic-runtime.yaml`,
|
|
180
|
+
then `prosaic-runtime.yml`. PyYAML is now a runtime dependency.
|
|
181
|
+
- CLI invocations now show status and elapsed-time progress on stderr by default;
|
|
182
|
+
`--quiet` suppresses progress. JSON output remains on stdout.
|
|
183
|
+
|
|
184
|
+
### Added
|
|
185
|
+
|
|
186
|
+
- `doctor` checks configuration, Prosaic availability, credentials and model
|
|
187
|
+
discovery; inference requires explicit `--inference`.
|
|
188
|
+
- `smoke --live` runs packaged no-tool and read-tool probes with synthetic evidence,
|
|
189
|
+
reporting completion, observed streaming and actual tool execution independently.
|
|
190
|
+
- `--output text` prints the answer without a JSON wrapper.
|
|
191
|
+
- YAML `limits.timeout_s` and `limits.max_tool_rounds`, with CLI overrides.
|
|
192
|
+
- Structured `tool_started` and `tool_completed` events.
|
|
193
|
+
- A complete first-run guide, runnable examples with and without tools, and
|
|
194
|
+
`examples/run_examples.py` with in-memory endpoint/model overrides.
|
|
195
|
+
|
|
196
|
+
### Licensing and verification
|
|
197
|
+
|
|
198
|
+
- Project license is Apache-2.0; historical MIT attribution is retained.
|
|
199
|
+
- Expanded automated coverage for YAML loading, permissions, diagnostics, CLI
|
|
200
|
+
output, example programs and live-smoke reporting.
|
|
201
|
+
- Live verification performed with ThinkingCap-Qwen3.6-27B-OptiQ-4bit:
|
|
202
|
+
authenticated discovery, streamed completion, a real file-tool round trip,
|
|
203
|
+
and plain-text CLI output passed. No credentials are included in this release.
|
|
204
|
+
|
|
205
|
+
## 0.1.0 — 2026-09-29
|
|
206
|
+
|
|
207
|
+
- Initial extraction of generic OpenAI-compatible execution from Echelon,
|
|
208
|
+
with a Prosaic-only Python API and CLI, streaming, bounded file tools,
|
|
209
|
+
explicit permissions, events and transport conformance tests.
|
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
|
|
2
|
+
Apache License
|
|
3
|
+
Version 2.0, January 2004
|
|
4
|
+
http://www.apache.org/licenses/
|
|
5
|
+
|
|
6
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
7
|
+
|
|
8
|
+
1. Definitions.
|
|
9
|
+
|
|
10
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
11
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
12
|
+
|
|
13
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
14
|
+
the copyright owner that is granting the License.
|
|
15
|
+
|
|
16
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
17
|
+
other entities that control, are controlled by, or are under common
|
|
18
|
+
control with that entity. For the purposes of this definition,
|
|
19
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
20
|
+
direction or management of such entity, whether by contract or
|
|
21
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
22
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
23
|
+
|
|
24
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
25
|
+
exercising permissions granted by this License.
|
|
26
|
+
|
|
27
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
28
|
+
including but not limited to software source code, documentation
|
|
29
|
+
source, and configuration files.
|
|
30
|
+
|
|
31
|
+
"Object" form shall mean any form resulting from mechanical
|
|
32
|
+
transformation or translation of a Source form, including but
|
|
33
|
+
not limited to compiled object code, generated documentation,
|
|
34
|
+
and conversions to other media types.
|
|
35
|
+
|
|
36
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
37
|
+
Object form, made available under the License, as indicated by a
|
|
38
|
+
copyright notice that is included in or attached to the work
|
|
39
|
+
(an example is provided in the Appendix below).
|
|
40
|
+
|
|
41
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
42
|
+
form, that is based on (or derived from) the Work and for which the
|
|
43
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
44
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
45
|
+
of this License, Derivative Works shall not include works that remain
|
|
46
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
47
|
+
the Work and Derivative Works thereof.
|
|
48
|
+
|
|
49
|
+
"Contribution" shall mean any work of authorship, including
|
|
50
|
+
the original version of the Work and any modifications or additions
|
|
51
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
52
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
53
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
54
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
55
|
+
means any form of electronic, verbal, or written communication sent
|
|
56
|
+
to the Licensor or its representatives, including but not limited to
|
|
57
|
+
communication on electronic mailing lists, source code control systems,
|
|
58
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
59
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
60
|
+
excluding communication that is conspicuously marked or otherwise
|
|
61
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
62
|
+
|
|
63
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
64
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
65
|
+
subsequently incorporated within the Work.
|
|
66
|
+
|
|
67
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
68
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
69
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
70
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
71
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
72
|
+
Work and such Derivative Works in Source or Object form.
|
|
73
|
+
|
|
74
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
75
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
76
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
77
|
+
(except as stated in this section) patent license to make, have made,
|
|
78
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
79
|
+
where such license applies only to those patent claims licensable
|
|
80
|
+
by such Contributor that are necessarily infringed by their
|
|
81
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
82
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
83
|
+
institute patent litigation against any entity (including a
|
|
84
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
85
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
86
|
+
or contributory patent infringement, then any patent licenses
|
|
87
|
+
granted to You under this License for that Work shall terminate
|
|
88
|
+
as of the date such litigation is filed.
|
|
89
|
+
|
|
90
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
91
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
92
|
+
modifications, and in Source or Object form, provided that You
|
|
93
|
+
meet the following conditions:
|
|
94
|
+
|
|
95
|
+
(a) You must give any other recipients of the Work or
|
|
96
|
+
Derivative Works a copy of this License; and
|
|
97
|
+
|
|
98
|
+
(b) You must cause any modified files to carry prominent notices
|
|
99
|
+
stating that You changed the files; and
|
|
100
|
+
|
|
101
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
102
|
+
that You distribute, all copyright, patent, trademark, and
|
|
103
|
+
attribution notices from the Source form of the Work,
|
|
104
|
+
excluding those notices that do not pertain to any part of
|
|
105
|
+
the Derivative Works; and
|
|
106
|
+
|
|
107
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
108
|
+
distribution, then any Derivative Works that You distribute must
|
|
109
|
+
include a readable copy of the attribution notices contained
|
|
110
|
+
within such NOTICE file, excluding those notices that do not
|
|
111
|
+
pertain to any part of the Derivative Works, in at least one
|
|
112
|
+
of the following places: within a NOTICE text file distributed
|
|
113
|
+
as part of the Derivative Works; within the Source form or
|
|
114
|
+
documentation, if provided along with the Derivative Works; or,
|
|
115
|
+
within a display generated by the Derivative Works, if and
|
|
116
|
+
wherever such third-party notices normally appear. The contents
|
|
117
|
+
of the NOTICE file are for informational purposes only and
|
|
118
|
+
do not modify the License. You may add Your own attribution
|
|
119
|
+
notices within Derivative Works that You distribute, alongside
|
|
120
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
121
|
+
that such additional attribution notices cannot be construed
|
|
122
|
+
as modifying the License.
|
|
123
|
+
|
|
124
|
+
You may add Your own copyright statement to Your modifications and
|
|
125
|
+
may provide additional or different license terms and conditions
|
|
126
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
127
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
128
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
129
|
+
the conditions stated in this License.
|
|
130
|
+
|
|
131
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
132
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
133
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
134
|
+
this License, without any additional terms or conditions.
|
|
135
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
136
|
+
the terms of any separate license agreement you may have executed
|
|
137
|
+
with Licensor regarding such Contributions.
|
|
138
|
+
|
|
139
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
140
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
141
|
+
except as required for reasonable and customary use in describing the
|
|
142
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
143
|
+
|
|
144
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
145
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
146
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
147
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
148
|
+
implied, including, without limitation, any warranties or conditions
|
|
149
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
150
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
151
|
+
appropriateness of using or redistributing the Work and assume any
|
|
152
|
+
risks associated with Your exercise of permissions under this License.
|
|
153
|
+
|
|
154
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
155
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
156
|
+
unless required by applicable law (such as deliberate and grossly
|
|
157
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
158
|
+
liable to You for damages, including any direct, indirect, special,
|
|
159
|
+
incidental, or consequential damages of any character arising as a
|
|
160
|
+
result of this License or out of the use or inability to use the
|
|
161
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
162
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
163
|
+
other commercial damages or losses), even if such Contributor
|
|
164
|
+
has been advised of the possibility of such damages.
|
|
165
|
+
|
|
166
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
167
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
168
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
169
|
+
or other liability obligations and/or rights consistent with this
|
|
170
|
+
License. However, in accepting such obligations, You may act only
|
|
171
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
172
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
173
|
+
defend, and hold each Contributor harmless for any liability
|
|
174
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
175
|
+
of your accepting any such warranty or additional liability.
|
|
176
|
+
|
|
177
|
+
END OF TERMS AND CONDITIONS
|
|
178
|
+
|
|
179
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
180
|
+
|
|
181
|
+
To apply the Apache License to your work, attach the following
|
|
182
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
183
|
+
replaced with your own identifying information. (Don't include
|
|
184
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
185
|
+
comment syntax for the file format. We also recommend that a
|
|
186
|
+
file or class name and description of purpose be included on the
|
|
187
|
+
same "printed page" as the copyright notice for easier
|
|
188
|
+
identification within third-party archives.
|
|
189
|
+
|
|
190
|
+
Copyright [yyyy] [name of copyright owner]
|
|
191
|
+
|
|
192
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
193
|
+
you may not use this file except in compliance with the License.
|
|
194
|
+
You may obtain a copy of the License at
|
|
195
|
+
|
|
196
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
197
|
+
|
|
198
|
+
Unless required by applicable law or agreed to in writing, software
|
|
199
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
200
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
201
|
+
See the License for the specific language governing permissions and
|
|
202
|
+
limitations under the License.
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Testimonial
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
recursive-include examples *.md *.yml *.yaml *.json *.py
|
|
2
|
+
include examples/cli-tool/pyproject.toml
|
|
3
|
+
include docs/cli-tools.md
|
|
4
|
+
include docs/security.md
|
|
5
|
+
include docs/adr-cli-sandbox.md
|
|
6
|
+
prune examples/cli-tool/build
|
|
7
|
+
global-exclude *.local.yml *.local.yaml
|
|
8
|
+
|
|
9
|
+
include docs/structured-tools.md
|
|
10
|
+
include docs/workflow-factory-runtime-implementation.md
|
|
11
|
+
include docs/release-0.7.1.md
|
|
12
|
+
include docs/tool-effects.md
|
|
13
|
+
include docs/accounting.md
|
|
14
|
+
include docs/telemetry.md
|
|
15
|
+
include docs/conformance.md
|
|
16
|
+
include CHANGELOG.md
|
|
17
|
+
recursive-include tests/support *.py
|
|
18
|
+
include scripts/wheel_smoke.py
|
|
19
|
+
include scripts/production_wheel_smoke.py
|
|
20
|
+
include docs/production-acceptance.md
|
|
21
|
+
include scripts/release_artifacts.py
|
|
22
|
+
include docs/package-index.md
|
|
23
|
+
include docs/conversations.md
|
|
24
|
+
include scripts/conversation_wheel_smoke.py
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# Provenance
|
|
2
|
+
|
|
3
|
+
The OpenAI-compatible transport, agent loop, compaction, path filters, progress helpers and transcript writer were extracted from B3Cognition/echelon at commit `3c606aa1ef9e44cc587ba122648392e0250f3094`.
|
|
4
|
+
|
|
5
|
+
The initial repository history preserves commits touching the five extracted implementation files and LICENSE, with `src/harness/ai_cli_backends/` renamed to `src/prosaic_runtime/`. Original author metadata and commit messages are retained. Commit IDs change because the history is filtered. The source repository and full context are available at https://github.com/B3Cognition/echelon.
|
|
6
|
+
|
|
7
|
+
Transport conformance tests were adapted from Echelon's `tests/unit/test_ai_cli_backend.py` at the same commit. Echelon-specific tools and control protocols remain in Echelon.
|
|
8
|
+
|
|
9
|
+
Prosaic Runtime is distributed under the Apache License, Version 2.0; see LICENSE.
|
|
10
|
+
Runtime integration and API work is Copyright (c) 2026 B3 Cognition.
|
|
11
|
+
|
|
12
|
+
The extracted code was originally distributed under MIT. Its original notice,
|
|
13
|
+
`Copyright (c) 2026 Testimonial`, and permission text are retained in LICENSE-MIT.
|
|
14
|
+
This historical attribution does not replace the project's Apache-2.0 license.
|
|
15
|
+
Third-party components retain their own licenses. Previously published versions
|
|
16
|
+
and tags retain the license notices shipped with them.
|