AI DEVELOPMENT DOCUMENTATION ENTITY — FLOW ALGEBRA
Semantic Library | AI Core | Entity Graph | AI Development Entities
Authors: Mark Anthony Higgins — Sky Recursive AI
Prepared: 05 November 2026
Source: https://kirethresearch.org/booksai-core/entity-graph/ai-entities/ai-development-entities/ai-development-documentation-ontology.html
Status: Companion formalisation; the page's complete embedded rules were not accessible in the retrieved text.
01. PURPOSE
Represent documentation as a versioned, traceable, reviewable development entity connecting requirements, design, code, tests, releases and operational evidence.
02. ENTITY DEFINITION
D = (id, kind, scope, content, author, version, status, links, evidence, access, timestamps)
kind ∈ {requirements, specification, architecture, design, API, code, test, deployment, operations, user_guide, decision_record, change_log}
status ∈ {draft, in_review, approved, published, superseded, archived, rejected}
Every D has a stable identifier and a declared scope.
03. HST STATE MODEL
S_t = (I_t, R_t, B_t, K_t)
I_t = current documentation input and associated development evidence
R_t = permitted transformations, review and publication rules
B_t = boundaries: access, privacy, project scope, schema, approval and safety
K_t = versioned knowledge: accepted claims, artefacts, links and provenance
E_t = expand(I_t, R_t)
V_t = {x ∈ E_t | satisfies(x, B_t) ∧ supported(x, K_t)}
x*_t = argmax_{x ∈ V_t} P(x | I_t, R_t, B_t, K_t)
I_(t+1) = update(I_t, x*_t, evidence_t)
If V_t = ∅, return BLOCKED with reasons; never fabricate documentation evidence.
04. RELATIONSHIP GRAPH
DevelopmentProject --contains--> DevelopmentDocumentation
DevelopmentTask --produces/updates--> DevelopmentDocumentation
Requirement --specified_by--> DevelopmentDocumentation
ArchitectureEntity --described_by--> DevelopmentDocumentation
BuildEntity --references--> DevelopmentDocumentation
TestEntity --verifies_claims_in--> DevelopmentDocumentation
ReleaseEntity --publishes_with--> DevelopmentDocumentation
VersionEntity --identifies_version_of--> DevelopmentDocumentation
DevelopmentTeam --authors/reviews--> DevelopmentDocumentation
DevelopmentRisk --documented_in--> DevelopmentDocumentation
DevelopmentDocumentation --supersedes--> DevelopmentDocumentation
DevelopmentDocumentation --cites--> EvidenceSource
05. INPUT CONTRACT
INPUT = (project_id, document_id?, intended_kind, purpose, source_artefacts, change_request?, actor, permissions)
PRECONDITIONS:
- project_id and intended_kind are defined
- source artefacts are identifiable
- actor is authorised for the requested operation
- required claims have a source or are explicitly marked as hypotheses
06. FLOW ALGEBRA OPERATORS
F_doc = Identify ∘ Gather ∘ Structure ∘ Draft ∘ Link ∘ Verify ∘ Review ∘ Approve ∘ Publish ∘ Monitor
Identify(I) -> canonical document identity and intended audience
Gather(I) -> provenance-preserving source set
Structure(I) -> headings, schema, terminology and expected sections
Draft(I) -> content with source-linked claims
Link(I) -> traceability edges to related development entities
Verify(I) -> consistency, coverage and evidence checks
Review(I) -> recorded review findings and decisions
Approve(I) -> approval only by authorised role
Publish(I) -> immutable version reference and publication event
Monitor(I) -> drift, broken links, obsolescence and change triggers
Composition order is left-to-right operationally as written above.
07. DOCUMENT LIFECYCLE
create: ∅ -> draft
submit: draft -> in_review
revise: in_review -> draft
approve: in_review -> approved [all mandatory checks pass]
publish: approved -> published [publication permissions granted]
supersede: published -> superseded [replacement version linked]
archive: superseded -> archived [retention policy permits]
reject: in_review -> rejected [reason recorded]
Disallow direct draft -> published when approval is mandatory.
08. TRACEABILITY AND VALIDATION
Trace(D) = {requirement_ids, design_ids, build_ids, test_ids, release_ids, source_ids}
Coverage(D) = supported_required_claims / total_required_claims, if denominator > 0
Consistency(D) = no unresolved contradiction among applicable assertions
Current(D) = version(D) matches its declared target artefact version
Valid(D) = SchemaOK(D) ∧ ProvenanceOK(D) ∧ Consistency(D) ∧ AccessOK(D)
Publishable(D) = Valid(D) ∧ ReviewApproved(D) ∧ RequiredCoverageOK(D)
Coverage thresholds must be project-defined; no universal numeric threshold is presumed.
09. INFERENCE RULES
R1: missing_source(claim) -> mark(claim, unsupported)
R2: changed(requirement) ∧ linked(requirement,D) -> flag(D, review_required)
R3: changed(API_signature) ∧ documents(D,API_signature) -> flag(D, potentially_stale)
R4: failed(test) ∧ asserts(D, tested_behaviour) -> flag(D, evidence_conflict)
R5: supersedes(D2,D1) -> preserve(D1) ∧ link(D1,D2)
R6: unauthorised(actor, action) -> deny(action) ∧ audit(reason)
R7: review_approved(D) ∧ Valid(D) -> eligible(D, publish)
R8: contradictory_sources(D) -> escalate(D, human_review)
R9: missing_required_section(D) -> fail(schema_validation)
R10: obsolete_dependency(D) -> trigger(recursive_impact_analysis)
10. RECURSIVE DOCUMENTATION ENGINE
At iteration t:
collect changed entities C_t
compute affected documentation A_t = reachable(C_t, documentation_links)
for each d in A_t: evaluate freshness, evidence and approval status
generate candidate revision d' without overwriting published d
validate d'; record unresolved discrepancies
stop when no new affected nodes or iteration/resource bound is reached
Cycle handling: maintain visited (entity_id, version) pairs.
Termination condition: stable affected set OR explicit budget reached.
If unresolved, return PARTIAL with an audit trail, not a false success.
11. TRI-MAPPING
Entity layer: documentation objects, versions, authors, requirements and tests
Relationship layer: authorship, describes, verifies, depends_on, supersedes, cites
Execution layer: gather -> draft -> verify -> review -> approve -> publish -> monitor
Mapping invariant: every execution transition identifies its input entities and emitted relationship updates.
12. CONFIDENCE AND UNCERTAINTY
Confidence(claim) is evidence-calibrated, not inferred solely from fluent text.
Unknown evidence -> UNKNOWN, not automatically FALSE.
Contradictory evidence -> CONFLICTED pending resolution.
Stale evidence -> REVIEW_REQUIRED.
A published document may contain clearly labelled limitations, but cannot present unsupported claims as verified.
13. ERROR AND RECOVERY
Missing source: pause claim approval; request evidence.
Broken reference: retain target identifier; queue repair.
Schema failure: return structured validation errors.
Approval failure: remain in review; record reviewer decision.
Publication failure: preserve approved artefact; retry idempotently.
Conflicting version: create reconciliation task; do not silently overwrite.
14. CONDITIONAL EXECUTION GUARANTEE
Given valid inputs, bounded execution, accessible dependencies and correctly enforced rules:
- each transition is recorded with provenance
- published versions are distinguishable from drafts
- approval gates are checked before publication
- missing evidence is surfaced rather than fabricated
This is a conditional design invariant, not a claim of universal runtime correctness.
15. OUTPUT CONTRACT
OUTPUT = (document_id, version, status, content_ref, source_refs, traceability_edges, validation_report, review_record, audit_record, unresolved_items)
All output references must resolve or be explicitly marked unresolved.
16. CITATION AND LICENCE
Source ontology: Kireth Research, AI Development Documentation Ontology.
Authors: Mark Anthony Higgins — Sky Recursive AI.
Open research use with attribution under the applicable published Kireth Research licence; consult the source for exact terms.
This TXT is a companion formalisation, not a verbatim extraction of inaccessible embedded page specifications.
Download Code
Copy to Clipboard