refactor(tools): remove redundant limits and acknowledgements

This commit is contained in:
morluto
2026-09-29 10:53:45 +08:00
parent 7ba3580c86
commit bd0e341572
158 changed files with 599 additions and 1527 deletions
@@ -31,7 +31,6 @@ const unknownRegistration = (
| "javascript-export-shape"
| "source-to-bundle-comparison",
) => ({
approved: true as const,
question:
kind === "application-version-comparison"
? "Which application entities remain unmatched or ambiguous across these versions?"
+2 -3
View File
@@ -82,7 +82,6 @@ const artifactUnknownInput = (
if (input.unknown_registry_approved !== true || status === "unchanged")
return undefined;
return {
approved: true,
question: `Artifact comparison is ${status}`,
severity:
status === "unknown" || status === "truncated" ? "high" : "medium",
@@ -94,8 +93,8 @@ const artifactUnknownInput = (
required_environment: null,
recommended_probes: [
{
operation: "inventory_artifact",
rationale: "Capture both complete artifact graphs under equal limits.",
operation: "inspect_artifact",
rationale: "Inspect both artifacts and compare their complete graphs.",
},
],
relationships: [],
+2 -1
View File
@@ -18,6 +18,7 @@ import { BROWSER_TOOL_CONTRACTS } from "../contracts/browserToolContracts.js";
import type { ToolContract } from "../contracts/toolContracts.js";
import type { AnalysisError } from "../domain/errors.js";
import type { Evidence } from "../domain/evidence.js";
import { analyzeWebBundleInputSchema } from "../domain/webBundleAnalysis.js";
import type { Result } from "../domain/result.js";
import type { Logger } from "../logger.js";
import { mcpProgressReporter } from "./mcpProgress.js";
@@ -100,7 +101,7 @@ export const registerBrowserTools = (
analyzeWebBundle(
options.browser,
options.permissionAuthority,
parsed,
analyzeWebBundleInputSchema.parse(parsed),
{
signal,
progress,
-1
View File
@@ -298,7 +298,6 @@ const recordWorkflowUnknowns = ({
for (const question of result.residual_unknowns) {
if (typeof question !== "string") continue;
const recorded = recordUnknown({
approved: true,
question,
severity: "medium",
domain: name === "inspect_native_api" ? "native-api" : "control-flow",
@@ -91,7 +91,6 @@ const functionUnknownInput = ({
}): RecordUnknownInput | undefined => {
if (approved !== true || status === "unchanged") return undefined;
return {
approved: true,
question: `Function comparison is ${status}`,
severity: status === "changed" ? "medium" : "high",
domain: "function-comparison",
@@ -65,7 +65,6 @@ export const recordWorkflowEvidence = (
return recordDerivedEvidence(session, evidence, undefined);
}
return recordDerivedEvidence(session, evidence, {
approved: true,
question: input.question,
severity: "high",
domain: input.domain,
@@ -53,7 +53,6 @@ export const registerCompareManagedMembers = (
const output =
parsed.unknown_registry_approved === true && unknown
? options.recordEvidenceWithUnknown?.(result.value, {
approved: true,
question:
"Which managed members remain unmatched or ambiguous across these versions?",
severity: "medium",
@@ -74,7 +74,6 @@ export const registerVerifyManagedNativeBoundaries = (
const output =
parsed.unknown_registry_approved === true && unknown
? options.recordEvidenceWithUnknown?.(result.value, {
approved: true,
question:
"Which managed/native boundaries remain unresolved or contradicted by the supplied native Evidence?",
severity: "medium",
-1
View File
@@ -158,7 +158,6 @@ const recordOfficialUnknown = (
)
return undefined;
const unknown = recordUnknown({
approved: true,
question: "The requested analysis is unavailable for the current target.",
severity: "medium",
domain: "analysis-capability",
@@ -146,7 +146,6 @@ const comparisonUnknownInput = (
.map(([scope]) => scope)
.join(", ");
return {
approved: true,
question: `Process captures disagree across: ${differingScopes}`,
severity: "high",
domain: "process-comparison",
-1
View File
@@ -63,7 +63,6 @@ const recordProcessResidualUnknowns = (
if (scenario.unknown_registry_approved !== true) return ok(null);
for (const residual of residuals) {
const unknown = session.recordUnknown({
approved: true,
question: `Was ${residual.scope} behavior fully observed during capture?`,
severity: "medium",
domain: `process-${residual.scope}`,