agentera 3.0.0-dev.32 → 3.0.0-dev.38

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 (133) hide show
  1. package/bundle/CHANGELOG.md +46 -1
  2. package/bundle/references/adapters/package-publication.json +43 -0
  3. package/bundle/references/adapters/package-surface-characterization.md +12 -0
  4. package/bundle/references/analysis/evidence-tier-authority.yaml +23 -21
  5. package/bundle/references/analysis/verification-policy.yaml +1 -0
  6. package/bundle/references/artifacts/artifact-registry-interface-model.yaml +11 -2
  7. package/bundle/references/artifacts/glossary-entry-contract.yaml +1241 -0
  8. package/bundle/references/artifacts/state-storage-authority.yaml +31 -3
  9. package/bundle/references/cli/audience-namespace-cli-migration.yaml +12 -1
  10. package/bundle/references/cli/prime-consumer-compatibility.yaml +7 -1
  11. package/bundle/skills/agentera/capabilities/audit/schemas/validation.yaml +26 -8
  12. package/bundle/skills/agentera/capabilities/build/schemas/artifacts.yaml +21 -4
  13. package/bundle/skills/agentera/capabilities/build/schemas/validation.yaml +50 -0
  14. package/bundle/skills/agentera/capabilities/discuss/schemas/artifacts.yaml +3 -2
  15. package/bundle/skills/agentera/capabilities/discuss/schemas/validation.yaml +64 -0
  16. package/bundle/skills/agentera/capabilities/plan/schemas/artifacts.yaml +4 -1
  17. package/bundle/skills/agentera/capabilities/plan/schemas/validation.yaml +30 -0
  18. package/bundle/skills/agentera/capabilities/profile/schemas/artifacts.yaml +5 -2
  19. package/bundle/skills/agentera/capabilities/profile/schemas/exit.yaml +3 -2
  20. package/bundle/skills/agentera/capabilities/profile/schemas/validation.yaml +30 -0
  21. package/bundle/skills/agentera/schemas/artifacts/glossary.yaml +82 -0
  22. package/bundle/skills/agentera/schemas/artifacts/plan.yaml +5 -1
  23. package/bundle/skills/agentera/schemas/artifacts/progress.yaml +92 -0
  24. package/dist/analytics/extractCorpus/evidenceTiers.js +46 -3
  25. package/dist/analytics/extractCorpus/evidenceTiers.js.map +1 -1
  26. package/dist/analytics/extractCorpus/tierReader.js +1 -1
  27. package/dist/analytics/extractCorpus/tierReader.js.map +1 -1
  28. package/dist/analytics/glossaryAdviceResolution.js +167 -0
  29. package/dist/analytics/glossaryAdviceResolution.js.map +1 -0
  30. package/dist/analytics/glossaryInputAcquisition.js +320 -0
  31. package/dist/analytics/glossaryInputAcquisition.js.map +1 -0
  32. package/dist/analytics/personalGlossaryAdmission.js +134 -0
  33. package/dist/analytics/personalGlossaryAdmission.js.map +1 -0
  34. package/dist/analytics/personalGlossaryProfile.js +219 -0
  35. package/dist/analytics/personalGlossaryProfile.js.map +1 -0
  36. package/dist/audit/terminologyDrift.js +282 -0
  37. package/dist/audit/terminologyDrift.js.map +1 -0
  38. package/dist/capabilities/audit/instructions.js +2 -1
  39. package/dist/capabilities/audit/instructions.js.map +1 -1
  40. package/dist/capabilities/build/instructions.js +15 -1
  41. package/dist/capabilities/build/instructions.js.map +1 -1
  42. package/dist/capabilities/discuss/instructions.js +14 -1
  43. package/dist/capabilities/discuss/instructions.js.map +1 -1
  44. package/dist/capabilities/index.js +1 -1
  45. package/dist/capabilities/index.js.map +1 -1
  46. package/dist/capabilities/orchestrate/instructions.js +1 -1
  47. package/dist/capabilities/plan/instructions.js +19 -2
  48. package/dist/capabilities/plan/instructions.js.map +1 -1
  49. package/dist/capabilities/profile/instructions.js +67 -1
  50. package/dist/capabilities/profile/instructions.js.map +1 -1
  51. package/dist/cli/capabilityContext/startup.js +19 -2
  52. package/dist/cli/capabilityContext/startup.js.map +1 -1
  53. package/dist/cli/commands/glossaryAdvice.js +139 -0
  54. package/dist/cli/commands/glossaryAdvice.js.map +1 -0
  55. package/dist/cli/commands/personalGlossary.js +177 -0
  56. package/dist/cli/commands/personalGlossary.js.map +1 -0
  57. package/dist/cli/commands/prime/collectEntityOrientation.js +16 -1
  58. package/dist/cli/commands/prime/collectEntityOrientation.js.map +1 -1
  59. package/dist/cli/commands/prime/collectOrientationState.js +4 -0
  60. package/dist/cli/commands/prime/collectOrientationState.js.map +1 -1
  61. package/dist/cli/commands/prime/orientationOutput.js +12 -2
  62. package/dist/cli/commands/prime/orientationOutput.js.map +1 -1
  63. package/dist/cli/commands/profileGrounding.js +77 -0
  64. package/dist/cli/commands/profileGrounding.js.map +1 -0
  65. package/dist/cli/commands/query.js +10 -4
  66. package/dist/cli/commands/query.js.map +1 -1
  67. package/dist/cli/commands/schema.js +10 -0
  68. package/dist/cli/commands/schema.js.map +1 -1
  69. package/dist/cli/commands/state/write.js +4 -1
  70. package/dist/cli/commands/state/write.js.map +1 -1
  71. package/dist/cli/dispatch/lifecycle.js +45 -0
  72. package/dist/cli/dispatch/lifecycle.js.map +1 -1
  73. package/dist/cli/help.js +21 -0
  74. package/dist/cli/help.js.map +1 -1
  75. package/dist/cli/migrationRequired.js +2 -0
  76. package/dist/cli/migrationRequired.js.map +1 -1
  77. package/dist/cli/orientation/attention.js +3 -1
  78. package/dist/cli/orientation/attention.js.map +1 -1
  79. package/dist/registries/artifactProtocolIds.js +2 -0
  80. package/dist/registries/artifactProtocolIds.js.map +1 -1
  81. package/dist/registries/artifactRegistry.js +2 -0
  82. package/dist/registries/artifactRegistry.js.map +1 -1
  83. package/dist/registries/evidenceTierContract.js +26 -16
  84. package/dist/registries/evidenceTierContract.js.map +1 -1
  85. package/dist/registries/glossaryAdviceContract.js +79 -0
  86. package/dist/registries/glossaryAdviceContract.js.map +1 -0
  87. package/dist/registries/glossaryCaveatContract.js +66 -0
  88. package/dist/registries/glossaryCaveatContract.js.map +1 -0
  89. package/dist/registries/glossaryConsumerContractValidation.js +792 -0
  90. package/dist/registries/glossaryConsumerContractValidation.js.map +1 -0
  91. package/dist/registries/glossaryEntryContract.js +747 -0
  92. package/dist/registries/glossaryEntryContract.js.map +1 -0
  93. package/dist/registries/glossaryTermIdentity.js +18 -0
  94. package/dist/registries/glossaryTermIdentity.js.map +1 -0
  95. package/dist/registries/glossaryTermOccurrence.js +21 -0
  96. package/dist/registries/glossaryTermOccurrence.js.map +1 -0
  97. package/dist/state/decisionEntities.js +2 -2
  98. package/dist/state/decisionEntities.js.map +1 -1
  99. package/dist/state/entityPublicationContext.js +374 -71
  100. package/dist/state/entityPublicationContext.js.map +1 -1
  101. package/dist/state/entityStorage.js +29 -14
  102. package/dist/state/entityStorage.js.map +1 -1
  103. package/dist/state/objectiveExperimentEntities.js +6 -6
  104. package/dist/state/objectiveExperimentEntities.js.map +1 -1
  105. package/dist/state/planEntities.js +17 -9
  106. package/dist/state/planEntities.js.map +1 -1
  107. package/dist/state/progressEntities.js +175 -35
  108. package/dist/state/progressEntities.js.map +1 -1
  109. package/dist/state/progressGlossaryCaveat.js +169 -0
  110. package/dist/state/progressGlossaryCaveat.js.map +1 -0
  111. package/dist/state/progressPublicationOrder.js +20 -0
  112. package/dist/state/progressPublicationOrder.js.map +1 -0
  113. package/dist/state/todoDocsEntities.js +6 -6
  114. package/dist/state/todoDocsEntities.js.map +1 -1
  115. package/dist/state/write/explain.js +64 -34
  116. package/dist/state/write/explain.js.map +1 -1
  117. package/dist/state/write/glossaryPublication.js +264 -0
  118. package/dist/state/write/glossaryPublication.js.map +1 -0
  119. package/dist/state/write/index.js +1 -0
  120. package/dist/state/write/index.js.map +1 -1
  121. package/dist/state/write/operations.js +23 -1
  122. package/dist/state/write/operations.js.map +1 -1
  123. package/dist/state/write/planEvaluation.js +6 -2
  124. package/dist/state/write/planEvaluation.js.map +1 -1
  125. package/dist/state/write/transaction.js +4 -1
  126. package/dist/state/write/transaction.js.map +1 -1
  127. package/dist/validate/crossCapability.js +3 -0
  128. package/dist/validate/crossCapability.js.map +1 -1
  129. package/dist/validate/v1LegacyCruft.js +141 -0
  130. package/dist/validate/v1LegacyCruft.js.map +1 -0
  131. package/dist/validate/vocabularyAuthority.js +2 -0
  132. package/dist/validate/vocabularyAuthority.js.map +1 -1
  133. package/package.json +4 -3
@@ -176,14 +176,42 @@ entity_target:
176
176
  forbidden_fields: [id, artifact, number, stable_id, artifact_id, entry_number]
177
177
  temporal_fields: [timestamp]
178
178
  timestamp_format: 'YYYY-MM-DD HH:MM'
179
+ publication_order:
180
+ field: publication_order
181
+ type: positive_safe_integer
182
+ presence: optional_for_legacy_required_for_new_publications
183
+ visibility: public_record_metadata
184
+ ownership: progress_writer_only
185
+ assignment: max_valid_existing_progress_publication_order_plus_one
186
+ synchronization: .agentera/.writer.lock
187
+ dry_run: omitted_without_consuming_or_mutating_order
188
+ caller_input: forbidden
189
+ malformed_or_spoofed_input: reject_before_mutation_with_bounded_diagnostics
190
+ durability: persisted_in_each_new_progress_cycle_entity
191
+ privacy: bounded_ordinal_without_time_identity_or_content
179
192
  retrieval:
180
193
  exact: agentera state progress get --id ID --format json
181
194
  list: agentera state progress list [--limit N] [--cursor TOKEN] --format json
182
- ordering: timestamp_desc_then_id_asc
195
+ ordering: timestamp_desc_then_publication_order_desc_then_id_asc
196
+ semantic_recency: >-
197
+ The first full progress cycle is latest. Timestamp remains the public
198
+ minute-compatible primary key. Within one timestamp, a valid writer-owned
199
+ publication_order sorts descending; a marked publication sorts after all
200
+ unmarked legacy records observed by that publication and therefore before
201
+ them in newest-first retrieval. Missing markers are legacy unordered ties.
202
+ Equal valid markers can result from independently published histories and
203
+ do not establish relative publication order. Missing or equal markers use
204
+ opaque ID ascending only as a deterministic final fallback and never claim
205
+ reconstructed publication chronology.
183
206
  default_limit: 20
184
207
  maximum_limit: 100
185
208
  max_utf8_bytes: 32768
186
- cursor: opaque_snapshot_cursor
209
+ cursor: opaque_snapshot_cursor_v2
210
+ cursor_compatibility: >-
211
+ Version 2 continuation keys include timestamp, publication_order presence
212
+ and value, and opaque ID. Version 1 progress cursors are rejected with
213
+ recovery to omit --cursor and establish a new snapshot; authority changes
214
+ also invalidate prior cursor signatures by design.
187
215
  mutation_after_snapshot: cursor_snapshot_unavailable
188
216
  omission: whole_entries_only_with_count_reason_continuation_and_exact_get
189
217
  scalar_truncation: forbidden
@@ -647,7 +675,7 @@ entity_target:
647
675
  detail_availability: summary
648
676
  compatibility: degraded
649
677
  caveats: required
650
- ordering: full_timestamp_desc_then_id_asc_then_summary_id_asc
678
+ ordering: full_timestamp_desc_then_publication_order_desc_then_id_asc_then_summary_id_asc
651
679
  summary_ordering: canonical_id_asc_without_chronology_claim
652
680
  mutation: read_only
653
681
  - boundary: decision_summary
@@ -160,12 +160,23 @@ audience_namespaces:
160
160
  [--project-root PATH] [--format text|json]
161
161
  delegates_from: stats refresh
162
162
  behavior: Matches today's `agentera stats refresh` including consent gates.
163
+ profile_glossary:
164
+ canonical_shape: >-
165
+ agentera report profile-glossary --input <file|-> [--dry-run]
166
+ --format json
167
+ delegates_from: null
168
+ behavior: >-
169
+ Applies one versioned personal glossary update request to the exact
170
+ PROFILE.md path supplied by Profile Full. Runs headlessly without a
171
+ project checkout; never discovers or reads project state or a project
172
+ glossary. Dry-run validates and computes the candidate without a write.
163
173
  legacy_top_level_alias: stats
164
174
  rejected_top_level: corpus
165
175
  notes: >-
166
176
  `agentera usage` and `agentera usage` remain backward-compatible
167
177
  maintainer seams per AGENTS.md until separately classified; public user-facing
168
- analytics consolidate under `report`.
178
+ analytics and Profile's bounded personal-output implementation consolidate
179
+ under `report`.
169
180
  check:
170
181
  audience: [maintainer]
171
182
  status: target_canonical_namespace
@@ -235,7 +235,13 @@ field_classification:
235
235
  recommendation is active.
236
236
  - field: attention
237
237
  status: required
238
- rationale: Bounded; opencode and status dashboard consume it.
238
+ rationale: >-
239
+ Bounded; opencode and status dashboard consume it. Valid current glossary
240
+ caveats add at most one generic review item through the glossary authority's
241
+ declared prime projection. When current, its one reserved final slot leaves
242
+ the first five unrelated items in their existing order under the six-item
243
+ public cap; lifecycle identity and private semantics remain internal, and
244
+ next_action is unchanged.
239
245
  - field: history
240
246
  status: diagnostic
241
247
  rationale: >-
@@ -66,13 +66,13 @@ VALIDATION:
66
66
  id: V7
67
67
  rule: evidence_context_first
68
68
  description: >-
69
- Audit evaluation startup MUST begin with `agentera prime --context
70
- audit --format json` and use complete CLI `evidence_context` before
71
- bounded state list/get contracts for plan, progress, docs, health, TODO,
72
- or decisions. Raw artifact access is diagnostic-only.
69
+ Audit evaluation startup MUST begin with `agentera prime --context
70
+ audit --format json` and use complete CLI `evidence_context` before
71
+ bounded state list/get contracts for plan, progress, docs, health, TODO,
72
+ or decisions. Raw artifact access is diagnostic-only.
73
73
  severity: critical
74
74
  checks:
75
- - "Evidence context is requested through prime --context before bounded state list/get"
75
+ - "Evidence context is requested through prime --context before bounded state list/get"
76
76
  8:
77
77
  id: V8
78
78
  rule: evidence_context_fallback_before_raw
@@ -82,9 +82,9 @@ VALIDATION:
82
82
  diagnostic-only raw artifact read.
83
83
  severity: critical
84
84
  checks:
85
- - "evidence_context.fallback_commands are attempted before diagnostic-only raw reads"
86
- - "capability_context.state.fallback_commands is used when evidence_context is unavailable"
87
- - "Raw artifact reads are diagnostic-only, not normal evaluation startup"
85
+ - "evidence_context.fallback_commands are attempted before diagnostic-only raw reads"
86
+ - "capability_context.state.fallback_commands is used when evidence_context is unavailable"
87
+ - "Raw artifact reads are diagnostic-only, not normal evaluation startup"
88
88
  9:
89
89
  id: V9
90
90
  rule: evidence_context_caveats_preserved
@@ -112,3 +112,21 @@ VALIDATION:
112
112
  - "Provisional satisfaction requires evidence"
113
113
  - "Only the user confirms final satisfaction"
114
114
  - "Missing or compacted satisfaction caveats are preserved"
115
+ 11:
116
+ id: V11
117
+ rule: terminology_drift_read_only
118
+ description: >-
119
+ Terminology-drift findings MUST cite every variant with verified
120
+ project-relative file and line evidence. Canonical terms are proposals,
121
+ never decisions or writes. Optional personal-profile divergence is
122
+ comparison evidence only; missing profile evidence produces no claim.
123
+ Audit remains mutation-free and read-only. Build project-glossary
124
+ publication is active. Audit performs no consumer lookup; Discuss, Plan,
125
+ and Build use the separate active read-only advice path. Personal-profile
126
+ mutation and docs-mapping mutation remain outside both paths.
127
+ severity: critical
128
+ checks:
129
+ - "Every reported drift variant has project-file evidence"
130
+ - "Weak, deliberate, tracked, and no-drift candidates produce no finding"
131
+ - "Audit mutates no glossary, profile, docs mapping, code, or project file"
132
+ - "Build publication and read-only glossary consumers are active under separate mutation boundaries"
@@ -28,7 +28,8 @@ ARTIFACTS:
28
28
  artifact: progress
29
29
  local_role: produces_and_consumes
30
30
  description: >-
31
- Operational cycle log. Build consumes latest progress evidence from
31
+ Operational cycle log and the sole durable channel for bounded autonomous
32
+ glossary caveat lifecycle evidence. Build consumes latest progress evidence from
32
33
  execution_context first, then bounded `agentera state progress list --limit
33
34
  20 --format json` discovery or exact `state progress get --id ID`
34
35
  retrieval, and appends one entry per cycle with mandatory Verified field.
@@ -65,9 +66,10 @@ ARTIFACTS:
65
66
  artifact: profile
66
67
  local_role: consumes
67
68
  description: >-
68
- Build consumes status profile summary first. Missing or stale profile state
69
- is a caveat and does not authorize profile refresh or direct profile reads
70
- during normal startup.
69
+ Build consumes status profile summary first and reads profile grounding
70
+ only from `agentera report profile-grounding --format json`. Missing,
71
+ stale, or malformed state is a caveat and does not authorize refresh or
72
+ direct profile reads during normal startup.
71
73
  9:
72
74
  id: A9
73
75
  artifact: docs
@@ -83,3 +85,18 @@ ARTIFACTS:
83
85
  Build treats design state missing from execution_context as a caveat or
84
86
  fallback-only need, and reads it only when building user-facing features
85
87
  after listed CLI fallbacks are exhausted.
88
+ 11:
89
+ id: A11
90
+ artifact: glossary
91
+ local_role: produces_and_consumes
92
+ description: >-
93
+ Build alone publishes one explicitly user-confirmed terminology proposal
94
+ through `agentera state glossary publish --input REQUEST`. The typed writer
95
+ revalidates audit source evidence and atomically records the immutable
96
+ approval beside the shared-only project entry. Build does not consume the
97
+ glossary only to validate replay and preserve unrelated publication state.
98
+ Separately, at governed meaning-sensitive Build events it requests bounded
99
+ read-only advice through `agentera report glossary-advice --input REQUEST
100
+ --format json`. Advice and progress caveats never publish terminology,
101
+ approve a proposal, reuse confirmation, mutate personal profiles or docs
102
+ mappings, or grant publication authority to another capability.
@@ -108,3 +108,53 @@ VALIDATION:
108
108
  - "Provisional satisfaction requires evidence"
109
109
  - "Only the user confirms final satisfaction"
110
110
  - "Missing or compacted satisfaction caveats are preserved"
111
+ 11:
112
+ id: V11
113
+ rule: sanitized_profile_grounding
114
+ description: >-
115
+ Build MUST ground only from the `content` returned by `agentera report
116
+ profile-grounding --format json`; it MUST NOT direct-read PROFILE.md.
117
+ severity: critical
118
+ checks:
119
+ - "Sanitized grounding command used after prime startup"
120
+ - "Raw profile path not read"
121
+ 12:
122
+ id: V12
123
+ rule: governed_glossary_advice
124
+ description: >-
125
+ At initial meaning-sensitive cycle intent and later user-authored changes
126
+ or clarification answers that can alter intent, Build MUST request bounded
127
+ advice through `agentera report glossary-advice --input REQUEST --format
128
+ json`. Unchanged replay, unrelated turns, rendering, and tool output MUST
129
+ NOT refresh advice.
130
+ severity: critical
131
+ checks:
132
+ - "Exact project authority or proven-gap personal fallback grounds intent"
133
+ - "Governed changes refresh only the affected meaning"
134
+ - "Incidental turns and unchanged replay do not refresh"
135
+ 13:
136
+ id: V13
137
+ rule: glossary_review_and_autonomy
138
+ description: >-
139
+ Interactive Build MUST ask one focused clarification before disputed
140
+ meaning-sensitive reliance whenever review is required. If autonomous Build
141
+ cannot pause, it MUST avoid the disputed meaning, proceed conservatively
142
+ only where safe, and append one idempotent privacy-safe glossary_caveat
143
+ lifecycle envelope through the typed progress writer.
144
+ severity: critical
145
+ checks:
146
+ - "Clarification precedes meaning-sensitive execution and re-evaluates only the affected meaning"
147
+ - "Autonomous work does not assume disputed meaning"
148
+ - "Current, resolved, and superseded caveat events obey opaque identity lifecycle"
149
+ 14:
150
+ id: V14
151
+ rule: glossary_publication_isolation
152
+ description: >-
153
+ Advice, tension, clarification, and progress caveat lifecycle MUST NOT call
154
+ `agentera state glossary publish`, create or reuse approval, substitute for
155
+ digest-bound user confirmation, satisfy decisions or plan state, or grant
156
+ Discuss or Audit publication authority.
157
+ severity: critical
158
+ checks:
159
+ - "Advice and caveat paths perform zero glossary publication writes"
160
+ - "Only separately supplied digest-confirmed publication retains Build authority"
@@ -39,8 +39,9 @@ ARTIFACTS:
39
39
  artifact: profile
40
40
  local_role: consumes
41
41
  description: >-
42
- Discuss reads this at session start to acknowledge high-confidence
43
- entries and avoid re-deliberating settled ground.
42
+ Discuss reads only sanitized non-glossary content from `agentera report
43
+ profile-grounding --format json` at session start. It never direct-reads
44
+ the profile path; malformed owned Glossary boundaries fail closed.
44
45
  6:
45
46
  id: A6
46
47
  artifact: docs
@@ -76,3 +76,67 @@ VALIDATION:
76
76
  - "Provisional satisfaction requires evidence"
77
77
  - "Only the user confirms final satisfaction"
78
78
  - "Missing or compacted satisfaction caveats are preserved"
79
+ 8:
80
+ id: V8
81
+ rule: sanitized_profile_grounding
82
+ description: >-
83
+ Discuss MUST ground only from the `content` returned by `agentera report
84
+ profile-grounding --format json`; it MUST NOT direct-read PROFILE.md.
85
+ severity: critical
86
+ checks:
87
+ - "Sanitized grounding command used at session start"
88
+ - "Raw profile path not read"
89
+ 9:
90
+ id: V9
91
+ rule: governed_glossary_advice_events
92
+ description: >-
93
+ Discuss MUST invoke `agentera report glossary-advice --input <file|->
94
+ --format json` for initial meaning-sensitive user input and later
95
+ user-authored premise changes or affected clarification answers that can
96
+ change meaning. It MUST NOT invoke advice for unchanged replay, rendering,
97
+ unrelated turns, tool output, background rereads, or Done-only control,
98
+ and MUST NOT use an unbounded or persistent transcript scan.
99
+ severity: critical
100
+ checks:
101
+ - "Initial and changed meaning-sensitive user events refresh advice"
102
+ - "Incidental, unchanged, and Done-only events do not refresh advice"
103
+ - "Only current user-authored meaning-sensitive input is inspected"
104
+ 10:
105
+ id: V10
106
+ rule: glossary_review_before_reliance
107
+ description: >-
108
+ When advice requires inferred-equivalence review, Discuss MUST ask one
109
+ focused clarification with Done before meaning-sensitive reasoning or
110
+ decision framing relies on either meaning. It MUST NOT silently infer
111
+ equivalence, and the clarification MUST NOT count as decision confirmation.
112
+ severity: critical
113
+ checks:
114
+ - "Focused review question precedes reliance"
115
+ - "One-question-per-turn and Done behavior are preserved"
116
+ - "Clarification is not decision confirmation"
117
+ 11:
118
+ id: V11
119
+ rule: glossary_authority_and_disclosure
120
+ description: >-
121
+ Discuss MUST use only the transient applicable meaning and owner. Project
122
+ meaning governs a divergent exact collision and the divergence appears as
123
+ a concise scratchpad tension or Crux; Discuss MUST NOT ask the user to
124
+ choose project versus personal authority or quote unrelated entries.
125
+ severity: critical
126
+ checks:
127
+ - "Applicable project or proven personal fallback meaning is used"
128
+ - "Divergence appears as tension or Crux without an authority-choice question"
129
+ - "Unrelated glossary content is not disclosed"
130
+ 12:
131
+ id: V12
132
+ rule: glossary_consumer_mutation_isolation
133
+ description: >-
134
+ Advice, divergence, and consumer clarification are transient. Discuss MUST
135
+ NOT write glossary, approval, publication consent, progress caveat, plan
136
+ conflict, or decision conflict state, and MUST NOT call glossary publish.
137
+ Unavailable or no-applicable advice adds no glossary facts.
138
+ severity: critical
139
+ checks:
140
+ - "No glossary or consumer-caveat mutation occurs"
141
+ - "No approval, consent, or conflict bookkeeping occurs"
142
+ - "Unavailable advice does not fabricate glossary grounding"
@@ -53,7 +53,10 @@ ARTIFACTS:
53
53
  artifact: profile
54
54
  local_role: consumes
55
55
  description: >-
56
- Plan reads this to calibrate planning depth and pattern preferences.
56
+ Plan reads only sanitized non-glossary content from `agentera report
57
+ profile-grounding --format json` to calibrate planning depth and pattern
58
+ preferences. It never direct-reads the profile path; malformed owned
59
+ Glossary boundaries fail closed.
57
60
  9:
58
61
  id: A9
59
62
  artifact: docs
@@ -87,3 +87,33 @@ VALIDATION:
87
87
  checks:
88
88
  - "Full plans with dismissed critic findings have `rejected:` entries"
89
89
  - "Each rejection has issue and rationale fields"
90
+ 9:
91
+ id: V9
92
+ rule: sanitized_profile_grounding
93
+ description: >-
94
+ Plan MUST ground only from the `content` returned by `agentera report
95
+ profile-grounding --format json`; it MUST NOT direct-read PROFILE.md.
96
+ severity: critical
97
+ checks:
98
+ - "Sanitized grounding command used during Orient"
99
+ - "Raw profile path not read"
100
+ 10:
101
+ id: V10
102
+ rule: governed_terminology_advice
103
+ description: >-
104
+ Plan MUST consume terminology advice through the shared glossary consumer
105
+ authority at governed meaning-sensitive user events. Interactive review
106
+ MUST precede fixing affected requirements. Autonomous unresolved review
107
+ MUST abstain, defer the affected requirements, and emit at most one bounded
108
+ current writer intent without delivering or storing it or writing plan
109
+ conflict or progress state.
110
+ severity: critical
111
+ checks:
112
+ - "Advice refreshes only for authority-declared Plan events"
113
+ - "Mode follows explicit authority precedence and unknown mode waits"
114
+ - "Interactive review precedes affected requirements and acceptance"
115
+ - "Autonomous unresolved meaning remains deferred without a Plan write"
116
+ - "Emitted-only handoff intent contains exactly event=current, reason, and ownership state"
117
+ - "Writer owns caveat identity, Build capability, and transition fields"
118
+ - "Exact project authority suppresses personal-unavailable durable handoff"
119
+ - "Plan artifacts exclude private glossary content"
@@ -5,8 +5,11 @@ ARTIFACTS:
5
5
  local_role: produces_and_consumes
6
6
  description: >-
7
7
  Decision profile with per-entry confidence scoring, permanence
8
- classification, and temporal metadata. Profile writes this in both Full
9
- and Validate modes, then reads it for validation and update context.
8
+ classification, and temporal metadata. Profile Full also owns one
9
+ deterministic personal Glossary section containing shared glossary entries
10
+ and lifecycle metadata; rendering and persistence are active while lookup
11
+ remains deferred. Profile writes this in both Full and Validate modes,
12
+ then reads it for validation and update context.
10
13
  2:
11
14
  id: A2
12
15
  artifact: decisions
@@ -4,8 +4,9 @@ EXIT_CONDITIONS:
4
4
  condition: complete
5
5
  description: >-
6
6
  PROFILE.md was written (Full mode) or updated (Validate mode).
7
- Metadata changes were applied, prediction accuracy was assessed
8
- (Full mode), and changes were summarized.
7
+ In Full mode its owned personal Glossary section was rendered and persisted,
8
+ metadata changes were applied, prediction accuracy was assessed, and
9
+ changes were summarized.
9
10
  exit_signal: complete
10
11
  2:
11
12
  id: E2
@@ -83,3 +83,33 @@ VALIDATION:
83
83
  - "Signal tier state, count, and sufficiency are read before synthesizing"
84
84
  - "Underrepresented families are surfaced with retained and intended counts"
85
85
  - "No high-confidence claims are fabricated from sparse or missing evidence"
86
+ 7:
87
+ id: V7
88
+ rule: personal_glossary_output
89
+ description: >-
90
+ Profile Full MUST render and persist exactly one owned Glossary section
91
+ through `agentera report profile-glossary`. Entries use only the shared
92
+ primitive and personal provenance variants. Replacement preserves every
93
+ non-glossary byte, malformed or ambiguous boundaries fail before effects,
94
+ and personal production never reads a project glossary.
95
+ severity: critical
96
+ checks:
97
+ - "Explicit entries retain exactly one evidence anchor"
98
+ - "Inferred entries retain exactly two pairwise-distinct evidence anchors"
99
+ - "Non-glossary PROFILE.md bytes and decision-pattern confidence are unchanged"
100
+ - "No project glossary identity, path, parameter, import, or read is used"
101
+ 8:
102
+ id: V8
103
+ rule: personal_glossary_lifecycle
104
+ description: >-
105
+ Established entries MUST survive regeneration without fresh evidence.
106
+ Confidence is deterministically derived from the retained confidence basis,
107
+ unchanged permanence class, injected date, existing Profile decay formula,
108
+ and floor; permanence and observed_at remain unchanged. Matching fresh
109
+ evidence follows the shared authority refresh rule. Lookup remains deferred.
110
+ severity: critical
111
+ checks:
112
+ - "Same-date replay is idempotent and decay never compounds from rendered confidence"
113
+ - "Stable, durable, and situational classes use their existing lambdas and floor"
114
+ - "Fresh evidence refreshes only matching meaning and provenance kind"
115
+ - "Glossary confidence never mutates decision-pattern confidence"
@@ -0,0 +1,82 @@
1
+ # Project Glossary Artifact Schema
2
+
3
+ meta:
4
+ name: glossary
5
+ version: "1.0.0"
6
+ description: >-
7
+ Repository-scoped canonical terminology governed by the shared glossary
8
+ entry and project publication contracts. Build atomically publishes an
9
+ explicitly confirmed audit proposal; audit and discuss remain read-only.
10
+ artifact_type: agent_facing
11
+ path: ".agentera/glossary.yaml"
12
+ producer: build
13
+ consumers: [build]
14
+ format: yaml
15
+ implementation_status: active
16
+
17
+ CONFORMANCE:
18
+ authority: references/artifacts/glossary-entry-contract.yaml
19
+ ownership_contract: project
20
+ provenance_variant: project_file
21
+ term_identity_runtime: packages/cli/src/registries/glossaryTermIdentity.ts#unicodeCaselessExact
22
+ term_occurrence_runtime: packages/cli/src/registries/glossaryTermOccurrence.ts#containsGlossaryTerm
23
+
24
+ DOCUMENT:
25
+ schema_version: agentera.projectGlossary.v1
26
+ required_fields: [schema_version, approvals, entries]
27
+ additional_fields: forbidden
28
+ approvals:
29
+ type: list
30
+ immutable: true
31
+ record_fields: [proposal_digest, proposal, confirmation]
32
+ additional_record_fields: forbidden
33
+ entries:
34
+ type: list
35
+ item: shared_primitive
36
+ approval_fields: forbidden
37
+ terminology_set_identity:
38
+ normalization: unicode_caseless_exact_no_normalization
39
+ members: [paired_entry.term, paired_approval.proposal.variants.term]
40
+ uniqueness: global_across_complete_document
41
+
42
+ PUBLICATION:
43
+ implementation: active
44
+ owner: build
45
+ command: agentera state glossary publish --input REQUEST --format json
46
+ request_schema_version: agentera.glossaryPublicationRequest.v1
47
+ atomic_unit: complete_document
48
+ lock: established_project_writer_lock
49
+ exact_replay: no_op
50
+ term_identity: unicode_caseless_exact_no_normalization_global_canonical_and_variant_set
51
+ source_revalidation: safe_real_path_line_identity_and_sha256
52
+ docs_mapping_mutation: forbidden
53
+ excluded_behavior: [consumer_lookup, consumer_precedence, consumer_semantic_review, personal_profile_mutation]
54
+
55
+ CONSUMER_ACQUISITION:
56
+ implementation: active
57
+ authority: references/artifacts/glossary-entry-contract.yaml#consumer_boundary.acquisition
58
+ runtime: packages/cli/src/analytics/glossaryInputAcquisition.ts#acquireGlossaryInputs
59
+ availability: [absent, valid_empty, valid_present, malformed, unreadable, ambiguous, over_bound]
60
+ output_entry_fields: [term, meaning, owner]
61
+ source_output_fields: [owner, availability, entries, gap_proving, diagnostic]
62
+ raw_byte_bound: 65536
63
+ entry_bound: 100
64
+ utf8_decoding: fatal
65
+ project_read: descriptor_bound_no_follow_with_parent_identity_checks
66
+ mutation: forbidden
67
+ consumer_semantics: [project_precedence, proven_gap_personal_fallback, divergent_tension, host_review]
68
+
69
+ ADVICE_RESOLUTION:
70
+ implementation: active
71
+ authority: references/artifacts/glossary-entry-contract.yaml#consumer_boundary.advice_resolution
72
+ runtime: packages/cli/src/analytics/glossaryAdviceResolution.ts#resolveGlossaryAdvice
73
+ input: [requested_term, acquired, host_review]
74
+ output_schema_version: agentera.glossaryAdvice.v1
75
+ mutation: forbidden
76
+ capability_integrations: [discuss, plan, build, prime]
77
+
78
+ CONFIRMED_VARIANT_GUARD:
79
+ authority: references/artifacts/glossary-entry-contract.yaml#ownership_contracts.project.confirmed_variant_guard
80
+ implementation: active
81
+ validation_surface: packages/cli/test/cli/v1LegacyCruft.test.ts
82
+ consumer_lookup: forbidden
@@ -374,7 +374,11 @@ TASK:
374
374
  description: >-
375
375
  CLI-owned evaluator state written only by `agentera state plan
376
376
  record-evaluation`. It records attempt and failure counts, the latest
377
- verdict, retained failure evidence, and stable attempt provenance.
377
+ verdict, retained failure evidence, and stable attempt provenance. Normal
378
+ workflow records evaluation before completion. As recovery for persisted
379
+ out-of-order replacement state only, the writer accepts the first PASS on
380
+ an unevaluated complete task while its open same-plan superseded predecessor
381
+ names it in superseded_by; every other terminal evaluation remains rejected.
378
382
  7:
379
383
  id: PT21
380
384
  field: superseded_by
@@ -4,6 +4,11 @@
4
4
  # in one development cycle: phase, work done, discoveries, verification,
5
5
  # next steps, and context envelope.
6
6
  #
7
+ # The optional glossary_caveat envelope, Build writer, and bounded prime reader
8
+ # are active. Build remains the sole progress producer; Plan may only emit the
9
+ # bounded current writer intent for Build and never delivers or persists it in
10
+ # plan state. Prime projects generic review attention without lifecycle details.
11
+ #
7
12
  # The active authority is one progress_cycle entity per writer-owned file. The
8
13
  # numbered projection model below is retained only as an exact legacy migration
9
14
  # input schema; it is not an ordinary read or write contract after cutover.
@@ -56,12 +61,27 @@ ENTITY_AUTHORITY:
56
61
  mutation: agentera state progress explain --verb append --format json
57
62
  direct_file_edits: forbidden
58
63
  legacy_schema_below: migration_input_only
64
+ semantic_recency:
65
+ primary: timestamp_desc
66
+ same_minute: publication_order_desc
67
+ final_fallback: opaque_id_asc_for_missing_or_duplicate_publication_order
68
+ latest: first_full_progress_cycle_in_canonical_list_order
69
+ publication_order:
70
+ type: positive_safe_integer
71
+ presence: optional_for_legacy_required_for_new_publications
72
+ visibility: public_record_metadata
73
+ owner: progress_writer
74
+ assignment: max_valid_existing_plus_one_under_publication_lock
75
+ caller_input: forbidden
76
+ dry_run: omitted
77
+ copy_and_restart: persisted_with_entity
59
78
 
60
79
  GROUP_PREFIXES:
61
80
  BUDGET: PB
62
81
  COMPACTION: PX
63
82
  CYCLE: PR
64
83
  CONTEXT: PT
84
+ GLOSSARY_CAVEAT: GC
65
85
  ARCHIVE: PA
66
86
  VALIDATION: PV
67
87
 
@@ -228,6 +248,78 @@ CYCLE:
228
248
  description: >-
229
249
  Context envelope capturing intent, constraints, unknowns, and
230
250
  scope for this cycle. Contains sub-fields defined in CONTEXT group.
251
+ 11:
252
+ id: PR11
253
+ field: glossary_caveat
254
+ type: mapping
255
+ required: false
256
+ implementation_status: active_build
257
+ authority: references/artifacts/glossary-entry-contract.yaml#consumer_boundary.autonomous_caveat
258
+ description: >-
259
+ Privacy-safe autonomous glossary-review lifecycle evidence. Build alone
260
+ appends it through the typed progress writer. It is never glossary
261
+ publication, decision approval, plan state, or a container for meanings,
262
+ definitions, anchors, paths, raw sections, unrelated entries, or provenance.
263
+ 12:
264
+ id: PR12
265
+ field: publication_order
266
+ type: integer
267
+ required: false
268
+ cli_owned: true
269
+ description: >-
270
+ Positive safe integer assigned by the progress writer under the publication
271
+ lock. New full records use it to resolve equal-minute semantic recency.
272
+ Legacy records may omit it; callers cannot supply or override it.
273
+ validation:
274
+ - "When present, must be a positive safe integer"
275
+ - "Must be omitted from caller input and assigned by the CLI writer"
276
+
277
+ GLOSSARY_CAVEAT:
278
+ schema_version: agentera.glossaryConsumerCaveat.v1
279
+ implementation_status: active_build
280
+ reader_status:
281
+ prime: active
282
+ envelope_validator: packages/cli/src/state/progressGlossaryCaveat.ts#validateProgressGlossaryCaveat
283
+ lifecycle_validator: packages/cli/src/state/progressGlossaryCaveat.ts#glossaryCaveatLifecycleInvalidEntities
284
+ allowed_current_pairs: references/artifacts/glossary-entry-contract.yaml#consumer_boundary.autonomous_caveat.allowed_current_pairs
285
+ current_append:
286
+ caller_fields: [event, reason, ownership_state]
287
+ caller_fixed_values:
288
+ event: current
289
+ writer_fields: [caveat_id, capability, transition_id]
290
+ writer_fixed_values:
291
+ capability: build
292
+ transition_id: null
293
+ rule: >-
294
+ The caller must submit event=current, reason, and ownership_state. The
295
+ writer creates caveat_id, capability=build, and transition_id=null; it does
296
+ not default the caller-owned event.
297
+ fields:
298
+ caveat_id:
299
+ type: opaque_non_content_id
300
+ required: true
301
+ event:
302
+ type: enum
303
+ values: [current, resolved, superseded]
304
+ required: true
305
+ capability:
306
+ type: enum
307
+ values: [build]
308
+ required: true
309
+ reason:
310
+ type: enum
311
+ values: [inferred_equivalence, authority_unavailable, personal_input_unavailable]
312
+ required: true
313
+ ownership_state:
314
+ type: enum
315
+ values: [project_governs_exact, review_required, authority_unavailable]
316
+ required: true
317
+ transition_id:
318
+ type: [opaque_non_content_id, "null"]
319
+ required: true
320
+ lifecycle: references/artifacts/glossary-entry-contract.yaml#consumer_boundary.autonomous_caveat.lifecycle
321
+ prime_projection: references/artifacts/glossary-entry-contract.yaml#consumer_boundary.autonomous_caveat.prime_projection
322
+ privacy: references/artifacts/glossary-entry-contract.yaml#consumer_boundary.disclosure.durable_surfaces
231
323
 
232
324
  CONTEXT:
233
325
  1: