Skip to content

v0.6.3 — Hash-Chained Dispatch Audit Trails, Bundle Lockfile Verification, Multi-Jurisdiction Tax PDFs & Receipts (`office/pdf_form_filler` v0.2.4), Spend-Capped x402 Wallets (`finance/ephemeral_wallet` v0.2.1), and UK KYB v2.0

Latest

Choose a tag to compare

@rosspeili rosspeili released this 29 Nov 08:14
· 4 commits to main since this release

Skillware 0.6.3 ships host-enforced, tamper-evident observability with SkillContext hash-chained JSONL audit logs (skillware/audit.py); cryptographic bundle verification in skillware doctor --verify and machine-readable --json diagnostics across doctor and paths; the complete RFC #402 enterprise PDF compliance milestone in office/pdf_form_filler (v0.2.1 → v0.2.4) with conversational interview sessions, the skillware pdf CLI, multi-jurisdiction legal_profile address book autofill, post-fill binary readback, encrypted/corrupt PDF guards, and SHA-256 filing_receipt sidecars; the finance/ephemeral_wallet (v0.1.0 → v0.2.1) x402 v2 micropayment skill with dry-run quote, live EIP-3009 signing, and custom evm.yaml CAIP-2 chain resolution; finance/uk_companies_house_handler v2.0.0 expanded corporate KYB APIs; and multi-provider tool schema hardening in SkillLoader.

Install: pip install skillware==0.6.3 or pip install -U skillware or pip install skillware

Update from 0.6.2: pip install -U skillware


Added

Host-Enforced Dispatch Audit Trail (SkillContext, skillware/audit.py) (#483, #507)

  • Zero-Lock-In Telemetry & Audit Hooks: Added optional on_dispatch, audit_log_path, and audit_meta parameters to SkillContext.
  • SHA-256 Hash-Chained JSONL: Thread-safe append-only JSONL logging where every entry chains from the previous entry's digest, verifiable offline via verify_audit_log().
  • Recursive Secret & PII Redaction: Automatically redacts API keys, private keys, and sensitive tax/identity fields (ssn, ein, tin, afm, utr, nino, tfn, sin, dob, etc.) before writing to disk, paired with token-cost estimation, docs/usage/audit_trail.md, and examples/skill_context_audit.py.

Cryptographic Bundle Integrity & Machine-Readable CLI Diagnostics (#476, #482, #488, #493)

  • skillware doctor --verify (skillware/core/integrity.py, #482, #493): Computes location-independent SHA-256 digests over bundle-relative paths and file bytes, comparing checked-out skills against a --lockfile (match, drift, new, missing) and exiting with code 1 on any mismatch (--update regenerates the lockfile; --all-files widens scope beyond core bundle files).
  • JSON Diagnostics (#476, #488): skillware doctor --json (including --install and --verify) and skillware paths --json emit structured JSON on stdout for CI pipelines and coding agents.

skillware pdf CLI & 3-Tier Custom Template Management (#406, #495, #496)

  • skillware pdf Command Group: Added init [--dir] [--output-dir], output-dir [--global], import, status [--json], templates list [--json], map-generate, inspect [--json], map-validate, guide, and open, plus the interactive config -> pdf submenu.
  • skillware/core/pdf_templates.py: 3-tier custom PDF template & output directory management (PDF_TEMPLATES_DIR, PDF_OUTPUT_DIR, .skillware.yaml / config.yaml pdf.*), batch ingestion, dynamic XFA detection, multi-section auto-mapping with PII sensitivity detection, and physical widget validation.

finance/ephemeral_wallet v0.1.0 → v0.2.1 — Spend-Capped x402 Agent Payments (#41, #272, #475, #509, #516, #519)

  • x402 v2 Session Engine (v0.1.0, #41, #475): create_session, status, pay, and revoke with HTTP 402 handshake (PAYMENT-REQUIRED → PAYMENT-SIGNATURE -> PAYMENT-RESPONSE), SSRF/allowed_domains containment, idempotency replay protection, soft spend-cap/TTL controls, and mocked HTTP for CI.
  • Dry-Run quote & Live EIP-3009 Signing (v0.2.0, #41, #509): Added quote for zero-spend 402 inspection, live EIP-3009 TransferWithAuthorization signing via CDP_WALLET_SECRET / eth_account, examples/ephemeral_wallet_demo.py, and finance simulation suite.
  • evm_config & EIP-55 Checksum Integration (v0.2.1, #516, #519): Unknown network aliases and eip155:N chain IDs fall through to evm_config.resolve_chain for custom evm.yaml networks; live EIP-3009 signing validates and checksums asset and payTo via normalize_evm_address (with eth_utils / hex fallback).

Changed

office/pdf_form_filler v0.2.1 → v0.2.4 — Sessions, Multi-Jurisdiction legal_profile, Receipts & Verification (#405, #407, #408, #492, #513, #514)

  • Conversational Interview State Machine (v0.2.1, #405, #492): File-backed atomic session persistence (session_init, session_update, session_preview, session_finalize, 48h TTL under ~/.config/skillware/pdf_sessions/), per-field lifecycle states (empty, filled, skipped, to_revise), PII-masked previews (unmask=False), "/s/ Name" typed e-sign formatting, and flatten=True default on finalization.
  • Multi-Jurisdiction legal_profile Autofill (v0.2.3, #408, #513): Extended addressbook.yaml (skillware/core/legal_profile.py) with is_self and structured legal_profile blocks (ordered tax_residency for Greek AFM, UK UTR/NINO, Australia TFN, Canada SIN, EU VAT; typed tax_ids; company_registration; authorized_signatory; ISO-3166 country expansion; ISO-8601 date formatting; W-9 segmented SSN/EIN slicing; POSIX 0o600 permissions), wired use_profile / contact autofill with fail-closed ambiguous_contact and entity_type_mismatch guards + profile_updates_suggested, added profile_key inference to skillware pdf map-generate, and added skillware addressbook set-legal-profile and show <id> [--unmask] [--json].
  • Tamper-Evident Filing Receipts & Binary Readback (v0.2.4, #407, #514): Added SHA-256 filing_receipt (template_sha256, output_sha256, PII-masked redacted_fields, canonical receipt_hash, and opt-in emit_receipt: true writing <output_path>.receipt.json atomically), automatic post_fill_verification binary readback, encrypted_pdf_unsupported / corrupted_pdf early guards across all actions, and a 6-provider + SkillContext audit + multi-thread concurrency simulation crucible closing RFC #402.

finance/uk_companies_house_handler v2.0.0 (#220, #469, #494)

  • Expanded Deterministic KYB Surface (Phase v2e + v2f): Added get_company_charges, get_insolvency, get_filing_item, search_officers, and get_officer_appointments (native ?filter=active), officer_id extraction in get_officers, local 404 normalization with context-cached company-existence checks, run_pipeline company_number auto-binding, UK debt & insolvency terminology (data/terminology_map.yaml), examples/uk_companies_house_due_diligence_demo.py, and the 5-point v2 Host Agent Playbook in instructions.md.

Fixed

Core Tool Schema Adapters & Examples (#497)

  • skillware/core/loader.py: Normalized empty or typeless manifest parameters to {"type": "object", "properties": {}} across to_claude_tool, to_gemini_tool, to_openai_tool, to_deepseek_tool, and to_bedrock_tool (preventing HTTP 400 errors on zero-parameter skills), and recursively uppercased type inside array items and anyOf/oneOf schemas in to_gemini_tool().
  • examples/ollama_pdf_form_filler.py: Fixed SkillLoader.to_prompt_mode() typo to SkillLoader.to_ollama_prompt().

data_engineering/synthetic_generator v0.1.2 (#510, #511)

  • Updated the default Anthropic model to claude-haiku-5-5 after claude-3-haiku-20240307 was retired on 2026-04-20.

Highlights & Code Examples

1. Hash-Chained Dispatch Audit Trail (SkillContext)

from pathlib import Path
from skillware import SkillContext, verify_audit_log

audit_path = Path("audit.jsonl")
ctx = SkillContext(
    skills=["office/pdf_form_filler"],
    audit_log_path=audit_path,
    audit_meta={"tenant": "acme-eu"},
)

res = ctx.execute("office/pdf_form_filler", {"action": "list_templates"})
assert verify_audit_log(audit_path) is True

2. Multi-Jurisdiction Tax Form Autofill + SHA-256 Filing Receipt (office/pdf_form_filler v0.2.4)

from skillware.core.loader import SkillLoader

bundle = SkillLoader.load_skill("office/pdf_form_filler")
skill = bundle["class"]()

sess = skill.execute({
    "action": "session_init",
    "template_id": "us_irs_w8ben",
    "use_profile": True,
})
final = skill.execute({
    "action": "session_finalize",
    "session_id": sess["session_id"],
    "confirmed": True,
    "flatten": True,
    "emit_receipt": True,
})
print("Receipt hash:", final["filing_receipt"]["receipt_hash"])
print("Flattened verified:", final["post_fill_verification"]["flattened_verified"])

3. Spend-Capped x402 Session & Custom evm.yaml Network (finance/ephemeral_wallet v0.2.1)

from skillware.core.loader import SkillLoader

bundle = SkillLoader.load_skill("finance/ephemeral_wallet")
wallet = bundle["class"]()

sess = wallet.execute({
    "action": "create_session",
    "spend_cap_usd": 5.0,
    "network": "base-sepolia",
})
quote = wallet.execute({
    "action": "quote",
    "session_id": sess["session_id"],
    "url": "https://api.example.com/v1/resource",
})
print("Within cap:", quote["within_cap"])

4. Bundle Integrity Verification & JSON Diagnostics (skillware doctor)

# Generate or verify SHA-256 lockfile for bundled skills
skillware doctor --verify --lockfile skillware.lock.json

# Machine-readable diagnostics for CI pipelines
skillware doctor --json
skillware paths --json

Upgrade notes

  • Version Bump: Run pip install -U skillware to upgrade to 0.6.3.
  • Optional Extras: Install PDF form-filling dependencies with pip install "skillware[office_pdf_form_filler]" or x402 EIP-3009 signing dependencies with pip install "skillware[finance_ephemeral_wallet]".
  • Backward Compatibility:
    • office/pdf_form_filler v0.2.4 preserves all existing one-shot and session return keys; filing_receipt and post_fill_verification are additive, and emit_receipt defaults to false.
    • SkillContext audit logging is strictly opt-in (audit_log_path / on_dispatch); default SkillContext() behavior is unchanged.
    • finance/ephemeral_wallet v0.2.1 keeps all built-in x402 network aliases and falls through to evm_config.resolve_chain only for custom/additional chains.
  • Supported-version policy: >= 0.6.0 supported and patched; 0.4.6 – 0.5.9 silent; < 0.4.6 unsupported advisory emitted.

Full changelog

CHANGELOG.md — 0.6.3


Contributors

Thanks to everyone who contributed to this release:

  • @rosspeili — SkillContext dispatch audit hook & SHA-256 hash-chained JSONL (#483, #507); office/pdf_form_filler v0.2.1–v0.2.4 conversational sessions, skillware pdf CLI, multi-jurisdiction legal_profile autofill, filing receipts, and binary readback verification closing RFC #402 (#405, #406, #407, #408, #492, #495, #496, #513, #514); SkillLoader schema adapter hardening (#497); doc reconciliations and 0.6.3 release bump
  • @Hendobox — finance/ephemeral_wallet v0.1.0–v0.2.1 x402 v2 payment sessions, dry-run quote, live EIP-3009 signing, evm_config CAIP-2 resolution, and EIP-55 address checksumming (#41, #272, #475, #509, #516, #519)
  • @Areen-09 — finance/uk_companies_house_handler v2.0.0 expanded corporate KYB APIs (charges, insolvency, filing items, officer search/appointments) and v2 Host Agent Playbook (#220, #469, #494)
  • @rise11hx-cmyk — skillware doctor --verify bundle integrity lockfile (#482, #493) and --json output for doctor and paths (#476, #488)
  • @AyhamJo7 — data_engineering/synthetic_generator v0.1.2 default Anthropic model update (#510, #511)

Citation

If you use Skillware in your research or product, please cite CITATION.cff (DOI 10.5281/zenodo.21552745) and record version 0.6.3.