Skip to content

swarm-verify red control (do not merge) - #6

Closed
moonrunnerkc wants to merge 15 commits into
mainfrom
swarm-verify-red-control
Closed

moonrunnerkc wants to merge 15 commits into
mainfrom
swarm-verify-red-control

Conversation

@moonrunnerkc

Copy link
Copy Markdown
Owner

Disposable control for the swarm-verify rollout (#3). Inverts the boundary check in resolveSafePath (one line in src/utils/safe-path.ts) so that paths outside the working directory are accepted. swarm-verify is expected to refuse this. Will be closed without merging.

🤖 Generated with Claude Code

moonrunnerkc and others added 15 commits September 27, 2026 16:15
Adds the swarm-verify Action, pinned to 635e14a2a1caea59e7318ad7ba2226c1fd58cf14: each pull request's head is verified in a
network-disabled container, the verdict is signed as a GitHub attestation, and one comment
bound to the head says what was measured and what was not.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@github-actions

Copy link
Copy Markdown

RuleProbe: Instruction Adherence Report

Click to expand full report (247 lines)
RuleProbe Adherence Report
Agent: ci | Model: unknown | Task: manual
Date: 2026-09-29T05:24:40.902Z

Rules: 22 total | 15 passed | 7 failed | Score: 68%

PASS  forbidden-pattern/forbidden-no-any-type-1
PASS  structure/structure-named-exports-only-2
PASS  naming/naming-kebab-case-files-3
PASS  naming/naming-camelcase-variables-4
PASS  naming/naming-camelcase-general-5
PASS  naming/naming-pascalcase-types-6
PASS  structure/structure-jsdoc-required-7
PASS  structure/structure-max-file-length-8
PASS  forbidden-pattern/forbidden-no-console-log-9
PASS  forbidden-pattern/forbidden-no-console-extended-10
PASS  import-pattern/import-no-path-aliases-11
PASS  import-pattern/import-no-deep-relative-12
FAIL  code-style/rubric-clean-code-max-function-length-12732410
      action/main.ts:63 - found: function createDeps: 85 lines
      action/runner.ts:51 - found: function runDrift: 82 lines
      analyzers/project-analyzer.ts:71 - found: function detectConflicts: 61 lines
      ast-checks/type-aware.ts:35 - found: function checkImplicitAny: 52 lines
      commands/analyze-formatters.ts:198 - found: function formatDetailed: 70 lines
      commands/analyze.ts:59 - found: function handleAnalyze: 98 lines
      commands/verify.ts:56 - found: function handleVerify: 122 lines
      dataset/summary.ts:140 - found: function generateSummary: 87 lines
      drift/compare-configs.ts:30 - found: function compareConfigs: 93 lines
      emitter/eslint.ts:101 - found: function emitFlatConfig: 52 lines
      extractor/index.ts:56 - found: function extractRules: 83 lines
      extractor/index.ts:182 - found: function extractNamingEntries: 54 lines
      index.ts:98 - found: function generateReport: 56 lines
      llm/openai-provider.ts:75 - found: function createOpenAiProvider: 96 lines
      llm/openai-rubric-decomposer.ts:59 - found: method decompose: 53 lines
      mapper/index.ts:66 - found: function mapRule: 98 lines
      mappings/prose-template-helpers.ts:82 - found: function formatNamingConventionProse: 52 lines
      parsers/classify-statement.ts:104 - found: function classifyStatement: 150 lines
      parsers/rule-assembler.ts:55 - found: function assembleRules: 57 lines
      parsers/statement-classifier.ts:26 - found: function classifyAllStatements: 52 lines
      parsers/structural-parser.ts:39 - found: function parseStructuredMarkdown: 217 lines
      reporter/detailed.ts:46 - found: function formatDetailed: 52 lines
      reporter/markdown.ts:42 - found: function formatMarkdown: 62 lines
      reporter/text.ts:42 - found: function formatText: 69 lines
      reporter/text.ts:120 - found: function formatTextPlain: 58 lines
      semantic/engine/fingerprint/fingerprint-generator.ts:120 - found: function buildFeatureVector: 65 lines
      semantic/engine/llm-escalation.ts:35 - found: function resolveLlmEscalation: 73 lines
      semantic/engine/llm-escalation.ts:115 - found: function resolveQualifiedRule: 69 lines
      semantic/engine/llm-escalation.ts:186 - found: function resolveQualifierLlm: 61 lines
      semantic/engine/qualifiers/qualifier-resolver.ts:105 - found: function resolveQualifier: 58 lines
      semantic/engine/rule-resolver.ts:64 - found: function resolveRule: 81 lines
      semantic/engine/rule-resolver.ts:158 - found: function buildTargetVector: 61 lines
      semantic/local-extractor.ts:118 - found: function extractFileVector: 56 lines
      utils/safe-path.ts:71 - found: function walkDirectorySafe: 52 lines
      verifier/ast-check-dispatch.ts:65 - found: function runAstCheck: 77 lines
      verifier/ast-verifier-batch.ts:32 - found: function verifyAstRulesBatch: 69 lines
      verifier/ast-verifier.ts:42 - found: function verifyAstRule: 67 lines
      verifier/config-file-checks.ts:186 - found: function checkEnvTool: 67 lines
      verifier/config-file-verifier.ts:61 - found: function checkGitHook: 68 lines
      verifier/config-file-verifier.ts:134 - found: function checkPreCommitHook: 69 lines
      verifier/file-structure-checks.ts:158 - found: function checkTestColocation: 62 lines
      verifier/file-verifier.ts:82 - found: function verifyFileSystemRule: 102 lines
      verifier/git-history-checks.ts:39 - found: function checkCommitMessagePattern: 64 lines
      verifier/git-history-checks.ts:184 - found: function checkBranchNaming: 59 lines
      verifier/index.ts:48 - found: function verifyOutput: 53 lines
      verifier/path-exclusions.ts:84 - found: function countPathExclusions: 56 lines
      verifier/preference-verifier.ts:75 - found: function verifyPreferenceRule: 109 lines
      verifier/regex-checks.ts:227 - found: function checkConsistentSemicolons: 54 lines
      verifier/regex-verifier.ts:51 - found: function verifyRegexRule: 88 lines
      verifier/tooling-verifier.ts:115 - found: function checkTestFramework: 57 lines
      verifier/tooling-verifier.ts:176 - found: function checkToolPresent: 57 lines
FAIL  code-style/rubric-clean-code-no-magic-numbers-12732410
      action/main.ts:152 - found: 1024
      action/main.ts:152 - found: 1024
      ast-checks/concise-conditionals.ts:99 - found: 80
      ast-checks/max-function-length.ts:23 - found: 50
      ast-checks/max-params.ts:20 - found: 4
      ast-checks/nested-ternary.ts:32 - found: 80
      ast-checks/set-timeout-in-tests.ts:36 - found: 60
      dataset/github-client.ts:95 - found: 403
      dataset/github-client.ts:95 - found: 429
      dataset/github-client.ts:99 - found: 1000
      dataset/github-client.ts:110 - found: 422
      dataset/github-client.ts:115 - found: 404
      dataset/github-client.ts:121 - found: 200
      dataset/summary.ts:97 - found: 5
      dataset/summary.ts:99 - found: 20
      dataset/summary.ts:100 - found: 50
      dataset/summary.ts:109 - found: 5
      dataset/summary.ts:124 - found: 3
      dataset/summary.ts:136 - found: 120
      llm/openai-provider.ts:51 - found: 1000
      llm/openai-provider.ts:150 - found: 200
      llm/openai-rubric-decomposer.ts:48 - found: 30000
      llm/openai-rubric-decomposer.ts:94 - found: 200
      llm/rubric-decompose.ts:151 - found: 5
      llm/rubric-decompose.ts:222 - found: 0.01
      mapper/mappings/function-limits.ts:15 - found: 50
      mapper/mappings/function-limits.ts:27 - found: 4
      mapper/mappings/max-lines.ts:15 - found: 300
      mapper/mappings/max-lines.ts:27 - found: 120
      parsers/classify-statement.ts:88 - found: 3
      parsers/classify-statement.ts:246 - found: 3
      parsers/classify-statement.ts:249 - found: 0.60
      parsers/rubric-deterministic.ts:147 - found: 16
      parsers/rule-assembler-helpers.ts:50 - found: 3
      parsers/structural-parser.ts:62 - found: 3
      parsers/structural-parser.ts:88 - found: 3
      parsers/structural-parser.ts:166 - found: 3
      parsers/structural-parser.ts:191 - found: 3
      reporter/summary.ts:35 - found: 50
      reporter/summary.ts:41 - found: 50
      reporter/summary.ts:56 - found: 50
      semantic/anthropic-caller.ts:90 - found: 200
      semantic/engine/fingerprint/example-harvester.ts:95 - found: 0.6
      semantic/engine/fingerprint/example-harvester.ts:95 - found: 0.4
      semantic/engine/llm/prompt-builder.ts:140 - found: 12
      semantic/index.ts:87 - found: 0.7
      semantic/index.ts:87 - found: 0.4
      verifier/file-verifier.ts:159 - found: 0.8
      verifier/file-verifier.ts:168 - found: 0.8
      verifier/git-history-checks.ts:98 - found: 0.8
      verifier/git-history-checks.ts:136 - found: 0.8
      verifier/git-history-checks.ts:165 - found: 80
      verifier/git-history-checks.ts:175 - found: 0.8
      verifier/git-history-checks.ts:195 - found: 5000
      verifier/git-history-checks.ts:257 - found: 10000
      verifier/git-history-checks.ts:279 - found: 0.8
      verifier/git-history-checks.ts:291 - found: 0.8
      verifier/preference-verifier.ts:78 - found: 0.8
      verifier/regex-checks.ts:29 - found: 120
      verifier/regex-checks.ts:29 - found: 120
      verifier/tooling-verifier.ts:109 - found: 0.8
      verifier/treesitter-checks.ts:37 - found: 3
      verifier/treesitter-checks.ts:64 - found: 3
      verifier/treesitter-checks.ts:95 - found: 3
      verifier/treesitter-checks.ts:105 - found: 3
      verifier/treesitter-checks.ts:140 - found: 3
FAIL  code-style/rubric-clean-code-no-nested-ternary-12732410
      commands/drift.ts:37 - found: opts.format === 'markdown' ? 'markdown' : 'text'
      dataset/github-client.ts:228 - found: type === 'repo' ? REPO_FETCH_DELAY_MS
    : FILE_FETCH_DELAY_MS
      extractor/index.ts:164 - found: skip.reason === 'no-mapping'
          ? 'no RuleProbe equivalent'
          : '
      reporter/text.ts:57 - found: summary.adherenceScore >= 50
      ? chalk.yellow
      : chalk.red
      semantic/engine/fingerprint/hash-utils.ts:51 - found: count <= 20 ? 'mid' : 'high'
      semantic/index.ts:87 - found: rule.confidence === 'medium' ? 0.7 : 0.4
      verifier/tooling-verifier.ts:108 - found: competitors.length > 0 ? 0.5 : 1
PASS  code-style/rubric-clean-code-no-else-after-return-12732410
PASS  code-style/rubric-clean-code-jsdoc-required-12732410
FAIL  code-style/rubric-clean-code-max-params-12732410
      semantic/ast-visitor.ts:44 - found: function visitNode has 5 parameters
      semantic/engine/comparison/compliance-scorer.ts:26 - found: function assembleReport has 5 parameters
      semantic/engine/comparison/vector-similarity.ts:141 - found: function combinedSimilarity has 5 parameters
      semantic/engine/llm-escalation.ts:35 - found: function resolveLlmEscalation has 11 parameters
      semantic/engine/llm-escalation.ts:115 - found: function resolveQualifiedRule has 8 parameters
      semantic/engine/llm-escalation.ts:186 - found: function resolveQualifierLlm has 8 parameters
      semantic/engine/qualifiers/qualifier-resolver.ts:201 - found: function buildQualifierVerdict has 8 parameters
      semantic/engine/rule-resolver.ts:64 - found: function resolveRule has 8 parameters
      verifier/index.ts:111 - found: function verifyNonAstRule has 8 parameters
FAIL  code-style/rubric-keep-it-simple-max-function-length-2778b120
      action/main.ts:63 - found: function createDeps: 85 lines
      action/runner.ts:51 - found: function runDrift: 82 lines
      analyzers/project-analyzer.ts:71 - found: function detectConflicts: 61 lines
      ast-checks/type-aware.ts:35 - found: function checkImplicitAny: 52 lines
      commands/analyze-formatters.ts:198 - found: function formatDetailed: 70 lines
      commands/analyze.ts:59 - found: function handleAnalyze: 98 lines
      commands/verify.ts:56 - found: function handleVerify: 122 lines
      dataset/summary.ts:140 - found: function generateSummary: 87 lines
      drift/compare-configs.ts:30 - found: function compareConfigs: 93 lines
      emitter/eslint.ts:101 - found: function emitFlatConfig: 52 lines
      extractor/index.ts:56 - found: function extractRules: 83 lines
      extractor/index.ts:182 - found: function extractNamingEntries: 54 lines
      index.ts:98 - found: function generateReport: 56 lines
      llm/openai-provider.ts:75 - found: function createOpenAiProvider: 96 lines
      llm/openai-rubric-decomposer.ts:59 - found: method decompose: 53 lines
      mapper/index.ts:66 - found: function mapRule: 98 lines
      mappings/prose-template-helpers.ts:82 - found: function formatNamingConventionProse: 52 lines
      parsers/classify-statement.ts:104 - found: function classifyStatement: 150 lines
      parsers/rule-assembler.ts:55 - found: function assembleRules: 57 lines
      parsers/statement-classifier.ts:26 - found: function classifyAllStatements: 52 lines
      parsers/structural-parser.ts:39 - found: function parseStructuredMarkdown: 217 lines
      reporter/detailed.ts:46 - found: function formatDetailed: 52 lines
      reporter/markdown.ts:42 - found: function formatMarkdown: 62 lines
      reporter/text.ts:42 - found: function formatText: 69 lines
      reporter/text.ts:120 - found: function formatTextPlain: 58 lines
      semantic/engine/fingerprint/fingerprint-generator.ts:120 - found: function buildFeatureVector: 65 lines
      semantic/engine/llm-escalation.ts:35 - found: function resolveLlmEscalation: 73 lines
      semantic/engine/llm-escalation.ts:115 - found: function resolveQualifiedRule: 69 lines
      semantic/engine/llm-escalation.ts:186 - found: function resolveQualifierLlm: 61 lines
      semantic/engine/qualifiers/qualifier-resolver.ts:105 - found: function resolveQualifier: 58 lines
      semantic/engine/rule-resolver.ts:64 - found: function resolveRule: 81 lines
      semantic/engine/rule-resolver.ts:158 - found: function buildTargetVector: 61 lines
      semantic/local-extractor.ts:118 - found: function extractFileVector: 56 lines
      utils/safe-path.ts:71 - found: function walkDirectorySafe: 52 lines
      verifier/ast-check-dispatch.ts:65 - found: function runAstCheck: 77 lines
      verifier/ast-verifier-batch.ts:32 - found: function verifyAstRulesBatch: 69 lines
      verifier/ast-verifier.ts:42 - found: function verifyAstRule: 67 lines
      verifier/config-file-checks.ts:186 - found: function checkEnvTool: 67 lines
      verifier/config-file-verifier.ts:61 - found: function checkGitHook: 68 lines
      verifier/config-file-verifier.ts:134 - found: function checkPreCommitHook: 69 lines
      verifier/file-structure-checks.ts:158 - found: function checkTestColocation: 62 lines
      verifier/file-verifier.ts:82 - found: function verifyFileSystemRule: 102 lines
      verifier/git-history-checks.ts:39 - found: function checkCommitMessagePattern: 64 lines
      verifier/git-history-checks.ts:184 - found: function checkBranchNaming: 59 lines
      verifier/index.ts:48 - found: function verifyOutput: 53 lines
      verifier/path-exclusions.ts:84 - found: function countPathExclusions: 56 lines
      verifier/preference-verifier.ts:75 - found: function verifyPreferenceRule: 109 lines
      verifier/regex-checks.ts:227 - found: function checkConsistentSemicolons: 54 lines
      verifier/regex-verifier.ts:51 - found: function verifyRegexRule: 88 lines
      verifier/tooling-verifier.ts:115 - found: function checkTestFramework: 57 lines
      verifier/tooling-verifier.ts:176 - found: function checkToolPresent: 57 lines
FAIL  code-style/rubric-keep-it-simple-no-nested-ternary-2778b120
      commands/drift.ts:37 - found: opts.format === 'markdown' ? 'markdown' : 'text'
      dataset/github-client.ts:228 - found: type === 'repo' ? REPO_FETCH_DELAY_MS
    : FILE_FETCH_DELAY_MS
      extractor/index.ts:164 - found: skip.reason === 'no-mapping'
          ? 'no RuleProbe equivalent'
          : '
      reporter/text.ts:57 - found: summary.adherenceScore >= 50
      ? chalk.yellow
      : chalk.red
      semantic/engine/fingerprint/hash-utils.ts:51 - found: count <= 20 ? 'mid' : 'high'
      semantic/index.ts:87 - found: rule.confidence === 'medium' ? 0.7 : 0.4
      verifier/tooling-verifier.ts:108 - found: competitors.length > 0 ? 0.5 : 1
FAIL  code-style/rubric-keep-it-simple-max-params-2778b120
      semantic/ast-visitor.ts:44 - found: function visitNode has 5 parameters
      semantic/engine/comparison/compliance-scorer.ts:26 - found: function assembleReport has 5 parameters
      semantic/engine/comparison/vector-similarity.ts:141 - found: function combinedSimilarity has 5 parameters
      semantic/engine/llm-escalation.ts:35 - found: function resolveLlmEscalation has 11 parameters
      semantic/engine/llm-escalation.ts:115 - found: function resolveQualifiedRule has 8 parameters
      semantic/engine/llm-escalation.ts:186 - found: function resolveQualifierLlm has 8 parameters
      semantic/engine/qualifiers/qualifier-resolver.ts:201 - found: function buildQualifierVerdict has 8 parameters
      semantic/engine/rule-resolver.ts:64 - found: function resolveRule has 8 parameters
      verifier/index.ts:111 - found: function verifyNonAstRule has 8 parameters
PASS  code-style/rubric-keep-it-simple-no-else-after-return-2778b120

By Category:
  naming:             4/4 (100%)
  forbidden-pattern:  3/3 (100%)
  structure:          3/3 (100%)
  import-pattern:     2/2 (100%)
  code-style:         3/10 (30%)

Summary: 22 checked | 15 passed | 7 failed | 0 skipped

@github-actions

Copy link
Copy Markdown

swarm-verify

Not verified: a check failed or a requirement was rejected.

Source: head 59f66399bdcc1dc913edce62d07fe39fafa2f81d against base c5e102656f4ce4e2e56a86162d2bea33deacda4a, tree 6c5103d7593365cca489ea23d66afc3563279b73.
Regression: fail. Task: unjudged (no requirement contract was supplied, so task correctness is unmeasured).
Execution: isolated under docker node\:24\-bookworm.
Unmeasured: typecheck, format, task.
Reason: a check failed on this patch in a way it did not fail at the base commit: tests. Read its finding above; if the suite is nondeterministic, that is what the base control cannot tell apart from a regression..

Signature: signed by this workflow (attestation); verify with gh attestation verify verdict.json --repo moonrunnerkc/ruleprobe --predicate-type https://github.com/moonrunnerkc/swarm-verify/verdict/v1.
Evidence: artifact swarm-verify-7c4b4360-6b9a-4a6d-8af3-7143d7e5e313 on this run holds the JSON report, the signed bundle with its own verifier, and the verdict document (sha256:311238fd0b6742a270f3e8255ec31406b91e0370624fd82518ef2e702d27ea75).
Verifier: swarm-verify 1.1.0, run 36526005351 attempt 1.

Assessment

Swarm verification

Result: not verified. Regression: fail. Task: unjudged.

Change: branch; head 59f6639; patch sha256:9a8ceabfb5e63f988bf83ec981a94d3792f36e1c7706a8b1521d2c60fa011d6b.
Changed files: .github/workflows/swarm-verify.yml, src/utils/safe-path.ts.
Target base: c5e1026. Comparison base: c5e1026 (exact).

Execution: isolated. Integrity: exported signed bundle; independently verify it. Signer trust: not established by this run.
Assessment evidence: sha256:8c9c34a10d5364add0411a2d5cf35f3b738f3c9b07c1f79dafa9a6648f61a55a. Bundle: /home/runner/work/_temp/swarm-verify-JwFZPy/bundle.

Check Result Finding
typecheck not-applicable package.json declares no typecheck script (assessment)
lint passed the command exited 0 (assessment)
format not-applicable package.json declares no check-only format script, and running a writing formatter as a gate would edit the tree it is judging (assessment)
tests failed 1364 runner-reported tests, 1357 executed; outcome failed. Counts are the runner's own; whether the changed lines ran, and whether a failure is inherited from the base, are reported apart where measured. failing: tests/cli/cli.test.ts:CLI: verify command fails with actionable error for missing output directory; tests/utils/safe-path.test.ts:resolveSafePath throws for a path resolving outside cwd; tests/utils/safe-path.test.ts:resolveSafePath rejects a symlink to a file outside cwd; tests/utils/safe-path.test.ts:resolveSafePath includes remedy suggestion in error message (assessment)
build passed the command exited 0 (assessment)

Unmeasured: see individual checks; oracle reach unmeasured; oracle bond not-bonded.
Next action: a check failed on this patch in a way it did not fail at the base commit: tests. Read its finding above; if the suite is nondeterministic, that is what the base control cannot tell apart from a regression.

A regression pass says nothing broke. Only a requirement contract can say the work was done.

@moonrunnerkc

Copy link
Copy Markdown
Owner Author

Red control confirmed: swarm-verify refused it (Not verified, Regression: fail). Closing without merging.

@moonrunnerkc
moonrunnerkc deleted the swarm-verify-red-control branch September 29, 2026 05:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant