Skip to content

feat(managed): add retained metadata overview and pages - #2413

Merged
N0zoM1z0 merged 3 commits into
mainfrom
feat/managed-artifact-summary-20261012
Oct 12, 2026
Merged

N0zoM1z0 merged 3 commits into
mainfrom
feat/managed-artifact-summary-20261012

Conversation

@N0zoM1z0

@N0zoM1z0 N0zoM1z0 commented Oct 12, 2026 •

Copy link
Copy Markdown
Collaborator

Identity/classification investigations currently receive complete managed metadata inventories even when unrelated custom attributes dominate the reply: shipped ShareX assemblies return about 1.27–1.30 MB of metadata SDK JSON. Add explicit detail: "summary" on the first inspect_managed_artifact call, retain the complete source Evidence, and return a distinct linked overview. Existing omitted/complete requests and CLI inspection keep complete output.

The overview preserves complete PE/CLI and classification/evidence, metadata status, nullable module/MVID, assembly, frameworks, returned-row counts, coverage/issues and limitations. Typed retained/portable reference/resource/attribute pages preserve original tokens, nulls, offsets, order and build-local identity scope. Page exhaustion does not imply complete metadata. A server without retention refuses selected delivery before file access. Reuse existing admission/projection/retention hooks and strip delivery detail before provider execution. The shared projector remains owned by each source operation; layout's fallback positively requires a page kind.

Measured delivery benefit; model-token benefit is not established. Two comparable SDK pairs per shipped assembly preserve selected facts/settings. Metadata bytes repeat at 1,270,839 → 10,549 for ShareX.dll and 1,296,839 → 10,937 for HelpersLib. Native-boundary output remains unchanged. The complete discovered catalog grows by 15,431 bytes (input definitions +1,293). Four actual Codex CLI 0.161.0 trials, requested gpt-5.6-terra high, the unchanged question and identical two-tool configuration show higher candidate input/uncached tokens in both comparisons and mixed latency. This PR does not claim actual token savings or a stable whole-task speedup. The curated findings include the answer/grader limitations and retain negative observations.

Validation:

  • 20 related domain/MCP tests pass: actual static PE parser and SDK schemas, first-call retention, unchanged defaults, selected target reuse, paging after removing the source, portable views/export, malformed metadata, synthetic historical null-subject shape, digest mismatch and unavailable retention before file access. Existing managed MCP tests also pass in the initial focused run.
  • Actual old-runtime complete Evidence for both shipped assemblies passes the new public SDK inline summary and all collection pages (28 view calls total), preserving original facts, coverage, IDs/links, row order and source bytes. Separate actual omitted-detail candidate calls reproduce all normalized metadata/native facts and canonical complete Evidence IDs from both controls. This verifies the recorded baseline, not every historical release.
  • The changed shared dispatcher also passes actual shipped SQLite WASM inspection using configured real WABT. No additional OS/provider coverage is inferred.
  • Complete project typecheck passes using the installed compiler's supported --singleThreaded scheduling under unchanged resource safeguards. Lint/format/knip/metadata and generated documentation checks pass. Normal pre-commit hooks and a private command-scoped checked pre-push hook run; repository hooks/configuration remain unchanged. Review-only documentation/grader changes use relevant checks.
  • Feature head 8bc1601ca51e417ca472d90ea0367e9418a1a0f2 has all CI checks green after browser cleanup and macOS hdiutil jobs pass on same-head retry. Initial failures remain recorded; no unrelated fixes were made. Final head CI and manual review will be verified before merging.

Control: ae8051302b5834322fa00cfa31c968ae74ab6ed9; measured committed candidate: 8bc1601ca51e417ca472d90ea0367e9418a1a0f2. Frozen runtime digests and reproduction settings are in experiments/analysis-efficiency/managed-artifact-summary.md; raw replies, runtimes, artifacts, profiles and detailed receipts stay outside Git. One CPU, 4 GiB hard memory, unchanged 3 GiB early-stop, no swap and bounded tasks apply. Final cgroup counters remain unknown and are not reported as verified no-OOM proof.

Continues #2016. No provider algorithm change, target execution, plugin SDK, database cache, release publication or deployment.

N0zoM1z0 and others added 3 commits October 12, 2026 22:21
Measure the shipped ShareX identity/classification/native-boundary workflow on merged main before adding an optional overview. Record actual SDK/catalog bytes, compact returned-field costs, unchanged normalized facts and bounded resource measurements without claiming model-token or latency gains.

Co-authored-by: factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com>
Keep complete managed artifact delivery and CLI behavior as the default. Add a caller-selected overview with complete identity/classification, metadata coverage, module/MVID, frameworks and returned-row counts, while retaining original metadata rows for typed follow-up pages. Preserve partial facts, null subjects, original token scope, selected-path behavior and portable Evidence; reject summary before file access when retention is unavailable.

Reuse the existing admission/projection workflow, normalize delivery selection before provider execution, route retained views by named source owners, and guard layout page admission positively against future view kinds. Validate actual SDK schemas and filesystem-backed MCP workflows, including paging after source deletion. The first real ShareX identity/native-boundary pair preserves all selected facts and reduces metadata SDK JSON from 1,270,839 to 10,549 bytes; model-token and general latency gains remain unproven.

Co-authored-by: factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com>
Co-authored-by: factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com>
@N0zoM1z0
N0zoM1z0 marked this pull request as ready for review October 12, 2026 23:34
@chatgpt-codex-connector

Copy link
Copy Markdown

Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits.
Repo admins can enable using credits for code reviews in their settings.

@N0zoM1z0
N0zoM1z0 merged commit 82cfcee into main Oct 12, 2026
39 checks passed
@N0zoM1z0
N0zoM1z0 deleted the feat/managed-artifact-summary-20261012 branch October 12, 2026 23:41
@morluto morluto mentioned this pull request Oct 13, 2026
3 tasks done
@morluto morluto added enhancement New feature or request area: domain Domain logic, errors, and pure functions labels Oct 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: domain Domain logic, errors, and pure functions enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants