Repository navigation
feat: absorb worktree, watch-pr, ship-pr, and T3 improvements - #63
Merged
Merged
Conversation
Absorb reliability, safety, and T3 Code integration improvements from michael-denyer/pstack-claude and chhoumann/t3-pstack while preserving mstack's canonical harness-neutral skills tree and host-reference boundary: - Worktree audit & cleanup safety: read-only default with -b/--base and --fetch, refs/remotes/ anti-shadowing, GIT_OPTIONAL_LOCKS=0, leaf-only DISPOSABLE filtering, submodule & <gitdir>/modules hold gates, reflog orphan detection, pathSpellings, .jsonl.zst decoding, Copilot/Pi/T3 custom home transcript discovery, and fail-closed PR/transcript checks. - Meta-mode tooling: pure-ESM Node 18+ require-bun.mjs guard, lockfile- keyed external cache in bootstrap.ts, hardened watch-pr with optional --settle window, and ship-pr inspect/cancel-pending for auto-merge and merge-queue cancellation. - T3 Code tooling & docs: read-only T3 provider home inspector (scripts/t3-homes.mjs / npm run check-t3), --catalog validation with modelFamily() and advisory panel warnings, and updated T3 host refs. - Tooling, playbooks & invariants: quote neutralization in log.mjs, streamed CR handling in statechart, MSTACK_SESSION_HOOK=off override, comment-reviewer HOLD policy, playbook hardening, conflict-marker and reference/invariant test suites, and THIRD_PARTY_NOTICES attribution.
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.
Summary
Absorbs reliability, data-safety, tooling, and T3 Code integration improvements from
michael-denyer/pstack-claudeandchhoumann/t3-pstackwhile preservingmstack's single canonical, harness-neutralskills/tree and strictskills/*/references/hosts/isolation.Highlights
tools/meta-mode/worktree-audit.mjs,skills/meta-mode/playbooks/worktree-cleanup.md):--fetchrefreshes any configured remote base, withrefs/remotes/anti-shadowing and longest-prefix remote matching); globalGIT_OPTIONAL_LOCKS=0; early empty return when no linked worktrees exist.DISPOSABLEignored filtering (never drops ignored secrets inside trackedbuild//dist/dirs); initialized +<worktree-gitdir>/modulessubmodule hold gates (hold-submodule, persisting even aftergit submodule deinit); submodule ignored files; worktree-only HEAD/reflog orphan counting (hold-reflog);locked/prunable/hold-scratch(immune tostatus.showUntrackedFiles=no).@{upstream}-aware--left-right --countremote status (behindN,aheadA,behindB), ancestor symlinkpathSpellings, RFC-8878.jsonl.zstZstd decoding, Copilotsession-state, Pipstack/mstack, and T3 custom Claude/Codex home transcript scanning (skipping shadow/secret homes), with fail-closed PR & transcript error handling.validate_no_submodules&status.showUntrackedFiles=nobehavior and--all --reflog --not --remotes --onelinesubmodule commit auditing while strictly forbidding--force/rm -rf/git clean -fdx.require-bun.mjs,bootstrap.ts,watch-pr, andship-pr(tools/meta-mode/):require-bun.mjsguard loaded before dynamicawait import("../bootstrap.ts")inwatch-prandship-pr.${XDG_CACHE_HOME:-~/.cache}/mstack/meta-mode-tools/<sha256>/viaNODE_PATH(preserving Codex 0.164+ plugin hook trust hashes).watch-pr(deadline,landing,check-suites,head-checks, GraphQL refusal/cursor/error fail-closed checks) + opt-in bounded--settle(settle.ts, running beforefactsAfterChecks).ship-pr(inspect/cancel-pending) for auto-merge disabling, merge-queue dequeuing, and readback verification.scripts/t3-homes.mjs,scripts/model-config-lib.mjs,scripts/model-config.mjs):npm run check-t3(scripts/t3-homes.mjs) distinguishinginstalled/missing/unknown(redacted secret homes warn without causing unfixable--checkfailures; optional--strict), supporting direct & plugin install layouts and shell-safe hints.modelFamily(),--catalogvalidation (with BOM/UTF-16decodeTextand effort-option filtering), advisoryt3CatalogWarnings, and updated T3 host references &docs/t3code.md.show-me-your-work/scripts/log.mjs, streamed CR handling instatechart/scripts/frontends/messages.ts,MSTACK_SESSION_HOOK=offoverride inscripts/session-hook.mjs, 3-marker LF/CRLF conflict check inscripts/validate.mjs,comment-reviewerHOLDpolicy, playbook hardening, new test suites (invariants,skill-references,readme-facts,test-discovery,t3-homes,bootstrap,shipping-cli), andTHIRD_PARTY_NOTICES.mdattribution.Verification (Local CI/CD)
npm test(validate.mjs61 skills +skill-baseline.mjs --check+ Node test suite): 796 pass / 0 fail (2 Windows symlink skips)tools/meta-mode:bun install --frozen-lockfile,bun test(265 pass / 0 fail, 14 Windows-only POSIX shebang skips),bun run typecheck(exit 0)skills/statechart/scripts:npm run test:portable(146/146 pass)node scripts/check-upstream.mjs --source <pstack> --strict&skill-baseline.mjs --check: 0 drift / 0 problemsnpm run check-package: 699 files, 0 excluded filesGemini-4-Neon(High)9.3/10,Opus-5.5(High)9.3/10