Repository Analysis

microsoft/mxc

Policy-driven, layered isolation and containment

4.6 Likely human-written View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of microsoft/mxc, a Rust project with 1,129 GitHub stars. SynthScan v2.0 examined 113,191 lines of code across 606 source files, recording 460 pattern matches distributed across 8 syntactic categories. The overall adjusted score of 4.6 places this repository in the Likely human-written band.

The scanner applied 160+ deterministic lexical heuristics, multi-line block detectors, abstract syntax tree depth profilers, and a cross-file Jaccard similarity matrix to construct a statistically normalised synthetic code estimate. All matches are individually weighted by severity coefficient and contextual multiplier before summation, and the resulting headline score is temporally discounted to account for the repository's development history relative to the commercial emergence of large language model coding tooling (November 2022 onward).

4.6
Adjusted Score
4.6
Raw Score
100%
Time Factor
2026-07-14
Last Push
1.1K
Stars
Rust
Language
113.2K
Lines of Code
606
Files
460
Pattern Hits
2026-07-14
Scan Date
0.00
HC Hit Rate

What These Metrics Mean

Adjusted Score
Primary synthetic code indicator. Raw score normalised per 1,000 lines of code and multiplied by the temporal discount factor. This is the definitive comparative metric — use it to rank repositories by AI authorship density.
Raw Score
The unmodified sum of all severity-weighted, context-multiplied pattern match scores before temporal discounting. Reflects the absolute signal strength independent of when the repository was last active.
Time Factor
The temporal discount multiplier (0–100%) applied to the raw score. Repositories last updated before ChatGPT's launch (Nov 2022) receive a 5% factor. Full signal is only assigned to repositories active in the post-adoption era (Jan 2024+).
Pattern Hits
Total count of individual pattern matches across all files and categories. A high hit count with a low score may indicate a very large codebase with isolated AI snippets; a low count with a high score indicates dense, concentrated AI signatures.
HC Hit Rate
High+Critical pattern hits per file, averaged across the repository. This orthogonal signal catches repositories where a few files are densely packed with high-severity AI tells — a strong indicator even when the normalised score appears moderate due to codebase size.
Lines of Code / Files
Total lines and files analysed. The scanner examines 94 file extensions. These denominators are used to normalise the score, enabling fair comparison between repositories of vastly different sizes.

Score History

This chart maps the temporal evolution of the adjusted synthetic code score across successive scan runs. An upward trajectory indicates ongoing incorporation of AI-generated code or expanding LLM-assisted scaffolding; a stable or declining trajectory may reflect active human refactoring, code removal, or the adoption of stricter authorship policies. The dashed secondary line (right axis) independently tracks total raw pattern hit count, which can diverge from the normalised score when codebase size changes significantly between scans.

Severity Breakdown

Classifies detected patterns by their diagnostic confidence and structural impact. CRITICAL patterns (coefficient 10) represent definitive synthetic signatures — hallucinated imports, explicit LLM attribution metadata — virtually never produced by human authors. HIGH (5) indicates strong structural tells such as cross-file repetition or cross-linguistic idioms. MEDIUM (2) covers recognisable conversational padding and AI-specific vocabulary. LOW (1) captures subtle indicators like tautological comments and generic boilerplate that require density to carry independent signal.

CRITICAL 0HIGH 0MEDIUM 19LOW 441

Directory Score Breakdown

This horizontal bar chart decomposes the repository's raw synthetic code score by top-level directory, allowing you to pinpoint precisely which modules or components carry the highest AI authorship density. Directories with disproportionately high scores relative to their size warrant targeted manual review: concentrated AI signatures often trace back to mass-generated configuration layers, auto-ported test suites, LLM-scaffolded boilerplate classes, or entire subsystems authored under heavy copilot assistance. Use this view to prioritise your human code-review effort.

Pattern Findings

The scanner identified 460 distinct pattern matches across 8 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a statistically significant AI authorship indicator. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.

Reading the findings table: The Severity column indicates the diagnostic confidence level (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — comment-context matches receive a ×1.5 weight because LLMs systematically over-annotate. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier as dense clusters constitute far stronger evidence of synthetic authorship than isolated hits.

Over-Commented Block397 hits · 392 pts
SeverityFileLineSnippetContext
LOW.azure-pipelines/1ES.Build.Official.yml1# Copyright (c) Microsoft Corporation. All rights reserved.COMMENT
LOW.azure-pipelines/templates/Rust.Toolchain.Public.yml1# Copyright (c) Microsoft Corporation. All rights reserved.COMMENT
LOW.azure-pipelines/templates/Rust.Toolchain.Public.yml21# That URL is byte-stable for a given (version, triple) so the SHA-256COMMENT
LOW.azure-pipelines/templates/Fuzz.Build.Job.yml1# Copyright (c) Microsoft Corporation. All rights reserved.COMMENT
LOWtests/scripts/run_bwrap_most_specific_test.sh1#!/bin/bashCOMMENT
LOWtests/scripts/run_lxc_timeout_test.sh1#!/bin/bashCOMMENT
LOWtests/scripts/run_lxc_env_cwd_test.sh1#!/bin/bashCOMMENT
LOWtests/scripts/run_bwrap_filesystem_object_test.sh1#!/bin/bashCOMMENT
LOWsdk/tests/unit/wire-conformance.test.ts1// Copyright (c) Microsoft Corporation.COMMENT
LOWsdk/tests/unit/wire-conformance.test.ts21// cleanly and catches enum/type NARROWING in the wire model.COMMENT
LOWsdk/tests/unit/wire-conformance.test.ts141// Every public field must either exist on the wire type or be on the EXPLICITCOMMENT
LOWsdk/tests/unit/wire-conformance.test.ts161type _FilesystemKeys = AssertTrue<Equivalent<OnlyInPublic<FilesystemConfig, WireFilesystem>, 'clearPolicyOnExit'>>;COMMENT
LOWsdk/tests/unit/wire-conformance-state-aware.test.ts1// Copyright (c) Microsoft Corporation.COMMENT
LOWsdk/tests/unit/wire-conformance-state-aware.test.ts21// ------------------------------------ --------------------------------------COMMENT
LOWsdk/tests/integration/test-helpers.ts141export const debugSpawnOptions = {COMMENT
LOWsdk/tests/integration/test-helpers.ts241COMMENT
LOWsdk/tests/integration/wslc-e2e.test.ts1// Copyright (c) Microsoft Corporation.COMMENT
LOW…ests/integration/isolation-session-state-aware.test.ts1// Copyright (c) Microsoft Corporation.COMMENT
LOWsdk/tests/integration/microvm-filesystem.test.ts1// Copyright (c) Microsoft Corporation.COMMENT
LOWsdk/tests/integration/linux-process-container.test.ts21// MXC_SKIP_LXC_TESTS=1 skips the entire LXC describe block. Provided asCOMMENT
LOWscripts/check-csharp-bindings-codegen.js1#!/usr/bin/env nodeCOMMENT
LOWscripts/versioning/check-schema-codegen.js1#!/usr/bin/env nodeCOMMENT
LOWscripts/versioning/check-sdk-types-codegen.js1#!/usr/bin/env nodeCOMMENT
LOWscripts/versioning/check-rust-toolchain-sync.js1#!/usr/bin/env nodeCOMMENT
LOWscripts/versioning/check-schema-versions.js1#!/usr/bin/env nodeCOMMENT
LOWscripts/versioning/validate-configs.js1// Copyright (c) Microsoft Corporation.COMMENT
LOW.github/workflows/issue-triage.lock.yml1# gh-aw-metadata: {"schema_version":"v4","frontmatter_hash":"8915a4b385c4f7e28a8098eb47c0de7c278dadecfb3b074a7afcbbfc433COMMENT
LOW.github/workflows/issue-triage.lock.yml21# gh aw compileCOMMENT
LOW.github/workflows/SDK.Integration.Test.Job.yml61 - name: Install bubblewrap + LXC stack (Linux only, cached)COMMENT
LOWcsharp/Microsoft.Mxc.Sdk/ErrorCode.cs1// Copyright (c) Microsoft Corporation.COMMENT
LOWsrc/rust-toolchain.toml1# Pin the Rust toolchain used for local development to match CI.COMMENT
LOWsrc/tools/mxc_schema_gen/src/main.rs1// Copyright (c) Microsoft Corporation.COMMENT
LOWsrc/tools/mxc_diagnostic_console/src/etw.rs1// Copyright (c) Microsoft Corporation.COMMENT
LOWsrc/tools/mxc_diagnostic_console/src/main.rs1// Copyright (c) Microsoft Corporation.COMMENT
LOWsrc/core/mxc_engine/src/policy.rs1// Copyright (c) Microsoft Corporation.COMMENT
LOWsrc/core/mxc_engine/src/policy.rs21use wxc_common::mxc_error::MxcError;COMMENT
LOWsrc/core/mxc_engine/src/policy.rs521 /// Execution timeout in milliseconds (`None` = no timeout).COMMENT
LOWsrc/core/mxc_engine/src/policy.rs601 selfCOMMENT
LOWsrc/core/mxc_engine/src/dispatch.rs1// Copyright (c) Microsoft Corporation.COMMENT
LOWsrc/core/mxc_engine/src/dispatch.rs141#[cfg(target_os = "windows")]COMMENT
LOWsrc/core/mxc_engine/src/lib.rs1// Copyright (c) Microsoft Corporation.COMMENT
LOWsrc/core/mxc_engine/src/run.rs1// Copyright (c) Microsoft Corporation.COMMENT
LOWsrc/core/mxc_engine/src/run.rs21//! without such machinery (`lxc-exec`, `mxc-exec-mac`, and the FFI layer) useCOMMENT
LOWsrc/core/mxc_engine/src/run.rs41/// ProcessContainer DACL-fallback tier: its `Drop` restores the host ACEs theCOMMENT
LOWsrc/core/mxc_engine/src/run.rs61 dacl_manager: None,COMMENT
LOWsrc/core/mxc_engine/src/state_aware.rs1// Copyright (c) Microsoft Corporation.COMMENT
LOWsrc/core/mxc_engine/src/platform.rs1// Copyright (c) Microsoft Corporation.COMMENT
LOWsrc/core/mxc-sdk/tests/streaming.rs1// Copyright (c) Microsoft Corporation.COMMENT
LOWsrc/core/mxc-sdk/tests/sandbox.rs1// Copyright (c) Microsoft Corporation.COMMENT
LOWsrc/core/mxc-sdk/tests/sandbox.rs241// Windows ProcessContainer (AppContainer + BaseContainer) — integration tests.COMMENT
LOWsrc/core/mxc-sdk/src/lib.rs1// Copyright (c) Microsoft Corporation.COMMENT
LOWsrc/core/mxc-sdk/src/lib.rs21//! let policy = SandboxPolicy {COMMENT
LOWsrc/core/mxc-sdk/src/lib.rs41//! The selected backend is driven by the `containment` field in the requestCOMMENT
LOWsrc/core/mxc-sdk/src/lib.rs81///COMMENT
LOWsrc/core/mxc-sdk/src/sandbox.rs1// Copyright (c) Microsoft Corporation.COMMENT
LOWsrc/core/mxc-sdk/src/sandbox.rs101 /// OS / wait failure.COMMENT
LOWsrc/core/lxc/src/main.rs41 #[arg(long = "containername")]COMMENT
LOWsrc/core/lxc/src/main.rs61COMMENT
LOWsrc/core/wxc_common/src/interruptible_reader.rs1// Copyright (c) Microsoft Corporation.COMMENT
LOWsrc/core/wxc_common/src/interruptible_reader.rs81COMMENT
337 more matches not shown…
Decorative Section Separators15 hits · 45 pts
SeverityFileLineSnippetContext
MEDIUMsrc/core/lxc/src/main.rs210 // ── Telemetry init (experimental) ───────────────────────────────COMMENT
MEDIUMsrc/core/lxc/src/main.rs255 // ── Telemetry emit (experimental) ───────────────────────────────COMMENT
MEDIUMsrc/core/wxc_common/src/config_parser.rs3825 // ── Telemetry ────────────────────────────────────────────────────COMMENT
MEDIUMsrc/core/wxc_common/src/process_util.rs378// ── Captured-output process execution ──────────────────────────────────────COMMENT
MEDIUMsrc/core/wxc_common/src/process_util.rs510// ── Capability SID helpers ────────────────────────────────────────────────COMMENT
MEDIUMsrc/core/wxc_common/src/process_util.rs523// ── Sibling binary resolution ─────────────────────────────────────────────COMMENT
MEDIUMsrc/core/wxc/src/main.rs747 // ── Telemetry init (experimental) ───────────────────────────────COMMENT
MEDIUMsrc/core/wxc/src/main.rs1080 // ── Telemetry emit (experimental) ───────────────────────────────COMMENT
MEDIUM…ackends/appcontainer/common/src/appcontainer_runner.rs1085// ───────────────────────────────────────────────────────────────────────────COMMENT
MEDIUM…ackends/appcontainer/common/src/appcontainer_runner.rs1087// ───────────────────────────────────────────────────────────────────────────COMMENT
MEDIUM…backends/isolation_session/common/src/console_relay.rs312 // ── ConsoleRelayParams + create_console_relay_thread ──────────────────COMMENT
MEDIUMsrc/backends/isolation_session/common/src/pipe_relay.rs100// ── Stop-event-aware pipe relay ────────────────────────────────────────────COMMENT
MEDIUMsrc/backends/isolation_session/common/src/pipe_relay.rs505 // ── Tests for `create_relay_thread_with_stop` ──────────────────────────COMMENT
MEDIUM…/backends/isolation_session/common/src/console_mode.rs25// ── Local console raw-VT-mode RAII guard ──────────────────────────────────COMMENT
MEDIUM…/backends/isolation_session/common/src/console_mode.rs145// ── Console Ctrl handler RAII guard ──────────────────────────────────────COMMENT
Structural Annotation Overuse20 hits · 34 pts
SeverityFileLineSnippetContext
LOWdocs/authoring-a-new-feature.md26## Step 0: Where does my feature go?COMMENT
LOWdocs/authoring-a-new-feature.md57## Step 1: Write a Feature SpecCOMMENT
LOWdocs/authoring-a-new-feature.md81## Step 2: OS changes (if applicable)COMMENT
LOWdocs/authoring-a-new-feature.md122## Step 1: Add the field to the wire model (the schema source of truth)COMMENT
LOWdocs/authoring-a-new-feature.md162## Step 2: Add the model structCOMMENT
LOWdocs/authoring-a-new-feature.md186## Step 3: Map the wire field to the domain modelCOMMENT
LOWdocs/authoring-a-new-feature.md220## Step 4: Implement the feature in the runnerCOMMENT
LOWdocs/authoring-a-new-feature.md270## Step 5: Add a test configCOMMENT
LOWdocs/authoring-a-new-feature.md309## Step 6: Update the SDK (if needed)COMMENT
LOWsrc/backends/windows_sandbox/guest/src/main.rs29 // Step 3: accept 4 connections from the host daemon.COMMENT
LOWsrc/backends/windows_sandbox/guest/src/main.rs37 // Step 4: lock down firewall — only allow the host IP.COMMENT
LOWsrc/backends/windows_sandbox/guest/src/main.rs43 // Step 5: enter command loop.COMMENT
LOW…c/backends/appcontainer/common/src/sandbox_tracking.rs166 // Step 1: Clear BFS filesystem policies (must happen before profile deletion).COMMENT
LOW…c/backends/appcontainer/common/src/sandbox_tracking.rs169 // Step 2: Delete the AppContainer profile.COMMENT
LOW…c/backends/appcontainer/common/src/sandbox_tracking.rs192 // Step 3: Delete the registry tracking entry.COMMENT
LOWsrc/backends/isolation_session/common/src/manager.rs122 /// Step 1: Provision an agent user. Returns the OS-assigned agentCOMMENT
LOWsrc/backends/isolation_session/common/src/manager.rs232 /// Step 2: Start the isolation session.COMMENT
LOWsrc/backends/isolation_session/common/src/manager.rs282 /// Step 3: Create a process inside the started isolation session.COMMENT
LOWsrc/backends/isolation_session/common/src/manager.rs542 /// Step 4: Stop the isolation session.COMMENT
LOWsrc/backends/isolation_session/common/src/manager.rs554 /// Step 5: Deprovision the agent user.COMMENT
Verbosity Indicators11 hits · 20 pts
SeverityFileLineSnippetContext
LOWsrc/backends/windows_sandbox/guest/src/main.rs29 // Step 3: accept 4 connections from the host daemon.COMMENT
LOWsrc/backends/windows_sandbox/guest/src/main.rs37 // Step 4: lock down firewall — only allow the host IP.COMMENT
LOWsrc/backends/windows_sandbox/guest/src/main.rs43 // Step 5: enter command loop.COMMENT
LOW…c/backends/appcontainer/common/src/sandbox_tracking.rs166 // Step 1: Clear BFS filesystem policies (must happen before profile deletion).COMMENT
LOW…c/backends/appcontainer/common/src/sandbox_tracking.rs169 // Step 2: Delete the AppContainer profile.COMMENT
LOW…c/backends/appcontainer/common/src/sandbox_tracking.rs192 // Step 3: Delete the registry tracking entry.COMMENT
LOWsrc/backends/isolation_session/common/src/manager.rs122 /// Step 1: Provision an agent user. Returns the OS-assigned agentCOMMENT
LOWsrc/backends/isolation_session/common/src/manager.rs232 /// Step 2: Start the isolation session.COMMENT
LOWsrc/backends/isolation_session/common/src/manager.rs282 /// Step 3: Create a process inside the started isolation session.COMMENT
LOWsrc/backends/isolation_session/common/src/manager.rs542 /// Step 4: Stop the isolation session.COMMENT
LOWsrc/backends/isolation_session/common/src/manager.rs554 /// Step 5: Deprovision the agent user.COMMENT
Hyper-Verbose Identifiers12 hits · 12 pts
SeverityFileLineSnippetContext
LOWtests/playground/src/renderer/app.ts796function updateContainmentDropdown(): void {CODE
LOWtests/playground/src/renderer/app.ts819function isExperimentalContainment(): boolean {CODE
LOWtests/playground/src/renderer/app.ts827function updatePlatformBadgeForContainment(containment: string): void {CODE
LOWsdk/src/helper.ts47export function warnLegacyContainmentOnce(legacy: string, canonical: string): void {CODE
LOWsdk/src/helper.ts147export function resolveBinaryAndCommonArgs(CODE
LOWsdk/src/sandbox.ts20function generateRandomContainerName(): string {CODE
LOWsdk/src/sandbox.ts137function buildProcessBaseContainerConfig(CODE
LOWsdk/src/sandbox.ts722function tryParseErrorEnvelopeFromLines(output: string): MxcError | null {CODE
LOWsdk/src/platform.ts113function isWindowsSandboxAvailable(): boolean {CODE
LOWsdk/src/platform.ts226function populateIsolationFromProbe(support: PlatformSupport): void {CODE
LOWsdk/src/platform.ts379function getDarwinRustTargetTriple(): string {CODE
LOWsdk/src/policy.ts143function hasAllApplicationPackagesAccess(dirPath: string): boolean {CODE
AI Slop Vocabulary3 hits · 9 pts
SeverityFileLineSnippetContext
MEDIUMsdk/src/state-aware-helper.ts140 // Not JSON. Definitely script output.COMMENT
MEDIUMsrc/core/wxc_common/src/filesystem_dacl.rs3128 // test is robust to host-specific ACL layouts.COMMENT
MEDIUMsrc/backends/windows_sandbox/daemon/src/pipe_server.rs317/// TODO: Change to a more robust approach like bind to port 0 (OS-assigned)COMMENT
Modern AI Meta-Vocabulary1 hit · 3 pts
SeverityFileLineSnippetContext
MEDIUM.github/workflows/Build.yml2# split: this file orchestrates, each stage lives in its own reusable.COMMENT
Excessive Try-Catch Wrapping1 hit · 1 pts
SeverityFileLineSnippetContext
LOWsrc/testing/wxc_e2e_tests/tests/e2e_windows.rs929 except Exception as e:\n\CODE