rungate 0.7.0 → 0.8.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/gates/.gate-salt +1 -0
- package/gates/SCHEMA-GUIDE.md +485 -0
- package/gates/ac-quality.test.ts +106 -0
- package/gates/adversarial.test.ts +283 -0
- package/gates/brief-assembler.test.ts +487 -0
- package/gates/brief-assembler.ts +448 -0
- package/gates/bunfig.toml +2 -0
- package/gates/chain.test.ts +91 -0
- package/gates/e2e-smoke.test.ts +234 -0
- package/gates/error-classifier.test.ts +250 -0
- package/gates/error-classifier.ts +99 -0
- package/gates/gate-executor.ts +3071 -0
- package/gates/orchestrator.test.ts +968 -0
- package/gates/orchestrator.ts +827 -0
- package/gates/preload.ts +89 -0
- package/gates/prompts/ac-adversary.md +20 -0
- package/gates/prompts/evidence-validator.md +22 -0
- package/gates/prompts/prove-reproducer.md +53 -0
- package/gates/prompts.sha256 +3 -0
- package/gates/prove.test.ts +164 -0
- package/gates/rook-state.test.ts +108 -0
- package/gates/run-attribution.ts +290 -0
- package/gates/run-gate.ts +163 -0
- package/gates/schema-parity.test.ts +378 -0
- package/gates/schema.ts +1209 -0
- package/gates/self-heal.test.ts +511 -0
- package/gates/self-heal.ts +125 -0
- package/gates/ship-orchestrator.test.ts +399 -0
- package/gates/ship-orchestrator.ts +384 -0
- package/gates/spec-compliance-probe.ts +159 -0
- package/gates/test-fixtures/broken-no-environments.json +110 -0
- package/gates/test-fixtures/consumer-directory-layout.json +90 -0
- package/gates/test-fixtures/valid-standard.json +91 -0
- package/gates/test-utils.ts +43 -0
- package/gates/typecheck-gate.ts +111 -0
- package/gates/witness.ts +349 -0
- package/gates/workflow.test.ts +2018 -0
- package/hooks/ActionVerificationGate.hook.ts +96 -0
- package/hooks/AgentBriefGuard.hook.ts +38 -0
- package/hooks/AgentVerdictCapture.hook.ts +87 -0
- package/hooks/AutoVerifyGate.hook.ts +79 -0
- package/hooks/BashToolGuard.hook.ts +65 -0
- package/hooks/BashWriteGuard.hook.ts +60 -0
- package/hooks/CommitEnforcement.hook.ts +130 -0
- package/hooks/DocHygiene.hook.ts +148 -0
- package/hooks/GateEnforcement.hook.ts +58 -0
- package/hooks/GateResultProtection.hook.ts +95 -0
- package/hooks/HarnessAFKGate.hook.ts +85 -0
- package/hooks/HookCurrency.hook.ts +99 -0
- package/hooks/IssueCloseGuard.hook.ts +149 -0
- package/hooks/MergeGuard.hook.ts +58 -0
- package/hooks/PostCompact.hook.ts +60 -0
- package/hooks/ProjectStateSync.hook.ts +103 -0
- package/hooks/SkillGuard.hook.ts +69 -0
- package/hooks/SpecConformityTrigger.hook.ts +43 -0
- package/hooks/SpecSCGuard.hook.ts +123 -0
- package/hooks/StaleTTLCleanup.hook.ts +141 -0
- package/hooks/TaskCompleted.hook.ts +51 -0
- package/hooks/TeamInit.hook.ts +85 -0
- package/hooks/TestSuiteGuard.hook.ts +70 -0
- package/hooks/TestSuiteRelease.hook.ts +85 -0
- package/hooks/TopLevelCdGuard.hook.ts +108 -0
- package/hooks/VerifyPhaseLock.hook.ts +84 -0
- package/hooks/WorkflowStateGuard.hook.ts +64 -0
- package/hooks/lib/agent-config.json +9 -0
- package/hooks/lib/agentDetection.ts +201 -0
- package/hooks/lib/comment-template.ts +86 -0
- package/hooks/lib/findWorkflow.ts +101 -0
- package/hooks/lib/parseStdin.ts +37 -0
- package/hooks/lib/paths.ts +111 -0
- package/hooks/lib/utils.ts +338 -0
- package/lib/affected-tests.ts +29 -0
- package/lib/bash-write-guard.ts +627 -0
- package/lib/branch-cleanup.ts +279 -7
- package/lib/config-trackable.ts +9 -0
- package/lib/distribution-currency.ts +55 -5
- package/lib/failure-intake.ts +7 -1
- package/lib/gate-enforcement.ts +360 -38
- package/lib/gate-names.ts +72 -0
- package/lib/gate-result-protection.ts +437 -0
- package/lib/generators/code-map.ts +55 -4
- package/lib/generators/types.ts +27 -1
- package/lib/intake-sources.ts +380 -0
- package/lib/js-top-level-code.ts +20 -2
- package/lib/junit-checks.ts +239 -1
- package/lib/late-env-spawn.ts +331 -0
- package/lib/launch-base.ts +128 -5
- package/lib/package-closure.ts +114 -0
- package/lib/paths.ts +96 -3
- package/lib/phase2-decomposition.ts +1 -1
- package/lib/published-artifact.ts +162 -18
- package/lib/sc-id-cross-tree.ts +84 -8
- package/lib/scaffold/ai-review-findings.ts +149 -4
- package/lib/scaffold/ai-review-step.ts +1006 -132
- package/lib/scaffold/defaults.ts +82 -1
- package/lib/scaffold/steps.ts +642 -54
- package/lib/scanner.ts +4 -2
- package/lib/security-verdict.ts +1 -1
- package/lib/shell-path-interpolation.ts +594 -0
- package/lib/text-dependents.ts +875 -0
- package/lib/transcript-checker.ts +6 -0
- package/lib/workflow-security.ts +29 -0
- package/lib/workflow-taint.ts +732 -0
- package/lib/worktree-cleanup.ts +65 -38
- package/lib/worktree-repo.ts +32 -2
- package/package.json +4 -1
- package/scripts/check-installed-hook-currency.ts +825 -0
- package/scripts/generate-code-map.ts +13 -8
|
@@ -464,6 +464,12 @@ export const SOURCE_DIRS = [
|
|
|
464
464
|
// unlisted directory is not a test failure, it is TDD going ungraded for
|
|
465
465
|
// everything written there.
|
|
466
466
|
"bin",
|
|
467
|
+
// #1169 added the first `.ts` under evals/ — the reviewer negative control
|
|
468
|
+
// and its subjects — and the derived test caught it on the first CI run,
|
|
469
|
+
// exactly as it caught bin/. Listing it is the fix the comment above
|
|
470
|
+
// prescribes: an eval that executes is implementation, and leaving it out
|
|
471
|
+
// would grade every future write there as NO_SOURCE.
|
|
472
|
+
"evals",
|
|
467
473
|
] as const;
|
|
468
474
|
|
|
469
475
|
/** Whether a written path is implementation rather than test or docs. */
|
package/lib/workflow-security.ts
CHANGED
|
@@ -54,6 +54,35 @@ export function pathRefusal(
|
|
|
54
54
|
return null;
|
|
55
55
|
}
|
|
56
56
|
|
|
57
|
+
/**
|
|
58
|
+
* Single-quote a shell word (#1086).
|
|
59
|
+
*
|
|
60
|
+
* Single quotes are the only shell quoting with no interior expansion at all,
|
|
61
|
+
* so this is safe for a path containing a space, a `$`, a backtick or a
|
|
62
|
+
* newline alike. Double quotes stop at the space and leave the rest
|
|
63
|
+
* expanding, which is the cheapest wrong fix for #1086 and the shape a
|
|
64
|
+
* security review already caught once inside `gitDerivedStaging`.
|
|
65
|
+
*
|
|
66
|
+
* ## Why this lives here as well as in four workflow files
|
|
67
|
+
*
|
|
68
|
+
* `workflows/*.js` runs in a sandbox with no `require`, no dynamic `import()`
|
|
69
|
+
* and no filesystem (#69), so a workflow cannot load this module and must
|
|
70
|
+
* carry an inline copy — the same arrangement as `pathRefusal` above. This is
|
|
71
|
+
* the source of truth for those copies, and
|
|
72
|
+
* `test/workflow-prompt-top-level-cd.test.ts` runs every copy against the
|
|
73
|
+
* same inputs as this one and fails on any divergence. Change one, change
|
|
74
|
+
* them all.
|
|
75
|
+
*
|
|
76
|
+
* Before #1086 there was one copy, in `workflows/ship.js`, anchored to
|
|
77
|
+
* nothing: `lib/run-branch.ts` records that ship.js "owns `shellQuote`", and
|
|
78
|
+
* that was accurate while one file needed it. Four unanchored copies is a
|
|
79
|
+
* different proposition, which is why the ownership moved rather than being
|
|
80
|
+
* duplicated three more times.
|
|
81
|
+
*/
|
|
82
|
+
export function shellQuote(word: unknown): string {
|
|
83
|
+
return `'${String(word).replace(/'/g, "'\\''")}'`;
|
|
84
|
+
}
|
|
85
|
+
|
|
57
86
|
export function buildSafeGitAdd(filesChanged: string[]): string {
|
|
58
87
|
const validated = validateFilePaths(filesChanged);
|
|
59
88
|
if (validated.rejected.length > 0) {
|