graflo.architecture.evolution.identity¶
Identity-plane evolution ops.
The identity policy of a vertex is the one thing every other reference hangs off:
upserts address it, edge endpoints resolve through it, and the physical profile indexes
it. Replacing it therefore cascades further than any other contract op, which is why it
lives in its own module rather than in :mod:~graflo.architecture.evolution.apply.
apply_add_secondary_identities(manifest, op)
¶
Declare alternate lookup keys on existing vertices.
The derived non-unique index for each new field-set is registered by
Schema.finish_init; this op does not author indexes directly.
Source code in graflo/architecture/evolution/identity.py
apply_remove_secondary_identities(manifest, op)
¶
Withdraw alternate lookup keys and drop the indexes derived from them.
Source code in graflo/architecture/evolution/identity.py
459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 | |
apply_replace_edge_identities(manifest, op)
¶
Replace the uniqueness keys of logical edges.
Source code in graflo/architecture/evolution/identity.py
apply_replace_identity(manifest, op)
¶
Replace vertex identity policies and cascade the consequences.
Mutates manifest in place:
- Rewrites
identityand the identity-mode flags on each named vertex. - Applies the retire policy: demote the old field-set to a secondary identity, keep it as a plain property, or drop it.
- Drops
db_profilevertex indexes that encoded the retired identity. - With
endpoints: pin_to_retired, repoints edge steps that matched the vertex on its primary identity at the demoted secondary identity.
Source code in graflo/architecture/evolution/identity.py
234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 | |