Commit 2fa286c
`agent` is the only authorable type with no governed write path — ADR-0063 §2
closes `*.agent.ts` to third parties, so both `allowOrgOverride` and
`allowRuntimeCreate` are false and nothing reaches `saveMetaItem`. Its rows are
written by the shipping plugin at boot (`AIStudioPlugin.registerMeta` →
`metadataService.register()` → `MetadataManager.register` →
`DatabaseLoader.save`), which writes `sys_metadata` directly with a fresh
checksum and appends no `sys_metadata_history` row. A shipped agent definition
that changes between releases therefore leaves no metadata-side change log.
That is a deliberate position, and it now sits beside the declaration rather
than only in an issue: the two definitions live in version control
(`@objectstack/service-ai-studio`, `cloud` repo), so git already holds the full
reviewable history, and a second history in `sys_metadata` would be a WORSE
record — it would capture only the boots where a given deployment saw the
checksum move, so two deployments on one release would carry different
"histories" of an identical, code-fixed definition.
The note names the two consequences that read as bugs and are not: the
`skipped` outcome `os migrate meta --stored` reports for `agent` is correct and
permanent for this type, and Studio showing no History tab is the absence of
anything to show. `migrateStoredMetadata`'s TSDoc — where the skip reason was
what made this look like a gap — now points at it.
It also states its own expiry: opening `agent` to tenant authoring removes the
git fallback, so opening the type and giving it a real history path are the same
piece of work.
Comment-only; empty changeset.
Claude-Session: https://claude.ai/code/session_01WoZPKPDqJ7WB7z84xk9y3f
Co-authored-by: Claude <noreply@anthropic.com>
1 parent 7631964 commit 2fa286c
3 files changed
Lines changed: 75 additions & 0 deletions
File tree
- .changeset
- packages
- metadata-protocol/src
- spec/src/kernel
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6610 | 6610 | | |
6611 | 6611 | | |
6612 | 6612 | | |
| 6613 | + | |
| 6614 | + | |
| 6615 | + | |
| 6616 | + | |
| 6617 | + | |
| 6618 | + | |
| 6619 | + | |
| 6620 | + | |
6613 | 6621 | | |
6614 | 6622 | | |
6615 | 6623 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
695 | 695 | | |
696 | 696 | | |
697 | 697 | | |
| 698 | + | |
| 699 | + | |
| 700 | + | |
| 701 | + | |
| 702 | + | |
| 703 | + | |
| 704 | + | |
| 705 | + | |
| 706 | + | |
| 707 | + | |
| 708 | + | |
| 709 | + | |
| 710 | + | |
| 711 | + | |
| 712 | + | |
| 713 | + | |
| 714 | + | |
| 715 | + | |
| 716 | + | |
| 717 | + | |
| 718 | + | |
| 719 | + | |
| 720 | + | |
| 721 | + | |
| 722 | + | |
| 723 | + | |
| 724 | + | |
| 725 | + | |
| 726 | + | |
| 727 | + | |
| 728 | + | |
| 729 | + | |
| 730 | + | |
| 731 | + | |
698 | 732 | | |
699 | 733 | | |
700 | 734 | | |
| |||
0 commit comments