agentera 3.0.0-dev.21 → 3.0.0-dev.23

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 (129) hide show
  1. package/README.md +7 -3
  2. package/bundle/.cursor/agents/agentera.md +1 -1
  3. package/bundle/.opencode/agents/agentera.md +1 -1
  4. package/bundle/CHANGELOG.md +11 -0
  5. package/bundle/references/analysis/evidence-tier-authority.yaml +516 -0
  6. package/bundle/references/artifacts/state-storage-authority.yaml +109 -3
  7. package/bundle/references/artifacts/verbosity-budget-authority.yaml +42 -0
  8. package/bundle/references/cli/agent-ready-state-contract.yaml +22 -14
  9. package/bundle/references/cli/prime-consumer-compatibility.yaml +676 -0
  10. package/bundle/references/cli/vocabulary-index.yaml +3 -3
  11. package/bundle/references/cli/vocabulary.md +10 -3
  12. package/bundle/skills/agentera/SKILL.md +7 -6
  13. package/bundle/skills/agentera/agents/audit.toml +1 -1
  14. package/bundle/skills/agentera/agents/build.toml +1 -1
  15. package/bundle/skills/agentera/agents/design.toml +1 -1
  16. package/bundle/skills/agentera/agents/discuss.toml +1 -1
  17. package/bundle/skills/agentera/agents/document.toml +1 -1
  18. package/bundle/skills/agentera/agents/optimize.toml +1 -1
  19. package/bundle/skills/agentera/agents/orchestrate.toml +1 -1
  20. package/bundle/skills/agentera/agents/plan.toml +1 -1
  21. package/bundle/skills/agentera/agents/profile.toml +1 -1
  22. package/bundle/skills/agentera/agents/research.toml +1 -1
  23. package/bundle/skills/agentera/agents/status.toml +1 -1
  24. package/bundle/skills/agentera/agents/vision.toml +1 -1
  25. package/bundle/skills/agentera/capabilities/profile/schemas/validation.yaml +31 -3
  26. package/bundle/skills/agentera/schemas/artifacts/changelog.yaml +1 -0
  27. package/bundle/skills/agentera/schemas/artifacts/design.yaml +1 -0
  28. package/bundle/skills/agentera/schemas/artifacts/todo.yaml +1 -0
  29. package/dist/analytics/extractCorpus/cli.js +33 -5
  30. package/dist/analytics/extractCorpus/cli.js.map +1 -1
  31. package/dist/analytics/extractCorpus/evidenceTiers.js +561 -0
  32. package/dist/analytics/extractCorpus/evidenceTiers.js.map +1 -0
  33. package/dist/analytics/extractCorpus/extractCorpusParity.js +1 -0
  34. package/dist/analytics/extractCorpus/extractCorpusParity.js.map +1 -1
  35. package/dist/analytics/extractCorpus/index.js +3 -0
  36. package/dist/analytics/extractCorpus/index.js.map +1 -1
  37. package/dist/analytics/extractCorpus/tierReader.js +109 -0
  38. package/dist/analytics/extractCorpus/tierReader.js.map +1 -0
  39. package/dist/analytics/profileSignals.js +212 -0
  40. package/dist/analytics/profileSignals.js.map +1 -0
  41. package/dist/analytics/usageStats.js +104 -20
  42. package/dist/analytics/usageStats.js.map +1 -1
  43. package/dist/capabilities/index.js +2 -1
  44. package/dist/capabilities/index.js.map +1 -1
  45. package/dist/capabilities/profile/instructions.js +1 -1
  46. package/dist/capabilities/profile/instructions.js.map +1 -1
  47. package/dist/capabilities/status/startupInstructions.js +35 -0
  48. package/dist/capabilities/status/startupInstructions.js.map +1 -0
  49. package/dist/cli/capabilityContext/build.js +3 -3
  50. package/dist/cli/capabilityContext/build.js.map +1 -1
  51. package/dist/cli/capabilityContext/closeout.js +5 -5
  52. package/dist/cli/capabilityContext/closeout.js.map +1 -1
  53. package/dist/cli/capabilityContext/contract.js +4 -4
  54. package/dist/cli/capabilityContext/contract.js.map +1 -1
  55. package/dist/cli/capabilityContext/evidence.js +4 -4
  56. package/dist/cli/capabilityContext/evidence.js.map +1 -1
  57. package/dist/cli/capabilityContext/planState.js +7 -6
  58. package/dist/cli/capabilityContext/planState.js.map +1 -1
  59. package/dist/cli/capabilityContext/shared.js +1 -1
  60. package/dist/cli/capabilityContext/shared.js.map +1 -1
  61. package/dist/cli/capabilityContext/startup.js +4 -4
  62. package/dist/cli/capabilityContext/startup.js.map +1 -1
  63. package/dist/cli/commands/lint.js +10 -2
  64. package/dist/cli/commands/lint.js.map +1 -1
  65. package/dist/cli/commands/prime/briefOrientation.js +582 -0
  66. package/dist/cli/commands/prime/briefOrientation.js.map +1 -0
  67. package/dist/cli/commands/prime/collectOrientationState.js +3 -0
  68. package/dist/cli/commands/prime/collectOrientationState.js.map +1 -1
  69. package/dist/cli/commands/prime/orientationOutput.js +117 -23
  70. package/dist/cli/commands/prime/orientationOutput.js.map +1 -1
  71. package/dist/cli/commands/prime.js +30 -3
  72. package/dist/cli/commands/prime.js.map +1 -1
  73. package/dist/cli/commands/report.js +55 -15
  74. package/dist/cli/commands/report.js.map +1 -1
  75. package/dist/cli/commands/schema.js +3 -29
  76. package/dist/cli/commands/schema.js.map +1 -1
  77. package/dist/cli/commands/state/plan.js +3 -2
  78. package/dist/cli/commands/state/plan.js.map +1 -1
  79. package/dist/cli/help.js +1 -1
  80. package/dist/cli/help.js.map +1 -1
  81. package/dist/cli/orientation/corpusCoverage.js +32 -0
  82. package/dist/cli/orientation/corpusCoverage.js.map +1 -1
  83. package/dist/cli/orientation.js +3 -3
  84. package/dist/cli/orientation.js.map +1 -1
  85. package/dist/cli/startupCompletenessContract.js +3 -3
  86. package/dist/cli/startupCompletenessContract.js.map +1 -1
  87. package/dist/cli/stateQuery.js +37 -0
  88. package/dist/cli/stateQuery.js.map +1 -1
  89. package/dist/registries/evidenceTierContract.js +362 -0
  90. package/dist/registries/evidenceTierContract.js.map +1 -0
  91. package/dist/registries/verbosityBudgetContract.js +206 -0
  92. package/dist/registries/verbosityBudgetContract.js.map +1 -0
  93. package/dist/state/decisionLegacyValidation.js +185 -0
  94. package/dist/state/decisionLegacyValidation.js.map +1 -0
  95. package/dist/state/decisionOverlay.js +24 -1
  96. package/dist/state/decisionOverlay.js.map +1 -1
  97. package/dist/state/decisionRevision.js +622 -0
  98. package/dist/state/decisionRevision.js.map +1 -0
  99. package/dist/state/decisionRevisionPublication.js +532 -0
  100. package/dist/state/decisionRevisionPublication.js.map +1 -0
  101. package/dist/state/directRetrieval.js +55 -4
  102. package/dist/state/directRetrieval.js.map +1 -1
  103. package/dist/state/listRetrieval.js +42 -11
  104. package/dist/state/listRetrieval.js.map +1 -1
  105. package/dist/state/startupAnalysis/benchmark.js +70 -8
  106. package/dist/state/startupAnalysis/benchmark.js.map +1 -1
  107. package/dist/state/startupAnalysis/threshold.js +13 -0
  108. package/dist/state/startupAnalysis/threshold.js.map +1 -1
  109. package/dist/state/startupProjection.js +68 -1
  110. package/dist/state/startupProjection.js.map +1 -1
  111. package/dist/state/write/candidateMutation.js +331 -0
  112. package/dist/state/write/candidateMutation.js.map +1 -0
  113. package/dist/state/write/explain.js +36 -12
  114. package/dist/state/write/explain.js.map +1 -1
  115. package/dist/state/write/helpers.js +22 -0
  116. package/dist/state/write/helpers.js.map +1 -1
  117. package/dist/state/write/mutation.js +42 -0
  118. package/dist/state/write/mutation.js.map +1 -1
  119. package/dist/state/write/operations.js +49 -1
  120. package/dist/state/write/operations.js.map +1 -1
  121. package/dist/state/write/transaction.js +23 -357
  122. package/dist/state/write/transaction.js.map +1 -1
  123. package/dist/validate/lifecycleAdapters/lifecycleMain.js +154 -0
  124. package/dist/validate/lifecycleAdapters/lifecycleMain.js.map +1 -0
  125. package/dist/validate/lifecycleAdapters.js +5 -156
  126. package/dist/validate/lifecycleAdapters.js.map +1 -1
  127. package/dist/validate/selfAudit.js +38 -43
  128. package/dist/validate/selfAudit.js.map +1 -1
  129. package/package.json +2 -2
@@ -41,9 +41,9 @@ normalization_rules:
41
41
  - rule: The CLI source and rendered dashboard are different.
42
42
  use: agentera prime source data, status dashboard rendered briefing
43
43
  avoid: Treating raw CLI labels as the user-facing dashboard.
44
- - rule: Routine state uses flat commands.
45
- use: agentera plan, agentera docs, agentera health
46
- avoid: agentera query plan for routine state.
44
+ - rule: Routine state uses the state namespace.
45
+ use: agentera state plan, agentera state docs, agentera state health
46
+ avoid: agentera plan, agentera docs, or agentera health as routine state commands.
47
47
  - rule: query is advanced access.
48
48
  use: agentera query --list-artifacts, agentera query <artifact>
49
49
  avoid: Calling it the normal state interface.
@@ -99,11 +99,11 @@ enforcement boundary promoted to `true` in D65.
99
99
 
100
100
  Use this prose as guidance only: the default is that the first capability
101
101
  invocation shells out to `agentera prime --context <name> --format json` and
102
- reads the returned `prose` field. Today, capability directories carry the
103
- `schemas/` files only, the prose module lives at
102
+ reads the returned `instructions` field. Today, capability directories carry
103
+ the `schemas/` files only, the instructions module lives at
104
104
  `packages/cli/src/capabilities/<name>/instructions.ts`, runtime descriptors
105
105
  invoke the prime command, and the `agentera prime --context <name> --format
106
- json` response emits `capability_context.prose` plus
106
+ json` response emits `capability_context.instructions` plus
107
107
  `first_invocation_read` metadata.
108
108
 
109
109
  Do not replace this with a parallel Markdown table of read modes or migration
@@ -112,6 +112,13 @@ human-facing boundary. The `prime_context` runtime enforcement is owned by the
112
112
  CLI process; agent runtimes shell out to the prime command instead of reading
113
113
  the prose module directly.
114
114
 
115
+ Status startup is the one-call exception to the general compact-data wording
116
+ above: `agentera prime --context status --format json` returns
117
+ `capability_context.instructions` and bounded
118
+ `capability_context.context.status_context` together. Consumers do not make a
119
+ second bare-prime call or read raw artifacts; omitted detail names its
120
+ authoritative recovery command.
121
+
115
122
  ## Invocation and routing grammar
116
123
 
117
124
  | Term | Definition |
@@ -65,10 +65,10 @@ The CLI routes. The host agent follows.
65
65
 
66
66
  | Request shape | Route |
67
67
  |---|---|
68
- | Bare `/agentera` | 1. Run `agentera prime --format json` for state data. 2. Run the `fetch_command` from `source_contract.capability_context` to get rendering instructions. 3. Follow `capability_context.instructions` for dashboard template, field rules, and exit marker. 4. Render the dashboard from the state data per the instructions. 5. Follow `next_action` to suggest the next capability. |
68
+ | Bare `/agentera` | 1. Run `agentera prime --context status --format json` once. 2. Read `capability_context.instructions` and `capability_context.context.status_context`. 3. Render the dashboard from that bounded state and follow `next_action` to suggest the next capability. |
69
69
  | `/agentera <capability-name>` | Run `agentera prime --context <capability> --format json`. Follow the capability's instructions and contract. |
70
70
  | `/agentera <capability-name> <topic>` | Same as above; pass `<topic>` as the user's instruction to the capability. |
71
- | Natural language | Run `agentera prime --format json`. Run the `fetch_command` from `source_contract.capability_context` for rendering instructions. Use `next_action.capability` to suggest the matching capability. If no high-confidence match, present a disambiguation prompt. |
71
+ | Natural language | Run `agentera prime --context status --format json` once. Read `capability_context.instructions` and `capability_context.context.status_context`; use `next_action.capability` to suggest the matching capability. If no high-confidence match, present a disambiguation prompt. |
72
72
 
73
73
  Capability names are the routing identity: `status`, `vision`, `discuss`,
74
74
  `research`, `plan`, `build`, `optimize`, `audit`, `document`, `profile`,
@@ -98,10 +98,11 @@ Capability handoffs use glyph plus canonical name (e.g. `⧉ build`, `≡ plan`)
98
98
 
99
99
  The prime dashboard rendering contract — template, field-by-field rules, output
100
100
  budget, attention-item ordering, exit marker — is owned by the status capability
101
- instructions. Bare `agentera prime --format json` returns a pointer at
102
- `source_contract.capability_context` with a `fetch_command` to retrieve them;
103
- run it, then follow `capability_context.instructions` for layout,
104
- inclusion/exclusion rules, and the mandatory `⌂ status · <status>` exit marker.
101
+ instructions. `agentera prime --context status --format json` returns the full
102
+ `capability_context.instructions` body and the bounded
103
+ `capability_context.context.status_context` state in one response. Render from
104
+ that capsule without a separate bare-prime call or raw artifact read; use the
105
+ named recovery command when the capsule marks detail as omitted.
105
106
  Ask for confirmation before invoking a state-changing downstream capability.
106
107
 
107
108
  The first response in a fresh interaction delivers the brief and a free-form
@@ -2,5 +2,5 @@
2
2
  name = "audit"
3
3
  description = "Codebase health audit."
4
4
  developer_instructions = """
5
- You are the Agentera audit capability subagent. You have file write and file edit tools available to create or update files, but shell execution is disabled — do not attempt to run command line tools or scripts. Run `agentera prime --context audit --format json` to fetch the authoritative instructions as a JSON capsule (the `prose` field carries the full Markdown body). Stay within the dispatched capability task, use the Agentera CLI state seam first, and preserve Agentera artifact safety rails.
5
+ You are the Agentera audit capability subagent. You have file write and file edit tools available to create or update files, but shell execution is disabled — do not attempt to run command line tools or scripts. Run `agentera prime --context audit --format json` to fetch the authoritative instructions as a JSON capsule (the `capability_context.instructions` field carries the full Markdown body). Stay within the dispatched capability task, use the Agentera CLI state seam first, and preserve Agentera artifact safety rails.
6
6
  """
@@ -2,5 +2,5 @@
2
2
  name = "build"
3
3
  description = "Autonomous development execution."
4
4
  developer_instructions = """
5
- You are the Agentera build capability subagent. You have full file write, file edit, and shell execution tools available — use them to implement code changes, run tests, and commit results. Run `agentera prime --context build --format json` to fetch the authoritative instructions as a JSON capsule (the `prose` field carries the full Markdown body). Stay within the dispatched capability task, use the Agentera CLI state seam first, and preserve Agentera artifact safety rails.
5
+ You are the Agentera build capability subagent. You have full file write, file edit, and shell execution tools available — use them to implement code changes, run tests, and commit results. Run `agentera prime --context build --format json` to fetch the authoritative instructions as a JSON capsule (the `capability_context.instructions` field carries the full Markdown body). Stay within the dispatched capability task, use the Agentera CLI state seam first, and preserve Agentera artifact safety rails.
6
6
  """
@@ -2,5 +2,5 @@
2
2
  name = "design"
3
3
  description = "Visual identity and design systems."
4
4
  developer_instructions = """
5
- You are the Agentera design capability subagent. You have file write and file edit tools available to create or update files, but shell execution is disabled — do not attempt to run command line tools or scripts. Run `agentera prime --context design --format json` to fetch the authoritative instructions as a JSON capsule (the `prose` field carries the full Markdown body). Stay within the dispatched capability task, use the Agentera CLI state seam first, and preserve Agentera artifact safety rails.
5
+ You are the Agentera design capability subagent. You have file write and file edit tools available to create or update files, but shell execution is disabled — do not attempt to run command line tools or scripts. Run `agentera prime --context design --format json` to fetch the authoritative instructions as a JSON capsule (the `capability_context.instructions` field carries the full Markdown body). Stay within the dispatched capability task, use the Agentera CLI state seam first, and preserve Agentera artifact safety rails.
6
6
  """
@@ -2,5 +2,5 @@
2
2
  name = "discuss"
3
3
  description = "Structured deliberation and decision support."
4
4
  developer_instructions = """
5
- You are the Agentera discuss capability subagent. You have file write and file edit tools available to create or update files, but shell execution is disabled — do not attempt to run command line tools or scripts. Run `agentera prime --context discuss --format json` to fetch the authoritative instructions as a JSON capsule (the `prose` field carries the full Markdown body). Stay within the dispatched capability task, use the Agentera CLI state seam first, and preserve Agentera artifact safety rails.
5
+ You are the Agentera discuss capability subagent. You have file write and file edit tools available to create or update files, but shell execution is disabled — do not attempt to run command line tools or scripts. Run `agentera prime --context discuss --format json` to fetch the authoritative instructions as a JSON capsule (the `capability_context.instructions` field carries the full Markdown body). Stay within the dispatched capability task, use the Agentera CLI state seam first, and preserve Agentera artifact safety rails.
6
6
  """
@@ -2,5 +2,5 @@
2
2
  name = "document"
3
3
  description = "Documentation updates and synchronization."
4
4
  developer_instructions = """
5
- You are the Agentera document capability subagent. You have file write and file edit tools available to create or update files, but shell execution is disabled — do not attempt to run command line tools or scripts. Run `agentera prime --context document --format json` to fetch the authoritative instructions as a JSON capsule (the `prose` field carries the full Markdown body). Stay within the dispatched capability task, use the Agentera CLI state seam first, and preserve Agentera artifact safety rails.
5
+ You are the Agentera document capability subagent. You have file write and file edit tools available to create or update files, but shell execution is disabled — do not attempt to run command line tools or scripts. Run `agentera prime --context document --format json` to fetch the authoritative instructions as a JSON capsule (the `capability_context.instructions` field carries the full Markdown body). Stay within the dispatched capability task, use the Agentera CLI state seam first, and preserve Agentera artifact safety rails.
6
6
  """
@@ -2,5 +2,5 @@
2
2
  name = "optimize"
3
3
  description = "Metric-driven optimization cycles."
4
4
  developer_instructions = """
5
- You are the Agentera optimize capability subagent. You have full file write, file edit, and shell execution tools available — use them to implement code changes, run tests, and commit results. Run `agentera prime --context optimize --format json` to fetch the authoritative instructions as a JSON capsule (the `prose` field carries the full Markdown body). Stay within the dispatched capability task, use the Agentera CLI state seam first, and preserve Agentera artifact safety rails.
5
+ You are the Agentera optimize capability subagent. You have full file write, file edit, and shell execution tools available — use them to implement code changes, run tests, and commit results. Run `agentera prime --context optimize --format json` to fetch the authoritative instructions as a JSON capsule (the `capability_context.instructions` field carries the full Markdown body). Stay within the dispatched capability task, use the Agentera CLI state seam first, and preserve Agentera artifact safety rails.
6
6
  """
@@ -2,5 +2,5 @@
2
2
  name = "orchestrate"
3
3
  description = "Multi-cycle orchestration over active plans."
4
4
  developer_instructions = """
5
- You are the Agentera orchestrate capability subagent. You have full file write, file edit, and shell execution tools available — use them to implement code changes, run tests, and commit results. Run `agentera prime --context orchestrate --format json` to fetch the authoritative instructions as a JSON capsule (the `prose` field carries the full Markdown body). Stay within the dispatched capability task, use the Agentera CLI state seam first, and preserve Agentera artifact safety rails.
5
+ You are the Agentera orchestrate capability subagent. You have full file write, file edit, and shell execution tools available — use them to implement code changes, run tests, and commit results. Run `agentera prime --context orchestrate --format json` to fetch the authoritative instructions as a JSON capsule (the `capability_context.instructions` field carries the full Markdown body). Stay within the dispatched capability task, use the Agentera CLI state seam first, and preserve Agentera artifact safety rails.
6
6
  """
@@ -2,5 +2,5 @@
2
2
  name = "plan"
3
3
  description = "Planning with acceptance criteria."
4
4
  developer_instructions = """
5
- You are the Agentera plan capability subagent. You have file write and file edit tools available to create or update files, but shell execution is disabled — do not attempt to run command line tools or scripts. Run `agentera prime --context plan --format json` to fetch the authoritative instructions as a JSON capsule (the `prose` field carries the full Markdown body). Stay within the dispatched capability task, use the Agentera CLI state seam first, and preserve Agentera artifact safety rails.
5
+ You are the Agentera plan capability subagent. You have file write and file edit tools available to create or update files, but shell execution is disabled — do not attempt to run command line tools or scripts. Run `agentera prime --context plan --format json` to fetch the authoritative instructions as a JSON capsule (the `capability_context.instructions` field carries the full Markdown body). Stay within the dispatched capability task, use the Agentera CLI state seam first, and preserve Agentera artifact safety rails.
6
6
  """
@@ -2,5 +2,5 @@
2
2
  name = "profile"
3
3
  description = "Decision profiling and preference memory."
4
4
  developer_instructions = """
5
- You are the Agentera profile capability subagent. You have full file write, file edit, and shell execution tools available — use them to implement code changes, run tests, and commit results. Run `agentera prime --context profile --format json` to fetch the authoritative instructions as a JSON capsule (the `prose` field carries the full Markdown body). Stay within the dispatched capability task, use the Agentera CLI state seam first, and preserve Agentera artifact safety rails.
5
+ You are the Agentera profile capability subagent. You have full file write, file edit, and shell execution tools available — use them to implement code changes, run tests, and commit results. Run `agentera prime --context profile --format json` to fetch the authoritative instructions as a JSON capsule (the `capability_context.instructions` field carries the full Markdown body). Stay within the dispatched capability task, use the Agentera CLI state seam first, and preserve Agentera artifact safety rails.
6
6
  """
@@ -2,5 +2,5 @@
2
2
  name = "research"
3
3
  description = "External pattern research and synthesis."
4
4
  developer_instructions = """
5
- You are the Agentera research capability subagent. You are a read-only agent — do not write files or execute shell commands. Run `agentera prime --context research --format json` to fetch the authoritative instructions as a JSON capsule (the `instructions` field carries the full Markdown body). Stay within the dispatched capability task, use the Agentera CLI state seam first, and preserve Agentera artifact safety rails.
5
+ You are the Agentera research capability subagent. You are a read-only agent — do not write files or execute shell commands. Run `agentera prime --context research --format json` to fetch the authoritative instructions as a JSON capsule (the `capability_context.instructions` field carries the full Markdown body). Stay within the dispatched capability task, use the Agentera CLI state seam first, and preserve Agentera artifact safety rails.
6
6
  """
@@ -2,5 +2,5 @@
2
2
  name = "status"
3
3
  description = "Agentera orientation and routing dashboard."
4
4
  developer_instructions = """
5
- You are the Agentera status capability subagent. You are a read-only agent — do not write files or execute shell commands. Run `agentera prime --context status --format json` to fetch the authoritative instructions as a JSON capsule (the `prose` field carries the full Markdown body). Stay within the dispatched capability task, use the Agentera CLI state seam first, and preserve Agentera artifact safety rails.
5
+ You are the Agentera status capability subagent. You are a read-only agent — do not write files or execute shell commands. Run `agentera prime --context status --format json` to fetch the authoritative instructions as a JSON capsule (the `capability_context.instructions` field carries the full Markdown body). Stay within the dispatched capability task, use the Agentera CLI state seam first, and preserve Agentera artifact safety rails.
6
6
  """
@@ -2,5 +2,5 @@
2
2
  name = "vision"
3
3
  description = "Define and refine project direction."
4
4
  developer_instructions = """
5
- You are the Agentera vision capability subagent. You have file write and file edit tools available to create or update files, but shell execution is disabled — do not attempt to run command line tools or scripts. Run `agentera prime --context vision --format json` to fetch the authoritative instructions as a JSON capsule (the `prose` field carries the full Markdown body). Stay within the dispatched capability task, use the Agentera CLI state seam first, and preserve Agentera artifact safety rails.
5
+ You are the Agentera vision capability subagent. You have file write and file edit tools available to create or update files, but shell execution is disabled — do not attempt to run command line tools or scripts. Run `agentera prime --context vision --format json` to fetch the authoritative instructions as a JSON capsule (the `capability_context.instructions` field carries the full Markdown body). Stay within the dispatched capability task, use the Agentera CLI state seam first, and preserve Agentera artifact safety rails.
6
6
  """
@@ -5,11 +5,15 @@ VALIDATION:
5
5
  description: >-
6
6
  Every profile entry MUST be grounded in observed evidence from session
7
7
  history, memory files, configs, or conversation data. Fabricated
8
- decision patterns are never acceptable.
8
+ decision patterns are never acceptable. Synthesis reads the bounded
9
+ signal tier; a claim's source identity is verified by resolving its
10
+ evidence_anchor to a retained full-evidence shard rather than re-scanning
11
+ unbounded history.
9
12
  severity: critical
10
13
  checks:
11
14
  - "Each profile entry traces to a source record"
12
15
  - "No profile entry is fabricated without evidence"
16
+ - "Each claim's evidence_anchor resolves to a retained full-evidence shard"
13
17
  2:
14
18
  id: V2
15
19
  rule: confidence_calibration
@@ -17,11 +21,13 @@ VALIDATION:
17
21
  Confidence scores MUST match the evidence tier (protocol CS1-CS5).
18
22
  A single data point is 30-49 (CS4), not 70+. Bias check: confidence
19
23
  is earned through evidence, not assigned by how insightful the
20
- decision sounds.
24
+ decision sounds. When bounded_signals.sufficiency is insufficient,
25
+ affected categories are capped to CS4 (30-49) or below.
21
26
  severity: critical
22
27
  checks:
23
28
  - "Confidence values fall within protocol tier boundaries"
24
29
  - "Single-source entries are capped at CS4 (30-49)"
30
+ - "Insufficient families cap affected categories to CS4 or below"
25
31
  3:
26
32
  id: V3
27
33
  rule: tension_honesty
@@ -39,11 +45,17 @@ VALIDATION:
39
45
  description: >-
40
46
  Profile MUST NOT modify session history, memory files, or config
41
47
  files. It reads these sources for extraction but never writes to them.
42
- The only artifact profile produces is PROFILE.md.
48
+ The only artifact profile produces is PROFILE.md. Profile MUST NOT
49
+ load the monolithic corpus.json whole: synthesis reads the bounded
50
+ signal tier and retrieves full evidence one shard at a time via
51
+ evidence_anchor. Legacy/missing tiers require a refresh to publish
52
+ bounded tiers first, never a whole-corpus load.
43
53
  severity: critical
44
54
  checks:
45
55
  - "No writes to session history files"
46
56
  - "No writes to memory or config files"
57
+ - "Monolithic corpus.json is never loaded whole"
58
+ - "Full-evidence records are retrieved one shard at a time"
47
59
  5:
48
60
  id: V5
49
61
  rule: prediction_accuracy
@@ -55,3 +67,19 @@ VALIDATION:
55
67
  checks:
56
68
  - "5 predictions tested against held-out prompts"
57
69
  - "Accuracy below 3/5 is flagged in profile header"
70
+ 6:
71
+ id: V6
72
+ rule: bounded_signal_sufficiency
73
+ description: >-
74
+ Profile synthesis MUST consume the bounded signal tier published by
75
+ extraction, not all full evidence. The sufficiency gate reports
76
+ underrepresented source families with their retained and intended
77
+ counts and surfaces the limitation in the profile output and exit
78
+ signal rather than silently reducing confidence. Sufficiency is
79
+ assessed per family against the contract minimum_family_retention
80
+ threshold; a family with zero intended signals is not a violation.
81
+ severity: warning
82
+ checks:
83
+ - "Signal tier state, count, and sufficiency are read before synthesizing"
84
+ - "Underrepresented families are surfaced with retained and intended counts"
85
+ - "No high-confidence claims are fabricated from sparse or missing evidence"
@@ -27,6 +27,7 @@ GROUP_PREFIXES:
27
27
  BUDGET:
28
28
  1:
29
29
  id: CB1
30
+ scope: full_file
30
31
  token_budget: 5000
31
32
  description: >-
32
33
  Maximum tokens for CHANGELOG.md content. Exceeding triggers compaction.
@@ -27,6 +27,7 @@ GROUP_PREFIXES:
27
27
  BUDGET:
28
28
  1:
29
29
  id: DB1
30
+ scope: full_file
30
31
  token_budget: 2000
31
32
  description: >-
32
33
  Maximum tokens for DESIGN.md content. Exceeding triggers compaction.
@@ -29,6 +29,7 @@ GROUP_PREFIXES:
29
29
  BUDGET:
30
30
  1:
31
31
  id: TB1
32
+ scope: full_file
32
33
  token_budget: 5000
33
34
  description: >-
34
35
  Maximum tokens for TODO.md content. Exceeding triggers compaction.
@@ -1,8 +1,7 @@
1
- import fs from "node:fs";
2
1
  import os from "node:os";
3
2
  import path from "node:path";
4
- import { pyJsonIndent } from "../../core/pyjson.js";
5
3
  import { defaultOutputPath, } from "./core.js";
4
+ import { defaultTiersDir, publishEvidenceTiers } from "./evidenceTiers.js";
6
5
  import { buildCorpus } from "./corpus.js";
7
6
  import { COVERAGE_EXIT_FLAGGED, corpusEnvelopeCoverage, formatCoverageSummaryText, runCoverageAudit, } from "./coverageAudit.js";
8
7
  import { formatTruncationWarnings, resolveSqliteCaps } from "./sqliteCaps.js";
@@ -11,6 +10,7 @@ export function parseExtractArgs(argv, env = process.env, platform = process.pla
11
10
  const home = env.HOME || (platform === "win32" ? env.USERPROFILE : undefined) || os.homedir();
12
11
  const args = {
13
12
  output: defaultOutputPath(env, platform),
13
+ tierOutput: null,
14
14
  projectRoot: [],
15
15
  codexSessionsDir: path.join(home, ".codex", "sessions"),
16
16
  claudeProjectsDir: path.join(home, ".claude", "projects"),
@@ -38,8 +38,14 @@ export function parseExtractArgs(argv, env = process.env, platform = process.pla
38
38
  return null;
39
39
  };
40
40
  let v;
41
+ // `--output` is a deprecated no-op for back-compat: it targeted the
42
+ // eliminated monolithic corpus.json write. Refresh now publishes bounded
43
+ // tiers via `--tier-output` (default: `defaultTiersDir`). `--output` is
44
+ // accepted to keep older callers from hard-crashing but has no effect.
41
45
  if ((v = val("--output")) !== null)
42
46
  args.output = v;
47
+ else if ((v = val("--tier-output")) !== null)
48
+ args.tierOutput = v;
43
49
  else if ((v = val("--project-root")) !== null)
44
50
  args.projectRoot.push(v);
45
51
  else if ((v = val("--codex-sessions-dir")) !== null)
@@ -148,8 +154,6 @@ export function extractCorpusMain(argv, io = {}) {
148
154
  coverage: corpusEnvelopeCoverage(audit),
149
155
  sqliteCaps,
150
156
  });
151
- fs.mkdirSync(path.dirname(args.output), { recursive: true });
152
- fs.writeFileSync(args.output, pyJsonIndent(corpus) + "\n", "utf-8");
153
157
  const truncationWarning = formatTruncationWarnings(corpus.metadata.runtime_statuses);
154
158
  if (truncationWarning)
155
159
  err(truncationWarning);
@@ -157,7 +161,31 @@ export function extractCorpusMain(argv, io = {}) {
157
161
  const familyBits = Object.entries(corpus.metadata.families)
158
162
  .map(([name, summary]) => `${name}=${summary.count}`)
159
163
  .join(", ");
160
- out(`wrote corpus: ${args.output} (${total} records; ${familyBits})`);
164
+ // Publish bounded evidence tiers as the canonical bounded publication output.
165
+ // The monolithic corpus envelope write is eliminated: all bounded consumers
166
+ // (usage, report, prime coverage, startup analysis, profile synthesis) read
167
+ // the signal tier and full-evidence shards directly. Legacy monolithic state
168
+ // receives deterministic refresh guidance rather than read compatibility.
169
+ const tiersDir = args.tierOutput ?? defaultTiersDir(env, platform);
170
+ const publication = publishEvidenceTiers(corpus.records, {
171
+ tiersDir,
172
+ adapterVersion: corpus.metadata.adapter_version,
173
+ runtimeStatuses: corpus.metadata.runtime_statuses,
174
+ env,
175
+ platform,
176
+ corpusMetadata: {
177
+ extracted_at: corpus.metadata.extracted_at,
178
+ runtime_statuses: corpus.metadata.runtime_statuses,
179
+ coverage_envelope: {
180
+ available_runtimes: corpus.metadata.available_runtimes,
181
+ selected_runtimes: corpus.metadata.selected_runtimes,
182
+ available_but_not_selected: corpus.metadata.available_but_not_selected,
183
+ },
184
+ },
185
+ });
186
+ out(`published tiers: ${tiersDir} (generation ${publication.generation}; ` +
187
+ `${publication.shard_count} shards; ${publication.signal_count} signals; ` +
188
+ `${publication.signal_bytes} bytes${publication.signal_selection.capped ? "; selection applied" : ""}) [${total} records; ${familyBits}]`);
161
189
  return 0;
162
190
  }
163
191
  //# sourceMappingURL=cli.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"cli.js","sourceRoot":"","sources":["../../../src/analytics/extractCorpus/cli.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,SAAS,CAAC;AACzB,OAAO,EAAE,MAAM,SAAS,CAAC;AACzB,OAAO,IAAI,MAAM,WAAW,CAAC;AAE7B,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AACpD,OAAO,EAEL,iBAAiB,GAClB,MAAM,WAAW,CAAC;AAEnB,O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