Develop#187
Merged
Merged
Conversation
…environment isolation and workspace cleanup (#133) Co-authored-by: Gowtham Rao MD PhD <gowtham.rao@coreason.ai>
…rrors (#135) * feat: formalize Coreason Shared Kernel Ontology with new AST and Active Inference schema definitions * feat: refactor workflow nodes to a clinical Fahrenheit conversion pipeline and update provenance metadata * feat: normalize structural CIDs and enforce strict topology class requirements for neurosymbolic nodes, adding verification test script * feat: implement dynamic XYZ clinical binary parser and add intent-based fabrication tests * feat: add URN-based tool scaffolding and discovery-driven hallucination correction for DAG topologies * refactor: harden DAG compiler and router by sanitizing hallucinated fields and enforcing Pydantic constraints. * feat: enhance agent prompt with recursive tool-call prevention, improve manifest parsing, and add URN-based tool promotion utilities. * Fixed the agent building * Removed unwanted files * Re added file which delete accidentally --------- Co-authored-by: dk-uppi-aks <akshayavc15@gmail.com>
…ix wheel incompatibilities
…freethreaded ABI conflicts
…ethreaded fallback
…y allowing multiprocessing passthrough
…memory watchdog, and custom sandbox restrictions
- Run ruff format to fix formatting in compiler.py - Ignore unused args user_prompt and kwargs in tests/api/test_predict_router_boundaries.py to fix ARG002 - Fix DiscoveryIndexer mock in test_discovery_indexer.py missing profiles attribute - Update test_constrained_decoding_compiler.py to expect did:agent: prefix in graph node edges
…Error in coverage
#137) * feat: implement zero-trust CID verification for capability bundles and add custom runtime exceptions * feat: implement semantic tool discovery indexer, DAG orchestration workflow, and predictive routing API framework * chore: mock network and suppress CI warnings for robust testing * fix: resolve ruff linting errors for respx import * style: fix formatting in fabricator.py to pass pre-commit checks * test: achieve 100% diff hit coverage for 20260504-distributed-cid integration * fix: resolve ruff lint errors in test_fabricator.py * fix: remove unnecessary encode argument in test_capability_allocator.py * fix: resolve mypy errors in execution_plane tests * style: format python files using ruff format * fix: replace unused noqa ARG002 with underscore prefixed arguments in test_fabricator.py * feat: implement Temporal worker orchestration, VRAM watchdog, and intent-based fallback actuator * fix: ruff ARG002 unused arguments in test_fabricator * fix: resolve temporal sandbox RecursionError and CI FileNotFoundError
Used the db file path instead of hard coding.
fix(tensor-routing): resolve SGLang variadic logprobs schema crash and harden compiler constraints This merge addresses Issue #128 by introducing robust parsing for the Tier-0 SGLang inference engine, ensuring that malformed or variadic logprob structures do not crash the orchestrator. Additionally, it significantly fortifies the `UniversalCompiler` against topological hallucinations. Key Fixes & Implementations: - **Resilient SGLang Logprob Parsing (`sglang_kinetic_client.py`)**: Implemented a deep nested parser to handle the multiple schema variations returned by SGLang (`input_token_logprobs`, lists of lists, dicts). Safely applies `math.exp()` to derive true probabilities and falls back gracefully to `COREASON_SAMPLING_PROBABILITY` on extraction errors, preventing Kinetic Execution Plane crashes. - **Compiler Hallucination Traps (`compiler.py`)**: Hardened the zero-trust generation prompt with 7 new critical rules. Enforces Anti-CRUD causal naming, prevents LLM Pydantic syntax regurgitation, and dictates semantic edge mapping for the topological matrix. - **Genesis Provenance Guardrails (`compiler.py`)**: Enforces exact regex validation (e.g., `did:coreason:system`) on `extracted_by` and strictly bounds `pq_algorithm` to `ml-dsa` at the prompt layer, acting as a preemptive strike against URN spoofing. - **Isomorphism & Typing Fixes (`compiler.py`)**: Fixed `TypeError` crashes when extracting Python `Enum` hint types. Also established fallback compatibility (`__fields__` vs `model_fields`) for parsing schemas across Pydantic V1/V2 environments.
…on and add support for MCP tool communication. (#136) feat: Refactor Kinetic Tool Fabrication and Enforce File I/O Guillotine This merge completes the structural overhaul of the automatic tool fabrication pipeline in `coreason-runtime`. It resolves critical Lexical Architecture violations by strictly enforcing the "File I/O Guillotine" and transitions the runtime to a compliant, intent-based fabrication flow via the native MCP `agentic_forge`. Key Architectural Alignments & Features: * **File I/O Guillotine Compliance:** Refactored `fabricator.py` to completely eliminate local filesystem mutation (`open()`, `os.write()`) by swarm identities. Python code generation is now mechanically bound and executed exclusively via the `coreason-meta-engineering` MCP server. * **Intent-Based Fabrication Flow:** Implemented native invocation pipelines for universal Fab Lines (`scaffold_manifest_state`, `scaffold_logic_actuator`, `scaffold_epistemic_node`), allowing epistemic nodes to delegate the physical instantiation of geometric schemas and logic capabilities downstream. * **Tensor Routing & Orchestration:** Expanded and stabilized `predict_router.py`, workflow activities, and telemetry components to seamlessly support autonomous agent response types and dynamic MCP server configuration. Renamed local execution activities (e.g., `ExecuteLocalOutlinesInferenceComputeActivity`) to adhere to kinetic naming protocols. * **Test Suite Overhaul (Zero-Trust Mandate):** * Amputated all instances of `unittest.mock` across the test suite, injecting physical `httpx.ASGITransport` intercepts and ephemeral temporal execution networks to guarantee strict architectural isomorphism. * Validated and achieved 100% test coverage with the addition of `test_fabricator.py`, `test_verify_bundle_integrity.py`, and `test_universal_dynamic_tool_routing.py`. * Resolved Pydantic validation failures in dynamic tool routing mock handoffs by ensuring `DAGTopologyManifest` schemas include mandatory `attestation_receipt` blocks. * **CI/CD Stabilization:** Extended timeout limits for all CI jobs to 30 minutes to support rigorous physical resilience/temporal simulations, and addressed all outstanding Ruff, MyPy, and pre-commit formatting regressions.
… and SLSA provenance
…flexibility, and expand test coverage for security and execution gaps
…date edge-case failures.
…streamline error handling in Oracle orchestration
…DK (#184) (#185) - Add opentelemetry-api, opentelemetry-sdk, opentelemetry-exporter-otlp to deps - Create src/coreason_runtime/utils/tracing.py with TracerProvider, OTLP export, and no-op fallbacks - Refactor EmitSpanIOActivity to emit native OTel spans instead of validating ExecutionSpanReceipt Pydantic JSON - Replace otel_telemetry_sink placeholder stub in logger.py with real OTel span emission - Enable instructor auto-instrumentation via TracerProvider init in predict_router - Add comprehensive test suite for tracing module (tests/utils/test_tracing.py) - Update test_emit_span_valid and test_otel_telemetry_sink_forwards_message Closes #184
Removed deprecated federation ingress, aligned OntologicalReificationReceipt payload, and removed deprecated fields from WorkflowManifest in KineticExecutionManifold.
…TL validation tests
* refactor(runtime): migrate to TransformerLens hook points * chore(deps): point coreason-manifest to feat/transformer-lens-migration * revert: chore(deps): point coreason-manifest to feat/transformer-lens-migration * fix(orchestration): use getattr for backwards compatibility with target_hook_points * test: add unit test to verify getattr behavior with custom class attributes * feat: implement NemoClaw master MCP bridge and add automated security audit workflow, removing obsolete test script.
…nt ChaosExecutionWorkflow mapping to new URN
…regression for NeuralAuditAttestationReceipt
| run: git clean -xfd -e .uv_cache | ||
|
|
||
| - name: Install uv | ||
| uses: astral-sh/setup-uv@v7 |
|
|
||
| - name: Enforce Type Isomorphism (mypy) | ||
| run: uv run mypy src/ tests/ | ||
| shell: bash |
| run: git clean -xfd -e .uv_cache | ||
|
|
||
| - name: Install uv | ||
| uses: astral-sh/setup-uv@v7 |
| if [ -f "compose.yaml" ]; then docker compose down -v || true; fi | ||
| sudo chown -R $(whoami):$(whoami) ${{ github.workspace }} | ||
| shell: bash | ||
|
|
| run: git clean -xfd -e .uv_cache | ||
|
|
||
| - name: Install uv | ||
| uses: astral-sh/setup-uv@v7 |
| run: git clean -xfd -e .uv_cache | ||
|
|
||
| - name: Install uv | ||
| uses: astral-sh/setup-uv@v7 |
| run: ls -la | ||
|
|
||
| - name: Run Trivy vulnerability scanner in fs mode | ||
| if: hashFiles('Dockerfile') != '' |
| fetch-depth: 0 | ||
| fetch-tags: true | ||
|
|
||
| - name: Install uv |
| - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 | ||
|
|
||
| - name: Install uv | ||
| uses: astral-sh/setup-uv@v7 |
Codecov Report❌ Patch coverage is 📢 Thoughts on this report? Let us know! |
…lerts and constrain uv.lock to linux x86_64
…d updating deptry ignores
Closed
5 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.