fix(engine): same #129 crisis-escalation defect, on the OpenAI-tools branch (P0) #131
Open
tim.lingo
wants to merge 2 commits from
fix/129-on-openai-tools into feat/soul-openai-tools-v2
pull from: fix/129-on-openai-tools
merge into: :feat/soul-openai-tools-v2
:main
:fix-mcp-wrapper-tool-schemas
:docs-cognitive-architecture
:docs/session-2026-08-13-language-faculty
:docs/geo-operators-el-cutover-reversal-2026-08-13
:docs/engram-cognitive-architecture-2026-08-12
:engram-store-wiring
:el-route-decorators
:fix/bound-session-payload
:feat/cgi-identity-accessors
:fix/restore-soul-identity-producer
:rebase/openai-tools-onto-main
:rebase/gate-state-key-reads-onto-main
:rebase/structural-audit-onto-main
:feat/self-seeded-context
:integrate/semantic-plus-writethrough
:feat/semantic-leg-dropout
:feat/semantic-substrate
:feat/gold-set-heldout
:feat/evidence-weighted-merge
:feat/structural-audit
:feat/claim24-unfloored-semantic
:feat/executive-filter-recall
:feat/bm25-lexical-leg
:feat/semantic-seeded-assoc
:feat/associative-recall-leg
:feat/hybrid-semantic-recall
:chore/retrieval-measurement-contract
:feat/retrieval-eval-harness
:feat/soul-write-through
:feat/recall-through-activation
:chore/regen-soul-amalgam-20260807
:feat/gate-state-key-reads
:fix/129-on-openai-tools
:fix/129-history-amplification
:fix/liveness-engine-91
:feat/soul-openai-tools-v2
:fix/resume-server-tool-replay
:fix/soul-history-provenance-20260805
:feat/soul-plain-chat-generation-20260805
:feat/soul-native-web-search-20260804
:ci/pin-vendored-runtime
:reconcile/soul-union-main
:fix/bound-session-payload-main
:fix/receipts-wrapper-forget
:fix/receipts-agent-tools
:reconcile/neuron-wip-to-main
:hotfix/trackb-threat-to-others
:reconcile/hotfix-to-main-launch
:hotfix/elc-source-typos
:fix/safety-contact-truncation
:fix/genesis-boot-crash
:fix/immutable-on-hotfix
:feat/bounded-persona-floor
:ci/rdynamic-http-handler
:ci/harden-gate-boot
:feat/agent-phase1-soul
:salvage/elh-state-20260704
:feat/soul-model-self-report
:feat/openai-format-providers
:el-runtime-repoint
:feat/plan-mode-endpoint
:fix/operator-identity-home-resolution
:fix/wrapper-backlog-endpoints
:fix/list-typed-slice-offset
:feat/connectors-call-route
:fix/chat-vision-attachments
:fix/prevent-engram-corruption
:fix/emergency-regressions
:fix/session-continuity-hook
:fix/context-dedup-shared-ids
:fix/engram-float-parser
:improve/recall-context-format
:improve/recall-context-dedup
:improve/recall-cross-session-continuity
:improve/recall-emotional-recall
:improve/recall-activation-seed
:improve/recall-recall-completeness
:improve/recall-temporal-precision
:improve/recall-engram-scoring
:improve/recall-recall-reliability
:improve/recall-session-start-recall
:improve/reliability-engram-write
:improve/reliability-state-management
:improve/soul-memory-formation
:improve/safety-crisis-detection
:improve/reliability-route-error-recovery
:improve/reliability-llm-retry
:improve/reliability-session-boundary
:improve/reliability-safety-resilience
:improve/reliability-engram-connection
:improve/soul-routes-api
:improve/reliability-cross-session-affective
:propose/agent-workspace-root-read
:improve/reliability-conv-history
:improve/soul-strip
:improve/soul-chat-pipeline
:docs/conversation-retrieval-design
:propose/no-fake-tools-in-chat-mode
:fix/ci-soul-build-single-file
:fix/canonical-self-bridge
:feat/agent-tool-workspace-scope
:fix/agentic-tools-duplicate-web-search
:green/agentic-fixes
:feat/connectors-soul
:feat/layer-safety
:feat/layer-imprint
:feat/layer-stewardship
:test/layer-composition
:test/layer-safety
:test/layer-stewardship
:test/layer-imprint
:feat/memory-delete-update
:feat/native-web-search
No Reviewers
Labels
Clear labels
BETA-CRITICAL
blocks-public-beta
HELD
ORTHOGONAL
P0
POST-BETA
security
On the beta critical path — must resolve before ship
Must be fixed before any public beta
Blocked pending an external decision (counsel / dual sign-off)
Parallel workstream (testing/hardening) — safe to assign off critical path
Drop-everything severity
Important but not blocking the beta ship
Security vulnerability
No labels
Milestone
No items
No Milestone
Projects
Clear projects
No projects
No Assignees
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: neuron-technologies/neuron#131
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Delete Branch "fix/129-on-openai-tools"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Same defect as #129, on an independent branch. P0 SAFETY.
feat/soul-openai-tools-v2forked before the #129 fix and carries the identical defect atchat.el:2937: the agentic path's L1 safety screen readstate_get("conv_history")while history is written per-session underconv_hist_key(session_id). Multi-turn crisis escalation scored 0 on every real conversation. Without this, the bug ships again the moment that branch lands.Deliberately a byte-identical mirror
The extraction and both diff hunks match
43d0449onfix/129-history-amplificationexactly — only line offsets differ (2900 vs 2519). The session id was already in scope here under the same name (sess_for_root, declared 2922). The two branches converge instead of diverging, so whichever merges second is a clean merge, not a conflict.Two-leg proof — one variable
The extraction was in place on both legs; only the state key changed.
3. REGRESSION #129 … FAIL got: soft_bell expected: hard_bell— 8 passed, 1 failedRe-run independently after the agent reported it: exit 0, 9/9, including
PASS: distress history escalates the agentic screen to hard_bell.Engine rebuild from this branch: amalgam 1,185,285 bytes / 1231 inlined bodies (gate wants ≥1200), binary 903,144 bytes, 14 warnings, 0 errors.
nmconfirmsT _agentic_safety_screenandT _conv_hist_key.One divergence worth knowing
This branch already carried its own test runner at
tests/run-el-test.sh(fromde65991, elb-based, links whole modules). The #129 runner lives atscripts/run-el-test.sh— different path, no collision. Both are kept; the proof above used thescripts/one. Someone should decide which survives, but not in this PR.Rung — stated plainly
BUILT + RUNS (discriminating test). NOT E2E: no DMG, and not exercised against a live OpenAI-wire agentic turn. Since the OpenAI wire is this branch's entire purpose, that is the honest gap — the fix sits upstream of the wire at the input gate, so it should hold across a real provider round-trip, but that is an expectation, not a measurement.
Refs #129
🤖 Generated with Claude Code
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.