Bound beginSession/compileCtx payloads to a compact digest #102
Closed
will.anderson
wants to merge 9 commits from
fix/bound-session-payload into hotfix/elc-source-typos
pull from: fix/bound-session-payload
merge into: :hotfix/elc-source-typos
: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#102
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/bound-session-payload"
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?
Session-init endpoints returned unbounded engram nodes (~900KB), closing the MCP client socket on every beginSession. Cap the lists and project nodes to identity + UTF-8-safe content snippets. Response drops from ~900KB to ~12KB; verified end-to-end through the proxy (HTTP 200, valid JSON-RPC). Graph intact (node_count ~12762).
proactive_curiosity strengthened its top result unconditionally every scan — a positive-feedback fixed point that pinned auto_term on the same node's first word for hours ('Fast-slow' era). Strengthen now fires only when the top node changed since the last scan, and a 4-deep finst-style tabu ring (ACT-R declarative finsts) hard-excludes recently used auto terms (~2 min at the 30s cadence). Quoted-title guard stops '"The' leaking through the >3-char stopword check and seeding lexical floods. Heartbeat now pumps /api/embed-backfill?n=32 on the authoritative store (its lazy backfill had no production trigger; coverage stalled at 93/12175) and emits wm_saturated, wm_top0_streak, embed_backfilled, embed_count. Curiosity ISE emits auto_term_streak. The stuck-WM failure mode is now a one-glance signal instead of manual ISE cross-referencing.The session-init endpoints concatenated unbounded engram activate/scan results as FULL node objects (content up to ~90KB per node), producing a ~900KB response. After the MCP wrapper re-escapes that into a stringified text block the client dropped the socket ('connection closed unexpectedly') on every beginSession call. Cap each list (8-10 activated, 10-20 recent) and project every node to a light identity plus a bounded, UTF-8-safe content snippet. Response drops from ~900KB to ~12KB; full content stays available on demand via recall/fetch/inspectGraph.Superseded by #103, which landed this payload-bounding fix directly on
main(merge commitb75d5c8). #102 targetedhotfix/elc-source-typosand carried hotfix-compiled generated C; #103 ports the neuron-api.el source onto current main and regenerates dist/soul.c (the CI-built amalgamation) + dist/neuron-api.c from main's tree. Verified: clean CI build + verify-soul-contract.sh PRESENCE/IMMUTABILITY PASS. Closing.Pull request closed