Skip to content

feat(brainsnn): boil — affective-intel positioning across both apps + L106 Brand Risk Scorecard#27

Draft
slavazeph-coder wants to merge 2 commits into
mainfrom
claude/brainsnn-ui-build-28ebr-GXQgx
Draft

feat(brainsnn): boil — affective-intel positioning across both apps + L106 Brand Risk Scorecard#27
slavazeph-coder wants to merge 2 commits into
mainfrom
claude/brainsnn-ui-build-28ebr-GXQgx

Conversation

@slavazeph-coder

@slavazeph-coder slavazeph-coder commented May 2, 2026

Copy link
Copy Markdown
Owner

Summary

Reposition everything around a single positioning sentence:

An affective-intelligence engine that detects the emotional payload inside online content before it shapes attention, behavior, brand risk, or public perception.

This PR now covers four things:

  1. Public homepage (ui/brainsnn-site) repositioned around the new framing
  2. In-product app (brainsnn-r3f-app) propagates the same positioning into title / og / twitter meta, the onboarding walkthrough, and the milestone synthesis
  3. Layer 106 — Brand Risk Scorecard (new): per-brand 0–100 score that aggregates many items through Cognitive Firewall + Templates + Archetypes
  4. Gallery upgrade: real SVG illustrations replace /demo-placeholder.svg for the three scan archetypes

What changed

ui/brainsnn-site (public homepage)

  • Hero — new tagline, positioning quote in the side panel, payload-focused bullets. Stats card swaps "regions / pathways" for "affective dimensions / manipulation templates."
  • Why it mattersWHY_CARDS rewritten around the four payload outcomes (Attention, Behavior, Brand risk, Public perception) plus auditable + open / local-first.
  • How it works — timeline rewritten as the four-step scoring pipeline (score → name → render → receipt). Right-side code snippet swapped from BRAIN_REGIONS.push(...) to a real POST /api/score example.
  • Who uses it — "Community / distribution" replaced with an audience grid (brand & marketing, comms / PR, trust & safety, researchers / journalists, security teams, builders / OSS).
  • Gallery — placeholder titles changed to scan archetypes (Fear cascade, Certainty theater, Affective trajectory) and wired to real SVG illustrations:
    • public/scan-fear-cascade.svg — AMY glowing red, 4-dim bars, evidence chips
    • public/scan-certainty-theater.svg — PFC dampened, BG rising, certainty templates
    • public/scan-affective-trajectory.svg — escalating pressure-over-turns line chart, peak / spike markers, receipt chip
  • README preview, footer copy, social hook, <title>, og meta — all updated to the new positioning.

brainsnn-r3f-app (in-product app)

  • index.html — title / description / og / twitter meta all match the homepage positioning.
  • OnboardingWalkthrough — STEPS rewritten. Step 1 leads with the positioning sentence. The Cognitive Firewall is framed as "the engine," the 3D brain as "the visualization layer." A new step introduces the Brand Risk Scorecard.
  • MilestonePanel — intro paragraph now leads with the affective-intelligence framing.

Layer 106 — Brand Risk Scorecard (new)

Test plan

  • npm install --prefix ui/brainsnn-site — clean
  • npm run build --prefix ui/brainsnn-site — 624 modules, 8.03s, clean
  • npm install --prefix brainsnn-r3f-app — clean
  • npm run build --prefix brainsnn-r3f-app — 912 modules, 6.19s, clean (only pre-existing dynamic-import warning for gemmaEngine.js)
  • Manual browser QA — homepage:
    • Hero renders new positioning + side panel quote
    • Why-it-matters grid shows the four payload cards
    • How-it-works timeline reads as a four-step pipeline; right-hand code block is the /api/score snippet
    • "Who uses it" grid renders six audience cards
    • Gallery shows the three new SVGs (no demo-placeholder.svg)
    • Footer copy is the positioning sentence
  • Manual browser QA — in-product app:
    • First-visit OnboardingWalkthrough — step 1 leads with the positioning, step 4 highlights .brand-risk-panel
    • Brand Risk Scorecard — paste, score, tier, archetype chips, worst items, "Copy brief (Markdown)" hits the clipboard
    • MilestonePanel intro paragraph reads as the affective-intelligence engine

L101 collision note

Three PRs claim Layer 101 right now:

Layer PR Topic
101 #22, #25 Quantum Coherence Lab
101 #24 Graph Insights
102–105 #25 Quantum (Bell, Sweep, Glossary, eml)
106 #27 (this PR) Brand Risk Scorecard

Posted a comment on #24 suggesting Graph Insights move to L107 so the quantum thread (#25) can keep L101–L105 contiguous and #27 keeps L106. Open to a different ordering if the team prefers.

What this does NOT touch

  • The 3D brain demo / R3F scenes themselves (still the visual core)
  • ui/brainsnn-viewer
  • The 100 cognitive layers shipped on main

🤖 Generated with Claude Code

claude added 2 commits May 2, 2026 02:26
…gine

Reframe the public homepage around a single positioning sentence: an
affective-intelligence engine that detects the emotional payload inside
online content before it shapes attention, behavior, brand risk, or
public perception.

- Rewrite hero (tagline, lead, side panel bullets) around the engine,
  not the visualizer. Stats card swaps "regions / pathways" for
  "affective dimensions / manipulation templates."
- Replace WHY_CARDS with the four payload outcomes (attention, behavior,
  brand risk, public perception) plus auditable + open-source.
- Replace "Community / distribution" with a "Who uses it" audience grid:
  brand & marketing, comms / PR, trust & safety, researchers /
  journalists, security teams, builders / open source.
- Rewrite the "How it works" timeline as the four-step scoring pipeline
  (score, name the technique, render in 3D, receipt + share) and swap
  the extension snippet for a /api/score POST example.
- Update gallery cards to scan archetypes (fear cascade, certainty
  theater, affective trajectory).
- Refresh README preview, footer copy, social hook, and HTML <title> /
  meta tags around the new positioning.
- Commit ui/brainsnn-site/package-lock.json (matches the existing
  brainsnn-r3f-app convention).

Build: vite build clean, 624 modules, 6.31s.

https://claude.ai/code/session_brainsnn-ui-build-28ebr
Roll the homepage repositioning across the in-product app, build the
Brand Risk Scorecard layer, and replace the homepage gallery
placeholders with real scan illustrations.

brainsnn-r3f-app
- index.html title + og + twitter meta now lead with "affective-
  intelligence engine" and the four-outcome positioning sentence.
- OnboardingWalkthrough STEPS rewritten — step 1 leads with the
  positioning sentence, the Cognitive Firewall is framed as "the
  engine," the new Brand Risk Scorecard gets its own step, and the
  ordering puts the engine before the visualization layer.
- MilestonePanel intro paragraph updated to the new framing.
- Layer 106 (Brand Risk Scorecard) added to layerCatalog and mounted
  in App.jsx behind an ErrorBoundary, after the Milestone panel.

L106 — Brand Risk Scorecard
- src/utils/brandRisk.js: splitItems / scoreItem / computeBrandRisk /
  brandBriefMarkdown. Pure functions, no side effects. Aggregates
  Cognitive Firewall (L4) + Propaganda Templates (L39) + Ad
  Transparency archetypes (L48) into a single 0–100 score with a
  4-tier classification (Clean / Watch / At risk / Critical).
- src/components/BrandRiskPanel.jsx: brand input + items textarea +
  load-sample helper, headline score card, dominant archetypes,
  most-fired templates, top 5 worst items, copy-brief-as-Markdown.
- Score formula: 60% mean pressure + 25% peak pressure + 15% high-
  risk archetype share. High-risk archetypes: abusive-domestic,
  phishing, conspiracy-hook, political-attack, cult-recruitment.
- Number 106 picked to avoid colliding with the open L101 PRs (#22,
  #24, #25 — see PR #27 description for the suggested resolution).

ui/brainsnn-site gallery
- public/scan-fear-cascade.svg, scan-certainty-theater.svg, and
  scan-affective-trajectory.svg — three hand-rolled SVG cards that
  match the new gallery copy. 4-dim score bars, brain proxy with the
  appropriate region glowing, evidence chips.
- GALLERY_ITEMS now carries an `image` field; App.jsx reads it with
  the demo-placeholder.svg as a fallback.

Builds
- npm run build --prefix ui/brainsnn-site — 624 modules, 8.03s, clean.
- npm run build --prefix brainsnn-r3f-app — 912 modules, 6.19s, clean.

https://claude.ai/code/session_brainsnn-ui-build-28ebr
@slavazeph-coder slavazeph-coder changed the title feat(brainsnn-site): reposition homepage as an affective-intelligence engine feat(brainsnn): boil — affective-intel positioning across both apps + L106 Brand Risk Scorecard May 2, 2026
@railway-app railway-app Bot temporarily deployed to wonderful-charisma / production June 18, 2026 02:54 Inactive
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.

2 participants