agentera 3.0.0-dev.3 → 3.0.0-dev.5

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 (131) hide show
  1. package/README.md +39 -6
  2. package/bundle/.agentera-npx-bundle.json +1 -1
  3. package/bundle/references/cli/agent-ready-state-contract.yaml +20 -17
  4. package/bundle/references/cli/bundle-skill-vocabulary.yaml +1 -1
  5. package/bundle/references/cli/capability-instruction-contract.yaml +98 -57
  6. package/bundle/references/cli/routing-execution-vocabulary.yaml +6 -6
  7. package/bundle/references/cli/update-channels.yaml +27 -7
  8. package/bundle/references/cli/vocabulary-index.yaml +3 -3
  9. package/bundle/references/cli/vocabulary.md +28 -19
  10. package/bundle/registry.json +1 -1
  11. package/bundle/skills/agentera/SKILL.md +38 -21
  12. package/bundle/skills/agentera/agents/dokumentera.toml +1 -1
  13. package/bundle/skills/agentera/agents/hej.toml +1 -1
  14. package/bundle/skills/agentera/agents/inspektera.toml +1 -1
  15. package/bundle/skills/agentera/agents/inspirera.toml +1 -1
  16. package/bundle/skills/agentera/agents/optimera.toml +1 -1
  17. package/bundle/skills/agentera/agents/orkestrera.toml +1 -1
  18. package/bundle/skills/agentera/agents/planera.toml +1 -1
  19. package/bundle/skills/agentera/agents/profilera.toml +1 -1
  20. package/bundle/skills/agentera/agents/realisera.toml +1 -1
  21. package/bundle/skills/agentera/agents/resonera.toml +1 -1
  22. package/bundle/skills/agentera/agents/visionera.toml +1 -1
  23. package/bundle/skills/agentera/agents/visualisera.toml +1 -1
  24. package/bundle/skills/agentera/capabilities/orkestrera/schemas/validation.yaml +26 -13
  25. package/bundle/skills/agentera/capability_schema_contract.yaml +33 -14
  26. package/bundle/skills/agentera/references/contract.md +2 -2
  27. package/bundle/skills/agentera/schemas/artifacts/decisions.yaml +1 -1
  28. package/bundle/skills/agentera/schemas/artifacts/progress.yaml +15 -36
  29. package/bundle/skills/agentera/schemas/artifacts/todo.yaml +14 -0
  30. package/bundle/skills/hej/SKILL.md +1 -1
  31. package/dist/analytics/usageStats.js +23 -1
  32. package/dist/analytics/usageStats.js.map +1 -1
  33. package/dist/capabilities/dokumentera/instructions.js +6 -0
  34. package/dist/capabilities/dokumentera/instructions.js.map +1 -0
  35. package/dist/capabilities/hej/instructions.js +6 -0
  36. package/dist/capabilities/hej/instructions.js.map +1 -0
  37. package/dist/capabilities/index.js +38 -0
  38. package/dist/capabilities/index.js.map +1 -0
  39. package/dist/capabilities/inspektera/instructions.js +6 -0
  40. package/dist/capabilities/inspektera/instructions.js.map +1 -0
  41. package/dist/capabilities/inspirera/instructions.js +6 -0
  42. package/dist/capabilities/inspirera/instructions.js.map +1 -0
  43. package/dist/capabilities/optimera/instructions.js +6 -0
  44. package/dist/capabilities/optimera/instructions.js.map +1 -0
  45. package/dist/capabilities/orkestrera/instructions.js +6 -0
  46. package/dist/capabilities/orkestrera/instructions.js.map +1 -0
  47. package/dist/capabilities/planera/instructions.js +6 -0
  48. package/dist/capabilities/planera/instructions.js.map +1 -0
  49. package/dist/capabilities/profilera/instructions.js +6 -0
  50. package/dist/capabilities/profilera/instructions.js.map +1 -0
  51. package/dist/capabilities/realisera/instructions.js +6 -0
  52. package/dist/capabilities/realisera/instructions.js.map +1 -0
  53. package/dist/capabilities/resonera/instructions.js +6 -0
  54. package/dist/capabilities/resonera/instructions.js.map +1 -0
  55. package/dist/capabilities/visionera/instructions.js +6 -0
  56. package/dist/capabilities/visionera/instructions.js.map +1 -0
  57. package/dist/capabilities/visualisera/instructions.js +6 -0
  58. package/dist/capabilities/visualisera/instructions.js.map +1 -0
  59. package/dist/cli/capabilityContext.js +92 -26
  60. package/dist/cli/capabilityContext.js.map +1 -1
  61. package/dist/cli/commands/capability.js +1 -8
  62. package/dist/cli/commands/capability.js.map +1 -1
  63. package/dist/cli/commands/doctor.js +42 -3
  64. package/dist/cli/commands/doctor.js.map +1 -1
  65. package/dist/cli/commands/report.js +5 -1
  66. package/dist/cli/commands/report.js.map +1 -1
  67. package/dist/cli/commands/state.js +22 -11
  68. package/dist/cli/commands/state.js.map +1 -1
  69. package/dist/cli/commands/validate.js +12 -2
  70. package/dist/cli/commands/validate.js.map +1 -1
  71. package/dist/cli/commands/verify.js +6 -0
  72. package/dist/cli/commands/verify.js.map +1 -1
  73. package/dist/cli/dispatch.js +508 -172
  74. package/dist/cli/dispatch.js.map +1 -1
  75. package/dist/cli/errors.js +53 -0
  76. package/dist/cli/errors.js.map +1 -0
  77. package/dist/cli/help.js +201 -0
  78. package/dist/cli/help.js.map +1 -0
  79. package/dist/cli/orientation.js +9 -6
  80. package/dist/cli/orientation.js.map +1 -1
  81. package/dist/cli/stateQuery.js +7 -0
  82. package/dist/cli/stateQuery.js.map +1 -1
  83. package/dist/cli/todoMarkdown.js +33 -0
  84. package/dist/cli/todoMarkdown.js.map +1 -0
  85. package/dist/hooks/common.js +0 -2
  86. package/dist/hooks/common.js.map +1 -1
  87. package/dist/hooks/validateArtifact.js +10 -8
  88. package/dist/hooks/validateArtifact.js.map +1 -1
  89. package/dist/registries/capabilityContract.js +12 -11
  90. package/dist/registries/capabilityContract.js.map +1 -1
  91. package/dist/registries/evaluatorHandoffContract.js +171 -0
  92. package/dist/registries/evaluatorHandoffContract.js.map +1 -0
  93. package/dist/setup/codex.js +146 -5
  94. package/dist/setup/codex.js.map +1 -1
  95. package/dist/setup/doctor.js +22 -1
  96. package/dist/setup/doctor.js.map +1 -1
  97. package/dist/setup/smokeChecks.js +111 -0
  98. package/dist/setup/smokeChecks.js.map +1 -0
  99. package/dist/upgrade/channels.js +9 -3
  100. package/dist/upgrade/channels.js.map +1 -1
  101. package/dist/upgrade/migrateArtifactsV1ToV2.js +0 -1
  102. package/dist/upgrade/migrateArtifactsV1ToV2.js.map +1 -1
  103. package/dist/upgrade/nextMajorDoctor.js +121 -0
  104. package/dist/upgrade/nextMajorDoctor.js.map +1 -0
  105. package/dist/upgrade/runtimeMigration.js +19 -3
  106. package/dist/upgrade/runtimeMigration.js.map +1 -1
  107. package/dist/upgrade/versionResolution.js +4 -4
  108. package/dist/upgrade/versionResolution.js.map +1 -1
  109. package/dist/validate/appHomeContract.js +1 -1
  110. package/dist/validate/appHomeContract.js.map +1 -1
  111. package/dist/validate/capability.js +11 -3
  112. package/dist/validate/capability.js.map +1 -1
  113. package/package.json +3 -3
  114. package/bundle/skills/agentera/capabilities/dokumentera/instructions.md +0 -428
  115. package/bundle/skills/agentera/capabilities/hej/instructions.md +0 -331
  116. package/bundle/skills/agentera/capabilities/inspektera/instructions.md +0 -514
  117. package/bundle/skills/agentera/capabilities/inspirera/instructions.md +0 -280
  118. package/bundle/skills/agentera/capabilities/optimera/instructions.md +0 -437
  119. package/bundle/skills/agentera/capabilities/orkestrera/instructions.md +0 -433
  120. package/bundle/skills/agentera/capabilities/planera/instructions.md +0 -368
  121. package/bundle/skills/agentera/capabilities/profilera/instructions.md +0 -419
  122. package/bundle/skills/agentera/capabilities/realisera/instructions.md +0 -403
  123. package/bundle/skills/agentera/capabilities/resonera/instructions.md +0 -329
  124. package/bundle/skills/agentera/capabilities/visionera/instructions.md +0 -309
  125. package/bundle/skills/agentera/capabilities/visualisera/instructions.md +0 -400
  126. package/dist/cli/commands/backfill.js +0 -84
  127. package/dist/cli/commands/backfill.js.map +0 -1
  128. package/dist/core/git.js +0 -43
  129. package/dist/core/git.js.map +0 -1
  130. package/dist/state/progressCommit.js +0 -289
  131. package/dist/state/progressCommit.js.map +0 -1
package/README.md CHANGED
@@ -1,9 +1,42 @@
1
- # Agentera CLI (v3)
1
+ # Agentera CLI (npm)
2
2
 
3
- Placeholder for the planned TypeScript CLI rewrite.
3
+ Native TypeScript CLI for Agentera 3.x, published as [`agentera`](https://www.npmjs.com/package/agentera).
4
4
 
5
- The current Python CLI lives at `scripts/agentera` in the repository root.
6
- This package will eventually host the v3 TypeScript implementation.
5
+ | Dist tag | Channel | Use for |
6
+ | --- | --- | --- |
7
+ | `@latest` | stable (2.x) | Supported production line |
8
+ | `@next` | development (3.x pre-releases) | Early testing of the self-contained npm CLI |
7
9
 
8
- See the [Agentera repository](https://github.com/jgabor/agentera) for the
9
- current CLI documentation and usage.
10
+ ## Quick start
11
+
12
+ ```bash
13
+ npx -y agentera@next prime --format json
14
+ npx -y agentera@next upgrade --dry-run --channel development
15
+ ```
16
+
17
+ Run those from a project root. `prime` reports `project_integration.recommendation`
18
+ (`stay` or `upgrade`) and suggested commands for the current repo.
19
+
20
+ Full preview instructions, highlights, and migration paths:
21
+ [repository README — Agentera 3.0 preview](../../README.md#agentera-30-preview).
22
+
23
+ Upgrade channels and v2→v3 opt-in: [`UPGRADE.md`](../../UPGRADE.md).
24
+
25
+ ## Package layout
26
+
27
+ - `dist/` — compiled CLI (`agentera` bin)
28
+ - `bundle/` — shipped app data (`skills/`, `references/`, `registry.json`)
29
+
30
+ Requires Node.js 22+.
31
+
32
+ ## Contributors
33
+
34
+ Build and test from the monorepo:
35
+
36
+ ```bash
37
+ pnpm -C packages/cli build
38
+ pnpm -C packages/cli test
39
+ pnpm -C packages/cli run publish:dev # publishes with @next tag
40
+ ```
41
+
42
+ See [`AGENTS.md`](../../AGENTS.md) for capability validation and commit conventions.
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "kind": "agentera-npx-bundle",
3
- "suiteVersion": "2.7.6"
3
+ "suiteVersion": "3.0.0"
4
4
  }
@@ -282,10 +282,10 @@ structured_output:
282
282
  contract can summarize planning levels, step markers, CLI-first
283
283
  orientation, raw plan artifact boundaries, full-plan review/self-audit
284
284
  requirements, handoff expectations, and the Planera prose authority
285
- boundary without reading `planera/instructions.md` at runtime. It must
286
- not introduce `agentera planera`, new top-level commands, or hidden
287
- capability-name aliases; `agentera schema` owns runtime/schema
288
- introspection rather than a capability workflow payload.
285
+ boundary without reading `packages/cli/src/capabilities/planera/instructions.ts`
286
+ at runtime. It must not introduce `agentera planera`, new top-level
287
+ commands, or hidden capability-name aliases; `agentera schema` owns
288
+ runtime/schema introspection rather than a capability workflow payload.
289
289
  orchestration_context_semantics: >-
290
290
  `agentera prime --context orkestrera --format json` may include
291
291
  orchestration_context with dependency-ready tasks, blocked task reasons,
@@ -465,7 +465,7 @@ evidence_context_target_contract:
465
465
  verified_field: header.status=complete
466
466
  - reason: Inspektera prose and schemas are validated directly; complete evidence_context covers normal evaluation startup without raw plan/progress/docs/health/TODO/decisions reads.
467
467
  paths:
468
- - skills/agentera/capabilities/inspektera/instructions.md
468
+ - packages/cli/src/capabilities/inspektera/instructions.ts
469
469
  - skills/agentera/capabilities/inspektera/schemas/artifacts.yaml
470
470
  - skills/agentera/capabilities/inspektera/schemas/validation.yaml
471
471
  raw_artifact_reads_required_for_startup: false
@@ -755,11 +755,13 @@ verify_namespace:
755
755
  rejected_umbrella_command: smoke
756
756
  purpose: >-
757
757
  Define the supported `agentera verify` namespace so agents can run or inspect
758
- smoke and eval gates through one discoverable verification surface without
759
- guessing direct script names or unsupported capability-name CLI commands.
758
+ eval gates through one discoverable verification surface without guessing direct
759
+ script names or unsupported capability-name CLI commands.
760
760
  namespace_rationale: >-
761
761
  `agentera verify` is the public command for the evaluation gates (skills and
762
- semantic). The smoke-check family was retired in the self-contained package.
762
+ semantic) on the npm self-contained CLI. The smoke-check family is retired on
763
+ @next; run smoke maintainer harnesses on the stable Python line with
764
+ `uvx --from git+https://github.com/jgabor/agentera@main agentera check verify smoke installed-skills`.
763
765
  command_shape: agentera verify <family> <target> [--format text|json] [target options]
764
766
  supported_gate_families:
765
767
  eval:
@@ -810,9 +812,11 @@ verify_namespace:
810
812
  - skipped
811
813
  invalid_input_behavior:
812
814
  family_error: >-
813
- Unknown verify families must exit nonzero, list valid families `smoke` and
814
- `eval`, show `agentera verify <family> <target> [--format text|json]`, and
815
- include concrete examples for one smoke target and one eval target.
815
+ Unknown verify families must exit nonzero, list valid family `eval`, show
816
+ `agentera verify <family> <target> [--format text|json]`, and include a
817
+ concrete eval example. Requests for the retired `smoke` family must exit
818
+ nonzero with explicit npm-retired guidance pointing to eval verify or the
819
+ stable Python maintainer path.
816
820
  target_error: >-
817
821
  Unknown targets must exit nonzero, list valid targets for the selected family,
818
822
  show the correct family syntax, and include one concrete example for that family.
@@ -831,18 +835,17 @@ verify_namespace:
831
835
  - >-
832
836
  `agentera verify eval semantic` remains callable directly with fixture path arguments
833
837
  and existing offline semantic fixture behavior.
834
- offline default behavior plus the explicit `--real-npx` opt-in path.
835
- default behavior and explicit `--live`/`--yes` live-host opt-in behavior.
836
- observable smoke-check behavior, including current non-argparse `--help` behavior.
837
- observable local bootstrap diagnostics and failure behavior.
838
+ - >-
839
+ Retired `smoke` verify requests on the npm self-contained CLI must fail with
840
+ bounded guidance instead of invoking Python smoke harnesses.
838
841
  non_goals:
839
842
  - Do not add unsupported capability-name CLI commands such as `agentera realisera` or `agentera orkestrera`.
840
843
  - Do not reintroduce the retired smoke gate-family.
841
844
  - Do not implement D48 `validate`, `corpus`, or `usage` work.
842
845
  - Do not run live network, installed-app mutation, profile refresh, publication, push, tag, or package-update flows as part of this contract definition.
843
846
  evidence_sources:
844
- - agentera --help exposes the `verify` namespace and safe smoke/eval examples.
845
- - the verify vitest tests (packages/cli/test/cli/verify.test.ts) covers smoke success, eval success, text output, JSON output, invalid input feedback, safety boundaries, and preserved direct-script compatibility.
847
+ - agentera --help exposes the `verify` namespace and eval examples only on npm @next.
848
+ - the verify vitest tests (packages/cli/test/cli/verify.test.ts) cover eval success, smoke retirement, text output, JSON output, invalid input feedback, safety boundaries, and preserved direct-script compatibility.
846
849
  - agentera verify eval skills --help defines `--skill`, `--dry-run`, `--parallel`, `--timeout`, and `--runtime`.
847
850
  - agentera verify eval semantic --help defines fixture path inputs for offline semantic evaluation.
848
851
  usage_namespace:
@@ -194,7 +194,7 @@ focused_scan:
194
194
  - (retired maintainer measurement tool)
195
195
  - skills/agentera/SKILL.md
196
196
  - skills/agentera/capabilities/hej/schemas/triggers.yaml
197
- - skills/agentera/capabilities/resonera/instructions.md
197
+ - packages/cli/src/capabilities/resonera/instructions.ts
198
198
  - tests/test_cross_capability.py
199
199
  - tests/test_resonera_capability.py
200
200
  - tests/test_runtime_adapters.py
@@ -3,9 +3,10 @@ status: active_authority
3
3
  decision: 57
4
4
  purpose: >-
5
5
  Define the Decision 57 capability instruction-file contract: the canonical
6
- `instructions.md` file name, implemented CLI/schema first-invocation read
7
- discoverability, compact-startup exception boundaries, and runtime behavior
8
- that remains intentionally unsupported.
6
+ `instructions.ts` module path, implemented CLI/schema first-invocation read
7
+ discoverability, the `prime_context` runtime-enforcement boundary, and
8
+ retirement of the historical `full`/`compact_startup`/`skip` values
9
+ superseded by Decision 65.
9
10
  sources:
10
11
  decision: .agentera/decisions.yaml#decision-57
11
12
  prose:
@@ -13,91 +14,87 @@ sources:
13
14
  - README.md#development
14
15
  scope:
15
16
  includes:
16
- - Documentation authority for the implemented capability instruction-file name.
17
+ - Documentation authority for the implemented capability instruction module path.
17
18
  - CLI/schema discoverability for first capability invocation startup-read metadata.
18
- - Compact-startup exception semantics and boundaries.
19
- - Current canonical references to existing `instructions.md` files.
19
+ - The single `prime_context` first-invocation shape enforced by the runtime.
20
+ - Current canonical references to existing `instructions.ts` modules.
20
21
  - Explicit separation from runtime behavior work.
21
22
  excludes:
22
23
  - Implementing first-invocation read behavior.
23
24
  - Marking Decision 57 satisfied or editing protected vision/objective/profile/installed-app state.
24
25
  current_state:
25
26
  canonical_instruction_file:
26
- path: skills/agentera/capabilities/<name>/instructions.md
27
+ path: packages/cli/src/capabilities/<name>/instructions.ts
27
28
  status: current_canonical_implemented
28
29
  definition: >-
29
- The human-readable instruction file for each capability.
30
+ The TypeScript module that exports the capability's behavioral
31
+ instructions as a default-exported string constant. The runtime loads
32
+ the compiled .js path and serves the prose through the slim
33
+ `capability_context` capsule's `prose` field.
30
34
  legacy_instruction_file:
35
+ path: skills/agentera/capabilities/<name>/instructions.md
36
+ status: historical_or_compatibility_evidence_only
37
+ definition: >-
38
+ The pre-D65 Markdown instruction filename. It may survive only in
39
+ archived history, compatibility fixtures, benchmark evidence, or
40
+ explicit migration documentation; real capability directories do not
41
+ use it as canonical.
42
+ legacy_prose_file:
31
43
  path: skills/agentera/capabilities/<name>/prose.md
32
44
  status: historical_or_compatibility_evidence_only
33
45
  definition: >-
34
- The former capability instruction filename. It may survive only in archived
35
- history, compatibility fixtures, benchmark evidence, or explicit migration
36
- documentation; real capability directories do not use it as canonical.
46
+ The pre-D57 capability instruction filename. It may survive only in
47
+ archived history, compatibility fixtures, benchmark evidence, or
48
+ explicit migration documentation; real capability directories do not
49
+ use it as canonical.
37
50
  validator_requirement:
38
- current_required_path: instructions.md
39
- future_required_path: instructions.md
51
+ current_required_path: packages/cli/src/capabilities/<name>/instructions.ts
52
+ future_required_path: packages/cli/src/capabilities/<name>/instructions.ts
40
53
  status: current_requirement_enforced
41
54
  cli_metadata:
42
55
  field: first_invocation_read
43
56
  status: emitted_in_prime_capability_context
44
57
  current_behavior: >-
45
58
  `agentera prime --context <name> --format json` emits
46
- `capability_context` metadata including `first_invocation_read` for
47
- supported capabilities. Historical `hej --capability-context` is removed in 3.0.
59
+ `capability_context` metadata including `first_invocation_read`
60
+ (value: `prime_context`, runtime_enforcement: true) and the full prose
61
+ in the `prose` field for supported capabilities. Historical
62
+ `hej --capability-context` is removed in 3.0.
48
63
  first_invocation_read:
49
- field_status: cli_schema_discoverability_implemented
64
+ field_status: runtime_enforced
50
65
  definition: >-
51
- Capability metadata declaring what instruction content an agent must read on
52
- the first invocation of that capability in a session.
66
+ Capability metadata declaring what instruction content an agent must
67
+ read on the first invocation of that capability in a session. Decision
68
+ 65 collapses the legacy `full`/`compact_startup` distinction into a
69
+ single `prime_context` value because the CLI now owns the prose and
70
+ the runtime can mechanically shell out to the prime command.
53
71
  allowed_values:
54
- full:
55
- meaning: >-
56
- The first capability invocation must read `instructions.md` in full before
57
- executing capability-specific work.
58
- obligation: full_instruction_file_read_required
59
- compact_startup:
60
- meaning: >-
61
- A declared compact startup contract may satisfy initial orientation without
62
- reading the full instruction file first.
63
- obligation: compact_contract_must_name_covered_guidance_and_escalation_rules
64
- skip:
72
+ prime_context:
65
73
  meaning: >-
66
- No first-invocation instruction read is required for the declared scope.
67
- obligation: requires_explicit_contract_justification
68
- caution: >-
69
- Reserved for narrow future surfaces; not a default and not implemented by
70
- this authority.
71
- default_rule: full
74
+ The first capability invocation must shell out to
75
+ `agentera prime --context <name> --format json` and read the
76
+ returned `prose` field (the full Markdown body) before executing
77
+ capability-specific work.
78
+ obligation: shell out to agentera prime --context <name> --format json
79
+ default_rule: prime_context
72
80
  full_read_obligation: >-
73
- On initial capability invocation, read `instructions.md` in full unless that
74
- capability declares a compact-startup exception with explicit coverage and
75
- escalation boundaries.
76
- compact_startup_exception:
77
- status: implemented_for_planera_compact_startup_discoverability
78
- allowed_when:
79
- - A machine-readable startup contract is available through supported state access.
80
- - The compact contract states which instruction topics it covers.
81
- - The compact contract states when the agent must escalate to a full instruction-file read.
82
- - The compact contract preserves unsupported-command and raw-artifact-read boundaries.
83
- not_allowed_when:
84
- - The agent is editing the capability's own instructions or schemas.
85
- - The compact contract is missing, incomplete, stale, or contradictory.
86
- - The requested work touches behavior not covered by the compact contract.
87
- - Safety rails, validation, exit semantics, or cross-capability boundaries are ambiguous.
81
+ On initial capability invocation, shell out to
82
+ `agentera prime --context <name> --format json` and read the
83
+ `capability_context.prose` field in full.
88
84
  implementation_state:
89
- instructions_md_files: renamed
90
- validators_require_instructions_md: true
85
+ instructions_ts_modules: implemented
86
+ validators_require_instructions_ts: true
91
87
  first_invocation_read_cli_metadata: true
92
88
  first_invocation_read_schema_metadata: true
93
- runtime_first_invocation_behavior: false
94
- descriptors_rewritten_to_instructions_md: true
95
- package_metadata_rewritten_to_instructions_md: true
89
+ runtime_first_invocation_behavior: true
90
+ descriptors_rewritten_to_prime_command: true
91
+ package_metadata_rewritten_to_prime_command: true
96
92
  compatibility_preservation:
97
93
  preserve_legacy_references_only_when_classified:
98
- - skills/agentera/capabilities/*/instructions.md paths
94
+ - skills/agentera/capabilities/*/instructions.md paths (historical)
95
+ - packages/cli/src/capabilities/*/instructions.ts paths (current canonical)
99
96
  - skills/agentera/capability_schema_contract.yaml directory requirements
100
- - runtime descriptors and generated agent guidance that point to `instructions.md`
97
+ - runtime descriptors and generated agent guidance that point to `instructions.md` (retired)
101
98
  - archived v1/v2 migration records and progress evidence
102
99
  - compatibility fixtures and tests that intentionally preserve old behavior evidence
103
100
  - README, AGENTS, and vocabulary references that explicitly describe the current canonical state
@@ -116,6 +113,50 @@ surface_inventory:
116
113
  capability_schema_contract: current_canonical_validator_reference
117
114
  runtime_descriptors: current_canonical_instructions_md_pointers
118
115
  capability_instruction_files: current_canonical_instruction_files
116
+ evaluator_handoff:
117
+ status: implemented
118
+ purpose: >-
119
+ Define the inspektera evaluation report schema and citation requirements
120
+ for orkestrera Step 3 Surface 2 delegations and post-plan health checks.
121
+ report_schema_version: agentera.inspekteraEvaluationReport.v1
122
+ row_schema:
123
+ required_fields:
124
+ - criterion
125
+ - status
126
+ - evidence
127
+ status_values:
128
+ - PASS
129
+ - WARN
130
+ - FAIL
131
+ citation_required_for:
132
+ - WARN
133
+ - FAIL
134
+ citation_formats:
135
+ file_line:
136
+ pattern: "^[^:\\s]+:\\d+$"
137
+ description: Relative repo path with 1-based line number, e.g. TODO.md:15
138
+ not_applicable:
139
+ prefix: "not-applicable:"
140
+ min_reason_length: 8
141
+ description: >-
142
+ Use when no file anchor exists; prefix with not-applicable: and give a
143
+ concrete reason (at least 8 characters after the prefix).
144
+ warn_verify_command:
145
+ required_when: file_line_citation
146
+ allowed_prefixes:
147
+ - grep
148
+ - git show
149
+ description: >-
150
+ WARN rows with a file:line citation MUST include verify_command with the
151
+ exact grep or git show invocation that reproduces the evidence at the
152
+ cited line.
153
+ orchestration_context_fields:
154
+ output_requirements:
155
+ citation_required_for:
156
+ - WARN
157
+ - FAIL
158
+ warn_verify_command_required: true
159
+ schema_authority: references/cli/capability-instruction-contract.yaml#evaluator_handoff
119
160
  docs_delegation:
120
161
  document: references/cli/vocabulary.md
121
162
  required_anchor: Capability instruction contract
@@ -171,9 +171,9 @@ focused_scan:
171
171
  - (retired maintainer measurement tool)
172
172
  - skills/agentera/SKILL.md
173
173
  - skills/agentera/references/contract.md
174
- - skills/agentera/capabilities/realisera/instructions.md
175
- - skills/agentera/capabilities/optimera/instructions.md
176
- - skills/agentera/capabilities/orkestrera/instructions.md
174
+ - packages/cli/src/capabilities/realisera/instructions.ts
175
+ - packages/cli/src/capabilities/optimera/instructions.ts
176
+ - packages/cli/src/capabilities/orkestrera/instructions.ts
177
177
  - tests/test_skill_dispatch_contract.py
178
178
  - tests/test_runtime_adapters.py
179
179
  - tests/test_runtime_adapter_registry.py
@@ -222,15 +222,15 @@ focused_scan:
222
222
  text: checkpoint before worktree dispatch
223
223
  classification: compatibility-preserved
224
224
  reason: The contract preserves the parseable historical checkpoint commit message string.
225
- - path: ^skills/agentera/capabilities/realisera/instructions\.md$
225
+ - path: ^packages/cli/src/capabilities/realisera/instructions\.ts$
226
226
  text: 'Step 5: Dispatch|checkpoint before worktree dispatch'
227
227
  classification: compatibility-preserved
228
228
  reason: Realisera preserves the current step heading and checkpoint commit message compatibility string.
229
- - path: ^skills/agentera/capabilities/optimera/instructions\.md$
229
+ - path: ^packages/cli/src/capabilities/optimera/instructions\.ts$
230
230
  text: checkpoint before worktree dispatch
231
231
  classification: compatibility-preserved
232
232
  reason: Optimera preserves the current checkpoint commit message compatibility string.
233
- - path: ^skills/agentera/capabilities/orkestrera/instructions\.md$
233
+ - path: ^packages/cli/src/capabilities/orkestrera/instructions\.ts$
234
234
  text: review pressure in dispatch|dispatch/evaluation context|`dispatch` and `chain` are autonomous orchestration verbs
235
235
  classification: canonical
236
236
  reason: Orkestrera capability prose uses dispatch for its explicitly owned orchestration loop.
@@ -10,12 +10,13 @@ sources:
10
10
  scope:
11
11
  includes:
12
12
  - Channel names, default selection, and resolution precedence.
13
- - npm dist-tag and git ref resolution per channel.
13
+ - npm dist-tag resolution per channel and git ref resolution for the stable line only.
14
14
  - Environment, config, and CLI override keys.
15
15
  excludes:
16
16
  - App lifecycle canonical statuses and operation verb definitions.
17
17
  - Migration orchestration phases, apply semantics, and compatibility detection.
18
18
  - Package publication, dist-tag retirement, and release approval decisions.
19
+ - uv/git install paths for the development (3.x) channel; feat/v3 is TS-only on npm.
19
20
  compatibility_boundary: >-
20
21
  Stable channel must continue resolving to 2.x until an explicit release decision
21
22
  retires it. Cross-major v2→v3 migration is never implied by default channel
@@ -32,6 +33,21 @@ channels:
32
33
  Tracks the supported 2.x release line for users who must not cross the v2→v3
33
34
  major boundary without explicit opt-in.
34
35
  distribution_major: 2
36
+ next_major:
37
+ concept: forward_successor_line
38
+ channel: development
39
+ version: "3.0.0"
40
+ npm:
41
+ dist_tag: next
42
+ npm_only_advisory: >-
43
+ The successor line is npm-only; stable git/uvx installs remain on the
44
+ supported 2.x line until you explicitly opt in through npm.
45
+ guide_url: >-
46
+ https://github.com/jgabor/agentera/blob/main/UPGRADE.md#upgrading-v2-to-v3-development-channel-irreversible
47
+ preview_command: npx -y agentera@next upgrade --dry-run --channel development
48
+ irreversible_advisory: >-
49
+ Forward migration to the successor line is one-way; return to the prior
50
+ Python support line is permanently unsupported.
35
51
  resolution:
36
52
  npm:
37
53
  dist_tag: latest
@@ -43,16 +59,20 @@ channels:
43
59
  concept: v3_pre_release_line
44
60
  definition: >-
45
61
  Tracks 3.x alphas, betas, and release candidates for early adopters and
46
- maintainers testing the npm self-contained distribution.
62
+ maintainers testing the npm self-contained TypeScript distribution. The
63
+ feat/v3 branch and v3 CLI are npm-only; v2→v3 is a one-way upgrade through
64
+ npx @next, not through uvx or git checkout installs.
47
65
  distribution_major: 3
48
66
  resolution:
49
67
  npm:
50
68
  dist_tag: next
51
69
  update_command: npx -y agentera@next
52
70
  git:
53
- ref: feat/v3
54
- update_command: >-
55
- uvx --from git+https://github.com/jgabor/agentera@feat/v3 agentera
71
+ supported: false
72
+ reason: >-
73
+ feat/v3 has no Python packaging; development-channel CLI delivery is
74
+ npm-only. Stable-channel git/uvx remains the Python 2.x maintainer path
75
+ on @main.
56
76
  override_precedence:
57
77
  - cli_flag
58
78
  - env_var
@@ -122,8 +142,8 @@ version_resolution:
122
142
  latest_on_channel:
123
143
  resolver: npm_dist_tag_with_offline_defaults
124
144
  offline_defaults:
125
- stable: "2.7.6"
126
- development: "3.0.0-dev.3"
145
+ stable: "2.7.7"
146
+ development: "3.0.0"
127
147
  irreversibility:
128
148
  downgrade_to_v2: permanently_blocked
129
149
  supported_downgrade_lines: []
@@ -18,7 +18,7 @@ authority_order:
18
18
  - references/cli/capability-instruction-contract.yaml
19
19
  - references/cli/routing-execution-vocabulary.yaml
20
20
  - skills/agentera/SKILL.md
21
- - skills/agentera/capabilities/*/instructions.md
21
+ - packages/cli/src/capabilities/*/instructions.ts
22
22
  - the agentera CLI
23
23
  - packages/cli/src/upgrade (doctor/upgrade)
24
24
  - README.md
@@ -62,8 +62,8 @@ normalization_rules:
62
62
  - rule: Worker safety commits are Git-only.
63
63
  use: pre-spawn Git commit
64
64
  avoid: Non-Git checkpoint or pre-dispatch commit gate in new docs.
65
- - rule: Capability instruction files have current metadata and a runtime boundary.
66
- use: instructions.md plus emitted first_invocation_read; runtime enforcement remains false
65
+ - rule: Capability instruction modules have current metadata and a runtime boundary.
66
+ use: instructions.ts plus emitted prime_context first_invocation_read; runtime enforcement is true via the CLI prime command
67
67
  avoid: Claiming agents are policed for actual reads, or adding unsupported agentera planera commands.
68
68
  plain_language:
69
69
  lead_with_plain_phrase:
@@ -20,10 +20,10 @@ included when they shape cross-suite usage.
20
20
  | `references/cli/app-lifecycle-vocabulary.yaml` | App lifecycle canonical statuses, deprecated aliases, operation verbs, status concepts, and consumer ownership boundaries. |
21
21
  | `references/cli/update-channels.yaml` | Stable and development update channels, dist-tag/git resolution, default channel, and override keys. |
22
22
  | `references/cli/bundle-skill-vocabulary.yaml` | Canonical concepts, compatibility boundaries, and classification rules for `bundle` and `SKILL.md` usage. |
23
- | `references/cli/capability-instruction-contract.yaml` | Decision 57 capability instruction-file contract, current `instructions.md` authority, and implemented `first_invocation_read` CLI/schema discoverability. |
23
+ | `references/cli/capability-instruction-contract.yaml` | Decision 57 capability instruction-file contract, current `packages/cli/src/capabilities/<name>/instructions.ts` authority, and implemented `first_invocation_read` CLI/schema discoverability (D65 collapsed the legacy `full`/`compact_startup` distinction into a single `prime_context` value with runtime enforcement). |
24
24
  | `references/cli/routing-execution-vocabulary.yaml` | Canonical concepts, compatibility boundaries, and classification rules for routing, suggestions, delegation, worker spawning, runtime subagent mechanisms, and pre-spawn Git commits. |
25
25
  | `skills/agentera/SKILL.md` | Agentera routing entry point, routing model, CLI-first state access, installed-app status checks, and safety rails. |
26
- | `skills/agentera/capabilities/*/instructions.md` | Capability behavior, workflow grammar, step markers, and cross-capability boundaries. |
26
+ | `packages/cli/src/capabilities/*/instructions.ts` | Capability behavior, workflow grammar, step markers, and cross-capability boundaries. Loaded as a default-exported string constant and served via `agentera prime --context <name> --format json`. |
27
27
  | `the agentera CLI` and `packages/cli/src/upgrade (doctor/upgrade)` | CLI-visible command labels, upgrade output, and doctor diagnostics. |
28
28
  | `README.md`, `UPGRADE.md`, `DESIGN.md`, `.agentera/*.yaml` | User-facing phrasing, design vocabulary, and current project-state examples. |
29
29
 
@@ -54,7 +54,7 @@ examples. Diagnostics should state object, state, cause, and fix.
54
54
  | Agentera | The open protocol for turning AI agents into engineering teams through shared project state, roles, decisions, and verification. | `README.md`, `.agentera/vision.yaml`, `skills/agentera/SKILL.md` |
55
55
  | Agentera v2 | The current architecture: one Agentera skill, one `/agentera` entry point, twelve capabilities, YAML project state, and CLI-first access. | `README.md`, `UPGRADE.md`, `.agentera/decisions.yaml` |
56
56
  | Agentera skill | The runtime-loaded Agentera skill at `skills/agentera/`. It contains the routing entry and twelve capabilities. | `skills/agentera/SKILL.md` |
57
- | Capability | A routed behavioral unit inside the Agentera skill, with `instructions.md` plus `triggers.yaml`, `artifacts.yaml`, `validation.yaml`, and `exit.yaml`. | `AGENTS.md`, `skills/agentera/capabilities/*` |
57
+ | Capability | A routed behavioral unit inside the Agentera skill, with the prose module `packages/cli/src/capabilities/<name>/instructions.ts` plus `triggers.yaml`, `artifacts.yaml`, `validation.yaml`, and `exit.yaml`. | `AGENTS.md`, `skills/agentera/capabilities/*`, `packages/cli/src/capabilities/*` |
58
58
  | Shared protocol | The primitive vocabulary in `protocol.yaml`: confidence, severity, decision labels, exits, visual tokens, glyphs, and phases. | `skills/agentera/protocol.yaml` |
59
59
  | Capability schema contract | The executable contract for capability schema groups, stable IDs, priorities, deprecations, and primitive references. | `skills/agentera/capability_schema_contract.yaml` |
60
60
  | Project state | Structured files that preserve intent, decisions, plans, progress, health, docs, design, and session continuity. | `README.md`, `.agentera/docs.yaml` |
@@ -87,21 +87,26 @@ Capability names use Swedish-style `-era` verb forms. The name is the action:
87
87
 
88
88
  The machine-readable authority is
89
89
  `references/cli/capability-instruction-contract.yaml`; it owns Decision 57's
90
- instruction-file boundary, including the canonical `instructions.md` file,
91
- legacy `prose.md` compatibility boundaries, implemented `first_invocation_read` values,
92
- full-read obligations, compact-startup exceptions, and unsupported runtime
93
- enforcement states.
94
-
95
- Use this prose as guidance only: the default is that initial capability invocation
96
- reads `instructions.md` in full unless an explicit compact-startup exception is
97
- declared. Today, capability files and runtime descriptors use `instructions.md`,
98
- validators require `instructions.md`, and `agentera hej --format json
99
- --capability-context <name>` emits `source_contract.capability_context.first_invocation_read`.
90
+ instruction-file boundary, including the canonical `instructions.ts` module,
91
+ legacy `prose.md` and `instructions.md` compatibility boundaries, the
92
+ implemented `first_invocation_read: prime_context` value, the
93
+ `prime --context <name> --format json` ownership statement, and the runtime
94
+ enforcement boundary promoted to `true` in D65.
95
+
96
+ Use this prose as guidance only: the default is that the first capability
97
+ invocation shells out to `agentera prime --context <name> --format json` and
98
+ reads the returned `prose` field. Today, capability directories carry the
99
+ `schemas/` files only, the prose module lives at
100
+ `packages/cli/src/capabilities/<name>/instructions.ts`, runtime descriptors
101
+ invoke the prime command, and the `agentera prime --context <name> --format
102
+ json` response emits `capability_context.prose` plus
103
+ `first_invocation_read` metadata.
100
104
 
101
105
  Do not replace this with a parallel Markdown table of read modes or migration
102
106
  surfaces. Update the YAML authority first, then keep this section as the short
103
- human-facing boundary. Runtime first-invocation read behavior and broad
104
- required-read validation regression remain separate follow-up work.
107
+ human-facing boundary. The `prime_context` runtime enforcement is owned by the
108
+ CLI process; agent runtimes shell out to the prime command instead of reading
109
+ the prose module directly.
105
110
 
106
111
  ## Invocation and routing grammar
107
112
 
@@ -193,6 +198,7 @@ ambiguous-term sweep remain separate follow-up work.
193
198
  | --- | --- |
194
199
  | Artifact | A project or agent state file owned by one or more capabilities. |
195
200
  | Human-facing artifact | A root-level Markdown artifact intended for people, such as `TODO.md`, `CHANGELOG.md`, or `DESIGN.md`. |
201
+ | Severity band policy | TODO.md severity bands are header-only allowed for Degraded (⇉), Normal (→), and Annoying (⇢); Critical (⇶) is enforced and must contain at least one `- [type]` item. Authority: `skills/agentera/schemas/artifacts/todo.yaml` CONVENTION TC6; executable rule in `packages/cli/src/hooks/validateArtifact.ts` `validateMdItems`. |
196
202
  | Agent-facing artifact | A structured YAML artifact under `.agentera/`, such as `.agentera/progress.yaml`. |
197
203
  | Global artifact | A user-level artifact outside a project, such as `PROFILE.md` or `USAGE.md`. |
198
204
  | Canonical artifact name | Display identifier such as `VISION.md`, `PROGRESS.md`, or `DOCS.md`; not always a literal path. |
@@ -404,9 +410,12 @@ prime resolve. The machine-readable authority is
404
410
  npm dist-tag and git ref resolution, override precedence, and consumer ownership
405
411
  for upgrade, doctor, prime, docs, and tests.
406
412
 
407
- Use this prose as guidance only: **stable** tracks the supported 2.x line;
408
- **development** tracks 3.x alphas and release candidates. Default channel is
409
- stable. Override with `--channel`, `AGENTERA_UPDATE_CHANNEL`, or
413
+ Use this prose as guidance only: **stable** tracks the supported 2.x line on
414
+ `npx -y agentera@latest` and, for maintainers, `uvx --from git+...@main` (Python
415
+ CLI). **development** tracks 3.x alphas and release candidates on **npm only**
416
+ (`npx -y agentera@next`); feat/v3 is TypeScript-only and has no uv/git install
417
+ path. v2→v3 is a one-way upgrade through the development npm channel. Default
418
+ channel is stable. Override with `--channel`, `AGENTERA_UPDATE_CHANNEL`, or
410
419
  `update.channel` in user config. Cross-major v2→v3 migration is never implied by
411
420
  stable-channel `@latest` while stable tracks 2.x; it is migrate work tagged
412
421
  `major_boundary_crossing` in the app lifecycle authority and requires semver
@@ -540,7 +549,7 @@ High-signal source surfaces for this vocabulary:
540
549
  | `skills/agentera/SKILL.md` | Routing entry, routing layers, CLI-first access, installed-app status check, and v1 migration check. |
541
550
  | `skills/agentera/protocol.yaml` | Protocol primitives, glyphs, phases, visual tokens, exit signals. |
542
551
  | `skills/agentera/capability_schema_contract.yaml` | Schema groups, priorities, stable IDs, primitive-reference fields. |
543
- | `skills/agentera/capabilities/*/instructions.md` | Workflow grammar, capability roles, safety rails, exit marker forms. |
552
+ | `packages/cli/src/capabilities/*/instructions.ts` | Workflow grammar, capability roles, safety rails, exit marker forms. Loaded as a default-exported string constant; runtime serves it via `agentera prime --context <name> --format json`. |
544
553
  | `skills/agentera/capabilities/*/schemas/*.yaml` | Trigger patterns, artifact roles, validation rules, exit conditions. |
545
554
  | `skills/agentera/schemas/artifacts/*.yaml` | Artifact fields, status enums, validation vocabulary, and protected current-state fields. |
546
555
  | `references/artifacts/artifact-registry-interface-model.yaml` | Canonical artifact registry language. |
@@ -4,7 +4,7 @@
4
4
  "skills": [
5
5
  {
6
6
  "name": "agentera",
7
- "version": "2.7.6",
7
+ "version": "3.0.0",
8
8
  "description": "Compound agent orchestration suite — 12 capabilities in one bundled skill; exact bare hej uses the Agentera dashboard path",
9
9
  "path": "skills/agentera",
10
10
  "capabilities": [