Skip to content

feat(compliance): add pii_masker skill using micro-f1-mask#33

Merged
rosspeili merged 1 commit intoARPAHLS:mainfrom
rosspeili:feat/pii-masker-skill
Apr 9, 2026
Merged

feat(compliance): add pii_masker skill using micro-f1-mask#33
rosspeili merged 1 commit intoARPAHLS:mainfrom
rosspeili:feat/pii-masker-skill

Conversation

@rosspeili
Copy link
Copy Markdown
Contributor

Description

This PR introduces the compliance/pii_masker skill, a localized Privacy Firewall component utilizing the 270M parameter edge model arpacorp/micro-f1-mask over Ollama. It is engineered to transparently intercept, parse, and safely scrub Personally Identifiable Information (Names, Contextual Addresses, Crypto Wallets, Emails, etc.) from prompts before outward transmission to high-latency LLM providers.

The skill includes dynamic operational modes (mask, redact, remove) and operates statelessly, returning detected metadata schema constructs for programmatic session mapping. Included are global library updates, execution flow examples, robust schema testing, and a refined API configuration matrix.

Type of Change (Matches Issue Templates)

  • 🚀 Skill Proposal: New Skill (Contains manifest.yaml, skill.py, and instructions.md)
  • 🐛 Bug Report Fix: Non-breaking change which fixes an execution error or framework bug
  • 📖 Doc Fix: Documentation Update
  • 🧠 Framework Feature / RFC Updates: Core Framework Update (Changes to base_skill.py, loader.py, etc.)

Checklist (For the Submitting Agent / Developer)

  • My code follows the Agent Code of Conduct.
  • I have included a properly formatted manifest.yaml (if submitting a new skill).
  • 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.
  • I have verified that SkillLoader successfully loads this module without missing dependency errors.

Constitution & Safety (If adding/modifying a Skill)

  1. USER PRIVACY: Do not store or transmit sensitive PII externally; only use the specified local arpacorp/micro-f1-mask edge-model.
  2. ACCURACY: In mask mode, perfectly preserve the structural tags (e.g., [PERSON_1]) for downstream replacement without mutating intent.
  3. COMPLIANCE: Adhere strictly to the requested masking trajectory mode mapping.

Related Issues

Fixes #32

@rosspeili rosspeili force-pushed the feat/pii-masker-skill branch from 8607550 to 8b598bc Compare April 9, 2026 16:43
@rosspeili rosspeili merged commit a3c6e4a into ARPAHLS:main Apr 9, 2026
5 checks passed
@rosspeili rosspeili deleted the feat/pii-masker-skill branch April 9, 2026 16:44
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]: Local PII Guardrail (micro-f1-mask)

1 participant