Commit 47d45bc
authored
refactor: route lock owner-context runtime IDs through signatures registry (#482)
WorkspaceLockStore::default_owner_context() hardcoded kimaki_session_id /
opencode_session_id env-var literals in DMC generic core, violating the
RULES.md layer-purity law. Re-point it at the existing
datamachine_code_worktree_runtime_signatures filter (the same registry
WorktreeContextInjector already reads), projecting runtime session IDs into a
generic runtime-keyed `runtime_ids` envelope. DMCs own DATAMACHINE_* keys stay
(DMC namespace, not a vendor leak).
WorkspaceCommand::render_workspace_error() no longer special-cases
kimaki_session_id; it renders runtime session IDs generically from the
runtime_ids envelope (prefers session_id, falls back to any subkey, scanning
runtimes in registration order).
Adding a new runtime is now a filter/config change, never a DMC core edit.
Closes #4811 parent 46a57e7 commit 47d45bc
2 files changed
Lines changed: 100 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2789 | 2789 | | |
2790 | 2790 | | |
2791 | 2791 | | |
2792 | | - | |
2793 | | - | |
| 2792 | + | |
| 2793 | + | |
| 2794 | + | |
2794 | 2795 | | |
2795 | 2796 | | |
2796 | 2797 | | |
2797 | 2798 | | |
2798 | 2799 | | |
2799 | 2800 | | |
| 2801 | + | |
| 2802 | + | |
| 2803 | + | |
| 2804 | + | |
| 2805 | + | |
| 2806 | + | |
| 2807 | + | |
| 2808 | + | |
| 2809 | + | |
| 2810 | + | |
| 2811 | + | |
| 2812 | + | |
| 2813 | + | |
| 2814 | + | |
| 2815 | + | |
| 2816 | + | |
| 2817 | + | |
| 2818 | + | |
| 2819 | + | |
| 2820 | + | |
| 2821 | + | |
| 2822 | + | |
| 2823 | + | |
| 2824 | + | |
| 2825 | + | |
| 2826 | + | |
| 2827 | + | |
| 2828 | + | |
| 2829 | + | |
| 2830 | + | |
| 2831 | + | |
| 2832 | + | |
| 2833 | + | |
| 2834 | + | |
| 2835 | + | |
2800 | 2836 | | |
2801 | 2837 | | |
2802 | 2838 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
343 | 343 | | |
344 | 344 | | |
345 | 345 | | |
| 346 | + | |
346 | 347 | | |
347 | | - | |
348 | | - | |
349 | 348 | | |
350 | 349 | | |
351 | 350 | | |
| |||
358 | 357 | | |
359 | 358 | | |
360 | 359 | | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
361 | 371 | | |
362 | 372 | | |
363 | 373 | | |
364 | 374 | | |
365 | 375 | | |
366 | 376 | | |
367 | 377 | | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
| 399 | + | |
| 400 | + | |
| 401 | + | |
| 402 | + | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
| 427 | + | |
368 | 428 | | |
369 | 429 | | |
370 | 430 | | |
| |||
0 commit comments