رفتن به محتوا

پذیرش در محیط آزمایشی جدا

این راهنما از بستهٔ همان محصول گردآوری شده است. برای تفاوت امکانات نصب محلی و قابلیت‌های عمومی، وضعیت نسخه را هم بخوانید. دستورها را با بستهٔ نسخه‌دار همان محصول اجرا کنید؛ این سایت شامل کلید یا دادهٔ خصوصی نصب نیست.

These are opt-in developer checks, not the user installation guide or a model service. Use a disposable local installation with its own data and two ordinary USER accounts whose identifiers end in @example.invalid. The initial local installation administrator is not an ordinary-owner isolation fixture. Create a harmless actual-model conversation before seeding native_acceptance.py.

From the standalone package directory:

Terminal window
python3 -B -m unittest discover -s . -p 'test_*.py'
docker build --pull=false -t personal-agent-local:acceptance .
docker image inspect personal-agent-local:acceptance --format '{{.Id}}'

The Dockerfile extends the exact selected native image, applies guarded expiry and first-use changes, rebuilds the native client with the original verified lockfile, runs native/React regression tests and restores its original node runtime user. A different native source or lockfile hash stops the build. Only compiled client assets and the recorded patched sources enter the runtime stage; development dependencies stay in the builder. Local acceptance uses the resulting immutable image ID; publishing a registry digest and final release provenance remain release work.

Prepare a local profile with the actual local model and two additional per-user-key endpoints:

  • fixture-a: http://model-a:8001/v1, model fixture-a, auth: user_provided, context_tokens: 4096.
  • fixture-b: http://model-b:8001/v1, model fixture-b, auth: user_provided, context_tokens: 4096.

Layer compose.example.yaml over the generated Compose configuration in the same disposable project. Supply PA_TEST_APP_IMAGE from image inspection, absolute PA_MODEL_FIXTURE_FILE and PA_MODEL_JOURNAL_DIR, and the journal directory owner’s PA_FIXTURE_UID/PA_FIXTURE_GID. The directory should be private and writable by that UID. Both synthetic responders run without capabilities or public ports, on an internal network. They use only explicitly synthetic credentials and journal hashes/protocol facts rather than raw headers or conversations.

The owners file is a private JSON array of two objects with email and password. State and session files contain private identifiers or tokens and stay outside Git/public evidence. Use a fresh state filename:

Terminal window
python3 -B native_acceptance.py seed --origin http://localhost:13090 --owners-file /private/owners.json --state-file /private/state.json

Restart only that installation’s Mongo and recreate its app without deleting volumes. Then:

Terminal window
python3 -B native_acceptance.py verify --origin http://localhost:13090 --owners-file /private/owners.json --state-file /private/state.json
python3 -B model_acceptance.py --origin http://localhost:13090 --owners-file /private/owners.json --state-file /private/state.json --journal-dir /private/journals
python3 -B first_use_acceptance.py --origin http://localhost:13090 --owners-file /private/owners.json

The model probe requires its two fixture provider keys to start absent, then removes its synthetic keys and restores the agents’ original providers/models. It keeps successful and failed synthetic conversations as acceptance evidence. It follows acknowledged native job status to terminal persistence, rather than treating a partially saved message as completion. An operation timeout fails the probe and does not redispatch it. Login rate limits remain enabled; respect the app’s retry interval instead of retrying login in a tight loop.

test-expired-session.cjs runs inside that same isolated app, receiving a private native session array on stdin; its control token must still be valid. It re-signs that synthetic session with a past expiry and expects 401 from account, conversation and key-metadata routes. Only boolean results are printed. This is separate from model-provider key expiry.

The first-use probe uses the ordinary model picker contract without posting to Agent Builder. It verifies a persistent owner-specific native Agent, same-conversation model switching and cross-owner denial. It clears only its synthetic provider keys and retains history. It does not prove the visible connection button; that requires a browser journey.

It also sends the saved-conversation form used after browser reload: endpoint: agents, the same persistent Agent ID, retained configured spec, and no explicit model/context limit. The own-personal-agent adapter restores only the configured custom selection before unchanged native spec/ACL validation. Foreign identities and unresolved specs are not rewritten. Native non-enforced specs may retain an existing saved Agent when a spec is unknown; do not claim that every unknown spec is rejected. An unlisted model on the custom-selection route is rejected before generation.

For failure/recovery acceptance, use only this disposable project. Back up its test librechat.yaml, set endpoints.agents.modelResponseHeadersTimeoutMs and modelResponseBodyTimeoutMs to 1000, and set fixture endpoints’ addParams.maxRetries to 0. Validate against the pinned native schema and recreate only the test app to load the temporary policy. Do not run a real slow local model under this short fixture policy. The example model-b service reads the private /journal/b-fault control file; an absent/empty file means normal operation.

Terminal window
python3 -B failure_acceptance.py --origin http://localhost:13090 --owners-file /private/owners.json --journal-dir /private/journals

The probe exclusively creates its control file (refusing a pre-existing one), exercises HTTP 503 plus actual delayed headers and an idle response body, verifies one transport attempt per failure, keeps the same Agent/conversation/history, and makes a separate explicit successful continuation. It removes its control file and synthetic keys. The four-second fixture stalls exceed the temporary one-second native transport limits; they are not simulated HTTP 504 responses. Restore the original configuration and recreate the test app after the probe; preserve all volumes. Browser error rendering and the visible retry action require a separate UI check.

Network-independence acceptance additionally ran the test app on internal Docker networks only, verified Wallet/Hub/hosted identity were unreachable from it, and reached the already owned local Qwen through a fixed private relay. A loopback-only ingress was necessary because Docker does not publish ports from that all-internal network. Those temporary relays were removed and ordinary QA networking was restored. This is evidence of optional sibling dependencies, not the consumer installation recipe or a new public model service.

Synthetic continuity does not prove reasoning quality or a real model response. Both kinds of evidence are required for release. These probes also do not prove capability policy/approval/audit, complete responsive design, database restoration or production deployment.