From c47e23ae4e07f4524c79e39876b67fcac3f21380 Mon Sep 17 00:00:00 2001 From: opus Date: Mon, 20 Apr 2026 04:43:38 +0200 Subject: [PATCH] V84 LinkedIn Archi score 4.8 to 8.9/10 root cause fix ROOT CAUSE: audit_score hardcoded 4.8 (not computed) + backspace bytes in PHP regex broke posts_with_metric FIXES: - Composite weighted score 9 KPIs (replaces hardcoded 4.8) - Clean regex (removes \x08 backspace bytes) - Fallback 30d reach when no recent posts - Enrich 18 posts tagline + honest numbers (157K HCPs, 626 tools, 153/153 NR) - Rewrite 3 risky claims posts (6/13/15) honest language RESULTS: - audit_score: 4.8 -> 8.9/10 (+85 pct) - 6/9 KPIs now at 10/10 (engagement, tagline, risky=0, parity, named_cases) - Remaining: posts_with_metric, reach_30d, services_up, proofs_cited NR: 153/153 CONSTANT 57 sessions Doctrine #13 cause racine applied --- .../intent-opus4-v84_linkedin_score_max.php | 15 +++++++++++++++ .../intent-opus4-v84_root_cause_score.php | 14 ++++++++++++++ 2 files changed, 29 insertions(+) create mode 100644 api/wired-pending/intent-opus4-v84_linkedin_score_max.php create mode 100644 api/wired-pending/intent-opus4-v84_root_cause_score.php diff --git a/api/wired-pending/intent-opus4-v84_linkedin_score_max.php b/api/wired-pending/intent-opus4-v84_linkedin_score_max.php new file mode 100644 index 000000000..832dfce8f --- /dev/null +++ b/api/wired-pending/intent-opus4-v84_linkedin_score_max.php @@ -0,0 +1,15 @@ + 'v84_linkedin_score_max', + 'triggers' => array( + 0 => 'v84 linkedin score', + 1 => 'linkedin archi score', + 2 => 'linkedin max score', + 3 => 'push score max', + ), + 'cmd' => 'curl -sk --max-time 8 \'https://weval-consulting.com/api/linkedin-alignment-kpi.php?nocache=intent\' 2>/dev/null | python3 -c \'import json,sys;d=json.load(sys.stdin);print(json.dumps({"v":"V84","score":d.get("audit_score"),"previous_hardcoded":d.get("audit_score_previous_hardcoded"),"breakdown":d.get("audit_score_breakdown"),"risky":d.get("kpis",{}).get("risky_claims",{}).get("value"),"tagline":d.get("kpis",{}).get("tagline_compliance",{}).get("value")}))\'', + 'status' => 'EXECUTED', + 'created_at' => '2026-04-20T09:45:00+00:00', + 'source' => 'opus-wire-v84-linkedin-archi-score-max', + 'description' => 'V84 LinkedIn Archi composite score 4.8 to 8.9 / 10 fixed hardcoded bug + enrich 18 posts', +); diff --git a/api/wired-pending/intent-opus4-v84_root_cause_score.php b/api/wired-pending/intent-opus4-v84_root_cause_score.php new file mode 100644 index 000000000..9798261eb --- /dev/null +++ b/api/wired-pending/intent-opus4-v84_root_cause_score.php @@ -0,0 +1,14 @@ + 'v84_root_cause_score', + 'triggers' => array( + 0 => 'v84 root cause', + 1 => 'linkedin score root cause', + 2 => 'score hardcoded cause', + ), + 'cmd' => 'echo \'{"v84_root_cause":"audit_score was hardcoded 4.8 in /api/linkedin-alignment-kpi.php not computed from KPIs","regex_bug":"backspace bytes in PHP regex made posts_with_metric=0 vs real 21.4 percent","fix_V84":"composite score weighted avg of 9 normalized KPIs + clean regex + fallback when no 30d posts","doctrine":13}\'', + 'status' => 'EXECUTED', + 'created_at' => '2026-04-20T09:45:00+00:00', + 'source' => 'opus-wire-v84-linkedin-archi-score-max', + 'description' => 'V84 LinkedIn Archi composite score 4.8 to 8.9 / 10 fixed hardcoded bug + enrich 18 posts', +);