Repository Analysis

dmno-dev/varlock

AI-safe .env files: Schemas for agents, Secrets for humans.

4.3 Likely human-written View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of dmno-dev/varlock, a TypeScript project with 4,232 GitHub stars. SynthScan v2.0 examined 141,367 lines of code across 977 source files, recording 346 pattern matches distributed across 12 syntactic categories. The overall adjusted score of 4.3 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.3
Adjusted Score
4.3
Raw Score
100%
Time Factor
2026-08-28
Last Push
4.2K
Stars
TypeScript
Language
141.4K
Lines of Code
977
Files
346
Pattern Hits
2026-08-29
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 3MEDIUM 101LOW 242

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 346 distinct pattern matches across 12 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.

Decorative Section Separators98 hits · 294 pts
SeverityFileLineSnippetContext
MEDIUMpackages/encryption-binary-swift/scripts/build-swift.ts26// ── CLI args ────────────────────────────────────────────────────COMMENT
MEDIUMpackages/encryption-binary-swift/scripts/build-swift.ts46// ── Paths ───────────────────────────────────────────────────────COMMENT
MEDIUMpackages/encryption-binary-swift/scripts/build-swift.ts53// ── Build mode config ───────────────────────────────────────────COMMENT
MEDIUMpackages/encryption-binary-swift/scripts/build-swift.ts89// ── Phase 1: Compile ────────────────────────────────────────────COMMENT
MEDIUMpackages/encryption-binary-swift/scripts/build-swift.ts112// ── Phase 2: Bundle ─────────────────────────────────────────────COMMENT
MEDIUMpackages/encryption-binary-swift/scripts/build-swift.ts184// ── Codesign ────────────────────────────────────────────────────COMMENT
MEDIUMpackages/plugins/dashlane/test/dashlane.test.ts33// ── Test helper ──────────────────────────────────────────────────────COMMENT
MEDIUMpackages/plugins/dashlane/test/dashlane.test.ts102// ── Tests ────────────────────────────────────────────────────────────COMMENT
MEDIUMpackages/plugins/passbolt/test/passbolt.test.ts18// ── Crypto fixtures ──────────────────────────────────────────────────COMMENT
MEDIUMpackages/plugins/passbolt/test/passbolt.test.ts112// ── MSW Server ───────────────────────────────────────────────────────COMMENT
MEDIUMpackages/plugins/passbolt/test/passbolt.test.ts337// ── Test helper ──────────────────────────────────────────────────────COMMENT
MEDIUMpackages/plugins/passbolt/test/passbolt.test.ts372// ── Tests ────────────────────────────────────────────────────────────COMMENT
MEDIUMpackages/plugins/bitwarden/src/plugin.ts548// ──────────────────────────────────────────────────────────────COMMENT
MEDIUMpackages/plugins/bitwarden/src/plugin.ts560// ──────────────────────────────────────────────────────────────COMMENT
MEDIUMpackages/plugins/keeper/test/keeper.test.ts12// ── Helpers ──────────────────────────────────────────────────────────COMMENT
MEDIUMpackages/plugins/keeper/test/keeper.test.ts68// ── Tests ────────────────────────────────────────────────────────────COMMENT
MEDIUMpackages/plugins/keeper/src/plugin.ts18// ════ PLUGIN CONFIGURATION ═══════════════════════════════════════════════════COMMENT
MEDIUMpackages/plugins/keeper/src/plugin.ts38// ════ PLUGIN INSTANCE CLASS ═══════════════════════════════════════════════════COMMENT
MEDIUMpackages/plugins/keeper/src/plugin.ts313// ════ ROOT DECORATOR: @initKeeper ════════════════════════════════════════════COMMENT
MEDIUMpackages/plugins/keeper/src/plugin.ts364// ════ DATA TYPE: keeperSmToken ═══════════════════════════════════════════════COMMENT
MEDIUMpackages/plugins/keeper/src/plugin.ts401// ════ RESOLVER FUNCTION: keeper() ═══════════════════════════════════════════COMMENT
MEDIUMpackages/plugins/1password/test/1password.test.ts23// ── SDK mock setup ───────────────────────────────────────────────────COMMENT
MEDIUMpackages/plugins/1password/test/1password.test.ts116// ── Test helper ──────────────────────────────────────────────────────COMMENT
MEDIUMpackages/plugins/1password/test/1password.test.ts199// ── Tests ────────────────────────────────────────────────────────────COMMENT
MEDIUMpackages/plugins/1password/test/1password.test.ts202 // ── Service account CLI path ──────────────────────────────COMMENT
MEDIUMpackages/plugins/1password/test/1password.test.ts326 // ── App auth CLI path ─────────────────────────────────────COMMENT
MEDIUMpackages/plugins/1password/test/1password.test.ts366 // ── opLoadEnvironment ─────────────────────────────────────COMMENT
MEDIUMpackages/plugins/1password/test/1password.test.ts392 // ── Named instances ───────────────────────────────────────COMMENT
MEDIUMpackages/plugins/1password/test/1password.test.ts411 // ── Data types ────────────────────────────────────────────COMMENT
MEDIUMpackages/plugins/1password/test/1password.test.ts573 // ── Schema errors ─────────────────────────────────────────COMMENT
MEDIUMpackages/plugins/1password/src/plugin.ts249// ──────────────────────────────────────────────────────────────COMMENT
MEDIUMpackages/plugins/1password/src/plugin.ts251// ──────────────────────────────────────────────────────────────COMMENT
MEDIUMpackages/plugins/1password/src/plugin.ts409 // ── Connect REST API helpers ──────────────────────────────COMMENT
MEDIUMpackages/plugins/1password/src/plugin.ts411 // ── CLI helpers (per-instance, for service account path only) ──────COMMENT
MEDIUMpackages/plugins/1password/src/plugin.ts544 // ── Connect REST API helpers ──────────────────────────────COMMENT
MEDIUMpackages/plugins/1password/src/plugin.ts682 // ── Core read methods ─────────────────────────────────────COMMENT
MEDIUMpackages/encryption-binary-rust/scripts/build-rust.ts18// ── CLI args ────────────────────────────────────────────────────COMMENT
MEDIUMpackages/encryption-binary-rust/scripts/build-rust.ts29// ── Paths ───────────────────────────────────────────────────────COMMENT
MEDIUMpackages/encryption-binary-rust/scripts/build-rust.ts68// ── Build ───────────────────────────────────────────────────────COMMENT
MEDIUMpackages/encryption-binary-rust/scripts/build-rust.ts77// ── Copy to native-bins ─────────────────────────────────────────COMMENT
MEDIUMpackages/encryption-binary-rust/src/daemon_client.rs468// ── Stub for non-Windows platforms ──────────────────────────────COMMENT
MEDIUMpackages/encryption-binary-rust/src/secure_mem.rs67// ── Platform-specific memory locking ────────────────────────────COMMENT
MEDIUMpackages/encryption-binary-rust/src/ipc.rs268// ── Client handling ──────────────────────────────────────────────COMMENT
MEDIUMpackages/encryption-binary-rust/src/ipc.rs347// ── Unix client process verification ─────────────────────────────COMMENT
MEDIUMpackages/encryption-binary-rust/src/ipc.rs401// ── Peer session identity (Linux) ───────────────────────────────COMMENT
MEDIUMpackages/encryption-binary-rust/src/ipc.rs644// ── Windows pipe security ───────────────────────────────────────COMMENT
MEDIUMpackages/encryption-binary-rust/src/ipc.rs736// ── Windows client process verification ─────────────────────────COMMENT
MEDIUMpackages/encryption-binary-rust/src/ipc.rs804// ── Windows named pipe client handling ───────────────────────────COMMENT
MEDIUMpackages/encryption-binary-rust/src/ipc.rs913// ── Tests ───────────────────────────────────────────────────────COMMENT
MEDIUMpackages/encryption-binary-rust/src/daemon.rs180// ── Message handlers ─────────────────────────────────────────────COMMENT
MEDIUMpackages/encryption-binary-rust/src/daemon.rs293// ── Biometric verification ───────────────────────────────────────COMMENT
MEDIUMpackages/encryption-binary-rust/src/daemon.rs316// ── Signal handling ──────────────────────────────────────────────COMMENT
MEDIUMpackages/encryption-binary-rust/src/main.rs42// ── CLI arg helpers ──────────────────────────────────────────────COMMENT
MEDIUMpackages/encryption-binary-rust/src/main.rs54// ── JSON output helpers ─────────────────────────────────────────COMMENT
MEDIUMpackages/encryption-binary-rust/src/main.rs76// ── Commands ────────────────────────────────────────────────────COMMENT
MEDIUMpackages/encryption-binary-rust/src/key_store/mod.rs106// ── Path helpers ──────────────────────────────────────────────────COMMENT
MEDIUMpackages/encryption-binary-rust/src/key_store/mod.rs148// ── Platform-specific key protection ─────────────────────────────COMMENT
MEDIUMpackages/encryption-binary-rust/src/key_store/mod.rs326// ── Public API ───────────────────────────────────────────────────COMMENT
MEDIUMpackages/encryption-binary-rust/src/key_store/linux.rs208// ── Helpers ──────────────────────────────────────────────────────COMMENT
MEDIUMpackages/varlock/src/proxy/policy.test.ts14// ─────────────────────────────────────────────────────────────────────────────COMMENT
38 more matches not shown…
Hyper-Verbose Identifiers122 hits · 125 pts
SeverityFileLineSnippetContext
LOWframework-tests/deploy/vercel-helpers.ts227export async function disableDeploymentProtection(): Promise<void> {CODE
LOWframework-tests/harness/test-fixture.ts25function addEdgeRuntimeToTemplateFiles(templateFiles?: TemplateFileMap): TemplateFileMap | undefined {CODE
LOWpackages/plugins/proton-pass/src/plugin.ts48function getSecretFieldNameFromRef(secretRef: string): string | undefined {CODE
LOWpackages/plugins/kubernetes/src/plugin.ts57async function readServiceAccountNamespace(): Promise<string | undefined> {CODE
LOWpackages/varlock/scripts/test-local-binary.ts52function ensureWindowsHelperForWSL() {CODE
LOWpackages/varlock/scripts/test-local-binary.ts68function copyWindowsHelperIfPresent() {CODE
LOWpackages/varlock/src/proxy/approval-grants.ts106export function createGrantingApprovalProvider(opts: {CODE
LOWpackages/varlock/src/proxy/approval.ts163export function createAutoDenyApprovalProvider(): ApprovalProvider {CODE
LOWpackages/varlock/src/proxy/approval.ts205export function createTtyApprovalProvider(opts?: {CODE
LOWpackages/varlock/src/proxy/tunnel.ts933export function startTunnelClientListener(opts: {CODE
LOWpackages/varlock/src/proxy/types.ts52export function proxySubstitutionTargetKey(target: ProxySubstitutionTarget): string {CODE
LOWpackages/varlock/src/proxy/types.ts70export function isNeverAutoSubstituteHeader(name: string): boolean {CODE
LOWpackages/varlock/src/proxy/types.ts86export function parseProxySubstitutionTarget(raw: string): ParsedProxySubstitutionTarget {CODE
LOWpackages/varlock/src/proxy/policy.ts179export function getRequestScopedManagedItems(CODE
LOWpackages/varlock/src/proxy/runtime-proxy.ts486export function replacePlaceholdersWithReal(value: string, managedItems: Array<ProxyManagedItem>): string {CODE
LOWpackages/varlock/src/proxy/runtime-proxy.ts522export function findUninjectedPlaceholder(CODE
LOWpackages/varlock/src/proxy/runtime-proxy.ts535function replaceRealWithPlaceholders(value: string, managedItems: Array<ProxyManagedItem>): string {CODE
LOWpackages/varlock/src/proxy/runtime-proxy.ts799function forwardUpstreamResponseWithRedaction(CODE
LOWpackages/varlock/src/proxy/sandbox-docker.ts44export function isContainerRuntimeAvailable(runtime: ContainerRuntime): boolean {CODE
LOWpackages/varlock/src/proxy/sandbox-seatbelt.ts37export function isBuiltinSandboxSupported(platform: NodeJS.Platform = process.platform): boolean {CODE
LOWpackages/varlock/src/proxy/session-registry.ts318export async function cleanupStaleProxySessions() {CODE
LOWpackages/varlock/src/proxy/session-registry.ts353export async function reserveProxySessionIdentity(): Promise<{ id: string; uuid: string }> {CODE
LOWpackages/varlock/src/proxy/session-registry.ts395export async function resolveActiveProxySession(CODE
LOWpackages/varlock/src/proxy/session-registry.ts445export function resetActiveProxySessionCache() {CODE
LOWpackages/varlock/src/proxy/session-registry.ts466export async function getProxyResolutionViewForEnv(CODE
LOWpackages/varlock/src/proxy/session-registry.ts502export async function addProxySessionAttachment(uuid: string, pid: number) {CODE
LOWpackages/varlock/src/proxy/session-registry.ts510export async function removeProxySessionAttachment(uuid: string, pid: number) {CODE
LOWpackages/varlock/src/proxy/session-registry.ts517export async function resolveProxySessionForCommand(opts?: {CODE
LOWpackages/varlock/src/proxy/placeholder.ts101export async function generateProxyPlaceholderForItem(CODE
LOWpackages/varlock/src/runtime/patch-server-response.ts186export function patchGlobalServerResponse(opts?: {CODE
LOWpackages/varlock/src/runtime/patch-server-response.ts223 ServerResponse.prototype.write = function varlockPatchedServerResponseWrite(...args) {CODE
LOWpackages/varlock/src/runtime/init-edge.ts28function gateEdgeEntriesUntilReady(ready: Promise<void>) {CODE
LOWpackages/varlock/src/runtime/env.ts115export function getRedactionHoldbackLength(str: string): number {CODE
LOWpackages/varlock/src/runtime/env.ts495export function getPreInjectionProcessEnv(): Record<string, string | undefined> {CODE
LOWpackages/varlock/src/runtime/env.ts659export function getPublicDynamicConfigKeys(): Array<string> {CODE
LOWpackages/varlock/src/runtime/env.ts681function getDynamicBuildAccessMode() {CODE
LOWpackages/varlock/src/runtime/env.ts686function shouldGuardDynamicAccessDuringBuild() {CODE
LOWpackages/varlock/src/runtime/env.ts691function notifyDynamicConfigAccess(meta: DynamicConfigAccessMeta) {CODE
LOWpackages/varlock/src/runtime/env.ts707function hasHydratedPublicDynamicEnv() {CODE
LOWpackages/varlock/src/runtime/lib/redact-stream.ts16export function createRedactedStreamWriter(stream: { write(str: string): any }) {CODE
LOW…/varlock/src/env-graph/test/internal-decorator.test.ts15async function loadSchemaWithInternalType(contents: string) {CODE
LOWpackages/varlock/src/env-graph/lib/decorators.ts415function assertProxySubstituteInArg(resolver: Resolver | undefined): void {CODE
LOWpackages/varlock/src/env-graph/lib/decorators.ts434function assertProxyMaxOccurrencesArg(resolver: Resolver | undefined): void {CODE
LOWpackages/varlock/src/env-graph/lib/decorators.ts513function validateProxyFunctionArgs(argsVal: Resolver): void {CODE
LOWpackages/varlock/src/env-graph/lib/resolver.ts1180export function convertParsedValueToResolvers(CODE
LOWpackages/varlock/src/env-graph/lib/plugins.ts659export async function processPluginInstallDecorators(dataSource: EnvGraphDataSource) {CODE
LOW…es/varlock/src/env-graph/lib/type-generation/shared.ts106export function partitionRepresentableKeys(CODE
LOW…es/varlock/src/env-graph/lib/type-generation/shared.ts133export function assertNoFieldNameCollisions(CODE
LOW…k/src/env-graph/lib/type-generation/emitters/python.ts54function getPythonCoercedTypeString(coerced: CoercedType): string {CODE
LOWpackages/varlock/src/cli/commands/keychain.command.ts59export function isKeychainItemNotFoundError(error: unknown): boolean {CODE
LOWpackages/varlock/src/cli/commands/keychain.command.ts63export function extractKeychainRefFromCall(key: string, call: ParsedEnvSpecFunctionCall): KeychainRef | undefined {CODE
LOWpackages/varlock/src/cli/commands/keychain.command.ts100export function extractKeychainRefsFromFile(filePath: string): Array<KeychainRef> {CODE
LOWpackages/varlock/src/cli/commands/keychain.command.ts128export function getSensitivePlaintextImportValue(CODE
LOWpackages/varlock/src/cli/commands/keychain.command.ts148export function collectSensitivePlaintextImports(CODE
LOWpackages/varlock/src/cli/commands/keychain.command.ts180export function assertKeychainImportSchemaPresent(envGraph: {CODE
LOWpackages/varlock/src/cli/commands/proxy.command.ts592function guardApprovalPromptForLogging(inner: ApprovalProvider): ApprovalProvider {CODE
LOWpackages/varlock/src/cli/commands/proxy.command.ts945function buildSessionPickerOptions(CODE
LOWpackages/varlock/src/cli/commands/proxy.command.ts1077export function createReloadKeypressHandler(opts: {CODE
LOWpackages/varlock/src/cli/commands/audit.command.ts54function getInternallyReferencedKeys(envGraph: any): Set<string> {CODE
LOWpackages/varlock/src/cli/commands/audit.command.ts79async function getCustomAuditIgnorePaths(envGraph: any): Promise<Array<string>> {CODE
62 more matches not shown…
Over-Commented Block66 hits · 63 pts
SeverityFileLineSnippetContext
LOWsocket.yml1# Socket (socket.dev) configuration — read by the Socket GitHub App.COMMENT
LOW…rk-tests/frameworks/sveltekit/files/pages/prerender.ts1// Make the route fully static — exercises the Cloudflare adapter + varlock'sCOMMENT
LOWframework-tests/frameworks/nextjs/nextjs-canary.test.ts1import { describe } from 'vitest';COMMENT
LOW.claude/hooks/worktree-deps.sh1#!/usr/bin/env bashCOMMENT
LOWsmoke-tests/tests/proxy-python.test.ts1import { describe, expect, test } from 'vitest';COMMENT
LOWsmoke-tests/smoke-test-nextjs/next-env.d.ts1/// <reference types="next" />COMMENT
LOWpackages/env-spec-parser/README.md101- Decorator values will be parsed using the common value-handling rules (see below)COMMENT
LOW…swift/swift/Sources/SessionScoping/SessionScoper.swift1import FoundationCOMMENT
LOW…swift/swift/Sources/SessionScoping/SessionScoper.swift41 /// Varlock CLI launchers are also one-shot; scope to the host that invoked them.COMMENT
LOW…swift/swift/Sources/SessionScoping/SessionScoper.swift181 // stay distinct even if a TTY device name happens to collide.COMMENT
LOW…wift/Sources/VarlockEnclave/SecureEnclaveManager.swift1import FoundationCOMMENT
LOW…wift/Sources/VarlockEnclave/SecureEnclaveManager.swift141 throw EnclaveError.keyNotFound("\(keyId) - \(error.localizedDescription)")COMMENT
LOW…ary-swift/swift/Sources/VarlockEnclave/IPCServer.swift101 // Acquire an exclusive lock to prevent race conditions during socket setup.COMMENT
LOW…wift/swift/Sources/VarlockEnclave/SessionManager.swift1import FoundationCOMMENT
LOWpackages/plugins/azure-key-vault/README.md61```env-specCOMMENT
LOWpackages/plugins/doppler/README.md41# @initDoppler(COMMENT
LOWpackages/plugins/infisical/README.md61# )COMMENT
LOWpackages/plugins/infisical/README.md201COMMENT
LOWpackages/plugins/infisical/README.md321# @plugin(@varlock/infisical-plugin)COMMENT
LOWpackages/plugins/bitwarden/test/bwp.test.ts201 # @initBwp(id=work, sessionToken=$BWP_SESSION)COMMENT
LOWpackages/plugins/bitwarden/src/plugin.ts541 );COMMENT
LOWpackages/encryption-binary-rust/src/daemon_client.rs1//! Daemon client for one-shot commands that need biometric verification.COMMENT
LOWpackages/encryption-binary-rust/src/daemon_client.rs21/// Returns the decrypted plaintext.COMMENT
LOWpackages/encryption-binary-rust/src/daemon_client.rs221 .status();COMMENT
LOW…encryption-binary-rust/src/key_store/secret_service.rs1//! Linux Secret Service (libsecret / GNOME Keyring / KWallet) backend.COMMENT
LOWpackages/encryption-binary-rust/src/key_store/mod.rs1//! Key storage abstraction.COMMENT
LOWpackages/encryption-binary-rust/src/key_store/mod.rs21//! }COMMENT
LOWpackages/encryption-binary-rust/src/key_store/polkit.rs1//! Linux biometric / user-presence verification via polkit.COMMENT
LOW…ckages/encryption-binary-rust/src/key_store/windows.rs1//! Windows key protection using DPAPI (CryptProtectData / CryptUnprotectData).COMMENT
LOWpackages/encryption-binary-rust/src/key_store/linux.rs1//! Linux key protection using TPM2 seal/unseal via tpm2-tools.COMMENT
LOWpackages/varlock/src/auto-load.ts121 // 2. Set `_VARLOCK_THROW_ON_LOAD_ERROR=1` — for when a tracker is already initialized with itsCOMMENT
LOWpackages/varlock/src/runtime/env.ts501}) {COMMENT
LOW…varlock/src/env-graph/test/required-decorators.test.ts141 `,COMMENT
LOWpackages/varlock/src/env-graph/lib/env-graph.ts961 // the item's type settings (separator vs JSON) which don't travel in the blobCOMMENT
LOWpackages/varlock/src/cli/commands/run.command.ts301 // We deliberately gate on "no controlling terminal" rather than just stdin so detachingCOMMENT
LOWpackages/varlock/src/lib/native-app-client.ts161COMMENT
LOWpackages/integrations/cloudflare/src/init.ts1// Cloudflare Workers init module for varlock.COMMENT
LOW…s/integrations/cloudflare/src/shared-ssr-entry-code.ts1// Code injected at the top of the SSR entry module so varlock can load itsCOMMENT
LOWpackages/integrations/vite/src/index.ts321 const isCloudflareTarget = opts.isCloudflareTarget ?? false;COMMENT
LOWpackages/integrations/vite/src/index.ts501COMMENT
LOWpackages/integrations/vite/src/index.ts601 // An integration can override this via `rootDir` when its frameworkCOMMENT
LOWpackages/integrations/nuxt/src/index.ts61 // Restart the dev server when any loaded env file changes. Nuxt's ownCOMMENT
LOWpackages/integrations/nextjs/src/loader.ts41// captures the whole block - including interleaved comments/blank lines and repeatedCOMMENT
LOWpackages/integrations/nextjs/src/loader.ts221 if (isEdgeFile) {COMMENT
LOWpackages/vscode-plugin/test/grammar.test.txt1# SYNTAX TEST "source.env-spec" "Comprehensive grammar tests"COMMENT
LOWpackages/vscode-plugin/test/grammar.test.txt21# ^ keyword.operator.assignment.env-specCOMMENT
LOWpackages/vscode-plugin/test/grammar.test.txt41# ======================COMMENT
LOWpackages/vscode-plugin/test/grammar.test.txt61# <- comment.line.env-specCOMMENT
LOWpackages/vscode-plugin/test/grammar.test.txt81# )COMMENT
LOWpackages/vscode-plugin/test/grammar.test.txt101COMMENT
LOWpackages/vscode-plugin/test/grammar.test.txt141# ^^^^^ variable.function.env-specCOMMENT
LOWpackages/vscode-plugin/test/grammar.test.txt181# @dec=[a, b]COMMENT
LOWpackages/vscode-plugin/test/grammar.test.txt201# ^ punctuation.definition.array.begin.env-specCOMMENT
LOWpackages/vscode-plugin/test/grammar.test.txt221#^^^^^^^^^ entity.name.tag.env-specCOMMENT
LOWpackages/vscode-plugin/test/grammar.test.txt241COMMENT
LOWpackages/vscode-plugin/test/grammar.test.txt261# @import(pick=[COMMENT
LOWpackages/vscode-plugin/test/grammar.test.txt281# ^ string.unquoted.env-specCOMMENT
LOWpackages/vscode-plugin/test/grammar.test.txt301# at end of line, so the next line is still a normal env entry.COMMENT
LOWpackages/vscode-plugin/scripts/install-local.ts1// Local dev installer for the @env-spec VSCode extension.COMMENT
LOW.github/workflows/deploy-tests.yaml1name: Real Deployment TestsCOMMENT
6 more matches not shown…
Structural Annotation Overuse17 hits · 35 pts
SeverityFileLineSnippetContext
LOWpackages/plugins/bitwarden/src/plugin.ts178 // Step 1: Exchange access token for JWTCOMMENT
LOWpackages/plugins/bitwarden/src/plugin.ts199 // Step 2: Derive key from encryption key (produces 64 bytes: 32 for enc, 32 for mac)COMMENT
LOWpackages/plugins/bitwarden/src/plugin.ts204 // Step 3: Decrypt the organization keyCOMMENT
LOWpackages/plugins/bitwarden/src/crypto-utils.ts65 // Step 1: HMAC-SHA256 with key="bitwarden-accesstoken"COMMENT
LOWpackages/plugins/bitwarden/src/crypto-utils.ts80 // Step 2: HKDF-Expand to 64 bytes (manual implementation since Web Crypto does Extract+Expand)COMMENT
LOWpackages/plugins/bitwarden/src/crypto-utils.ts84 // Step 3: Split into encryption key (first 32 bytes) and MAC key (last 32 bytes)COMMENT
LOWpackages/plugins/keeper/README.md175### Step 1: Create a Secrets Manager ApplicationCOMMENT
LOWpackages/plugins/keeper/README.md182### Step 2: Share foldersCOMMENT
LOWpackages/plugins/keeper/README.md188### Step 3: Generate a one-time access tokenCOMMENT
LOWpackages/plugins/keeper/README.md193### Step 4: Initialize and export the configCOMMENT
LOWpackages/plugins/keeper/README.md206### Step 5: Set up your schemaCOMMENT
LOWpackages/encryption-binary-rust/src/key_store/linux.rs113 // Step 1: Create SRK (Storage Root Key) — deterministicCOMMENT
LOWpackages/encryption-binary-rust/src/key_store/linux.rs120 // Step 2: Seal the private key under the SRK via stdin (avoid temp file issues)COMMENT
LOWpackages/encryption-binary-rust/src/key_store/linux.rs128 // Step 3: Read the sealed blobsCOMMENT
LOWpackages/encryption-binary-rust/src/key_store/linux.rs174 // Step 1: Recreate SRK (deterministic — same params = same key)COMMENT
LOWpackages/encryption-binary-rust/src/key_store/linux.rs181 // Step 2: Load the sealed objectCOMMENT
LOWpackages/encryption-binary-rust/src/key_store/linux.rs192 // Step 3: UnsealCOMMENT
Verbosity Indicators12 hits · 25 pts
SeverityFileLineSnippetContext
LOWpackages/plugins/bitwarden/src/plugin.ts178 // Step 1: Exchange access token for JWTCOMMENT
LOWpackages/plugins/bitwarden/src/plugin.ts199 // Step 2: Derive key from encryption key (produces 64 bytes: 32 for enc, 32 for mac)COMMENT
LOWpackages/plugins/bitwarden/src/plugin.ts204 // Step 3: Decrypt the organization keyCOMMENT
LOWpackages/plugins/bitwarden/src/crypto-utils.ts65 // Step 1: HMAC-SHA256 with key="bitwarden-accesstoken"COMMENT
LOWpackages/plugins/bitwarden/src/crypto-utils.ts80 // Step 2: HKDF-Expand to 64 bytes (manual implementation since Web Crypto does Extract+Expand)COMMENT
LOWpackages/plugins/bitwarden/src/crypto-utils.ts84 // Step 3: Split into encryption key (first 32 bytes) and MAC key (last 32 bytes)COMMENT
LOWpackages/encryption-binary-rust/src/key_store/linux.rs113 // Step 1: Create SRK (Storage Root Key) — deterministicCOMMENT
LOWpackages/encryption-binary-rust/src/key_store/linux.rs120 // Step 2: Seal the private key under the SRK via stdin (avoid temp file issues)COMMENT
LOWpackages/encryption-binary-rust/src/key_store/linux.rs128 // Step 3: Read the sealed blobsCOMMENT
LOWpackages/encryption-binary-rust/src/key_store/linux.rs174 // Step 1: Recreate SRK (deterministic — same params = same key)COMMENT
LOWpackages/encryption-binary-rust/src/key_store/linux.rs181 // Step 2: Load the sealed objectCOMMENT
LOWpackages/encryption-binary-rust/src/key_store/linux.rs192 // Step 3: UnsealCOMMENT
Cross-Language Confusion (JS/TS)3 hits · 22 pts
SeverityFileLineSnippetContext
HIGHsmoke-tests/tests/proxy-python.test.ts46 print('STATUS', r.status)CODE
HIGHsmoke-tests/tests/proxy-python.test.ts48 print('STATUS', e.code)CODE
HIGHsmoke-tests/tests/proxy-python.test.ts50 print('URLERROR', e.reason)CODE
Fake / Example Data16 hits · 16 pts
SeverityFileLineSnippetContext
LOWsmoke-tests/tests/composite-values.test.ts11 expect(vars.ALLOWED_EMAILS).toEqual(['admin@example.com', 'support@example.com']);CODE
LOWpackages/varlock/src/proxy/session-registry.ts473 view[key] = { kind: 'placeholder', value };CODE
LOWpackages/varlock/src/proxy/placeholder.ts105 const placeholderDec = item.getDec('placeholder');CODE
LOWpackages/varlock/src/env-graph/test/data-types.test.ts267 ['credentials', 'user@example.com'],CODE
LOWpackages/varlock/src/env-graph/test/data-types.test.ts641 expect(g.configSchema.ITEM.resolvedValue).toEqual(['user@example.com']);CODE
LOWpackages/varlock/src/env-graph/test/data-types.test.ts818 'admin@example.com',CODE
LOWpackages/varlock/src/env-graph/test/data-types.test.ts1496 'admin@example.com',CODE
LOWpackages/varlock/src/env-graph/test/proxy-mode.test.ts401 { NUM_SECRET: { kind: 'placeholder', value: 'vlk_placeholder_NUM_SECRET_abcd1234' } },CODE
LOWpackages/varlock/src/env-graph/test/proxy-mode.test.ts438 { STATIC_SECRET: { kind: 'placeholder', value: 'vlk_placeholder_STATIC_SECRET_abcd' } },CODE
LOWpackages/varlock/src/env-graph/lib/decorators.ts915 name: 'placeholder',CODE
LOWpackages/varlock/src/env-graph/lib/env-graph.ts124 { kind: 'placeholder'; value: string } | { kind: 'omit' }CODE
LOWpackages/varlock/src/env-graph/lib/config-item.ts907 if (proxyDirective.kind === 'placeholder') {CODE
LOWpackages/varlock/src/cli/commands/proxy.command.ts2379 secrets.push({ key, label: `${ansis.cyan('placeholder')}: sensitive, no rule (not injected anywhere)` });CODE
LOWpackages/varlock/src/lib/test/load-graph.test.ts53 API_KEY: { kind: 'placeholder', value: '<<PROXY_PLACEHOLDER>>' },CODE
LOWpackages/varlock/src/lib/test/load-graph.test.ts92 API_KEY: { kind: 'placeholder', value: '<<PH>>' },CODE
LOWpackages/utils/test/git-utils.test.ts28 execSync('git config user.email "test@test.com"', { cwd: testDir });CODE
Redundant / Tautological Comments7 hits · 10 pts
SeverityFileLineSnippetContext
LOWscripts/login-ghcr.sh8# Check if GitHub CLI is installedCOMMENT
LOWscripts/login-ghcr.sh15# Check if already authenticated with correct scopesCOMMENT
LOWscripts/publish-docker.sh18# Check if GitHub CLI is installed and authenticatedCOMMENT
LOWscripts/publish-docker.sh31# Check if user has access to the organizationCOMMENT
LOW…ages/varlock/src/cli/commands/printenv.command-spec.ts43 varlock printenv MY_VAR # Print the value of MY_VARCODE
LOW.github/workflows/test.yaml69 # Check if native binary source changed (used to gate native builds)COMMENT
LOW.github/workflows/test.yaml89 # Check if native binary caches exist (lookup-only, no download)COMMENT
Modern AI Meta-Vocabulary2 hits · 5 pts
SeverityFileLineSnippetContext
MEDIUMREADME.md94In many cases you can use our [drop-in integrations](https://varlock.dev/integrations/javascript/) for seamless experienCODE
MEDIUMframework-tests/harness/dev-server.ts228 // Astro v7 auto-backgrounds `astro dev` when it detects an agentic/CICOMMENT
Self-Referential Comments1 hit · 3 pts
SeverityFileLineSnippetContext
MEDIUM.github/workflows/notarize-native-macos.yaml68 # Create a zip for notarization submissionCOMMENT
AI Slop Vocabulary1 hit · 2 pts
SeverityFileLineSnippetContext
LOWpackages/varlock/install.sh118 # if homebrew is detected, we just use itCOMMENT
Example Usage Blocks1 hit · 2 pts
SeverityFileLineSnippetContext
LOWpackages/varlock/src/lib/native-app-client.ts155// // Example usage:COMMENT