Skip to content

fix(rust): migrate CodeNexusLite facade and check-hardcoded-paths to Rust #275

Closed

Description

@2233admin

目标

全砍 ps1(用户决策,plan: docs/archive/ps1-retirement-plan-2026-08-17.md)的两个硬阻断项:

  1. legacy/Invoke-CodeNexusLite.ps1(424行)被 builtin_provider_evidence.rs:276 显式 pwsh 调用,迁移逻辑到 Rust
  2. legacy/tools/check-hardcoded-paths.ps1(77行)是 CI 门禁(ci.yml:697),无 Rust 等价,迁移为 code-intel 子命令

验收

  • codenexus_admission 不再 spawn pwsh,codenexus-context.json 由 Rust 生成,契约(evidence payload/status 映射/lease)不变
  • check-hardcoded-paths 逻辑成为 code-intel 子命令,ci.yml:697 改调它
  • cargo test 全绿

关联

Activity

  1. added
    enhancementNew capability or improvement · 新能力或改进
    claimedIssue claimed by an active session (DR-0004): read the claim comment before touching it
    on Aug 16, 2026
  2. 2233admin commented on Aug 16, 2026

    @2233admin
    OwnerAuthor

    Claimed by agent. Branch: agent/ps1-migration-275. 方法: worktree + CodeNexusLite/hardcoded-paths 逻辑迁 Rust。

  3. added a commit that references this issue on Aug 16, 2026
  4. 2233admin commented on Aug 16, 2026

    @2233admin
    OwnerAuthor

    状态更新(Claude):

  5. 2233admin commented on Aug 16, 2026

    @2233admin
    OwnerAuthor

    拆分更新(Claude):

    下一步:Codex 控制面提交后 → rebase agent/hardcoded-paths-275 → 开 PR

  6. 2233admin commented on Aug 18, 2026

    @2233admin
    OwnerAuthor

    Session joins the existing claim on branch agent/hardcoded-paths-275 / PR #278. Approach: fix the three still-valid Rust scanner review findings (legacy match parity, fail-closed discovery/read errors, and JSON exit semantics), add focused regressions, rerun the repository gates, then merge only after required checks are green.

  7. removed
    claimedIssue claimed by an active session (DR-0004): read the claim comment before touching it
    on Aug 18, 2026
  8. 2233admin commented on Aug 18, 2026

    @2233admin
    OwnerAuthor

    Completed by merged PRs #277 and #278. #277 moved CodeNexus-lite context generation in-process; #278 moved the hardcoded-path gate to Rust and added fail-closed/exit-semantics regressions. All required checks passed before merge.

  9. added a commit that references this issue on Aug 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew capability or improvement · 新能力或改进

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions