Repository navigation
Conversation
…-out, and META synthesis gates 1. Shell advisories reuse the main session's absolute soft/hard thresholds (conserve 60k / hand-off 80k / shared 120k cap, window-clamped pull-down); subagentForceTokens is now an optional override defaulting to forceTokens 2. Per-turn [ROUTE] token-economy line plus a project-level dispatch:"off" opt-out that stands down all task-call governance (cap/lang gates stay on) 3. Gate 6 synthesizes missing/malformed ROUTE_META with an observe note instead of denying; the three plugin-side META-rewrite retry paths in index.ts collapse into the single gate-side synthesis 4. Locale-following first-run language ask (env LC_ALL -> LANG -> en, byte-stable capture anchor) and injection mode "configured" narrowing the injected shell face to the configured set
1. ro shells' bash goes from a blanket deny to a permission object: catch-all "*" deny first, allow entries for read-only git subcommands (diff/log/show/status/blame/...), listing-only forms of mutable git commands, and search/inspect utilities (rg/grep/ls/cat/head/tail/...); edit stays denied 2. find/sed/awk/echo stay disallowed (mutation forms: -delete/-exec, -i, redirection writes); compound commands judged per segment so chained mutations still fall to the catch-all deny 3. one-line RO note appended to the ro shell prompt so review shells report findings instead of attempting writes; tests pin the allowlist shape, prompt suffix, and mutation exclusions
1. soft 60->50k (earlier conserve signal), hard 80->90k (more wrap-up room before reads close), force 120->130k (longer auto-handover runway); both default sites (config.ts, context-watch.ts thresholdsOf) synced with a pairing comment 2. shell subagent advisories and the shared termination line follow automatically: conserve/hand-off sit at the 50k/90k lines, default subagent cap 130k, window clamping recomputed 3. tests, CHANGELOG, and bilingual reference docs synced for the 1.1.0 batch
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.
v1.1.0 — graceful shell lifecycle, routing discipline, and a friendlier gate
English
Added
HANDOFF: inline · progress: n/m · next: …; protocol §2 codifies it as the authoritative remaining-work state. Window-clamped pull-down keeps tiers under the real termination line;context.subagentForceTokensis now optional and defaults toforceTokens.[ROUTE]line — the token cost model (hands-on grows this session's context; a dispatch spends a fresh shell context) plus the declaration discipline, on every main-session turn from a single pure module.dispatch: "off"project opt-out — stand down all task-call governance via.switchman/settings.json(read per call, no restart); caps/lang/watermark gates deliberately stay on.LC_ALL/LANG; the capture anchor stays byte-stable so parsing is locale-independent.configured— narrows the injected shell face to the configured models' shells (fail-open tochainwhen nothing is configured).Changed
git status/diff/log/show/blame/…, listing-only forms of mutable git commands, and search/inspect utilities (rg,grep,ls,cat,head,tail, …) now run on ro shells;editstays denied andfind/sed/awk/echostay blocked (mutation forms).context.*values are untouched.Upgrade notes
Restart opencode to apply (startup-level injection changes). Users relying on the missing-META deny as a discipline prod should note the
[ROUTE]declaration discipline is now the replacement surface.中文
新增
HANDOFF: inline · progress: n/m · next: …结尾;协议 §2 将该交接块定为剩余工作的权威状态。窗口钳位等比下拉,建议线永不越过真实终止线;context.subagentForceTokens改为可选,缺省跟随forceTokens。[ROUTE]行 — 携带 token 成本模型(亲自操作逐回合增长本会话上下文;派发只消耗全新 shell 上下文)与"每个实质动作前声明"纪律,由单一纯模块渲染。dispatch: "off"项目级退出 — 在.switchman/settings.json设置即让全部 task 治理下岗(每次调用重读,无需重启);上限/语言/水位门禁保留。LC_ALL/LANG本地化为 11 种语言;捕获锚点字节稳定,解析与 locale 无关。configured— 注入面收窄为已配置模型的 shell(未配置时回退chain)。变更
git status/diff/log/show/blame/…、易变 git 命令的列表形态、以及搜索/查看工具(rg、grep、ls、cat、head、tail等)现在可在 ro 壳执行;edit仍拒绝,find/sed/awk/echo因存在变异形态继续禁止。context.*不受影响。升级提示
重启 opencode 生效(注入面为启动级变更)。若你曾依赖"缺 META 即拒绝"作为纪律鞭策,请注意
[ROUTE]行的声明纪律是替代面。