feat: bhl audit — детерминированный движок аудита (BHL-026)
- встроенные проверки: команда качества, lockfile, CI-конфиг по Effective Spec - subject: отпечаток дерева SHA-256 + git revision/dirty (git из PATH — узкое исключение sonarjs/no-os-command-from-path в eslint.config.mjs) - evidence с fingerprint байтов; FAIL доказателен (отсутствие — наблюдение) - отчёт проходит report validate; повторный аудит идентичен (тесты) - требования без проверки → UNKNOWN/semantic/low; пакет 41/41
This commit is contained in:
@@ -243,7 +243,7 @@ class Resolver {
|
||||
this.root = root;
|
||||
}
|
||||
|
||||
run(profileIds: string[], presetIds: string[]): ResolveResult {
|
||||
run(profileIds: readonly string[], presetIds: readonly string[]): ResolveResult {
|
||||
if (!this.addSchemas()) {
|
||||
return { ok: false, profiles: [], effective: [], diagnostics: this.diagnostics };
|
||||
}
|
||||
@@ -314,8 +314,8 @@ class Resolver {
|
||||
}
|
||||
|
||||
private selectProfiles(
|
||||
profileIds: string[],
|
||||
presetIds: string[],
|
||||
profileIds: readonly string[],
|
||||
presetIds: readonly string[],
|
||||
profiles: Record<string, ProfileDoc>,
|
||||
presets: Record<string, string[]>,
|
||||
): ProfileDoc[] {
|
||||
@@ -567,8 +567,8 @@ function requirementParameters(
|
||||
|
||||
export function resolveProfiles(
|
||||
root: string,
|
||||
profileIds: string[],
|
||||
presetIds: string[],
|
||||
profileIds: readonly string[],
|
||||
presetIds: readonly string[],
|
||||
): ResolveResult {
|
||||
return new Resolver(root).run(profileIds, presetIds);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user