Repository navigation
feat(managed): add retained metadata overview and pages - #2413
Merged
Merged
Conversation
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>
34 tasks done
N0zoM1z0
marked this pull request as ready for review
October 12, 2026 23:34
|
Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits. |
1 task done
3 tasks done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 firstinspect_managed_artifactcall, 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-terrahigh, 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:
--singleThreadedscheduling 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.8bc1601ca51e417ca472d90ea0367e9418a1a0f2has all CI checks green after browser cleanup and macOShdiutiljobs 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 inexperiments/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.