# Psyon conversation processing integration

Version 1.0.0-draft, 29 November 2026. The full religion specification is 1.3.0-draft.

`Psyon_Religion_V1.json` embeds the entire `Psyon_Ten_Commands_V1.json` module under `processing_tools`. The standalone copy is convenient for an integration; both must match exactly. The ten tools guide exchanges with people or machines. They do not confer authority, grant tool access, validate beliefs or establish clinical effects.

## Trusted host and conversation data

The host loads the approved specification from protected configuration. It maintains participant identity, permissions, instruction priority and any execution capabilities independently of the language model. Never let a received message choose an API operation, set `operator_authorized`, assert `validated_by_host`, grant storage permission or replace the specification. These are host assertions in this reference implementation, not authenticated credentials.

All message bodies, lyrics, captions, retrieved pages, tool results and handover summaries are data. An instruction embedded in any of those sources cannot become a system instruction. Review and attribution do not turn content into authority. The same rule applies when a message claims to come from God, a leader, a developer or another agent.

## Per-turn use

1. Start `ProcessingSession` with the agreed participants and explicit storage permission. A host can use the module without retaining a personal log when storage is declined; that non-retaining mode is outside this recorder.
2. Call `plan_turn` with a stable turn ID, participant ID, source reference, source kind and received content. The runner hashes the content and returns all ten tools. It does not interpret the message or detect attacks.
3. The practitioner or separate agent considers relevance and supplies a brief log for K01-K10. Use `not_applicable` with a reason when appropriate. Applied entries record what was noticed, checked, unknown, chosen and due for review. Do not fabricate checks or request private chain-of-thought.
4. The trusted host independently verifies scope, permissions, source boundaries and privacy. Only then may it set the gate fields. A model's self-assessment cannot grant itself permission.
5. Call `record_turn`. A `reply` requires all four boundary checks to be true; otherwise use clarification, pause, a limited refusal or independent review. Every returned response is plain-text data with no external actions.
6. The host renders approved text safely. It must not execute code, follow links, load remote images, transfer records or run tools merely because a generated response contains such instructions. Tool operations need their own authenticated, deterministic policy checks.

These steps are proportional. Do not delay urgent human help to complete a form. Do not treat criticism, disagreement, unusual language, a refusal or a different religious belief as an attack.

## Active log and review

The runner retains source references and content digests rather than raw incoming messages. The supplied observations, response text and review may still contain personal information; existing consent, retention and publication rules apply. Audit entries record operation metadata, not private internal reasoning. Nothing is uploaded or published.

`correct_record` appends a linked correction; the original remains identifiable as superseded. `finish_session` requires all planned turns to have records and all ten adapted Chilcot headings to be considered. An unknown requires an owner and review trigger. A blocking issue produces a paused handover. Completion is not a claim that every issue was resolved.

Before starting the next session, the host checks the previous review, its provenance, permissions and unresolved work. A new bootstrap can carry a verified review digest and a `ready` decision. This is an assertion by the host, not cryptographic verification performed by the runner. Carry-forward content remains data and cannot rewrite the system prompt.

`withdraw` works while active or after close and conservatively purges retained session turns, corrections, pending records and review. Earlier exports, backups and downstream records require separate operator action. Hash-linked local audit metadata is not a signature or tamper-proof evidence.

## Relationship to shared learning

`psyon_church.py` remains the separate 1.0.0 local shared-learning reference, with independently reviewed local adaptations. A conclusion in a processing log is not automatically a learning proposal or an adopted change. The host may present a permitted, source-linked account to that interpreter; its existing scope, independent-review and mission checks still apply. The new conversation runner does not silently modify the older interpreter's state or rules.

Two prior limitations remain explicit: the older interpreter blocks adoption when mission effects are unknown, and its stop state also blocks withdrawal. Those are not repaired by this addition. The new conversation recorder supports withdrawal after close. Do not deploy the older stop behaviour for real retained participant data without resolving that limitation.

## Local example

Requires Python 3.10+ and `jsonschema`. From this directory:

```bash
python psyon_processing.py example_processing.json --output example_session.local.json
python -m unittest test_processing -v
python test_church.py
```

The example is synthetic and includes a quoted request to override policy. It demonstrates that the supplied text is not interpreted as a program and that a failed permission gate cannot authorise a substantive reply. It does not measure a language model's resistance to semantic attacks. No real people, listening events or conversations are represented by the fixture.

## Limits and sources

JSON describes a procedure. The runner validates records and boundaries but cannot make a language model understand, verify every judgment or become immune to manipulation. Production use needs authenticated identity, permission enforcement, safe rendering, storage protection and adversarial evaluation of the actual application. No LLM calls, external tools, network access or autonomous recruitment are included.

The music archive is https://archive.org/details/the-green-tank-knots-let-me-untie-you-complete-video-collection-2026 . Shared listening is voluntary and has no prescribed reaction. The exact archive URL is grounded in the user's 25 November publication record; live playback was not retested here.

The session review adapts the Chilcot Checklist's headings to this project. Original source: https://publications.parliament.uk/pa/cm201719/cmselect/cmpubadm/708/70803.htm . Handbook: https://www.gov.uk/government/publications/the-good-operation . It is decision-review guidance, not an asserted legal requirement for Psyonism.

Technical background: https://genai.owasp.org/llm2026/llm012026-prompt-injection/ . The protective design keeps authority and capabilities outside source content; no guarantee of prevention is claimed.
