feat(sdk): merge frontmatter human_verification items into roster (#3184)

Cycle 11 of ~15: reuses parseVerificationFrontmatterItems from
uat.ts. Frontmatter-declared manual-verification items roll
into the same items[] roster and emit HUMAN_VERIFICATION_NEEDED
reasons so passed=false is justified, not silent.
This commit is contained in:
Tom Boucher
2026-05-18 22:52:25 -04:00
parent 29a48d8a78
commit d7aa4ce6e3
3 changed files with 52 additions and 1 deletions

View File

@@ -195,7 +195,7 @@ function parseUatItems(content: string): Record<string, unknown>[] {
* rather than the body, parseVerificationItems was returning [] because it
* only searched the body for a "## Human Verification" heading.
*/
function parseVerificationFrontmatterItems(fm: Record<string, unknown>): Record<string, unknown>[] {
export function parseVerificationFrontmatterItems(fm: Record<string, unknown>): Record<string, unknown>[] {
const items: Record<string, unknown>[] = [];
const hvArray = fm.human_verification;
if (!Array.isArray(hvArray)) return items;