Skip to content

Session contract gap: Session::call_function has no env channel — compdef's NIU_COMP_WORDS/CWORD injection still needs the Tier-C seam; design §8 coverage claim is inaccurate #2001

Closed

Description

@caomengxuan666

来源:niu 迁移簇(PR #668)残留 R2。Executor::call_function_with_env(niu 两处消费:compdef 注入 NIU_COMP_WORDS/CWORD)在契约面无等价——Session::call_function 无 env 通道;设计 docs/design/1.5.0-session-api.md §8 对该形的覆盖宣称不准确。现经 Tier-C 接缝 Session::executor() 承接(账本 v4 §2.2 在录)。归宿:发布后契约批——二选一:契约补 env 形,或修正 §8 宣称并把该面正式记为接缝保留。证据:~/workspace/niu-migration/REPORT.md §7 R2。

Activity

  1. added
    P3-low
    deferred
    and removed
    deferred
    on Oct 28, 2026
  2. added this to the 1.5.0 milestone on Oct 31, 2026
  3. caomengxuan666 commented on Oct 31, 2026

    @caomengxuan666
    MemberAuthor

    解冻(用户 2026-10-31 指令:长冻 deferred 集全开,与本波残差一并修)。已移除 deferred 标签。

    归宿:合同族簇——call_function env 通道实现 + 设计 §8 覆盖声明纠正。

  4. removed this from the 1.5.0 milestone on Oct 31, 2026
  5. caomengxuan666 commented on Oct 31, 2026

    @caomengxuan666
    MemberAuthor

    范围收敛(用户 2026-10-31 指示:1.5.0 不再扩容、尽快发版):本单移出 1.5.0 发布门。已派的工作继续完成、PR 照常走验证,能在冻结前干净落地的照常合并,落不进的顺延,不阻塞发版。

  6. caomengxuan666 commented on Oct 31, 2026

    @caomengxuan666
    MemberAuthor

    Complete: the Session contract surface now carries call_function_with_env, delivered as the cross-repo pair — rubash PR #2357 (merged 5727567) adds Session::call_function_with_env with the env channel, and niubash PR #762 (merged bf91dbad) mirrors docs/api-ledger.md; both repos' ledgers are byte-identical at 188 symbols (the ledger-match canary passes on the niu side).

    Verification on the rubash side: the issue2001 pin suite passes 6/6 under the scrubbed-fd runner. One pin initially red was adjudicated a WRONG PIN, not a product bug: it asserted an empty expansion (${CH_ABSENT+set}) leaves the marker unset, but GNU binds it set-but-empty (declare -v true), which is what the engine's resolved_value contract documents (None only when unset); the pin was corrected test-only (commit 0207570) with the GNU behavior recorded.

    Note: niubash PR #762's CI carried one unrelated red — gnu_default_bind_table_mirrors_except_known_gaps — adjudicated a pre-existing flaky test (fails intermittently on #757/#760/#764, passes on #759/#761/master, wholesale-unmapped signature on a docs-only diff); tracked as niubash #768.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

P3-low

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions