Skip to content

v1.3.0 — Horizon Map & Argv/Wrapper Command Guard

Choose a tag to compare

@mikaodell mikaodell released this 05 Dec 15:52
· 1 commit to main since this release

Priima Engineering Kit (priima-kit) v1.3.0

New Original Skill: /horizon-map

  • Multi-session planner for initiatives too large or foggy for a single session (disable-model-invocation: true, 0 background token cost):
    1. Reframe Gate: Disambiguates problem shapes and surfaces verified domain / neighboring-field terminology before charting.
    2. Decision Frontier: Lean living index (Destination, Decided, Fog, Out of Scope) backed by GitHub Issues or local docs/maps/<slug>.md, resolving at most 1 decision per session (research AFK, grill -> grill-domain, prototype, unblock).
    3. Dual-Shape Architecture Check: Sketches 2 contrasting structural shapes before locking irreversible decisions, with optional cross-family stress-testing via cross-family-review (second-opinion.mjs).
    4. Vertical Slice Handoff: Converts resolved decisions into ordered, risk-first vertical 1-session TDD slices ready for tdd-seams and floor-guard.mjs.

Guardrail Hardening (Closes #1)

  • Zero-Dependency Shell Tokenizer, Wrapper Unwrapper & argv Evaluator (scripts/command-guard.mjs):
    • Replaces flat string regexes with quote-aware statement/pipeline splitting, quote-concatenation decoding (r'm' "-rf" "/"), recursive shell wrapper unwrapping (sh -c, bash -lc, cmd /c, powershell -Command, pwsh -c, $(...), backticks), env/sudo prefix stripping, and structured argv rules.
    • Catches split flags (rm -r -f /, rm --recursive --force /), refspec force-pushes (+HEAD:main), quoted Windows drive paths (Remove-Item -LiteralPath "C:\"), and piped sudo/PowerShell shells (curl ... | sudo bash, irm ... | iex) while avoiding false positives on quoted strings (e.g., git commit -m "fix: block rm -rf /").
  • Explicit False-Negative Mutation Corpus & False-Positive Allowlist (scripts/test-guards.mjs):
    • Expanded from 44 to 72 automated assertions across Ubuntu & Windows CI (Node 20 & 22), including .constraintsignore, test-deleted, rule-removed, and 23 dedicated bypass mutation tests.