agentera 3.0.0-dev.28 → 3.0.0-dev.29

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (75) hide show
  1. package/README.md +7 -5
  2. package/bundle/CHANGELOG.md +7 -2
  3. package/bundle/README.md +7 -6
  4. package/bundle/UPGRADE.md +27 -16
  5. package/bundle/references/adapters/package-surface-characterization.md +1 -2
  6. package/bundle/references/adapters/runtime-lifecycle-authority.yaml +2 -3
  7. package/bundle/references/adapters/runtime-retired-resources.yaml +78 -14
  8. package/bundle/references/artifacts/state-storage-authority.yaml +10 -1
  9. package/bundle/references/cli/audience-namespace-cli-migration.yaml +1 -1
  10. package/bundle/references/cli/bundle-skill-vocabulary.yaml +1 -1
  11. package/bundle/references/cli/capability-instruction-contract.yaml +0 -3
  12. package/bundle/references/cli/routing-execution-vocabulary.yaml +0 -4
  13. package/bundle/references/cli/vocabulary.md +1 -2
  14. package/bundle/skills/agentera/capabilities/orchestrate/schemas/artifacts.yaml +10 -6
  15. package/bundle/skills/agentera/capabilities/orchestrate/schemas/exit.yaml +3 -2
  16. package/bundle/skills/agentera/capabilities/orchestrate/schemas/validation.yaml +6 -5
  17. package/bundle/skills/agentera/schemas/artifacts/health.yaml +25 -7
  18. package/bundle/skills/agentera/schemas/artifacts/plan.yaml +0 -1
  19. package/dist/capabilities/orchestrate/instructions.js +22 -2
  20. package/dist/capabilities/orchestrate/instructions.js.map +1 -1
  21. package/dist/cli/capabilityContext/startup.js +2 -0
  22. package/dist/cli/capabilityContext/startup.js.map +1 -1
  23. package/dist/cli/commands/schema.js +21 -23
  24. package/dist/cli/commands/schema.js.map +1 -1
  25. package/dist/cli/commands/upgrade.js +1 -1
  26. package/dist/cli/commands/upgrade.js.map +1 -1
  27. package/dist/cli/commands/validate.js +2 -119
  28. package/dist/cli/commands/validate.js.map +1 -1
  29. package/dist/cli/dispatch/check.js +2 -7
  30. package/dist/cli/dispatch/check.js.map +1 -1
  31. package/dist/cli/dispatch/lifecycle.js +7 -5
  32. package/dist/cli/dispatch/lifecycle.js.map +1 -1
  33. package/dist/cli/help.js +4 -4
  34. package/dist/cli/help.js.map +1 -1
  35. package/dist/runtime/lifecycleAuthority.js +10 -11
  36. package/dist/runtime/lifecycleAuthority.js.map +1 -1
  37. package/dist/runtime/nativeResourceCleanup.js +317 -0
  38. package/dist/runtime/nativeResourceCleanup.js.map +1 -0
  39. package/dist/setup/codex/cli.js +9 -40
  40. package/dist/setup/codex/cli.js.map +1 -1
  41. package/dist/setup/codex/configToml.js +2 -83
  42. package/dist/setup/codex/configToml.js.map +1 -1
  43. package/dist/setup/codex/constants.js +0 -15
  44. package/dist/setup/codex/constants.js.map +1 -1
  45. package/dist/setup/codex/state.js +2 -20
  46. package/dist/setup/codex/state.js.map +1 -1
  47. package/dist/setup/codex.js +2 -4
  48. package/dist/setup/codex.js.map +1 -1
  49. package/dist/state/healthEntities.js +43 -4
  50. package/dist/state/healthEntities.js.map +1 -1
  51. package/dist/state/healthEntityValidation.js +14 -1
  52. package/dist/state/healthEntityValidation.js.map +1 -1
  53. package/dist/state/write/explain.js +2 -1
  54. package/dist/state/write/explain.js.map +1 -1
  55. package/dist/upgrade/lifecycleUpgrade.js +14 -14
  56. package/dist/upgrade/lifecycleUpgrade.js.map +1 -1
  57. package/dist/upgrade/upgradeOrchestrator.js +12 -12
  58. package/dist/upgrade/upgradeOrchestrator.js.map +1 -1
  59. package/package.json +2 -2
  60. package/bundle/skills/agentera/agents/audit.toml +0 -6
  61. package/bundle/skills/agentera/agents/build.toml +0 -6
  62. package/bundle/skills/agentera/agents/design.toml +0 -6
  63. package/bundle/skills/agentera/agents/discuss.toml +0 -6
  64. package/bundle/skills/agentera/agents/document.toml +0 -6
  65. package/bundle/skills/agentera/agents/optimize.toml +0 -6
  66. package/bundle/skills/agentera/agents/orchestrate.toml +0 -6
  67. package/bundle/skills/agentera/agents/plan.toml +0 -6
  68. package/bundle/skills/agentera/agents/profile.toml +0 -6
  69. package/bundle/skills/agentera/agents/research.toml +0 -6
  70. package/bundle/skills/agentera/agents/status.toml +0 -6
  71. package/bundle/skills/agentera/agents/vision.toml +0 -6
  72. package/dist/runtime/retiredRuntimeCleanup.js +0 -238
  73. package/dist/runtime/retiredRuntimeCleanup.js.map +0 -1
  74. package/dist/setup/codex/agents.js +0 -96
  75. package/dist/setup/codex/agents.js.map +0 -1
package/README.md CHANGED
@@ -38,15 +38,17 @@ Preview has no side effects. The apply path is the explicit, one-way v2-to-v3
38
38
  migration described in [UPGRADE.md](../../UPGRADE.md); it does not run a native
39
39
  package installer.
40
40
 
41
- Retired Claude cleanup is intentionally separate:
41
+ Native Agentera resource cleanup is intentionally separate from host support:
42
42
 
43
43
  ```bash
44
- npx -y agentera@next upgrade --legacy-cleanup claude --dry-run
44
+ npx -y agentera@next upgrade --legacy-cleanup claude.agentera-skill-link --dry-run
45
45
  ```
46
46
 
47
- It can remove only the exact Agentera-owned legacy link. Historical transcript
48
- import is also explicit (`agentera report refresh --import-source claude`) and
49
- is excluded from default active-runtime analytics.
47
+ It selects declared native Agentera resources only. Each removal needs a
48
+ matching whole-resource ledger identity and fingerprint; shared Codex config
49
+ keys require unavailable key-level evidence and remain action-required.
50
+ Historical transcript import is also explicit (`agentera report refresh
51
+ --import-source claude`) and is excluded from default active-runtime analytics.
50
52
 
51
53
  ## Bounded state retrieval
52
54
 
@@ -4,6 +4,11 @@
4
4
 
5
5
  ### Changed
6
6
 
7
+ - Health audit appends now receive a CLI-owned UTC timestamp. Bounded health
8
+ reads and `prime` select timestamped records newest-first regardless of random
9
+ ID; legacy records retain deterministic date-and-ID ordering without inferred
10
+ chronology.
11
+ - Removed bundled native capability descriptors and `agentera check validate descriptors`; Codex setup no longer installs descriptors or writes agent-dispatch settings, and the canonical shared skill and CLI are the only active integration seam.
7
12
  - `agentera route receipt` now requires the phase-one `semantic_capsule_sha256` as well as `request_sha256`; it fails closed when the current trigger-intent capsule differs, preventing startup from a receipt classified against stale routing authority.
8
13
  - Defined the portable routing boundary: `agentera route request` deterministically resolves bare `/agentera`, explicit capability names or aliases, and curated leading phrases to a capability; every other request remains host-owned open-ended semantic classification. `agentera route receipt` validates the host result before authorizing startup, while `agentera route evaluate` and `agentera check verify eval routing` gate implementation with the frozen offline synthetic corpus; Agentera ships no built-in model service or live benchmark.
9
14
  - Added ordinary progress, decision, and health reads plus startup handling for
@@ -44,7 +49,7 @@
44
49
 
45
50
  - Added an executable bounded-retrieval authority and reserved CLI grammar for plan tasks, plans, and objective-scoped experiments, including stable and legacy identity rules, experiment `0`, opaque cursors, explicit omissions, and structured compatibility errors; retrieval execution remains staged for subsequent tasks.
46
51
  - Added one shared skill at `~/.agents/skills/agentera` plus the CLI and entity-backed project state as the active integration contract; host-native plugin, hook, agent, and package surfaces are not shipped.
47
- - Retained runtime lifecycle contracts only as migration evidence and for explicit `agentera upgrade --legacy-cleanup claude --dry-run|--yes`, which can remove only the ownership-proven legacy Agentera skill link and excludes user data.
52
+ - Defined native-resource cleanup evidence for supported hosts and explicit `agentera upgrade --legacy-cleanup RESOURCE_ID --dry-run|--yes` selection. Cleanup retains only ledger-proven whole resources; Codex descriptor reports preserve shared configuration keys as report-only action-required items without durable key-level ownership.
48
53
  - Added typed artifact writes under `agentera state`: progress/decision/audit appends, decision satisfaction updates, plan create/task/status/archive lifecycle operations, schema-derived `explain`, server-assigned identifiers, exact retry replay, dry-run diffs, project locking, strict mapped-path safety, staged 10/40/50 compaction, final-byte validation, and atomic publication.
49
54
  - Added `install_track` to `prime --format json` (`app_home.install_track`) and `doctor --format json`. Values are `v2`, `v3`, `source`, and `unknown`.
50
55
  - Added the TypeScript CLI on the npm development channel (`npx -y agentera@next`) as a self-contained package whose governed isolated construction stages compiled commands, registry-owned app data, and the `.agentera-npx-bundle.json` sentinel before packing with lifecycle scripts disabled.
@@ -128,7 +133,7 @@
128
133
  - Removed `hej`, `describe`, and `gate` from top-level `agentera --help` and dispatch; unsupported structured requests return runnable corrections to `agentera prime`, `agentera schema`, and `agentera check compact`.
129
134
  - Removed the requirement for `uv` or a git checkout on the development channel; `uvx --from git+https://github.com/jgabor/agentera@main agentera` remains the stable 2.x Python line only.
130
135
  - Removed `agentera state migrate`, `agentera state backfill`, projection repair, and automatic v1 conversion. Recognized v2 aggregate projects now have one forward mutation path: full `agentera upgrade --yes`; `state migrate entities --dry-run` remains read-only.
131
- - Removed host-native runtime selectors, repair actions, package manifests, plugins, hooks, agents, and Bun single-binary delivery from the v3 distribution. Migration fixtures, ownership evidence, and explicit Claude cleanup remain internal migration surfaces.
136
+ - Removed host-native runtime selectors, repair actions, package manifests, plugins, hooks, agents, and Bun single-binary delivery from the v3 distribution. Migration fixtures, ownership evidence, and explicit native Agentera resource cleanup remain internal migration surfaces.
132
137
 
133
138
  ### Migration notes
134
139
 
package/bundle/README.md CHANGED
@@ -41,19 +41,20 @@ skill at `~/.agents/skills/agentera` plus the Agentera CLI. Normal `upgrade`
41
41
  previews and applies only app/project migration; it has no current-runtime
42
42
  selector and creates no native plugin, hook, agent, command, descriptor, or
43
43
  marketplace file. See [UPGRADE.md](./UPGRADE.md) for the distinct one-way v2
44
- migration and explicit retired Claude cleanup route:
45
- `agentera upgrade --legacy-cleanup claude --dry-run|--yes`.
44
+ migration and explicit native-resource cleanup route:
45
+ `agentera upgrade --legacy-cleanup RESOURCE_ID --dry-run|--yes`.
46
46
 
47
47
  `doctor` reports read-only app, project-state, shared-skill, and CLI evidence.
48
48
  `prime`, status, and project-integration output use the app/project recommendation
49
49
  and shared-skill diagnosis to select the next action.
50
50
 
51
- Claude Code is retired from active support. Its only lifecycle command is a
52
- separate, explicit cleanup of the exact Agentera-owned legacy skill link:
51
+ Supported hosts continue to use the canonical shared skill and CLI. Cleanup
52
+ selects a native Agentera resource, never a host. Claude Code is retired from
53
+ active support; its legacy link remains one selectable resource:
53
54
 
54
55
  ```bash
55
- npx -y agentera@next upgrade --legacy-cleanup claude --dry-run
56
- npx -y agentera@next upgrade --legacy-cleanup claude --yes
56
+ npx -y agentera@next upgrade --legacy-cleanup claude.agentera-skill-link --dry-run
57
+ npx -y agentera@next upgrade --legacy-cleanup claude.agentera-skill-link --yes
57
58
  ```
58
59
 
59
60
  Historical Claude transcripts are excluded by default. A local import requires
package/bundle/UPGRADE.md CHANGED
@@ -1,8 +1,8 @@
1
1
  # Upgrade and migration
2
2
 
3
3
  Agentera 3.0 uses one upgrade command for app/project migration and explicit
4
- retired Claude cleanup. Preview and apply are separate operations. Current
5
- runtime installation and repair are not upgrade operations.
4
+ native Agentera resource cleanup. Preview and apply are separate operations.
5
+ Current runtime installation and repair are not upgrade operations.
6
6
 
7
7
  Before the npm stable dist-tag promotion, use `agentera@next`. The stable 2.x
8
8
  channel remains `agentera@latest` until that promotion; upgrade does not publish
@@ -24,8 +24,8 @@ runtime package managers, authentication, enablement, or trust operations.
24
24
 
25
25
  Passing `--runtime` fails before mutation. Remove `--runtime`, ensure the runtime
26
26
  can read `~/.agents/skills/agentera`, and invoke the CLI directly. The supported
27
- v2 migration and Claude cleanup routes below are separate from normal active
28
- integration.
27
+ v2 migration and native Agentera resource cleanup routes below are separate from
28
+ normal active integration.
29
29
 
30
30
  ## Preview and apply
31
31
 
@@ -55,20 +55,30 @@ Retries re-observe the current app/project state. Completed migration work
55
55
  converges to no change; interrupted v2 migration continues through the same full
56
56
  apply command.
57
57
 
58
- ## Retired Claude cleanup
58
+ ## Native Agentera resource cleanup
59
59
 
60
- Claude cleanup is a distinct historical route, not a current-runtime selection:
60
+ Cleanup is a distinct resource route, not a host selection. Codex, Cursor,
61
+ OpenCode, and Copilot remain supported through the canonical shared skill and
62
+ CLI. Accepted smoke evidence records that Codex and Cursor loaded Agentera's
63
+ skill instructions, OpenCode listed the canonical skill, and Copilot's listed
64
+ canonical skill is intentionally disabled.
65
+
66
+ Use `agentera upgrade --legacy-cleanup RESOURCE_ID --dry-run|--yes` with one
67
+ declared native Agentera resource ID.
61
68
 
62
69
  ```bash
63
- npx -y agentera@next upgrade --legacy-cleanup claude --dry-run
64
- npx -y agentera@next upgrade --legacy-cleanup claude --yes
70
+ npx -y agentera@next upgrade --legacy-cleanup claude.agentera-skill-link --dry-run
71
+ npx -y agentera@next upgrade --legacy-cleanup claude.agentera-skill-link --yes
65
72
  ```
66
73
 
67
- Cleanup is limited to the exact Agentera-owned legacy skill link recorded by the
68
- ownership journal. It never removes Claude projects, transcripts, settings,
69
- credentials, caches, or other user data. Ambiguous or unowned resources remain
70
- blocked. Preview is read-only; apply is idempotent and can be retried with the
71
- same explicit selection.
74
+ The contract also inventories retired Codex descriptor files. Each file needs a
75
+ matching whole-resource ledger identity and fingerprint before it can be
76
+ removed. Codex descriptor previews report each shared configuration key as
77
+ `action_required` without adding it to the selected resource's apply work.
78
+ Agentera has no durable key-level ownership proof, so matching values, markers,
79
+ names, or whole file contents never authorize a shared `config.toml` mutation.
80
+ Preview is read-only; approved apply is idempotent and preserves ambiguous or
81
+ unowned resources.
72
82
 
73
83
  Historical transcript import is independent of cleanup. Default extraction and
74
84
  analytics do not read Claude history. Import requires explicit local consent:
@@ -164,7 +174,7 @@ npx -y agentera@next prime --format json
164
174
 
165
175
  `upgrade --verify` without `--yes` is a read-only doctor and capability-context
166
176
  verification. With `--yes`, it runs those checks after approved migration.
167
- Explicit Claude cleanup with `--verify` requires `--yes`.
177
+ Explicit native Agentera resource cleanup with `--verify` requires `--yes`.
168
178
 
169
179
  `--force` applies only where the owning migration contract explicitly permits
170
180
  replacement. It never adopts user-owned resources.
@@ -184,7 +194,8 @@ node packages/cli/dist/bin/agentera.js check validate release-metadata
184
194
  ## Mutation ownership
185
195
 
186
196
  Upgrade apply holds the required project lock before migration begins. Explicit
187
- Claude cleanup additionally uses its ownership journal and shared lock. Lock
188
- creation is atomic, and release succeeds only for the matching ownership token.
197
+ native Agentera resource cleanup additionally uses its ownership journal and
198
+ shared lock. Lock creation is atomic, and release succeeds only for the matching
199
+ ownership token.
189
200
  A stale or malformed lock stops the operation; inspect the named lock file,
190
201
  remove only that file after confirming no operation owns it, then rerun.
@@ -31,8 +31,7 @@ by [`docs/packaging/v3-packaging.md`](../../docs/packaging/v3-packaging.md).
31
31
  The self-contained npm package ships `dist/` plus `bundle/`. Bundle data
32
32
  includes the canonical `skills/` tree, required `references/`, `registry.json`,
33
33
  the frozen routing evaluation corpus, and package guidance. Compiled commands
34
- ship in `dist/`. The shared-skill tree includes its capability schemas, artifact schemas, and canonical
35
- `skills/agentera/agents/*.toml` descriptors.
34
+ ship in `dist/`. The shared-skill tree includes its capability schemas and artifact schemas.
36
35
 
37
36
  The package lane's isolated package fixture invokes `npm pack --json
38
37
  --ignore-scripts` after governed construction and fails if the CLI or required
@@ -3,7 +3,7 @@ status: migration_only_authority
3
3
  decision: 92
4
4
  operation_contract: references/adapters/runtime-lifecycle-operation-contract.yaml
5
5
  adapter_contract: references/adapters/runtime-lifecycle-adapters.yaml
6
- retired_cleanup_contract: references/adapters/runtime-retired-resources.yaml
6
+ native_resource_cleanup_contract: references/adapters/runtime-retired-resources.yaml
7
7
  canonical_skill:
8
8
  path: ~/.agents/skills/agentera
9
9
  required_for_support_floor: true
@@ -52,11 +52,10 @@ support_floor:
52
52
  not_applicable_scope: unobserved_conditional_surface_only
53
53
  unmet_blocks_release: true
54
54
  active_runtimes: []
55
- retired_runtime_inputs:
55
+ historical_inputs:
56
56
  - id: claude
57
57
  purposes:
58
58
  - consent_gated_historical_import
59
- - owned_legacy_resource_cleanup
60
59
  migration_aliases:
61
60
  cursor-agent:
62
61
  runtime_id: cursor
@@ -1,25 +1,58 @@
1
- schema_version: agentera.retiredRuntimeResources.v1
2
- status: retired_migration_contract
3
- decision: 92
1
+ schema_version: agentera.nativeResourceCleanup.v1
2
+ status: resource_retirement_contract
3
+ decision: nksvqmnevm
4
4
  authority: references/adapters/runtime-lifecycle-authority.yaml
5
5
  operation_contract: references/adapters/runtime-lifecycle-operation-contract.yaml
6
6
  policy:
7
- active_inventory_exposure: forbidden
7
+ host_inventory_exposure: evidence_only
8
+ selection: native_agentera_resource_only
8
9
  preview: strictly_read_only
9
10
  apply_requires: explicit_approval
10
- ownership: matching_whole_resource_legacy_ledger_identity_and_fingerprint
11
+ ownership: matching_whole_resource_ledger_identity_and_fingerprint
12
+ shared_configuration: action_required_without_key_level_ownership
13
+ forbidden_ownership_evidence:
14
+ - value_equality
15
+ - managed_marker
16
+ - resource_name
17
+ - file_equality
11
18
  unsupported_platform_result: action_required
12
- retired_runtimes:
19
+ accepted_host_evidence:
20
+ - host: codex
21
+ state: supported
22
+ proof: Codex loaded Agentera's specific canonical skill instructions and bootstrap command.
23
+ - host: cursor
24
+ state: supported
25
+ proof: Cursor loaded Agentera's specific canonical skill instructions and bootstrap command.
26
+ - host: opencode
27
+ state: supported
28
+ proof: OpenCode's native CLI listed /home/jgabor/.agents/skills/agentera/SKILL.md.
29
+ - host: copilot
30
+ state: supported_disabled
31
+ proof: Copilot's native CLI listed the canonical personal-agents skill; its disabled state is intentional.
32
+ hosts:
33
+ - id: codex
34
+ display_name: Codex
35
+ support_status: supported
36
+ - id: cursor
37
+ display_name: Cursor
38
+ support_status: supported
39
+ - id: opencode
40
+ display_name: OpenCode
41
+ support_status: supported
42
+ - id: copilot
43
+ display_name: Copilot
44
+ support_status: supported_disabled
13
45
  - id: claude
14
46
  display_name: Claude Code historical migration
15
- active_runtime: false
16
- source_product: claude-code
17
- resources:
18
- - id: claude.agentera-skill-link
19
- kind: symlink
20
- intent: remove
21
- destination: "{home}/.claude/skills/agentera"
22
- ledger_status: legacy
47
+ support_status: retired_historical
48
+ resources:
49
+ - id: claude.agentera-skill-link
50
+ host: claude
51
+ kind: symlink
52
+ intent: remove
53
+ destination: "{home}/.claude/skills/agentera"
54
+ ledger_status: legacy
55
+ durable_proof: matching whole-resource legacy ledger identity and fingerprint
23
56
  never_touch:
24
57
  - "{home}/.claude/projects"
25
58
  - "{home}/.claude/statsig"
@@ -31,3 +64,34 @@ retired_runtimes:
31
64
  - "{home}/.claude/conversations"
32
65
  - "{home}/.claude/credentials"
33
66
  safety_note: Only the declared Agentera skill symlink may be removed, and only when a matching legacy ownership ledger still binds its identity and target fingerprint. Transcript, settings, credential, conversation, stats, cache, and ambiguous paths are never cleanup targets.
67
+ - id: codex.agent-descriptor
68
+ host: codex
69
+ kind: file
70
+ intent: remove
71
+ destination: "{home}/.codex/agents/{descriptor}.toml"
72
+ descriptors: [status, vision, discuss, research, plan, build, optimize, audit, document, profile, design, orchestrate]
73
+ ledger_status: managed
74
+ durable_proof: matching whole-resource ledger identity and fingerprint for each declared descriptor file
75
+ safety_note: Each descriptor is an independently owned file. A managed marker, descriptor name, or matching content never establishes ownership.
76
+ configuration_inventory:
77
+ - id: codex.config.shell_environment_policy.set.AGENTERA_HOME
78
+ host: codex
79
+ destination: "{home}/.codex/config.toml"
80
+ key: shell_environment_policy.set.AGENTERA_HOME
81
+ durable_proof: key-level ownership ledger identity and fingerprint
82
+ ownership_available: false
83
+ result_without_proof: action_required
84
+ - id: codex.config.agents.max_depth
85
+ host: codex
86
+ destination: "{home}/.codex/config.toml"
87
+ key: agents.max_depth
88
+ durable_proof: key-level ownership ledger identity and fingerprint
89
+ ownership_available: false
90
+ result_without_proof: action_required
91
+ - id: codex.config.features.multi_agent_v2
92
+ host: codex
93
+ destination: "{home}/.codex/config.toml"
94
+ key: features.multi_agent_v2
95
+ durable_proof: key-level ownership ledger identity and fingerprint
96
+ ownership_available: false
97
+ result_without_proof: action_required
@@ -298,10 +298,19 @@ entity_target:
298
298
  required_fields: [date, dimensions, findings_summary, trajectory, grades]
299
299
  required_paths: []
300
300
  forbidden_fields: [id, artifact, number, stable_id, artifact_id, entry_number]
301
+ cli_owned_append_fields: [appended_at]
302
+ legacy_optional_fields: [appended_at]
303
+ field_contract:
304
+ appended_at:
305
+ format: canonical_utc_iso8601
306
+ assignment: cli_writer_at_append
307
+ compatibility: >-
308
+ Legacy canonical health audits omit appended_at and remain valid without
309
+ reconstructed chronology.
301
310
  retrieval:
302
311
  exact: agentera state health get --id ID --format json
303
312
  list: agentera state health list [--limit N] [--cursor TOKEN] --format json
304
- ordering: date_desc_then_id_asc
313
+ ordering: appended_at_desc_then_id_asc_then_legacy_date_desc_then_id_asc
305
314
  default_limit: 20
306
315
  maximum_limit: 100
307
316
  max_utf8_bytes: 32768
@@ -174,7 +174,7 @@ audience_namespaces:
174
174
  validate:
175
175
  canonical_shape: agentera check validate <family> [target options]
176
176
  delegates_from: validate
177
- notes: Preserves existing validate families (capability, artifact, descriptors, etc.).
177
+ notes: Preserves current validate families including capability and artifact validation.
178
178
  verify:
179
179
  canonical_shape: agentera check verify <family> <target> [options]
180
180
  delegates_from: verify
@@ -2,7 +2,7 @@ schema_version: agentera.bundle_skill_vocabulary.v1
2
2
  status: active_authority
3
3
  purpose: >-
4
4
  Classify surviving `bundle` and `SKILL.md` terminology so docs, package
5
- metadata, runtime descriptors, tests, historical records, and compatibility
5
+ metadata, tests, historical records, and compatibility
6
6
  identifiers share one bounded vocabulary source without forcing mechanical
7
7
  renames of shipped surfaces.
8
8
  sources:
@@ -87,8 +87,6 @@ implementation_state:
87
87
  first_invocation_read_cli_metadata: true
88
88
  first_invocation_read_schema_metadata: true
89
89
  runtime_first_invocation_behavior: true
90
- descriptors_rewritten_to_prime_command: true
91
- package_metadata_rewritten_to_prime_command: true
92
90
  compatibility_preservation:
93
91
  preserve_legacy_references_only_when_classified:
94
92
  - skills/agentera/capabilities/*/instructions.md paths (historical)
@@ -111,7 +109,6 @@ surface_inventory:
111
109
  docs_vocabulary: delegates_to_this_authority
112
110
  readme: concise_user_facing_current_and_future_authoring_seam
113
111
  capability_schema_contract: current_canonical_validator_reference
114
- runtime_descriptors: current_canonical_instructions_md_pointers
115
112
  capability_instruction_files: current_canonical_instruction_files
116
113
  evaluator_handoff:
117
114
  status: implemented
@@ -237,10 +237,6 @@ compatibility_identifiers:
237
237
  route_aliases:
238
238
  - ROUTE_ALIASES
239
239
  - primary_aliases
240
- command_and_schema_surfaces:
241
- - agentera validate descriptors
242
- - descriptor_sources
243
- - invocation_pattern
244
240
  code_identifiers:
245
241
  - subagent_dispatch
246
242
  - test_runtime_adapter_subagent_dispatch_metadata_is_complete
@@ -100,8 +100,7 @@ Use this prose as guidance only: the default is that the first capability
100
100
  invocation shells out to `agentera prime --context <name> --format json` and
101
101
  reads the returned `instructions` field. Today, capability directories carry
102
102
  the `schemas/` files only, the instructions module lives at
103
- `packages/cli/src/capabilities/<name>/instructions.ts`, runtime descriptors
104
- invoke the prime command, and the `agentera prime --context <name> --format
103
+ `packages/cli/src/capabilities/<name>/instructions.ts`, and the `agentera prime --context <name> --format
105
104
  json` response emits `capability_context.instructions` plus
106
105
  `first_invocation_read` metadata.
107
106
 
@@ -23,13 +23,17 @@ ARTIFACTS:
23
23
  3:
24
24
  id: A3
25
25
  artifact: health
26
- local_role: consumes
26
+ local_role: produces_and_consumes
27
27
  description: >-
28
- Orchestrate consumes returned health state first after plan completion to
29
- decide whether to start a new plan cycle; bounded `agentera state health
30
- list --limit 20 --format json` and exact `state health get --id ID`
31
- are the fallback contracts. Raw reads are diagnostic-only for corruption
32
- or CLI-defect investigation.
28
+ For an active plan whose tasks are all terminal, Orchestrate consumes
29
+ returned health state and delegates a limited staleness closure check.
30
+ On PASS it publishes one typed `artifact_freshness` health record through
31
+ `agentera state health append --input PATH --format json` before setting
32
+ the still-open plan complete. WARN or FAIL leaves the plan open and
33
+ surfaces the finding. Bounded `agentera state health list --limit 20
34
+ --format json` and exact `state health get --id ID` are fallback
35
+ contracts. Raw reads are diagnostic-only for corruption or CLI-defect
36
+ investigation.
33
37
  4:
34
38
  id: A4
35
39
  artifact: todo
@@ -3,8 +3,9 @@ EXIT_CONDITIONS:
3
3
  id: E1
4
4
  condition: complete
5
5
  description: >-
6
- All plan tasks are complete or validly superseded, the health check passed, and the
7
- orchestration session concluded with all planned work finished.
6
+ All plan tasks are complete or validly superseded, the limited post-plan
7
+ health check passed, its typed health record was published, and the
8
+ still-open plan was then set complete without invoking archive.
8
9
  exit_signal: complete
9
10
  2:
10
11
  id: E2
@@ -46,14 +46,15 @@ VALIDATION:
46
46
  id: V5
47
47
  rule: orchestrator_read_only_artifacts
48
48
  description: >-
49
- The orchestrator reads artifacts and updates plan task statuses and
50
- TODO.md blocked entries. It does NOT write to progress, changelog,
51
- or any other capability-owned artifact. This rule verifies the
52
- artifacts schema reflects this constraint.
49
+ The orchestrator updates plan task statuses and TODO.md blocked entries.
50
+ During terminal-open closure only, it writes the typed limited-scope
51
+ health record before plan completion. It does NOT write progress or
52
+ changelog. This rule verifies the artifacts schema reflects this
53
+ constraint.
53
54
  severity: warning
54
55
  checks:
55
56
  - "progress is consumes only (not produces)"
56
- - "health is consumes only (not produces)"
57
+ - "health is produces_and_consumes for terminal-open closure only"
57
58
  - "decisions is consumes only (not produces)"
58
59
  - "vision is consumes only (not produces)"
59
60
  6:
@@ -1,9 +1,10 @@
1
1
  # Health Artifact Schema
2
2
  #
3
- # Audit log maintained by audit. Each audit entry records assessed
4
- # dimensions, findings (critical/warning/info counts), overall trajectory,
5
- # per-dimension grades (A-F), per-dimension findings with confidence, and
6
- # trend analysis against the prior audit.
3
+ # Audit normally owns health records. Orchestrate may append only the limited
4
+ # artifact_freshness record for terminal-plan closure after Audit passes. Each
5
+ # audit entry records assessed dimensions, findings (critical/warning/info
6
+ # counts), overall trajectory, per-dimension grades (A-F), per-dimension
7
+ # findings with confidence, and trend analysis against the prior audit.
7
8
  #
8
9
  # The active authority is one health_audit entity per writer-owned file. The
9
10
  # numbered projection model below is retained only as an exact legacy migration
@@ -15,6 +16,7 @@
15
16
  # ─────────────────────────────────────────────────────────────────────
16
17
  # ## Audit N · date AUDIT.number HA1
17
18
  # (date from heading) AUDIT.date HA2
19
+ # (CLI append time) AUDIT.appended_at HA7
18
20
  # **Dimensions assessed**: <list> AUDIT.dimensions HA3
19
21
  # **Findings**: N crit, N warn, N info AUDIT.findings_summary HA4
20
22
  # **Overall trajectory**: <text> AUDIT.trajectory HA5
@@ -50,12 +52,13 @@ meta:
50
52
  name: health
51
53
  version: "1.0.0"
52
54
  description: >-
53
- Audit log maintained by audit. Consumed by capabilities that need
54
- codebase health context.
55
+ Audit normally owns health records. Orchestrate may append only the
56
+ limited artifact_freshness record for terminal-plan closure after Audit
57
+ passes. Consumed by capabilities that need codebase health context.
55
58
  artifact_type: agent_facing
56
59
  path: ".agentera/health.yaml"
57
60
  authority: legacy_migration_input_only
58
- producer: audit
61
+ producer: [audit, orchestrate]
59
62
  consumers: [document, status, audit, orchestrate, plan, build, vision]
60
63
  format: yaml
61
64
 
@@ -238,6 +241,21 @@ AUDIT:
238
241
  validation:
239
242
  - "Every assessed dimension has a grade"
240
243
  - "Grades are single characters A through F"
244
+ 7:
245
+ id: HA7
246
+ field: appended_at
247
+ type: string
248
+ format: "YYYY-MM-DDTHH:mm:ss.sssZ"
249
+ required: false
250
+ cli_owned: true
251
+ description: >-
252
+ Canonical UTC timestamp assigned by the health append writer. Full records
253
+ with this field sort newest-first by append time, then stable ID. Legacy
254
+ records without it retain date-then-ID ordering; migration never fabricates
255
+ append chronology.
256
+ validation:
257
+ - "When present, must be canonical UTC ISO-8601 with millisecond precision"
258
+ - "Must be omitted from caller input and assigned by the CLI writer"
241
259
 
242
260
  DIMENSION:
243
261
  1:
@@ -645,7 +645,6 @@ LIFECYCLE_CONTRACT:
645
645
  - packages/cli/src/capabilities/*/instructions.ts
646
646
  - packages/cli/README.md
647
647
  - skills/agentera/SKILL.md
648
- - skills/agentera/agents/*
649
648
  - skills/agentera/references/*
650
649
  - references/**/*.md
651
650
  - docs/**