Skip to content
This repository was archived by the owner on Oct 1, 2026. It is now read-only.

[CTX-0078] fix(import): fail-closed CarryCtx import probe - #142

Merged
Xuepoo merged 2 commits into
mainfrom
carryctx/ctx-0078
Sep 26, 2026
Merged

Xuepoo merged 2 commits into
mainfrom
carryctx/ctx-0078

Conversation

@Xuepoo

@Xuepoo Xuepoo commented Sep 26, 2026

Copy link
Copy Markdown
Contributor

Closes #140

Summary

Hardens the workflow-import script to fail closed when probing local CarryCtx state. The probe now validates schema integrity, rejects unknown states (corrupt, locked, symlinked paths, concurrent mutations), and uses strict path identity tracking across fetch/import boundaries.

Changes

  • scripts/workflow-import.sh: Extensive hardening with symlink detection, path identity tracking, probe snapshot isolation, staging-based import with guard/handoff protocol, and comprehensive state validation
  • tests/workflow-import.test.ts: 540+ test cases covering all failure modes, race conditions, and recovery paths
  • .github/PULL_REQUEST_TEMPLATE.md, README.md: Bump markdownlint-cli2 pin to 0.23.2

Testing

  • just fmt-check passes (Prettier 3.9.6)
  • just lint passes (markdownlint-cli2 0.23.2)
  • just type-check passes
  • just test passes (522 tests)
  • just cargo-check passes (79 Rust unit tests)

Priority: P1 | Area: devtools | Labels: fix, P1, area:devtools | Milestone: v0.1.0 | Task: CTX-0078

Align with workspace toolchain policy (bitty-plugin-sdk#117,
bitty-plugin-template justfile). No behavior change.

Closes #135
@Xuepoo Xuepoo added this to the v0.1.0 milestone Sep 26, 2026
@Xuepoo Xuepoo added area:devtools devtools area P1 Priority P1 fix Bug fix labels Sep 26, 2026
@Xuepoo
Xuepoo merged commit 314c08c into main Sep 26, 2026
5 checks passed
@Xuepoo
Xuepoo deleted the carryctx/ctx-0078 branch September 26, 2026 00:48
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area:devtools devtools area fix Bug fix P1 Priority P1

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[P1] Make CarryCtx import probing fail closed

1 participant