testing-fieldbook

Featured

How to adversarially test the fdeops CLI (bin/fde.js), its engagement-resolution and registry logic, the recorded-session gates in bin/check.js, the hooks/ layer, and the <private> redaction boundary — all sandboxed so no user-owned engagement data is touched.

Testing & QA 948 stars 104 forks Updated yesterday MIT

Install

View on GitHub

Quality Score: 92/100

Stars 20%
99
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
80
License 10%
100
Description 5%
100

Skill Content

# Testing the fdeops fieldbook Everything here is local-only and network-free. No credentials are needed. ## Devin Secrets Needed None. ## Sandbox harness (use for every case) ```bash H=$(mktemp -d); ROOT="$H/fde-engagements" HOME="$H" FDEOPS_ENGAGEMENTS_ROOT="$ROOT" node bin/fde.js resume --init client-a ``` Rules learned the hard way: - **Create decoy fixtures FIRST.** The absence of a directory proves nothing. Always make a second engagement (`client-b`) plus a `realclient` decoy and a `.registry` binding, then compare sorted `sha256sum` manifests of every non-target engagement before/after. A case passes only if every engagement the operator did not name is byte-identical. - `fde doctor` **exits 1 by design** when it finds hygiene issues. Never treat nonzero doctor as a test failure by itself. - Strip ANSI before grepping output; colored prompts/markers silently break naive greps. - `npm run check` runs gates **and** tests; `npm test` alone runs only tests. - Regression floor: v3.10.3 → 97/97; v3.10.4 → **103/103**, then **107/107** once the non-regular and slug guards landed. `npm run check` exit 0. Check the current floor rather than assuming. - **Wrap every single CLI/hook invocation in `timeout 15` regardless.** Non-regular-file shapes have repeatedly re-introduced blocking reads/writes; without `timeout` the whole matrix stalls instead of reporting exit 124, and a regression here is invisible. ## Engagement resolution — the part most likely to b...

Details

Author
suboss87
Repository
suboss87/FDEOps
Created
3 months ago
Last Updated
yesterday
Language
JavaScript
License
MIT

Bundled in these plugins

Similar Skills

Semantically similar based on skill content — not just same category