Skip to content

implement MiCA module SKILL (close #35)#36

Merged
rosspeili merged 2 commits intoARPAHLS:mainfrom
rosspeili:feat/mica-module-issue-35
Apr 11, 2026
Merged

implement MiCA module SKILL (close #35)#36
rosspeili merged 2 commits intoARPAHLS:mainfrom
rosspeili:feat/mica-module-issue-35

Conversation

@rosspeili
Copy link
Copy Markdown
Contributor

Description

This PR implements the MiCA Compliance Module (compliance/mica_module), a high-performance legal firewall designed for sovereign agents.

Core Advancements:

  • Logic (Performance): Implemented in-memory corpus caching and a weighted surgical router. RAG lookups are now deterministic and near-instant (~1.7ms), even when operating on local hardware.
  • Cognition (Architecture): Transitioned to a "Pure Cognitive" workflow. The agent uses the skill's instructions as a mental map to invoke local Python logic via a prompt-based "Thinking" loop, bypassing opaque native tool-calling obstacles.
  • Governance & Safety: Strictly throttles context retrieval to the Top 10 most relevant Articles to prevent "Prompt Asphyxiation." This ensures the model remains fast and accurate while adhering to the statutory citations required by Articles 59-74 of the MiCA regulation.
  • Versioning: Bumps framework version to 0.2.4.

Type of Change

  • Skill Proposal: New Skill (Contains manifest.yaml, skill.py, and instructions.md)
  • Doc Fix: Documentation Update (MiCA index and README highlights)
  • Release: Version bump to 0.2.4

Checklist

  • My code follows the Agent Code of Conduct.
  • I have included a properly formatted manifest.yaml.
  • The skill logic operates purely in Python and does not rely on arbitrary LLM code generation.
  • Requirements and env_vars are explicitly documented in the manifest.
  • I have written unit tests proving deterministic execution and schema compliance (4/4 Tests Passing).
  • I have verified that SkillLoader successfully loads this module without missing dependency errors.

Constitution & Safety

This skill acts as a Read-Only Regulatory Firewall.

  1. No External Writes: It retrieves and evaluates regulatory text but does not perform any external transactions or wallet signing.
  2. Local Privacy: All RAG lookups and semantic routing happen locally in-memory; no statutory data is transmitted to third-party vector databases.
  3. Statutory Integrity: The skill enforces strict Article citations to ensure the agent does not hallucinate regulatory advice beyond the provided corpus.

Related Issues

Fixes #35

@rosspeili rosspeili merged commit 36d6b19 into ARPAHLS:main Apr 11, 2026
5 checks passed
@rosspeili rosspeili deleted the feat/mica-module-issue-35 branch April 11, 2026 11:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[New Skill]: MiCA Module

1 participant