15#ifndef A11_FLOW_CONTRACT_H_
16#define A11_FLOW_CONTRACT_H_
21#include <absl/status/status.h>
22#include <absl/status/statusor.h>
23#include <absl/types/span.h>
36 const FlowPlan& flow, absl::Span<const std::string> supplied = {});
40 const FlowPlan& flow, absl::Span<const std::string> supplied);
53 const Program& program);
55absl::Status
MergeContract(FlowPlan& effective,
const FlowPlan& contribution,
56 const Program& program);
59 const FlowPlan& declared,
60 const Program& program);
62std::string
HeaderBytes(
const syntax::Constant& constant);
One cooperative deadline and work counter for a compilation request.
Definition limits.h:36
CompilationBudget budget
Definition lsp.cc:289
Definition catalogue.cc:29
absl::Status MergeContract(FlowPlan &effective, const FlowPlan &other, const Program &program)
Conjoin compatible interfaces without changing executable identity.
Definition contract.cc:575
std::string HeaderBytes(const syntax::Constant &v)
Encode a constant using the native action-header textual convention.
Definition contract.cc:562
absl::Status CheckImplementation(const FlowPlan &actual, const FlowPlan &declared, const Program &program)
Validate the actual implementation against every declared obligation.
Definition contract.cc:719
void MarkBinaryTypes(std::vector< DtoPlan > &types, CompilationBudget *budget)
Definition contract.cc:509
std::vector< std::string_view > FieldTypeNames(const FieldPlan &field)
Every type named by a field, including nested container parameters.
Definition contract.cc:492
Refinement
Whether available metadata proves payload refinement.
Definition contract.h:48
Refinement RefinesType(std::string_view actual, std::string_view expected, const Program &program)
Compare payload types using native aliases and document shapes.
Definition contract.cc:556
absl::StatusOr< PipelinePorts > SelectPipelinePorts(const FlowPlan &flow, absl::Span< const std::string > supplied)
Definition contract.cc:58
absl::StatusOr< const PortPlan * > SelectPipelineStarterOutput(const FlowPlan &flow, absl::Span< const std::string > supplied)
The unique output of a call with every input supplied explicitly.
Definition contract.cc:72
std::string CanonicalPayloadType(std::string_view type)
Canonical payload spelling for alias and generic equality.
Definition contract.cc:552
One compiled flow: what a caller sees, and what the runtime will do.
Definition plan.h:157
The unique unsupplied input and unique output of a whole-stream invocation.
Definition contract.h:30
const PortPlan *absl_nonnull output
Definition contract.h:32
const PortPlan *absl_nonnull input
Definition contract.h:31
One declared port of a flow, resolved.
Definition plan.h:37