Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
43 commits
Select commit Hold shift + click to select a range
1aba349
Add core harness API scaffold with context-scoped runtime
saschabuehrle Feb 25, 2026
968d329
Harden harness core scaffolding and complete API test coverage
saschabuehrle Feb 25, 2026
5d9f199
Harden harness core scaffolding and complete API test coverage
saschabuehrle Feb 25, 2026
9c82f86
Merge feat/v2-core-harness-api into feature/agent-intelligence-v2-int…
saschabuehrle Feb 25, 2026
96b2256
feat(harness): implement OpenAI Python client auto-instrumentation
saschabuehrle Feb 25, 2026
47f1895
Add OpenAI Agents SDK harness integration (opt-in)
saschabuehrle Feb 25, 2026
2c52bbd
fix(openai-agents): align SDK interface and enforce-safe errors
saschabuehrle Feb 26, 2026
592509e
fix: address PR review — off-mode unpatch, enforce budget gate, strea…
saschabuehrle Feb 26, 2026
644fb05
Merge feat/v2-openai-auto-instrumentation into integration branch
saschabuehrle Feb 26, 2026
1d68fa6
Merge remote-tracking branch 'origin/feat/v2-openai-agents-integratio…
saschabuehrle Feb 26, 2026
70585c7
docs(plan): claim v2 enforce-actions feature branch
saschabuehrle Feb 26, 2026
c66ab28
feat(harness): enforce switch-model, deny-tool, and stop actions
saschabuehrle Feb 26, 2026
8f1ed32
feat(harness): implement enforce actions for v2 harness
saschabuehrle Feb 26, 2026
48781d6
Add CrewAI harness integration with before/after LLM-call hooks
saschabuehrle Feb 26, 2026
6b7a0f5
fix(harness): clarify observe traces and hard-stop semantics
saschabuehrle Feb 26, 2026
9a06b56
fix: address PR review — dict messages, start time leak, lint, extras
saschabuehrle Feb 26, 2026
060fa74
Merge remote-tracking branch 'origin/feat/v2-enforce-actions' into ch…
saschabuehrle Feb 26, 2026
63cf21e
perf(harness): optimize model utility hot paths
saschabuehrle Feb 26, 2026
47596ed
refactor(harness): unify pricing profiles across integrations
saschabuehrle Feb 26, 2026
b1af4f5
docs(plan): claim langchain harness extension branch
saschabuehrle Feb 26, 2026
d6556cf
feat(langchain): add harness-aware callback and state extractor
saschabuehrle Feb 26, 2026
e9cd7a3
feat(langchain): auto-attach harness callback in active run scopes
saschabuehrle Feb 26, 2026
5c79ce5
docs(plan): mark langchain harness extension branch completed
saschabuehrle Feb 26, 2026
1d2d3ac
fix(langchain): address PR #161 review findings
saschabuehrle Feb 26, 2026
3119778
fix(langchain): enforce tool caps on executed calls and harden tool e…
saschabuehrle Feb 26, 2026
10b80f8
feat(harness): add privacy-safe decision telemetry and callback hooks
saschabuehrle Feb 26, 2026
9ca4ea3
fix(harness): address telemetry review findings
saschabuehrle Mar 2, 2026
55ec2d5
feat(bench): add reproducibility pipeline for V2 Go/No-Go validation
saschabuehrle Mar 2, 2026
fa88f1f
fix(harness): avoid shadowing cascadeflow.agent module
saschabuehrle Mar 2, 2026
1d25b8f
fix(harness): avoid shadowing cascadeflow.agent module
saschabuehrle Mar 2, 2026
d5e8143
fix(harness): avoid shadowing cascadeflow.agent module
saschabuehrle Mar 2, 2026
fa69486
docs(plan): update workboard — bench-repro-pipeline PR #163 in review
saschabuehrle Mar 2, 2026
df9e72c
style(bench): apply linter formatting to repro pipeline files
saschabuehrle Mar 2, 2026
9505d26
style(ci): format Python files for Black
saschabuehrle Mar 2, 2026
f082377
style: apply black formatting for harness integration files
saschabuehrle Mar 2, 2026
cec4bab
Merge feat/v2-langchain-harness-extension into feature/agent-intellig…
saschabuehrle Mar 2, 2026
778a3ff
Merge feat/v2-bench-repro-pipeline into feature/agent-intelligence-v2…
saschabuehrle Mar 2, 2026
e02ebe9
style(langchain): finalize harness callback typing and formatting
saschabuehrle Mar 2, 2026
0b38bf9
feat(harness): add anthropic python auto-instrumentation for v2.1
saschabuehrle Mar 4, 2026
998c6a6
feat(core): deliver v2.1 ts harness parity and sdk auto-instrumentation
saschabuehrle Mar 4, 2026
42523ef
test(harness): add comprehensive Anthropic auto-instrumentation tests
saschabuehrle Mar 4, 2026
d01799f
feat(harness): instrument Anthropic streaming usage and tool calls
saschabuehrle Mar 4, 2026
26a6ecb
fix(harness): finalize stream metrics on errors and harden env parsing
saschabuehrle Mar 4, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions cascadeflow/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,21 @@
get_tool_risk_routing,
)

# NEW: Harness API scaffold (V2 core branch)
from .harness import (
HarnessConfig,
HarnessInitReport,
HarnessRunContext,
init,
reset,
run,
agent as harness_agent,
get_harness_config,
get_current_run,
get_harness_callback_manager,
set_harness_callback_manager,
)

# ==================== MAIN AGENT & RESULT ====================


Expand Down Expand Up @@ -381,6 +396,18 @@
"ToolRiskClassification", # NEW: v0.8.0 - Classification result
"ToolRiskClassifier", # NEW: v0.8.0 - Tool risk classifier
"get_tool_risk_routing", # NEW: v0.8.0 - Routing by risk level
# ===== HARNESS API (V2 scaffold) =====
"HarnessConfig",
"HarnessInitReport",
"HarnessRunContext",
"init",
"reset",
"run",
"harness_agent",
"get_harness_config",
"get_current_run",
"get_harness_callback_manager",
"set_harness_callback_manager",
# ===== PROVIDERS =====
"ModelResponse",
"BaseProvider",
Expand Down
38 changes: 38 additions & 0 deletions cascadeflow/harness/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
"""
Core harness API scaffold for V2 planning work.

This module provides a minimal, backward-compatible surface:
- init(): global harness settings (opt-in)
- run(): scoped run context for budget/trace accounting
- agent(): decorator for attaching policy metadata

The implementation intentionally avoids modifying existing CascadeAgent behavior.
"""

from .api import (
HarnessConfig,
HarnessInitReport,
HarnessRunContext,
agent,
get_harness_callback_manager,
get_current_run,
get_harness_config,
init,
reset,
run,
set_harness_callback_manager,
)

__all__ = [
"HarnessConfig",
"HarnessInitReport",
"HarnessRunContext",
"init",
"run",
"agent",
"get_current_run",
"get_harness_callback_manager",
"get_harness_config",
"set_harness_callback_manager",
"reset",
]
Loading
Loading