Skip to content

fix(release): 1.4.1 version bump missed Cargo.lock's own rubash entry - #863

Merged
caomengxuan666 merged 1 commit into
masterfrom
fix/141-lock-selfentry
Oct 19, 2026
Merged

caomengxuan666 merged 1 commit into
masterfrom
fix/141-lock-selfentry

Conversation

@caomengxuan666

Copy link
Copy Markdown
Member

跟随 #862:Cargo.toml 升 1.4.1 但仓内 Cargo.lock 的 rubash 自条目仍 1.4.0——--locked 构建(含 release workflow)内部不一致必炸(v1.4.1 tag 的首次 Release run 已因此结束,未发布任何产物)。一行的 lock 自条目修正。

…ntry — --locked builds (incl. the release workflow) cannot pass with the internal mismatch
@caomengxuan666
caomengxuan666 merged commit 45f537e into master Oct 19, 2026
8 checks passed
@caomengxuan666
caomengxuan666 deleted the fix/141-lock-selfentry branch October 21, 2026 07:59
caomengxuan666 added a commit that referenced this pull request Oct 21, 2026
Cargo.lock's own rubash entry is bumped in lockstep (#863 lesson): --locked
builds, including the release workflow's cargo package/build/publish, fail on
the internal manifest-vs-lock mismatch otherwise.

No code changes — version metadata only.
caomengxuan666 added a commit that referenced this pull request Nov 5, 2026
…h#863)

Refs #863

Object 1 — contract shape (b), explicit reentrancy-aware guard
over (a) scoped &self context: an attempt EXECUTES (it runs
compspec functions, captures COMPREPLY, mutates the governing
copy through compopt), so no &self context can own it; the read
half already has &self faces. Session::begin_completion_attempt
opens a CompletionAttempt owning the &mut borrow per attempt,
with complete_detailed / call_function_with_env execution faces
and a live &Session lend (session()) for reads; nested attempts
are repeated calls on the same guard, and a second guard cannot
exist while one lives, so the thread-local's aliasing hazard is
a compile error instead of a dark face at runtime.

Object 2 — nested reads are LIVE (ratified, not created): the
prototype differential (3 probes, green on master before this
change) showed the engine side already live under nesting; the
dark faces were host-side only. Alongside the guard, the
completion window changed from a bool to a depth counter
(line_completion_active -> line_completion_depth, RAII-armed
in Executor::complete_line_detailed), so an inner attempt
returning can no longer close the outer attempt's compopt window.
True re-entrant complete_detailed calls are unreachable from
either side today, so the depth is a hardening for the guard
era, not a fix for a live bug (GNU: readline/complete.c
RL_STATE_COMPLETING, pcomplete.c:1520-1531, complete.def:865-886).

Object 3 — boundary: the post-build invocation apply face is NOT
landed here. GAP-7 and GAP-12 share the ShellInvocation object
as input but are different faces (apply vs read-back); an apply
without a read face cannot be pinned, so the host's
apply_invocation_before_startup stays tier-C until a follow-up
pairs apply + read faces.

Pins: 6 issue863_gap7_* in consumer_tests (6/6 scrubbed);
consumer_tests 60/60; full lib 1083/1 (the 1 is a scrubbed-TMPDIR
setgid environment artifact, passes plain); ledger tripwire
213 symbols (207 + 6). Counter net +158 (319,297 -> 319,455).

本 PR 删除了什么:引擎侧无删除(删除面在宿主 lane:
COMPLETION_BRIDGE 线程局部机制);内部改动一项:
补全窗口标志 line_completion_active: bool 改为深度计数
line_completion_depth: u32(同字段同位置,深度 1 时语义不变)。
caomengxuan666 added a commit that referenced this pull request Nov 5, 2026
docs(ledger): GAP-8 ledger mirror — begin_finish production (refs #2620, niu #863)
caomengxuan666 added a commit to jhermelink/rubash that referenced this pull request Nov 5, 2026
caomengxuan666 added a commit that referenced this pull request Nov 6, 2026
…> 0 (Refs #863) (#2858)

[B5-11] Ledger: raise has_compspec_at 0 -> 1, retire has_compspec 1 -> 0 (Refs #863)

Follow-up bookkeeping for the merged B5-11 host migration (niu #926, merge `d4879b4b`): the host's completer routing gate now reads `Session::has_compspec_at` (one production call, completer.rs:637), and the name-form `Session::has_compspec` has zero production callers left (the two shell.rs reads are test-module only, noted in-row, not counted).

Ledger only; no Rust touched. Checker: presence 279/279 + self-test green. Canary's ledger leg will read red until the niu mirror copies this ledger (expected lockstep debt, same as #2852 -> #923).

Refs unixwin/niubash#863, #2856.

本 PR 删除了什么:两行账本记录的 staged-0 状态(`has_compspec_at` 的 "Recorded staged ahead of the host adoption" 与 `has_compspec` 行的旧门描述);无产品代码增删。
caomengxuan666 added a commit that referenced this pull request Nov 6, 2026
…2869)

Refs #863
Refs #2859

[GAP] Add Session::background_job_count jobs-count face.

Engine half of rubash#2859 only: `Executor::background_job_count` +
`Session::background_job_count` (count-only face, bare-`jobs` set:
background && {Running, Stopped} after `cleanup_dead_jobs`).
Does NOT close #2859 — the host adoption (niu prompt segment) follows
in a separate niu PR, then the count-raising bookkeeping PR.

Captain verification on head 4a86e32 (after update-branch):
- pins `issue2859_*` 6/6 (scrubbed cargo, lib)
- `session_api` stem 19/19
- full lib 1136 passed / 0 failed / 3 ignored (base 1130 + 6 new pins)
- ledger checker 281/281, tripwire pass
- CI: all green except the expected lockstep leg
  ("niubash builds against this tree" — niu ledger still at 279;
  closed by the niu mirror after this merge). Goldens PASS
  (run 42165140717, 5m0s).

Follow-up (not in this PR): input-procsub spawn in
`src/executor/trap_exec.rs` resolves its child exe via
`CARGO_BIN_EXE_rubash` / `current_exe` without the
`test_rubash_binary_from_current_exe` fallback its two sibling
spawns have — visible only as a stray `error: Unrecognized option:
'c'` line in lib-test runs. To be filed separately.
SpookyWaste pushed a commit to SpookyWaste/rubash that referenced this pull request Nov 12, 2026
Refs unixwin#863

本 PR 删除了什么:无(账本逐字同步,niubash unixwin#906 合入后的锁步镜像)。
SpookyWaste pushed a commit to SpookyWaste/rubash that referenced this pull request Nov 12, 2026
…#863)

Refs unixwin#863

Prototype probes (all 3 green on master 2b06e8d, scrubbed):
nested compgen inside -F sees live state; the bare-compopt
window survives an inner compgen; nested dynamic resolution
keeps the outer governing-compspec copy. These are the
evidence base for the Object 1 contract-shape decision and
the Object 2 nested-read decision; the final GAP-7 pins
subsume them.

本 PR 删除了什么:无(新增探针)。
SpookyWaste pushed a commit to SpookyWaste/rubash that referenced this pull request Nov 12, 2026
…ash#863)

Shape (b) per the captain's adjudications: Session::begin_finish(&mut self, status) -> Finish<'_> owns the &mut borrow for one finish and exposes the coarse steps run_exit_trap() / final_cwd() / run_stream_end_duties(FinishDuties) / finish_all() -> FinishOutcome, with the pending status as a caller-supplied value and the finish boundary reported as values. The history step is route-gated (FinishDuties { history: SessionHistoryWrite::{Run, Skip} }, D3); the consuming close defaults the gate to Run.

finish_shell is decomposed into a FinishPass state machine (steps extracted, not duplicated); Session::close / close_with_report are re-based on the guard, signatures and CloseReport unchanged (D4 adopt-and-extend).

D1 order fix: on the plain path the EXIT trap now runs BEFORE the history write (GNU exit_shell, shell.c:1000-1002 trap then shell.c:1007-1009 save; maybe_save_shell_history, bashhist.c:488, reads HISTFILE/HISTFILESIZE at the write). The pass as previously composed wrote history first — divergent exactly when the pass itself was the first to run the trap (close / end-of-stream routes; differential probes D/E against GNU bash 5.3.20). The termsig sub-order (sig.c:590-667) is preserved exactly as built.

Ledger in the same PR: Session::begin_finish staged 0 (§2.1/§2.3/§4/§6); Session::close_with_report ENTERS the ledger (row + tripwire — previously recorded nowhere); Session::close row annotated; §4 group-A successor annotation for run_exit_trap_with_status gains the finish face. Tripwire: all 225 symbols present.

Pins: 7 issue863_gap8_* consumer pins (pending-status observation, trap-exit override pair, runs-once across stacked entries, post-trap final cwd, no-trap after exec replacement, D1 order, duties-without-history).

Refs unixwin#863

Co-authored-by: Muse Spark <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant