Bygg NeuroSemantics AI: minimal mobilapp, en backend, IaC och CI/CD

Ersätter den tidigare webappen på denna branch med ett fokuserat monorepo:

- apps/mobile: Expo/React Native med tre vyer (Welcome, Chat, Paywall),
  Cognito hosted UI-inloggning (Apple/Google/e-post) och In-App
  Purchase/Play Billing via en gemensam purchases-modul.
- services/api: en enda Lambda-backend — OpenAI Responses API med
  Markdown-kunskapsbas som systeminstruktioner, free tier-gräns i
  PostgreSQL (HTTP 402 -> paywall) och kvittoverifiering bakom ett
  delat PaymentProvider-interface (Apple/Google, Stripe kan läggas
  till för webb senare).
- infra: AWS CDK-stack med API Gateway (JWT-authorizer), Lambda,
  Cognito, Aurora Serverless v2 och Secrets Manager.
- db/migrations: minimal datamodell (users + usage), inga
  konversationer sparas.
- GitHub Actions: CI (lint, typecheck, test) och deploy från main.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0118DaxZR36RpnY524vRqx3z
This commit is contained in:
Claude
2026-08-03 14:35:48 +00:00
parent 508cb534b0
commit 07fbeea09b
199 changed files with 13626 additions and 18001 deletions
+51
View File
@@ -0,0 +1,51 @@
# NLP fundamentals
NLP (Neuro-Linguistic Programming) was developed in the 1970s by Richard
Bandler and John Grinder by modeling effective therapists (Virginia Satir,
Fritz Perls, Milton Erickson). It offers models for how people structure
subjective experience.
## Key presuppositions (working assumptions)
- The map is not the territory.
- People respond to their map of reality, not reality itself.
- There is no failure, only feedback.
- Every behavior has a positive intention in some context.
- People already have the resources they need, or can create them.
- The meaning of communication is the response it elicits.
These are adopted as useful stances, not truth claims.
## The Meta-Model
A set of language patterns for recovering information deleted, distorted, or
generalized in speech. Examples:
- **Deletion**: "I'm afraid." → "Afraid of what, specifically?"
- **Unspecified verb**: "He rejected me." → "How, specifically, did he reject you?"
- **Universal quantifier**: "I always fail." → "Always? Every single time?"
- **Modal operator**: "I can't speak up." → "What would happen if you did?"
- **Nominalization**: "Our communication is bad." → "How are you communicating?"
- **Mind reading**: "She thinks I'm useless." → "How do you know she thinks that?"
The Meta-Model turns vague, limiting maps into specific, workable ones.
## Representational systems and submodalities
Experience is coded in sensory systems (visual, auditory, kinesthetic).
Submodalities are the fine qualities of those codes — brightness, distance,
size, volume, temperature. Shifting submodalities (e.g. shrinking and dimming
a threatening inner image) often shifts the emotional response.
## Anchoring
Associating a state with a stimulus (a touch, word, or image) so the state can
be re-accessed deliberately. Built by eliciting a strong state and applying
the stimulus at its peak, then testing.
## Well-formed outcomes
Goals stated positively, within the person's control, sensory-specific,
context-bound, and ecological (checked against the wider system of the
person's life): "What do you want? How will you know you have it? What might
it cost you?"