graflo.cli.lift¶
graflo lift -- convert a manifest into a twin-ready schema, via Operations.
The verb is a thin shell over
:func:~graflo.architecture.evolution.state_core.plan_lift. It reads a manifest
and a spec, plans the ops, and -- unless asked only to show them -- applies them
and writes the result.
--emit-ops is the point of doing this through Operations at all: the plan is
a document you can read, diff and check in before anything is applied.
The written manifest states its declarations explicitly (see
graflo.cli.io.DECLARED_KEYS). Without that, directed: true would be
dropped as a default and the very declaration the lift just made would be
invisible to graflo check.
Attributes¶
EXIT_REFUSED = 1
module-attribute
¶
__all__ = ['lift']
module-attribute
¶
Classes¶
Functions:¶
lift(manifest, spec_path, output, ops_path, dry_run, do_check, profile_name)
¶
Lift MANIFEST into a twin-ready schema.
Adds temporal validity and provenance: mutable facts move onto their own
<Type>State with a validity interval, measurements gain units, and
Evidence / Agent make lineage expressible.
This changes the contract, not the data flow. Nothing populates the new types: a manifest with an ingestion_model still needs its pipelines wired to them, which this verb deliberately does not attempt.
Source code in graflo/cli/lift.py
46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 | |