Skip to content

feat(compliance): add claim-integrity-guard skill - #132

Open
rohanpoudel2 wants to merge 1 commit into
Fluid-WeCommerce:mainfrom
rohanpoudel2:rohan/claim-integrity-guard-skill
Open

feat(compliance): add claim-integrity-guard skill#132
rohanpoudel2 wants to merge 1 commit into
Fluid-WeCommerce:mainfrom
rohanpoudel2:rohan/claim-integrity-guard-skill

Conversation

@rohanpoudel2

@rohanpoudel2 rohanpoudel2 commented Jul 31, 2026

Copy link
Copy Markdown
Contributor

What

Adds a new compliance skill, Claim Integrity Guard, at compliance/claim-integrity-guard.md, registered in manifest.json under the compliance category (icon: shield-check).

Why

In regulated consumer-health copy, superscript markers (*, , , §) are legal promises that a disclosure exists and is findable. Store migrations routinely carry product copy — markers included — while leaving the footnote block, disclosure page, and theme partials behind on the old platform. This skill finds that gap and closes it:

  • Regime-gates every test (Step 0) — determines product category (supplement / cosmetic / food / CBD / non-claim) and open markets before applying any jurisdiction's disclosure rule; a cosmetics-only catalog can never produce a DSHEA finding
  • Enumerates every copy-bearing surface to the end of pagination, normalizes imported HTML (entities, <sup> wrappers, unicode variants) before tokenizing markers
  • Detects the store's own marker convention before falling back to the conventional reading, and tests disclosure existence and placement as separate questions
  • Scans for candidate disease-claim language as leads for human review (with false-positive/false-negative limits stated), plus migration residue (off-domain redirects, leftover platform URLs)
  • Reports findings by severity first, phrased strictly as statements about the audited store's data — never the company's compliance posture; remediates only after an approved human_in_the_loop proposal, recovers disclosure copy from the source site rather than composing it, never rewrites claims or normalizes markers by machine, and verifies every mutation by re-read

Includes an anonymized worked example (a supplement catalog imported from Shopify into a sandbox store) plus gotchas: cursor pagination, page copy living in description not body, encoded markers, product.title required on PATCH, and * overloading in CSS/markdown.

Validation

  • python3 -m unittest discover -s scripts -p 'test_*.py' — 16 tests OK
  • python3 scripts/validate_catalog.py — catalog validation passed: 42 skills, 6 workflows

@rohanpoudel2
rohanpoudel2 force-pushed the rohan/claim-integrity-guard-skill branch from a95136f to d37fca4 Compare July 31, 2026 22:18
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.

1 participant