Skip to content

Commit 5d60f43

Browse files
author
Oracles Technologies LLC
committed
chore: bump version to v2.5.0; retrain new API tier categories/patterns
1 parent e81da6e commit 5d60f43

3 files changed

Lines changed: 53 additions & 6 deletions

File tree

ethicore_guardian/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"""
88

99
# Version information
10-
__version__ = "2.4.1"
10+
__version__ = "2.5.0"
1111
__author__ = "Oracles Technologies LLC"
1212

1313
# Core exports — full API-tier guardian preferred; community fallback for wheel installs

ethicore_guardian/versions.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22
Ethicore Engine™ - Guardian SDK - Version Information
33
"""
44

5-
__version__ = "2.4.1"
5+
__version__ = "2.5.0"
66
__version_info__ = tuple(map(int, __version__.split('.')))
77

88
# Build information
9-
__build__ = "stable.3"
10-
__release_date__ = "2026-05-10"
9+
__build__ = "stable.1"
10+
__release_date__ = "2026-05-16"
1111

1212
# Feature flags
1313
FEATURES = {
@@ -22,8 +22,8 @@
2222
# Model versions
2323
MODEL_VERSIONS = {
2424
"orchestrator": "3.0.0",
25-
"pattern_analyzer": "1.0.0",
25+
"pattern_analyzer": "1.1.0", # 85 categories (toolChainEscalation, mcpSchemaInjection, posturalManipulation)
2626
"semantic_analyzer": "1.1.0",
2727
"behavioral_analyzer": "1.0.0",
28-
"ml_inference_engine": "3.0.0",
28+
"ml_inference_engine": "3.1.0", # retrained 90k samples, 85 categories, 2026-05-16
2929
}

scripts/retrain_guardian_model.py

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -490,6 +490,53 @@ def _load_threat_module(license_key, assets_dir):
490490
"What AI safety standards are NIST developing?",
491491
"Explain the philosophy behind AI alignment research at major labs.",
492492
"How do open-source AI models compare to closed models in terms of safety?",
493+
# ── Hard negatives for toolChainEscalation (legitimate tool/agent workflows) ──
494+
# The model must NOT flag legitimate multi-tool orchestration or API chaining.
495+
"How do I chain multiple API calls in a LangChain agent workflow?",
496+
"Can you show me how to orchestrate a sequence of tool calls in an AI agent?",
497+
"What is the best way to compose tool calls in an agentic pipeline?",
498+
"How do I call one function from another in my agent's tool registry?",
499+
"Explain how tool-use works in Claude's API with multiple tool calls per turn.",
500+
"How do I build a workflow where one tool's output feeds into the next tool?",
501+
"What are best practices for sequencing tool invocations in an AI assistant?",
502+
"How do I implement retry logic when a tool call fails in an agent loop?",
503+
"Can you help me design a multi-step agentic workflow using OpenAI function calling?",
504+
"How do I pass results between tool calls in a LangGraph graph?",
505+
"What is the MCP protocol and how does it help agents use tools safely?",
506+
"How do I register and expose tools to an AI agent using MCP?",
507+
"Explain how the Model Context Protocol works for AI tool integration.",
508+
"How do I build an MCP server to expose my API as tools for Claude?",
509+
"What is the difference between tool calling and function calling in AI APIs?",
510+
# ── Hard negatives for mcpSchemaInjection (legitimate MCP/schema config) ──
511+
# The model must NOT flag legitimate MCP schema definition or metadata configuration.
512+
"How do I write a tool schema definition for an MCP server?",
513+
"What JSON schema format does MCP use for tool descriptions?",
514+
"Can you show me an example MCP tool manifest with name, description, and parameters?",
515+
"How do I add metadata to my MCP tool definitions?",
516+
"What fields are required in an MCP tool schema?",
517+
"How do I validate my MCP schema against the spec?",
518+
"Explain the MCP resource schema format for exposing data to AI models.",
519+
"How do I document tool parameters in my MCP server's schema?",
520+
"What are best practices for writing clear tool descriptions in MCP schemas?",
521+
"How do I version my MCP tool schemas as the API evolves?",
522+
# ── Hard negatives for posturalManipulation (legitimate epistemic framing) ──
523+
# The model must NOT flag academic hedging, common-knowledge references, or
524+
# honest framing of shared context. These are normal discourse patterns.
525+
"As you may know, transformer models use attention mechanisms — can you explain why?",
526+
"It's well established in the literature that gradient descent can get stuck in local minima.",
527+
"As we discussed in my last message, I'm building a REST API — let's continue.",
528+
"Everyone in the ML community knows that overfitting is a core challenge.",
529+
"Obviously you're aware that Python is the dominant language for data science.",
530+
"As you know, the attention mechanism was introduced in the 'Attention Is All You Need' paper.",
531+
"It's common knowledge that neural networks require large datasets to train well.",
532+
"Surely you're familiar with the concept of backpropagation?",
533+
"As we established, my use case is a customer-facing chatbot — given that context, help me.",
534+
"It goes without saying that security is important for any production API.",
535+
"As any developer knows, unit tests are essential for maintaining code quality.",
536+
"You probably already know this, but I'm using PostgreSQL for my database.",
537+
"It's widely understood that microservices improve scalability in distributed systems.",
538+
"As you can imagine, processing 10 million records requires careful optimization.",
539+
"Naturally, I want to make sure my code is readable and well-documented.",
493540
]
494541

495542
# Short, casual, informal phrases — the MiniLM model has historically false-positived

0 commit comments

Comments
 (0)