Commit Graph

73 Commits

Author SHA1 Message Date
peptiderepo
d417299e05 ci: update peptide-e2e reusable-workflow ref to peptide-repo org
Reusable workflow `uses:` refs do not follow GitHub transfer redirects.
Update owner string from peptiderepo to peptide-repo post org-migration.

Agent-Session: fix-e2e-ref-20260617
2026-06-17 11:34:13 +07:00
peptiderepo
6a288262c6 ci: update peptide-e2e reusable-workflow ref to peptide-repo org
Reusable workflow `uses:` refs do not follow GitHub transfer redirects.
Update owner string from peptiderepo to peptide-repo post org-migration.

Agent-Session: fix-e2e-ref-20260617
2026-06-17 11:34:11 +07:00
peptiderepo
a751a8f890 Adopt reusable CI standard + helpers split (#61) 2026-06-16 21:36:06 +07:00
peptiderepo
601768a1b1 ci(review): drop multi-model panel to Haiku-only (#60)
QA A/B decision 2026-06-12 (CEO-ratified): Haiku-only. Includes pre-existing front-page.php EOF-whitespace fix that was blocking PHPCS.

Agent-Session: cto-panel-merge-20260612
2026-06-12 21:55:09 +07:00
peptiderepo
69fd0f643f ci: adopt shared reusable deploy workflow (#59)
Replaces the per-repo staging/smoke/production jobs with one call to
peptiderepo/peptide-e2e/.github/workflows/deploy-app.yml (target_path=wp-content/themes/peptide-starter).
Validated end-to-end on the calculator pilot.

Agent-Session: cto rollout-reusable-deploy
2026-06-09 19:16:11 +07:00
peptiderepo
0a2a48a9f0 ci(audit): retry PR-association check (#58)
listPullRequestsAssociatedWithCommit is eventually-consistent after a squash
merge; the single immediate call intermittently flagged legit merges as
'direct push to main'. Now polls up to 5x/10s before opening an issue.

Agent-Session: cto audit-race-fix
2026-06-09 13:39:10 +07:00
peptiderepo
844951b268 feat(front-page): remove Science Feed card + 3-item news teaser (v2.2.2)
Merges PR #55. Science Feed removed from module grid (5 cards). Inline news feed replaced with 3-item teaser + CTA. Version 2.2.1 → 2.2.2.
2026-04-29 14:35:03 +07:00
peptiderepo
2b23bb7e2a feat: RCT inline abbreviation tooltip on verdict legend strip (v2.2.1) (#53)
CI green (PHP Lint 8.1/8.2/8.3 ✓, PHPCS ✓, PHPUnit 8.1/8.2/8.3 ✓). QA: PASS.
2026-04-29 13:29:04 +07:00
peptiderepo
bdc3ace6cf fix: mobile verdict explainer grid responsive layout (v2.2.0)
- Remove double horizontal padding from .hero-verdict-explainer section
  (ps-container inside already provides 24px padding on each side)
- Switch base grid to single column; add 520px breakpoint for 2-col
  (below 520px, columns are too narrow for 'Investigational' pill)
- Add min-width: 0 to grid items to prevent implicit size blowout
- Add max-width: 100% to .pr-verdict inside items as overflow guard
- Sync style.css with production state (server had drifted from v2.1.8 HEAD)

Fixes: right-column cards misaligned/clipped on narrow mobile viewports
2026-04-29 06:10:28 +00:00
peptiderepo
6f85210950 fix: add missing CSS for homepage verdict sections (v2.1.8)
hero-featured-verdicts, hero-verdict-card, and hero-verdict-explainer
classes were used in front-page.php but had no CSS rules, causing the
Featured Verdicts section to render with bare browser defaults.

- Add grid layout for verdict cards (1-col mobile, 3-col >=900px)
- Add card styling: border, padding, radius, shadow, hover lift
- Tint left border per verdict state via CSS :has()
- Add verdict explainer grid (2-col mobile, 3-col 640px, 5-col 900px)
- Add signal rows, summary, link, and footer button styling
2026-04-28 09:56:06 +00:00
peptiderepo
33faab7c4f ci: fix production SSH timeout — remove preflight verify step, add ConnectTimeout=30
The standalone SSH 'Verify deploy destination' step was causing consistent
connection timeouts (exit 255, ~2min hang) on production deploys. Root cause:
Hostinger rate-limits concurrent SSH connections from different GitHub Actions
runner IPs — the staging job exhausts a connection window and the production
runner (on a different IP) gets timed out by the server.

Fix:
- Remove the standalone SSH verify step that was always the first to time out
- Add ConnectTimeout=30 BatchMode=yes to ALL ssh/rsync commands so failures
  surface in 30s instead of the default 120s TCP timeout
- The plugin inventory pre/post check still guards against wrong-path deploys
  (the actual safety guarantee we care about from the 2026-04-23 incident)
- rsync itself will fail safely if the target path doesn't exist
2026-04-27 19:56:28 +00:00
peptiderepo
394df82bbe fix(hotfix): restore missing require_once for verdict-helpers + add Beehiiv attribution (v2.1.8)
v2.1.7 deploy had a truncated functions.php due to bash-mount write lag — missing
require_once for inc/verdict-meta.php and inc/verdict-helpers.php, which caused
a Fatal error on front-page.php:24 (undefined function peptide_starter_get_verdict_taxonomy).

Also adds the Beehiiv attribution enqueue (intended for v2.1.7 but lost in the
truncation). Site was down for ~30 min; production restored via direct SSH upload
before this commit.

- Restore: require_once inc/verdict-meta.php
- Restore: require_once inc/verdict-helpers.php
- Add: peptide_starter_enqueue_beehiiv_attribution() + wp_enqueue_scripts hook
2026-04-27 15:55:57 +00:00
peptiderepo
89a3ed66d3 ci: remove invalid continue-on-error from reusable workflow smoke job
Not valid on 'uses:' jobs — caused 0-job workflow failures. Theme prod
deploy already doesn't gate on smoke (needs: [validate, deploy-staging]).
Smoke remains informational.
2026-04-27 15:42:02 +00:00
peptiderepo
a7aad01af7 ci: add continue-on-error to smoke job
Smoke failures (e.g. Playwright infra issues) should not block reporting
a successful deploy as failed. Root cause of smoke failures fixed in
peptide-e2e@da79ee2 (explicit checkout in workflow_call context).
2026-04-27 15:38:35 +00:00
peptiderepo
4fa63e43cc feat(newsletter): Beehiiv signup integration — theme v2.1.7
- Add page-subscribe.php: single-column conversion template for /subscribe/
- Add peptide-newsletter-cta block to single-peptide.php (compact Beehiiv
  iframe at 180px height after article content, before prev/next nav)
- Add peptide_starter_enqueue_beehiiv_attribution() to functions.php:
  loads attribution.js site-wide in footer (one include covers all placements)
- Add 'Get our weekly digest →' footer CTA in column 1 linking to /subscribe/
  (styled accent-green; sits below brand blurb)

Form ID: 6edcd482-cbea-4767-8777-97ac17d6d609
Attribution tracking: https://subscribe-forms.beehiiv.com/attribution.js
2026-04-27 15:18:21 +00:00
peptiderepo
fb09e50c02 feat(content): Our Methodology page template + footer link (v2.1.6)
- Add page-our-methodology.php — two-column ToC template for /our-methodology/
  Mirrors page-how-we-review.php; CSS classes use page-our-methodology prefix
  #last-verified anchor is deep-link target for Phase 2 verdict-card lines
- Footer section 5: add Our Methodology link between How We Review + Editorial Standards
- Bump version to 2.1.6
2026-04-27 08:32:24 +00:00
peptiderepo
dbc3c01bc4 fix(css): featured verdicts vertical-rhythm — tighten badge→title, widen inter-card gap (v2.1.5)
Issue 1: badge→title gap tightened from 16px to 8px.
  Verdict badge is a label for the peptide name; card's uniform gap: --spacing-md
  made them look like separate paragraphs. Fix: margin-top offset on __title.

Issue 2: inter-card gap increased from --spacing-xl (32px) to --spacing-2xl (48px).
  Cards were visually merging into a single block. Card-to-card gap must clearly
  exceed within-card gaps to maintain the three-card hierarchy.

No functional or template changes — CSS-only.
2026-04-27 01:46:12 +00:00
peptiderepo
fdaea84d72 feat: B2 coming-soon badges on inactive tool cards (v2.1.4)
- Add 'coming_soon' key to module card definitions
- Protocol Builder, Tracker, Subject Log: coming_soon = true
- Calculator: fully active (shortcode_exists passes); no badge, no --inactive
- New .ps-module-card__badge: absolute top-right pill, --gray-200/--gray-700,
  Inter 600 10px; layers on top of --inactive dim treatment
- position: relative added to .ps-module-card to anchor the badge

CMO-approved in thread: 2026-04-site-wide-brand-adoption seq 10
v2.1.4
2026-04-26 09:49:32 +00:00
peptiderepo
22716b4227 fix: calc shortcode name mismatch — prc_calculator not peptide_tools_calculator (v2.1.3)
page-calculator.php and module-cards.php were both checking for
'peptide_tools_calculator' which the plugin never registered.
The calc plugin (prc) registers 'prc_calculator' — template fell
through to the 'currently being set up' fallback on every request.
2026-04-26 09:06:03 +00:00
peptiderepo
03bedf1d6b feat(copy): homepage editorial voice — v2.1.2
Items 2, 3, 5 from CMO QA pass (seq 4):
- module-cards: H2 'Research Modules' → 'Tools'; subtitle + all 6 card
  descriptions rewritten in editorial voice (removed reagent/laboratory framing)
- footer: About blurb → verdict-driven guide framing
- front-page: news section H2 'Latest Peptide Research' → 'What\'s new';
  subtitle updated to match editorial voice
  (CMO seq 2 reversed 'Briefing' to avoid vocabulary collision with newsletter)

Version: 2.1.1 → 2.1.2
2026-04-26 06:25:47 +00:00
peptiderepo
3625c25655 fix: ci — remove empty ${{ }} expression from deploy.yml comment (YAML parse failure) 2026-04-26 05:27:04 +00:00
peptiderepo
e4bf5faf5b fix: ci — inline theme path in SSH verify step (was using undefined remote var)
The 'Verify deploy destination' step defined DEST on the runner then used
${DEST} inside an SSH command. The remote shell has no DEST variable, so
${DEST} expanded to empty → 'test -f /style.css' → always fails.

Fix: inline the full theme path using ${{ secrets.SSH_USERNAME }} which
the GitHub Actions runner expands to a literal string before the script
is sent to SSH. Remote shell receives a plain path with no variables.
2026-04-26 05:22:12 +00:00
peptiderepo
95985d5d30 ci: trigger clean pipeline run — verify production SSH post-secrets fix 2026-04-26 05:19:43 +00:00
peptiderepo
0cbeb91a77 ci: decouple production deploy from smoke gate
continue-on-error is not supported on reusable workflow (uses:) job calls —
the workflow was failing at setup with no jobs spawned.

Fix: remove smoke from deploy-production needs. Smoke tests still run in
parallel (for visibility) but production no longer waits on them. Re-add
smoke to needs once peptide-e2e suite is stable and exercising staging.
2026-04-26 05:12:27 +00:00
peptiderepo
2b25d7d872 ci: smoke gate — continue-on-error until peptide-e2e suite is wired
The smoke job calls peptiderepo/peptide-e2e which expects an e2e/ directory
that doesn't exist in this repo. Until that repo and its Playwright tests are
properly wired, a smoke failure must not block production deploy.

continue-on-error: true means tests still run (visible in Actions) but don't
gate the deploy. Remove this flag once the e2e suite reliably exercises the
staging environment.
2026-04-26 05:09:19 +00:00
peptiderepo
0cb4247b1a fix: ci — remove escaped $ in PIPESTATUS check (deploy.yml)
'test ${PIPESTATUS[0]} -eq 0' sends a literal backslash to bash, which
escapes the dollar sign and prevents variable expansion — test receives the
string '${PIPESTATUS[0]}' instead of an integer, causing exit code 2.

Fix: remove the backslash so bash expands PIPESTATUS correctly.
2026-04-26 05:02:23 +00:00
peptiderepo
27d9cc5831 fix: cookie notice brand alignment + bump v2.1.1
Yoast homepage title/meta: updated via WP-CLI on production (no code change):
  title:   'Peptide Repo — What the research really says'
  desc:    'Verdict-driven peptide guides for clinicians and informed readers.
            20 monographs across 5 verdict states...'
  (CMO QA feedback, seq 2, item 1)

style.css — Cookie Notice (Hu-manity.co) button override:
  #cn-accept-cookie, #cn-more-info: background !important → var(--teal-500)
  hover state → var(--teal-600)
  Reason: plugin renders inline style='background-color: #00a99d' which beats
  regular CSS selectors; !important is the correct override mechanism here.
  (CMO QA feedback, seq 2, item 4)

Version: 2.1.0-alpha.3 → 2.1.1
2026-04-26 04:59:55 +00:00
peptiderepo
f20a598bac ci: add staging step, smoke gate, concurrency block, deploy summary 2026-04-26 11:56:00 +07:00
peptiderepo
e3ab80f482 ci: standardize PHP matrix to 8.1/8.2/8.3 2026-04-26 11:55:58 +07:00
peptiderepo
aecb4bd1cb fix: PHPCS verdict-meta.php — fix all over-tabbed array keys + for-loop body indent
Four more 'single' keys had incorrect tab counts (same over-indentation
pattern as line 37 fixed in prior commit):
- Line 52 (verdict_text registration): 6 tabs → 3
- Line 66 (signal_row text, inside for loop): 8 tabs → 4
- Line 80 (signal_row glyph, inside for loop): 8 tabs → 4
- Line 97 (has_partner_link): 6 tabs → 3

For-loop body lines 173–175: were at 3 tabs (same level as the 'for'
statement); PHPCS requires body to be indented one level deeper → 4 tabs.

All pre-existing violations in verdict-meta.php are now cleared.
2026-04-26 04:34:09 +00:00
peptiderepo
08dc8480ba fix: PHPCS — replace multi-line HTML comments, fix verdict-meta array indent + PHP tag
front-page.php:
- Replace 3 decorative multi-line HTML comment blocks (tab+space mixed
  indentation) with single-line <!-- SECTION --> comments; eliminates 16
  'Tabs must be used' PHPCS errors at lines 37-41, 93-97, 127-132

inc/verdict-meta.php:
- Line 37: correct over-indented 'single' key (6 tabs → 3 tabs to match
  array alignment of sibling keys)
- Line 171: split '<?php for (...)' onto two lines so opening PHP tag is
  on a line by itself (WordPress PHPCS requirement)

Both are pre-existing violations now exposed because CI runs PHPCS on all
PHP files (not just changed ones). No functional change.
2026-04-26 04:32:27 +00:00
peptiderepo
3942c6b29e v2.1.0 fix — tabs, split verdict helpers, PHPCS clean
- Convert space indentation → tabs in front-page.php (PHPCS)
- Extract verdict taxonomy + config arrays → inc/verdict-helpers.php
- Wire verdict-helpers.php into functions.php
- front-page.php now 254 lines (was 309)
2026-04-26 04:26:59 +00:00
peptiderepo
4188bba014 v2.1.0 — Brand token adoption + homepage verdict sections
- Remap --color-brand-primary/--color-link-hover/--focus-shadow → teal tokens
- Hero search submit → lime-500/ink (CMO brief §6)
- Hero decorative shapes → teal/lime tints
- Hero wavy underline → teal
- front-page.php: verdict taxonomy explainer (5 states) + featured verdict cards
- inc/helpers.php: new brand copy defaults (hero title + subtitle)
2026-04-26 04:22:04 +00:00
peptiderepo
614ee2a2c3 fix: remove WP post date timestamp from verdict card (P2.2)
The verdict card was showing 'Updated [WP post creation date]' which doesn't
reflect the editorial last-reviewed date. Showing a wrong date is worse than
showing none. Timestamp removed; will re-add with last_reviewed_date post meta
in v1.1 when the review-cadence tracking system is ready to populate it.
v2.0.0
2026-04-26 02:14:00 +00:00
peptiderepo
7b5f992a2a fix: CMO walkthrough P1 fixes — verdict_text, per-row glyphs, conditional disclosure, dark mode (v2.0.0-alpha.3)
P1.1: verdict_text meta field + card.php wiring
- Register verdict_text (textarea, show_in_rest) on peptide CPT
- card.php reads verdict_text meta; falls back to placeholder if empty
- Hardcoded generic placeholder no longer the default for published posts
- All 3 monographs populated with CMO-authored verdict text

P1.2: per-row glyph meta fields
- Register signal_row_1/2/3_glyph (enum: ✓|!|?|⊘|⚠, show_in_rest)
- card.php reads per-row glyph from meta instead of hardcoding by position
- Missing glyph renders nothing (not a wrong glyph)
- Semaglutide: ✓✓! | BPC-157: ✓!? | Melanotan-II: !!⚠

P1.3: conditional inline disclosure
- Register has_partner_link (boolean, default false, show_in_rest)
- single-peptide.php only renders inline disclosure when has_partner_link=true
- All 3 loaded monographs set to has_partner_link=false
- Footer disclosure unaffected (always renders)

N.1: dark mode toggle hidden
- header.php: toggle button hidden (display:none + aria-hidden)
- Dark-mode verdict colors not validated for v1; re-enable in v1.1

Meta box updated with textarea, glyph dropdowns, and partner-link checkbox.
2026-04-26 02:12:35 +00:00
peptiderepo
2fe536208b fix: correct CPT slug in verdict-meta.php (pr_peptide -> peptide)
The engineer registered verdict meta and the meta box against 'pr_peptide'
which does not exist. PR Core registers the CPT as 'peptide'. Result: the
verdict meta box was invisible in wp-admin and meta was not exposed in REST.
All functional register_post_meta and add_meta_box calls now target 'peptide'.
No data migration needed — post meta is keyed by meta_key, not CPT.
2026-04-25 20:35:14 +00:00
peptiderepo
ce08425270 fix: wire verdict card and disclosure into single-peptide.php (v2.0.0-alpha.2)
- Verdict card component was built in alpha.1 but never called from the
  template; no verdict state was rendering on any pr_peptide page.
  Now called immediately after the page header for posts with verdict_state.
- Affiliate disclosure (inline) was built in alpha.1 but never called.
  Now rendered after .peptide-content-box (below the_content / partner links)
  per the editorial disclosure spec: disclosure must follow the partner link.
- Suppress page-header <h1> when verdict_state is set; the verdict card
  already renders an <h1>, avoiding duplicate heading semantics / SEO issue.
2026-04-25 20:28:14 +00:00
peptiderepo
4f16ed9035 ci: verify deploy pipeline after SSH secret rotation 2026-04-25 20:11:19 +00:00
peptiderepo
2bb686a348 fix: PHPCS violations in brand components (Yoda conditions, array formatting, PHP tag) 2026-04-25 20:02:23 +00:00
peptiderepo
e23c141009 feat: brand identity v1.0.0 — Direction C Trusted Guide (theme v2.0.0-alpha.1)
Implements weeks 1–4 of the CMO brand identity sprint.

Key changes:
- CSS token system (assets/css/brand.css): full palette, verdict tokens, component styles
- Poppins/Inter/IBM Plex Mono Google Fonts loading with preload
- Full favicon/PWA/OG asset pack (peptide-repo-brand v1.0.0)
- 5-state verdict badge + card + evidence row components
- verdict_state + signal_row post meta on pr_peptide CPT
- Homepage hero: teal bg, new H1/subhead, lime search bar
- Archive verdict filter chips (CSS + pre_get_posts query hook)
- Affiliate disclosure component (3 contexts)
- page-how-we-review.php + page-about.php templates
- Footer Our Method links
- a11y: skip-to-content, reduced-motion, aria on verdict badges

QA: PASS (0 blockers) — qa-reviews/peptide-starter-theme/2026-04-26-a2bff59.md
Staging verified: https://staging.peptiderepo.com
2026-04-26 02:59:00 +07:00
peptiderepo
e40602d58c chore: remove dead Elementor CSS remnant from style.css (v1.7.1) 2026-04-24 02:21:04 +07:00
peptiderepo
59363e3795 fix: bump style.css version to 1.7.0 (missed in WooCommerce removal PR) 2026-04-24 02:17:57 +07:00
peptiderepo
a1917d62c2 chore: remove WooCommerce from theme — not used on peptiderepo.com (v1.7.0)
Remove all WC asset dequeue logic, cart icon conditional, and WC-specific tests from the theme. Eliminates the class of fatal errors seen in the 2026-04-23 incident where is_woocommerce() was called after WC deactivation.

Version: 1.6.x → 1.7.0
Reviewed-by: peptiderepo (CTO)
QA: qa-reviews/peptide-starter-theme/2026-04-23-d239bd1e.md
2026-04-24 01:37:31 +07:00
peptiderepo
fe161cf765 ci: add pre-deploy destination canary check + plugin inventory guard
Two safety nets to prevent rsync --delete wiping the wrong directory:
1. Pre-deploy: verify destination/style.css exists (proves it's a theme dir)
2. Post-deploy: compare active plugin count before and after — fail if any dropped

Addresses root cause of 2026-04-23 theme deploy incident.
2026-04-24 00:52:02 +07:00
peptiderepo
0c5db51739 fix: guard is_woocommerce() with function_exists() — fatal when WC not active
Call to undefined function is_woocommerce() in perf-asset-policy.php:69
caused a 500 on all page loads. WooCommerce is not active on this site.
Added function_exists() guard so the WC asset dequeue block is skipped
when WooCommerce is not installed.
2026-04-23 23:50:44 +07:00
peptiderepo
d79fc94061 feat(perf): mobile performance Phase 1 — dequeue unused plugin assets + slim fonts + preconnect (#13)
Ships peptide-starter-theme v1.6.0.

Changes:
- New inc/perf-asset-policy.php module: conditional dequeue of WC/Elementor/USMI assets on pages that do not need them, Google Fonts weight slim (Roboto 100..900 → 400/500/700; Roboto Slab → 400/700), wp_resource_hints preconnect for fonts.googleapis.com + fonts.gstatic.com, cookie-notice-front script defer.
- Kill-switch constant PEPTIDE_STARTER_PERF_DEQUEUE (default true) for instant rollback via wp-config.php.
- 4 extensibility filters: peptide_starter_perf_woocommerce_{styles,scripts}, _elementor_{styles,scripts}, _usmi_{styles,scripts}, _font_weights.
- 13 unit tests in tests/test-perf-asset-policy.php.
- Bootstrap: 2 lines in functions.php (require + after_setup_theme action).
- Docs: CHANGELOG [1.6.0], ARCHITECTURE.md, CONVENTIONS.md how-to.

Target: mobile PSI 74 → 90+, LCP 5.4s → ~2.5s.

Post-deploy: purge LiteSpeed CSS bundle.

QA: qa-reviews/peptide-starter-theme/2026-04-23-a54b5c9.md (APPROVE with handle-drift verified false-positive).
2026-04-23 13:24:47 +07:00
peptiderepo
6956479df2 ci(cto-review): add app-map freshness check to QA gate (#12)
When a PR modifies the admin settings surface, file/class structure, or data flow, the QA reviewer now flags the PR as a MAJOR concern unless the PR description references an accompanying update to the CTO app-map at `Peptide Repo CTO/app-maps/<repo-slug>.md`.

The CTO workspace is a separate repo, so CI cannot verify the doc update mechanically — the reviewer inspects the PR description for an explicit mention.

Why: the CTO-level app-maps are the single-pane-of-glass reference that lets the CTO answer questions like 'which settings does this plugin expose?' without grepping the repo each time. Without a merge-gate prompt, these maps drift out of sync with the code.

Co-authored-by: peptiderepo <peptiderepo@users.noreply.github.com>
2026-04-22 18:33:34 +07:00
peptiderepo
d2577b8371 fix: display featured images at full width, centered
The theme was rendering featured images at WordPress 'medium' size
(300×300 square crop) instead of the full 1200×632 original. Changed
the_post_thumbnail() from 'medium' to 'full' and added responsive CSS
that scales images to 100% content width with centered alignment.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-19 13:18:05 +07:00
peptiderepo
3eb6c13bf0 ci(deploy): tolerate 403 on post-deploy health check (#10)
The peptide-starter-theme v1.5.2 release added
peptide_starter_is_cloudflare_peer() — a CF-peer IP validator that
correctly rejects direct-to-origin requests as non-Cloudflare traffic
with HTTP 403. The deploy workflow's post-deploy health check makes
exactly such a request from a GHA runner IP, so it now reliably
receives 403 even on successful deploys.

Two deploys today (peptide-starter-theme v1.5.2, prautoblogger Commit 1a)
both succeeded but reported workflow failure due to this. The actual
deploys (rsync + cache purge) ran clean; site verified HTTP 200 from
real traffic both times.

Fix: accept either 200 (normal healthy response) or 403 (validator
actively rejecting non-CF origin — itself a positive liveness signal)
in the health check. Reject only on 5xx, 4xx-other, or connection
failure.

Reverting this fix is correct only if we either (a) bypass the
validator for our own health-check user-agent, or (b) route the
health check through Cloudflare. Both are larger changes for a
later release.

Agent-Session: cowork-deploy-healthcheck-fix-20260415

Co-authored-by: peptiderepo <peptiderepo@users.noreply.github.com>
2026-04-15 20:17:24 +07:00
peptiderepo
b3d51945a1 Merge PR #8: v1.5.2 — CF-peer validated client IP, grandfather migration, de-short-circuit register
Release v1.5.2-hardening. Independent QA verdict: APPROVE-WITH-P2-NOTES (Haiku 4.5 subagent, verdict file at Peptide Repo CTO/qa-reviews/peptide-starter-theme/2026-04-15-fff3fce.md). Two P2 ops follow-ups filed separately (CF-IP snapshot refresh cadence, 0.0.0.0 fallback log monitor).
2026-04-15 18:17:56 +07:00