Skip to content
Merged
Changes from 1 commit
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
519ebaa
feat(diagnostics): report a byte entropy profile for one local file
mvanhorn Oct 12, 2026
b82e190
fix(diagnostics): flag zero-size files as not shown empty
mvanhorn Oct 13, 2026
b87f511
fix(diagnostics): merge main and preserve entropy boundary failures
morluto Oct 13, 2026
7a67707
fix(mcp): reject unsupported diagnostic summaries before inspection
morluto Oct 13, 2026
eccc741
Merge remote-tracking branch 'origin/main' into fix/byte-entropy-profile
morluto Oct 13, 2026
a156b1d
fix(ci): repair integrated checks and Hopper test baseline
morluto Oct 13, 2026
a2f6136
test(entropy): use shared MCP schema verification after merge
morluto Oct 13, 2026
4df3682
chore: merge current main into PR #2331
morluto Oct 13, 2026
f54b2ae
Merge branch 'main' into fix/byte-entropy-profile
morluto Oct 13, 2026
3a794e9
Merge branch 'main' into fix/byte-entropy-profile
mvanhorn Oct 14, 2026
27c6fd9
fix(catalog): list inspect_byte_entropy under its own provider
mvanhorn Oct 15, 2026
f7367fc
fix(cli): resolve the byte-entropy path with absoluteCallerPath
mvanhorn Oct 19, 2026
4e6600d
Merge remote-tracking branch 'upstream/main' into fix/byte-entropy-pr…
mvanhorn Oct 19, 2026
e3e5891
Merge origin/main into fix/byte-entropy-profile
kaoru0822-kitauji Oct 21, 2026
1eef8d6
fix(diagnostics): retain entropy read cleanup ownership
morluto Oct 21, 2026
da99090
docs(diagnostics): explain entropy output capacity
morluto Oct 21, 2026
9be3d92
fix(diagnostics): preserve entropy cancellation outcomes
morluto Oct 21, 2026
cc585b5
fix(diagnostics): close the entropy input and warn on large reports
cursoragent Oct 21, 2026
2489602
fix(diagnostics): keep byte-entropy registration mergeable with main
cursoragent Oct 22, 2026
9d37354
fix(diagnostics): register byte entropy with the shared tool options
cursoragent Oct 22, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
fix(diagnostics): register byte entropy with the shared tool options
Use toolRegistrationOptions so the handler typechecks on this branch and
on main, and still refuse unretained summaries before the file read.

Co-authored-by: morluto <morluto@users.noreply.github.com>
  • Loading branch information
cursoragent and morluto committed Oct 22, 2026
commit 9d37354fdf2ebbcdc29d4800a7fc7ddd08565db2
27 changes: 5 additions & 22 deletions src/server/registerByteEntropyTool.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,7 @@ import type { EvidenceWriter } from "../application/investigation/InvestigationR
import { toolContract } from "../contracts/toolContracts.js";
import type { Logger } from "pino";
import { logToolExecution } from "./toolLogging.js";
import { applicationToolRegistrationOptions } from "./toolRegistrationOptions.js";
import { analysisInputErrorFromIssues } from "../domain/inputIssueProjection.js";
import { err } from "../domain/result.js";
import { toolRegistrationOptions } from "./toolRegistrationOptions.js";
import type { WithAdmittedAnalysis } from "./analysisAdmission.js";
import { runAdmittedToolOperation } from "./admittedToolOperation.js";

Expand All @@ -29,23 +27,9 @@ export const registerByteEntropyTool = (
const retention = { recordEvidence, evidenceById };
server.registerTool(
contract.name,
applicationToolRegistrationOptions(contract),
async (rawInput, context) => {
const parsed = contract.inputSchema.safeParse(rawInput);
if (!parsed.success)
return server.delivery.toCallToolResult(
err(
analysisInputErrorFromIssues(
contract.name,
parsed.error.issues,
rawInput,
{ cause: parsed.error },
),
),
contract,
);
const { detail, ...request } = parsed.data;
return runAdmittedToolOperation(
toolRegistrationOptions(contract),
async ({ detail, ...request }, context) =>
runAdmittedToolOperation(
server,
withAdmittedAnalysis,
contract.name,
Expand Down Expand Up @@ -79,7 +63,6 @@ export const registerByteEntropyTool = (
recorded,
);
},
);
},
),
);
};
Loading