KnowledgeWritePlan class final
A prepared write: the bundle as it stands, the candidate it would become, and the verdict that decides whether KnowledgeWriter.commit writes it.
The OKF gate is the whole bundle, as okf judges every write: a candidate
okf refuses, even for a file the change does not touch, is not
committable. The Profile gate is a delta. A candidate Profile finding is
preExisting when the base reports one with the same rule id and path,
counted as a multiset, and introduced otherwise; the plan is not
committable when an introduced finding, or an error diagnostic the base
does not report, is an error. A caller that also requires a passing
gate checks candidate's gate; one that requires a Profile to have
judged the write checks assessed.
Properties
- assessed → bool
-
Whether a Profile's rules judged the candidate. False when none could
be selected, such as for a bundle with no
wayfinder.json, or one whose Profile is unresolved or does not compose: the base and the candidate then carry the same diagnostics, so the plan is judged by OKF alone, andvalidatereports the committed bundleNOT_ASSESSEDrather thanPASS. Also false when okf refuses the candidate.no setter - base → ProfileValidationResult
-
The bundle as it stands, as
validatereports it.final - bundle → String
-
The bundle root, absolute and normalized.
final
- candidate → ProfileValidationResult
-
The candidate, as
validatewould report it after diff is written, judged in memory from okf's prepared candidate.final - change → KnowledgeChange
-
final
-
changedPaths
→ List<
String> -
no setter
- changesContent → bool
-
Whether the write creates a concept or changes its content, its body,
title,descriptionortype(changesConceptContent), judged on the concept asprepareread it: then the write recordsgenerated, and aKnowledgeContentLogrecords its entry.final - committable → bool
-
no setter
-
diff
→ List<
KnowledgeFileDiff> -
Each file the commit writes, in path order.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
introduced
→ List<
ProfileFinding> -
Candidate Profile findings the base does not report.
final
-
introducedDiagnostics
→ List<
EngineDiagnostic> -
Candidate diagnostics the base does not report, by id and location.
final
-
introducedOkf
→ List<
OkfFinding> -
The OKF findings of the candidate (okf) the base does not report,
keyed as the Profile delta is: a candidate finding is pre-existing
when the base reports one with the same id and location path, counted
as a multiset, and introduced otherwise. They inform a host, such as
one that names what a write broke; the OKF gate stays the whole
candidate, so a plan okf refuses for a finding the base already had is
still not committable.
final
- okf → OkfSpecValidation
-
The whole of okf's Spec judgment of the candidate; the base's is
base's
okfValidation, and introducedOkf is their delta.no setter -
preExisting
→ List<
ProfileFinding> -
Candidate Profile findings the base already reports.
final
-
preExistingOkf
→ List<
OkfFinding> -
The OKF findings of the candidate the base already reports.
final
- projectFiles → KnowledgeProjectFiles
-
The project files the plan's selection came from, which
KnowledgeWriter.commit checks are unchanged:
wayfinder.jsonandwayfinder.lock, or the absentwayfinder.jsonpaths binding looked at when none binds the bundle.final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- selection → ProfileSelection
-
The Profile selection both validations used.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited