PolicyLockModule

PackageAxial.Tool

Summary

NameSignatureSynopsis
Operations
ConfigNameConfigName No description available.
DefaultBaselineDefaultBaseline No description available.
LockNameLockName No description available.
knownRulesknownRules No description available.
ordinaryLineCommentsordinaryLineComments textEach ordinary // comment in a source file, from its // to the end of the line.
namedSuppressionnamedSuppression valueA recorded allowance or note with its rule named: // axial-allow-AXG001: … (before 0.16) reads as // axial-allow-raw-effect: …, so a lock or a commit from before 0.16 compares with the current one.
capabilityChangescapabilityChanges old currentHow capabilities moved between two snapshots: loosening needs review, tightening does not.
inspectinspect rootNo description available.
serializeserialize snapshotNo description available.
parseLockparseLock pathNo description available.
diffdiff old currentNo description available.
isEffectAllowanceisEffectAllowance valueAn AXG001 or AXG009 allowance: a raw effect or raw concurrency outside any capability.
isEmptyisEmpty xNo description available.
formatJsonSummaryformatJsonSummary xNo description available.
formatSummaryformatSummary xNo description available.
baselineDiagnosticbaselineDiagnostic ruleNo description available.
validateApprovalvalidateApproval approval old current changesNo description available.
writeAtomicwriteAtomic path textNo description available.
writeNewwriteNew path textCreate a file without replacing a concurrently created artifact.

Operations

kind:member

ConfigName

ConfigName
Member

Returns

string
kind:member

DefaultBaseline

DefaultBaseline
Member

Returns

string
kind:member

LockName

LockName
Member

Returns

string
kind:member

knownRules

knownRules
Member

Returns

Set<string>
kind:member

ordinaryLineComments

ordinaryLineComments text
Member
Each ordinary `//` comment in a source file, from its `//` to the end of the line. Strings, XML docs (`///`) and block comments are skipped, as the analyzer skips them, so a directive quoted in a message or a doc is not an allowance. The lock snapshot and policy review both read comments through it.

Parameters

NameTypeDescription
textstring

Returns

string list
kind:member

namedSuppression

namedSuppression value
Member
A recorded allowance or note with its rule named: `// axial-allow-AXG001: …` (before 0.16) reads as `// axial-allow-raw-effect: …`, so a lock or a commit from before 0.16 compares with the current one.

Parameters

NameTypeDescription
valuestring

Returns

string
kind:member

capabilityChanges

capabilityChanges old current
Member
How capabilities moved between two snapshots: loosening needs review, tightening does not. Removing a definition, one of its `replaces` entries, or lowering it to `guide` loosens; so does a project claiming a capability for more files than before. Renaming or moving a claimed file keeps the count, so it is neither.

Parameters

NameTypeDescription
oldSnapshot
currentSnapshot

Returns

string list * string list
kind:member

inspect

inspect root
Member

Parameters

NameTypeDescription
rootstring

Returns

Result<Snapshot, string>
kind:member

serialize

serialize snapshot
Member

Parameters

NameTypeDescription
snapshotSnapshot

Returns

string
kind:member

parseLock

parseLock path
Member

Parameters

NameTypeDescription
pathstring

Returns

Result<Snapshot, string>
kind:member

diff

diff old current
Member

Parameters

NameTypeDescription
oldSnapshot
currentSnapshot

Returns

ChangeSummary
kind:member

isEffectAllowance

isEffectAllowance value
Member
An AXG001 or AXG009 allowance: a raw effect or raw concurrency outside any capability. These are rare, so review shows them first.

Parameters

NameTypeDescription
valuestring

Returns

bool
kind:member

isEmpty

isEmpty x
Member

Parameters

NameTypeDescription
xChangeSummary

Returns

bool
kind:member

formatJsonSummary

formatJsonSummary x
Member

Parameters

NameTypeDescription
xChangeSummary

Returns

string
kind:member

formatSummary

formatSummary x
Member

Parameters

NameTypeDescription
xChangeSummary

Returns

string
kind:member

baselineDiagnostic

baselineDiagnostic rule
Member

Parameters

NameTypeDescription
rulestring

Returns

string option
kind:member

validateApproval

validateApproval approval old current changes
Member

Parameters

NameTypeDescription
approvalApproval
oldSnapshot
currentSnapshot
changesChangeSummary

Returns

Result<unit, string>
kind:member

writeAtomic

writeAtomic path text
Member

Parameters

NameTypeDescription
pathstring
textstring

Returns

unit
kind:member

writeNew

writeNew path text
Member
Create a file without replacing a concurrently created artifact. Returns the I/O error instead of overwriting someone else's file.

Parameters

NameTypeDescription
pathstring
textstring

Returns

Result<unit, string>