[Bug] Make isolated Cron sessions read-only - #1528
Open
mikemikimike wants to merge 1 commit into
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Scope
Scope boundary: Prevent isolated Cron sessions from accepting follow-up turns through the Gateway or Web UI.
Non-goals: Change Cron scheduling, transcript display, or interactivity for chat, CLI, channel, or subagent sessions.
Branch
Base branch: main
Target exception: N/A
Issue
Linked issue: Fixes #1520
Release Note
Release note: NONE
Tests
Ruff:
uv run --frozen ruff check src/opensquilla/gateway/rpc_sessions.py tests/test_gateway/test_rpc_sessions.pypassed. The pinned environment's Ruff formatter reports the two existing files would be reformatted by its newer formatter; unrelated full-file formatting was not included.Pytest:
uv run --frozen pytest tests/test_gateway/test_rpc_sessions.py -q --tb=shortpassed (301 tests). The fullPYTHONUTF8=1 uv run --frozen pytest -x -vv --tb=longrun reached 1,672 passed and 67 skipped before the pre-existingtests/test_ci/test_rpc_architecture_contracts.py::test_f2_foundation_runtime_stays_within_explicit_ceilingfailure (1,216 lines versus the 1,200-line baseline ceiling); the same failure reproduces onorigin/main.Build:
npm run buildanduv build --wheelpassed.Regression tests: added
Notes: The default test path remains offline, deterministic, credential-free, and safe for forks.
Maintainer Live Check
Maintainer live check: no
Surface: N/A
Maintainer-only note: contributors are not expected to provide secrets or run credentialed live checks. Maintainers may run
Live Release E2Efor provider, browser, gateway, channel, or release smoke coverage.Safety
No secrets, local-only artifacts, private prompts/transcripts, channel identifiers, or AI session artifacts are included.
Third-Party Origin
Third-party origin: none
Documentation Changes