Repository navigation
feat(syntropy): SYN-206 Task 1 β formatProfileBlock (WhatsApp health-profile context) - #24
Conversation
- vitest.sealed.config.ts: dedicated project for the sealed challenge suite only (non-invasive; existing configs glob src/, extensions/, test/ singular) - scripts/run-sealed-referee.mjs: drives the vitest JSON reporter into coarse RESULT pass|fail <category> lines for tools/referee (reporter-API robust) - challenge-suite root scaffolded (test-author writes there; the seal hook blocks implementer reads) Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
β¦N-206 task 1) Pure formatter turning get_health_profile data into a bounded, labelled [SYNTROPY_PROFILE] block for before_agent_start injection. Allergies/conditions first; failure-safe (null on envelope/empty/malformed); never throws. Built under sealed-referee TDD (27 sealed cases green). Quality gate hardened two reviewer-found gaps the sealed suite missed: - prompt-injection hygiene (SYN-170/LLM01): sanitise newlines + defang block markers in every user-controlled value so it cannot forge structure - never-throw: top-level guard + per-value String() guard for hostile getters/toString Adds visible bug-exposing tests (profile.test.ts) and the interface contract. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
|
Caution Review failedThe pull request is closed. βΉοΈ Recent review infoβοΈ Run configurationConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Pro Plus Run ID: π Files selected for processing (8)
Disabled knowledge base sources:
π WalkthroughWalkthroughAdds ChangesformatProfileBlock Implementation
Sealed Referee Infrastructure
Estimated code review effortπ― 3 (Moderate) | β±οΈ ~25 minutes Poem
β¨ Finishing Touchesπ Generate docstrings
π§ͺ Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
The formal models extracted constants ( This check is informational (not blocking merges yet). If this change is intentional, follow up by updating the formal models repo or regenerating the extracted artifacts there. |
What
Pure
formatProfileBlock(raw): string | nullβ turnsget_health_profiledata into a bounded, labelled[SYNTROPY_PROFILE]block for the WhatsApp agent's context. Allergies/conditions first; failure-safe (never throws β null on anything unusable); prompt-injection-sanitised (strips line-breaking code points + defangs block markers BEFORE the length cap; linear-time, no ReDoS) per SYN-170 / OWASP LLM01. No wiring yet (Task 2).Governance (CTO-verified)
NOTE: receipt was re-minted submodule-bound (interim for plugin findings #5/#6 β sealed/QGR gate binds parent-level by default; durable per-module/cwd fix to follow). Authored by openclaw, landed by CTO. Linear SYN-206.
Summary by CodeRabbit
New Features
Documentation
Tests