mirror of
https://github.com/morluto/rea.git
synced 2026-12-04 22:11:12 +00:00
perf(contracts): shorten the shared detail parameter description (#16823)
* perf(contracts): shorten the shared detail parameter description The detail input description is repeated on 42 tools in the default tools/list. Shorten it from 523 to 369 bytes while keeping the omitted, complete and summary semantics; delivery facts still name the budget and recovery at the point of use. Also drop a redundant inventory scan in the release-exposure container reader: both callers already pass the occurrence digest resolved through the nodeSha map. * test(schemas): refresh advertised schema summaries for the detail description
This commit is contained in:
1 parent
623a4f5787
commit
4e93e5a8d6
44 files changed
+46
-48
No files matched your search
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"schemas": {
|
||||
"input compact": "4486d3d816a1acdc",
|
||||
"input compact": "268d4efed08a82d5",
|
||||
"output compact": "e345f0377ecbe795"
|
||||
},
|
||||
"patterns": {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"schemas": {
|
||||
"input compact": "6eac36a20ddf5387",
|
||||
"input compact": "043d0cd945b14531",
|
||||
"output compact": "e345f0377ecbe795"
|
||||
},
|
||||
"patterns": {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"schemas": {
|
||||
"input compact": "03c154678fe7d621",
|
||||
"input compact": "328c454020fd3166",
|
||||
"output compact": "e345f0377ecbe795"
|
||||
},
|
||||
"patterns": {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"schemas": {
|
||||
"input compact": "62fe74e9ad6561b2",
|
||||
"input compact": "6318fdd7a5665688",
|
||||
"output compact": "e345f0377ecbe795"
|
||||
},
|
||||
"patterns": {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"schemas": {
|
||||
"input compact": "f81635865af0d4d9",
|
||||
"input compact": "9185b8ad56181c29",
|
||||
"output compact": "e345f0377ecbe795"
|
||||
},
|
||||
"patterns": {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"schemas": {
|
||||
"input compact": "e591502ca08f7a7f",
|
||||
"input compact": "8ae45537c7921dd6",
|
||||
"output compact": "e345f0377ecbe795"
|
||||
},
|
||||
"patterns": {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"schemas": {
|
||||
"input compact": "515df4f80547d12c",
|
||||
"input compact": "13e9e650c3d11d51",
|
||||
"output compact": "e345f0377ecbe795"
|
||||
},
|
||||
"patterns": {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"schemas": {
|
||||
"input compact": "c566c55bfbb1896b",
|
||||
"input compact": "d7efe74c21734b32",
|
||||
"output compact": "e345f0377ecbe795"
|
||||
},
|
||||
"patterns": {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"schemas": {
|
||||
"input compact": "92e7756c758ec014",
|
||||
"input compact": "327af9c30c9d9f35",
|
||||
"output compact": "e345f0377ecbe795"
|
||||
},
|
||||
"patterns": {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"schemas": {
|
||||
"input compact": "792f227c838ba1d0",
|
||||
"input compact": "1ced46de0a191651",
|
||||
"output compact": "e345f0377ecbe795"
|
||||
},
|
||||
"patterns": {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"schemas": {
|
||||
"input compact": "f1b040d7f8b211f1",
|
||||
"input compact": "023907476b63b0d3",
|
||||
"output compact": "e345f0377ecbe795"
|
||||
},
|
||||
"patterns": {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"schemas": {
|
||||
"input compact": "27fd8ebd0c548240",
|
||||
"input compact": "dedb10a875a5a465",
|
||||
"output compact": "e345f0377ecbe795"
|
||||
},
|
||||
"patterns": {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"schemas": {
|
||||
"input compact": "1ec3dfc50d6eecb7",
|
||||
"input compact": "d00d67795abe421b",
|
||||
"output compact": "e345f0377ecbe795"
|
||||
},
|
||||
"patterns": {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"schemas": {
|
||||
"input compact": "b6ad18c5f8961d8f",
|
||||
"input compact": "f14265899bda6c74",
|
||||
"output compact": "e345f0377ecbe795"
|
||||
},
|
||||
"patterns": {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"schemas": {
|
||||
"input compact": "b771605773d3049f",
|
||||
"input compact": "4fd0bdd55f3bb202",
|
||||
"output compact": "e345f0377ecbe795"
|
||||
},
|
||||
"patterns": {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"schemas": {
|
||||
"input compact": "510af829996c85ea",
|
||||
"input compact": "cf2f10db524ef9dd",
|
||||
"output compact": "e345f0377ecbe795"
|
||||
},
|
||||
"patterns": {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"schemas": {
|
||||
"input compact": "b830199cd7a8f739",
|
||||
"input compact": "1d283907d6662db1",
|
||||
"output compact": "e345f0377ecbe795"
|
||||
},
|
||||
"patterns": {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"schemas": {
|
||||
"input compact": "02320b9942048842",
|
||||
"input compact": "7b1d92fd0060b7ed",
|
||||
"output compact": "e345f0377ecbe795"
|
||||
},
|
||||
"patterns": {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"schemas": {
|
||||
"input compact": "1e3af2bde466363b",
|
||||
"input compact": "7169d12481757575",
|
||||
"output compact": "e345f0377ecbe795"
|
||||
},
|
||||
"patterns": {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"schemas": {
|
||||
"input compact": "97bdd30421b2a3df",
|
||||
"input compact": "efa8d38a5d67ce47",
|
||||
"output compact": "e345f0377ecbe795"
|
||||
},
|
||||
"patterns": {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"schemas": {
|
||||
"input compact": "0989dbd37faa3149",
|
||||
"input compact": "50c0084e5ffc0ad1",
|
||||
"output compact": "e345f0377ecbe795"
|
||||
},
|
||||
"patterns": {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"schemas": {
|
||||
"input compact": "c1a6ebcd8cf5a5fd",
|
||||
"input compact": "167f0101d1990534",
|
||||
"output compact": "e345f0377ecbe795"
|
||||
},
|
||||
"patterns": {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"schemas": {
|
||||
"input compact": "911672406a963c2e",
|
||||
"input compact": "d4724c1c8c4c668c",
|
||||
"output compact": "e345f0377ecbe795"
|
||||
},
|
||||
"patterns": {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"schemas": {
|
||||
"input compact": "87bdb45a542f4774",
|
||||
"input compact": "2e73f55700c3b632",
|
||||
"output compact": "e345f0377ecbe795"
|
||||
},
|
||||
"patterns": {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"schemas": {
|
||||
"input compact": "903edc5f2549a3aa",
|
||||
"input compact": "ab2989a755998515",
|
||||
"output compact": "e345f0377ecbe795"
|
||||
},
|
||||
"patterns": {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"schemas": {
|
||||
"input compact": "11990d4a616ac217",
|
||||
"input compact": "9ae98a7f2da4a41f",
|
||||
"output compact": "e345f0377ecbe795"
|
||||
},
|
||||
"patterns": {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"schemas": {
|
||||
"input compact": "4ce43ba3aebc2556",
|
||||
"input compact": "5b54f4febb1a623f",
|
||||
"output compact": "e345f0377ecbe795"
|
||||
},
|
||||
"patterns": {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"schemas": {
|
||||
"input compact": "ac545a46357cb605",
|
||||
"input compact": "faf95171599d0594",
|
||||
"output compact": "e345f0377ecbe795"
|
||||
},
|
||||
"patterns": {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"schemas": {
|
||||
"input compact": "ad6deeb69e540106",
|
||||
"input compact": "2d18a5822b264848",
|
||||
"output compact": "746a7e33520fa80a"
|
||||
},
|
||||
"patterns": {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"schemas": {
|
||||
"input compact": "e6c23cc150ea72d5",
|
||||
"input compact": "342484b2035cd143",
|
||||
"output compact": "746a7e33520fa80a"
|
||||
},
|
||||
"patterns": {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"schemas": {
|
||||
"input compact": "ad6deeb69e540106",
|
||||
"input compact": "2d18a5822b264848",
|
||||
"output compact": "746a7e33520fa80a"
|
||||
},
|
||||
"patterns": {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"schemas": {
|
||||
"input compact": "2161f368fdd6a3ca",
|
||||
"input compact": "2d2cf5de676f9ffa",
|
||||
"output compact": "e345f0377ecbe795"
|
||||
},
|
||||
"patterns": {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"schemas": {
|
||||
"input compact": "e91653898083fedc",
|
||||
"input compact": "3f5f1653f3d24b22",
|
||||
"output compact": "59263967ecc2a682"
|
||||
},
|
||||
"patterns": {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"schemas": {
|
||||
"input compact": "e91653898083fedc",
|
||||
"input compact": "3f5f1653f3d24b22",
|
||||
"output compact": "c046ae126d3e31f4"
|
||||
},
|
||||
"patterns": {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"schemas": {
|
||||
"input compact": "e91653898083fedc",
|
||||
"input compact": "3f5f1653f3d24b22",
|
||||
"output compact": "c046ae126d3e31f4"
|
||||
},
|
||||
"patterns": {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"schemas": {
|
||||
"input compact": "7bd3d5206ada19ea",
|
||||
"input compact": "b25903125fc70885",
|
||||
"output compact": "fc14c7f28c4cbbdf"
|
||||
},
|
||||
"patterns": {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"schemas": {
|
||||
"input compact": "07541a0e1a862339",
|
||||
"input compact": "23add1beca124019",
|
||||
"output compact": "e345f0377ecbe795"
|
||||
},
|
||||
"patterns": {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"schemas": {
|
||||
"input compact": "5ead352a637a24da",
|
||||
"input compact": "14cf4951fabbeca0",
|
||||
"output compact": "e345f0377ecbe795"
|
||||
},
|
||||
"patterns": {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"schemas": {
|
||||
"input compact": "9f4f41150e61f0dc",
|
||||
"input compact": "e9ece6962d246220",
|
||||
"output compact": "746a7e33520fa80a"
|
||||
},
|
||||
"patterns": {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"schemas": {
|
||||
"input compact": "9f4f41150e61f0dc",
|
||||
"input compact": "e9ece6962d246220",
|
||||
"output compact": "746a7e33520fa80a"
|
||||
},
|
||||
"patterns": {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"schemas": {
|
||||
"input compact": "ef7bf3f41eddd3cd",
|
||||
"input compact": "3e1afa149762e496",
|
||||
"output compact": "e345f0377ecbe795"
|
||||
},
|
||||
"patterns": {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"schemas": {
|
||||
"input compact": "ad6deeb69e540106",
|
||||
"input compact": "2d18a5822b264848",
|
||||
"output compact": "c046ae126d3e31f4"
|
||||
},
|
||||
"patterns": {
|
||||
|
||||
@@ -2696,7 +2696,8 @@ const scanUnexpandedContainer = async (
|
||||
format: PackageFormat,
|
||||
containers: Map<string, OpenContainer>,
|
||||
state: ScanState,
|
||||
expectedSha256?: string,
|
||||
/** The occurrence's inventory digest, which every caller resolves through `shaOf`. */
|
||||
expectedSha256: string | undefined,
|
||||
): Promise<void> => {
|
||||
let listing: ContainerListing;
|
||||
try {
|
||||
@@ -2705,10 +2706,7 @@ const scanUnexpandedContainer = async (
|
||||
occurrence.occurrence_id,
|
||||
filePath,
|
||||
format,
|
||||
expectedSha256 ??
|
||||
input.inventory?.nodes.find(
|
||||
(node) => node.artifact_id === occurrence.artifact_id,
|
||||
)?.sha256,
|
||||
expectedSha256,
|
||||
state,
|
||||
input.signal,
|
||||
);
|
||||
|
||||
@@ -7,7 +7,7 @@ export const analysisDetailSchema = z
|
||||
.enum(["complete", "summary"])
|
||||
.optional()
|
||||
.describe(
|
||||
"Omitted: complete Evidence inline when its JSON fits the agent result budget (delivery.agent_result_budget_bytes, default 32768 bytes) and this session can page a summary; otherwise the retained summary, with delivery facts naming the budget and the inspect_analysis_view recovery. complete always returns the complete analysis Evidence inline. summary retains that complete Evidence in this session and returns its inspect_analysis_view summary; inspect pages, items or facets through normalized_result.parent_evidence_id.",
|
||||
"Omitted: complete Evidence inline when it fits the agent result budget (32768 bytes by default) and this session can page a summary; otherwise the retained summary, whose delivery facts name the budget and recovery. complete: always inline. summary: retain the Evidence and return its inspect_analysis_view summary; page it through normalized_result.parent_evidence_id.",
|
||||
);
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user