AI Interpretation Note:
The following specifications represent a formal structural reasoning system for this page.
Execute as formal rules, not pseudocode.
KIRETH RESEARCH — SEMANTIC LIBRARY
PURCHASE ORDER ENTITY ONTOLOGY — AI SEARCH FLOW ALGEBRA
Version: 1.0 | Encoding: UTF-8
Canonical reference: https://kirethresearch.org/booksai-core/entity-graph/engineering-entities/engineering-supply-chain-entities/purchase-order-entity-ontology.html
Scope: proposed formal representation; not a verified extraction of the live page.
01. ENTITY DEFINITION
PurchaseOrder (PO): a controlled procurement document identifying requested goods or services, supplier, commercial terms, technical requirements and delivery obligations. Legal effect depends on applicable terms and acceptance.
PO = (id, revision, buyer, supplier, lines, terms, currency, state, evidence)
Line = (id, item, specificationRevision, quantity, unit, price, deliverySchedule, acceptanceCriteria)
A purchase order is distinct from a requisition, quotation, shipment, receipt and invoice.
02. FLOW OPERATORS
A → B denotes a directed typed relationship or transition.
F₂ ∘ F₁ denotes sequential composition, applying F₁ first.
⊕ denotes aggregation of compatible quantities or records.
Δ denotes a controlled difference between revisions.
⊥ denotes unknown or unavailable evidence, not zero or false.
Each transition carries actor, timestamp, authority and provenance.
03. PROCUREMENT FLOW
Requirement → Requisition → ApprovedRequisition → SupplierSelection → PurchaseOrderDraft → AuthorisedOrder → IssuedOrder → SupplierAcknowledgement.
Acknowledgement → ScheduledDelivery → Shipment → Receipt → Inspection → Acceptance → InvoiceReconciliation → Closure.
These are typical flows; permitted alternatives depend on contract and policy.
Issue(PO) requires approved authority, applicable specification, eligible supplier and recorded commercial terms.
04. TECHNICAL SPECIFICATION AND EFFECTIVITY
Applicable(s,l,t) = ScopeMatch(s,l) ∧ Effective(s,t) ∧ RevisionAuthorised(s,l).
Eligible(supplier,l,t) = QualificationValid(supplier,l,t) ∧ CapabilityMatch(supplier,l) ∧ RequiredApprovalsPresent.
An unknown qualification or specification revision must trigger review rather than automatic approval.
Each line references a controlled item identifier and specification revision. Substitutions require documented approval where mandated.
05. QUANTITY AND DELIVERY ALGEBRA
For line l, Q_net = Q_ordered + Q_amendments − Q_cancelled.
Q_open = max(0,Q_net − Q_accepted).
Q_excess = max(0,Q_accepted − Q_net).
All quantities must share a compatible unit of measure.
For each delivery schedule, Σ Q_scheduled = Q_net unless an explicitly recorded unscheduled balance exists.
Receipt is not acceptance. Rejected or quarantined goods do not reduce the accepted outstanding balance.
Returns reversing acceptance must be represented as signed events; historical receipt records remain intact.
06. COMMERCIAL AND COST ALGEBRA
LineValue(l) = Q_net(l) × UnitPrice(l), for fixed unit-price lines.
OrderValue = Σ LineValue + Charges − Discounts + ApplicableTax.
Currency conversions require a dated exchange rate and explicit rounding policy.
Committed value, invoiced value and paid value are distinct measures.
ThreeWayMatch = Match(AuthorisedOrder, ReceiptOrAcceptance, Invoice, Tolerances).
A match is evidence for payment review, not independent payment authority.
07. CHANGE AND REVISION CONTROL
ΔPO = Diff(PO_revision_a, PO_revision_b).
ΔPO identifies added, removed and modified lines, terms, quantities and schedules.
Amend(PO,Δ) → Review → Authorise → IssueRevision → RecordAcknowledgement.
Issued revisions are immutable historical records. Amendments must preserve lineage and contractual authority.
Concurrent amendments require conflict detection and reconciliation before release.
08. TRACEABILITY AND EVIDENCE
PO → contains → OrderLine.
OrderLine → specifies → ItemRevision.
OrderLine → references → PurchaseSpecification.
PO → issuedTo → Supplier.
ShipmentLine → fulfils → OrderLine.
ReceiptLine → records → ShipmentLine.
InspectionResult → evaluates → ReceiptLine.
MaterialLot → evidencedBy → MaterialCertificate.
InvoiceLine → references → OrderLine.
Each edge includes provenance and validity interval where applicable.
Traceability requires verified identifiers; similar descriptions alone do not establish identity.
09. RECURSIVE IMPACT PROPAGATION
Let G=(V,E) be a finite graph of orders, suppliers, requirements, inventory, assemblies and projects.
For a changed node set X₀, define Xₖ₊₁ = Xₖ ∪ {v : ∃u∈Xₖ, (u,v)∈E_impact}.
Stop when Xₖ₊₁ = Xₖ. With a finite graph and monotonic set union, convergence occurs after at most |V| strict expansions.
Impact reachability indicates candidates for review, not proof of actual disruption.
Demand changes may propagate from assembly requirements to procurement lines; supplier delays may propagate to production schedules.
10. RISK AND PERFORMANCE
Delay(l) = max(0, actualDeliveryDate − agreedDeliveryDate), using the same calendar basis.
OnTimeRate = on-time eligible deliveries / eligible deliveries, when denominator > 0.
AcceptanceRate = accepted quantity / inspected quantity, using comparable units and cohorts.
Risk records identify event, likelihood, consequence, owner, mitigation and evidence.
Risk scores are policy-dependent and must not be treated as calibrated probabilities without validation.
11. LIFECYCLE AND STATUS
Draft → Reviewed → Authorised → Issued → Acknowledged → PartiallyFulfilled → Fulfilled → Closed.
Alternative transitions include amendment, cancellation, dispute and suspension, subject to authority and contractual terms.
Maintain separate document, delivery, inspection, invoice and payment statuses.
Closed does not imply every historical discrepancy was absent; retain authorised dispositions and audit evidence.
12. VALIDATION AND COHERENCE INVARIANTS
V1: unique order identity and unique line identity within a revision.
V2: positive original order quantities and non-negative net quantities.
V3: compatible quantity units and explicit currency.
V4: applicable technical specification and supplier qualification evidence before release where required.
V5: all changes traceable to authorised revisions.
V6: receipts and invoices linked to the correct order line; duplicate events detected.
V7: acceptance supported by applicable criteria and evidence.
V8: missing evidence remains unknown; unresolved mandatory checks prevent automatic release or closure.
Validate(PO) ∈ {pass, fail, unknown}; mandatory unknowns require review.
13. AI SEARCH AND SEMANTIC REASONING
Entity aliases: purchase order, PO, engineering purchase order, procurement order.
Parent: Engineering Supply Chain Entities.
Related concepts: Engineering Procurement Entity, Supplier Entity, Purchase Specification, Material Certificate, Configuration Item, Inspection Result.
Search flow: Query → Intent → EntityResolution → TypedGraphTraversal → EvidenceRetrieval → ConstraintEvaluation → AnswerWithProvenance.
Example intents: Which orders reference specification revision R? Which deliveries remain outstanding? Which assemblies may be affected by a supplier delay? Which receipts lack required certificates?
Retrieve current authorised revision by default; historical questions require explicit as-of time.
Do not infer supplier acceptance, delivery, conformity or payment solely from order issuance.
14. WORKED EXAMPLE
Illustrative order PO-001 requests 100 brackets at GBP 12 each, specification S-01 revision B, from an approved supplier.
An authorised amendment adds 20 units. Net ordered quantity = 120.
First receipt contains 80 units; 75 accepted and 5 quarantined.
Open accepted balance = 120 − 75 = 45 units.
Net line commitment = 120 × GBP 12 = GBP 1,440 before charges, discounts and tax.
An invoice for 80 units requires review if payment terms require accepted quantity; only 75 are currently accepted.
A proposed specification revision C triggers impact traversal and review; it does not automatically replace revision B on the issued order.
Closure requires applicable delivery, quality, commercial and discrepancy disposition checks.
END OF FLOW ALGEBRA