agentera 3.0.0-dev.72 → 3.0.0-dev.75

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 (93) hide show
  1. package/README.md +111 -0
  2. package/bundle/.agentera-build-source.json +8 -0
  3. package/bundle/CHANGELOG.md +17 -17
  4. package/bundle/extract-corpus-parity.json +1 -1
  5. package/bundle/references/adapters/package-publication.json +49 -53
  6. package/bundle/references/adapters/package-registry.yaml +5 -1
  7. package/bundle/references/adapters/package-surface-characterization.md +6 -4
  8. package/bundle/references/analysis/evidence-tier-authority.yaml +45 -4
  9. package/bundle/references/analysis/personal-glossary-evaluation-authority.yaml +175 -0
  10. package/bundle/references/analysis/personal-glossary-evaluation-corpus.yaml +291 -0
  11. package/bundle/references/analysis/personal-glossary-holdout.yaml +192 -0
  12. package/bundle/references/analysis/verification-policy.yaml +8 -13
  13. package/bundle/references/artifacts/glossary-entry-contract.yaml +1533 -35
  14. package/bundle/references/cli/update-channels.yaml +2 -2
  15. package/bundle/references/cli/vocabulary.md +1 -1
  16. package/bundle/references/meta/retained-reference-authority.yaml +16 -1
  17. package/bundle/skills/agentera/capabilities/profile/schemas/artifacts.yaml +11 -7
  18. package/bundle/skills/agentera/capabilities/profile/schemas/exit.yaml +6 -3
  19. package/bundle/skills/agentera/capabilities/profile/schemas/validation.yaml +13 -7
  20. package/bundle/skills/agentera/schemas/artifacts/glossary.yaml +5 -0
  21. package/bundle/skills/agentera/schemas/artifacts/plan.yaml +7 -0
  22. package/dist/.agentera-build-source.json +8 -0
  23. package/dist/analytics/extractCorpus/copilotSessions.js +13 -4
  24. package/dist/analytics/extractCorpus/core.js +223 -3
  25. package/dist/analytics/extractCorpus/corpus.js +18 -1
  26. package/dist/analytics/extractCorpus/cursorSessions.js +22 -4
  27. package/dist/analytics/extractCorpus/evidenceTiers.js +123 -17
  28. package/dist/analytics/extractCorpus/filesystemSources.js +4 -0
  29. package/dist/analytics/extractCorpus/index.js +2 -2
  30. package/dist/analytics/extractCorpus/jsonlSessions.js +52 -3
  31. package/dist/analytics/extractCorpus/sqliteSessions.js +12 -3
  32. package/dist/analytics/personalGlossaryAdmission.js +26 -46
  33. package/dist/analytics/personalGlossaryCandidateProjection.js +692 -0
  34. package/dist/analytics/personalGlossaryCandidateProjectionExcerpts.js +144 -0
  35. package/dist/analytics/personalGlossaryCandidateReadView.js +23 -0
  36. package/dist/analytics/personalGlossaryCurrentGeneration.js +25 -0
  37. package/dist/analytics/personalGlossaryDecision.js +203 -0
  38. package/dist/analytics/personalGlossaryExplicit.js +788 -0
  39. package/dist/analytics/personalGlossaryExplicitMining.js +285 -0
  40. package/dist/analytics/personalGlossaryExplicitScope.js +41 -0
  41. package/dist/analytics/personalGlossaryExplicitSegments.js +418 -0
  42. package/dist/analytics/personalGlossaryExplicitTypes.js +26 -0
  43. package/dist/analytics/personalGlossaryLexicalClassifier.js +175 -0
  44. package/dist/analytics/personalGlossaryProfile.js +13 -3
  45. package/dist/analytics/personalGlossaryRecurrence.js +618 -0
  46. package/dist/analytics/personalGlossaryReviewRecordStorage.js +428 -0
  47. package/dist/analytics/personalGlossaryReviewRecords.js +332 -0
  48. package/dist/capabilities/index.js +5 -1
  49. package/dist/capabilities/profile/instructions.js +50 -15
  50. package/dist/cli/commands/personalGlossaryCandidateReads.js +744 -0
  51. package/dist/cli/commands/personalGlossaryDecision.js +349 -0
  52. package/dist/cli/commands/personalGlossaryPublish.js +484 -0
  53. package/dist/cli/commands/personalGlossaryReviewRecordReads.js +209 -0
  54. package/dist/cli/commands/personalGlossaryReviewRecords.js +623 -0
  55. package/dist/cli/commands/prime/briefOrientation.js +118 -19
  56. package/dist/cli/commands/report.js +18 -2
  57. package/dist/cli/commands/schema.js +179 -0
  58. package/dist/cli/commands/verify.js +51 -9
  59. package/dist/cli/dispatch/lifecycle.js +51 -6
  60. package/dist/cli/help.js +48 -2
  61. package/dist/cli/migrationRequired.js +4 -1
  62. package/dist/core/atomicWriter.js +4 -1
  63. package/dist/core/developmentInvocation.js +4 -1
  64. package/dist/core/yaml.js +53 -1
  65. package/dist/eval/glossaryEvaluation.js +751 -0
  66. package/dist/eval/glossaryEvaluationProcess.js +29 -0
  67. package/dist/eval/glossaryEvaluationRunner.js +571 -0
  68. package/dist/eval/glossaryEvaluationSuccessReport.js +297 -0
  69. package/dist/registries/activationTuples.js +31 -3
  70. package/dist/registries/evidenceTierContract.js +4 -0
  71. package/dist/registries/explicitSegmentGrammarContract.js +619 -0
  72. package/dist/registries/glossaryCandidateContractPaths.js +6 -0
  73. package/dist/registries/glossaryCandidateContracts.js +820 -0
  74. package/dist/registries/glossaryCandidateDecisionAuthority.js +119 -0
  75. package/dist/registries/glossaryCandidateDecisionContract.js +62 -0
  76. package/dist/registries/glossaryCandidateProjectionAuthority.js +197 -0
  77. package/dist/registries/glossaryCandidateProjectionContract.js +104 -0
  78. package/dist/registries/glossaryEntryContract.js +105 -103
  79. package/dist/registries/glossaryEntryTemporal.js +12 -0
  80. package/dist/registries/glossaryMiningAuthority.js +764 -0
  81. package/dist/registries/glossaryProfileFullContract.js +24 -0
  82. package/dist/registries/glossaryReviewRecordsAuthority.js +426 -0
  83. package/dist/registries/glossaryReviewRecordsContract.js +129 -0
  84. package/dist/registries/glossaryTermIdentity.js +122 -0
  85. package/dist/registries/packagePublication.js +3 -3
  86. package/dist/registries/personalGlossaryContracts.js +1 -0
  87. package/dist/release/releaseMetadata.js +15 -8
  88. package/dist/upgrade/npxPlatformStatus.js +2 -1
  89. package/dist/upgrade/projectIntegration.js +7 -1
  90. package/dist/validate/activationArtifactEvidence.js +18 -4
  91. package/dist/validate/activationEvidenceManifest.js +101 -22
  92. package/package.json +2 -4
  93. package/dist/cli/commands/personalGlossary.js +0 -176
@@ -54,8 +54,1402 @@ term_occurrence:
54
54
  occurrence adjacent to Unicode ID_Continue, dollar sign, U+200C ZERO WIDTH
55
55
  NON-JOINER, or U+200D ZERO WIDTH JOINER. These are the ECMAScript identifier
56
56
  continuation characters relevant to source-line terminology boundaries.
57
- Literal escaping and fixed-width boundary assertions prevent regex syntax,
58
- partial identifier matches, and input-dependent backtracking.
57
+ Literal escaping and fixed-width boundary assertions prevent regex syntax,
58
+ partial identifier matches, and input-dependent backtracking.
59
+
60
+ personal_mining_authority:
61
+ status: active_partial
62
+ implementation_boundary: >-
63
+ This section settles personal glossary mining identity, evidence provenance,
64
+ consent, privacy, lifecycle, bounded explicit-discovery, public receipt construction,
65
+ and deterministic decision authority. The runtime performs bounded discovery,
66
+ candidate projection, private candidate retrieval, deterministic CLI
67
+ validation of host semantic evidence, explicit authorized personal
68
+ publication, and Profile Full integration. It does not perform host
69
+ semantic classification, project or public-state candidate reads, or
70
+ project glossary integration.
71
+ preserved_decisions: [prmnztjytv, mcsmqqitnm, zyvgyvjnsv]
72
+ replacement:
73
+ shared_primitive: shared_primitive
74
+ personal_owner: ownership_contracts.personal
75
+ project_owner: ownership_contracts.project
76
+ consumer_precedence: consumer_boundary.primary_selection
77
+ project_publication: ownership_contracts.project.publication
78
+ allowed_effects: [personal_profile_output]
79
+ forbidden_effects:
80
+ - project_glossary_read
81
+ - project_glossary_mutation
82
+ - project_publication_replacement
83
+ - consumer_precedence_change
84
+ - personal_project_merge
85
+ rule: >-
86
+ Mining may replace only the user-owned personal profile glossary through
87
+ the existing personal profile output lifecycle. It never reads or writes
88
+ project glossary state, changes consumer precedence, or changes the
89
+ Build-owned digest-confirmed project publication operation.
90
+ explicit_discovery:
91
+ status: active
92
+ runtime: packages/cli/src/analytics/personalGlossaryExplicit.ts#discoverExplicitGlossaryCues
93
+ mining_runtime: packages/cli/src/analytics/personalGlossaryExplicitMining.ts#mineExplicitGlossaryCandidates
94
+ input: bounded_signal_tier_plus_direct_single_anchor_resolution
95
+ output: evidence_capsule_plus_exact_source_spans_only
96
+ scope_window: current_sentence_and_one_adjacent_sentence_each_side
97
+ scope_binding: explicit_scope_marker_must_contain_the_term_or_be_a_direct_qualifier
98
+ span_encoding: utf8_byte_offsets
99
+ strings: preserve_exact_source_bytes_without_unicode_normalization
100
+ adjacent_direct_reference_exclusion:
101
+ references:
102
+ - this_definition
103
+ - this_term
104
+ - this_meaning
105
+ - following_definition
106
+ - following_term
107
+ - following_meaning
108
+ qualifiers: [question, example, future, hypothetical]
109
+ binding:
110
+ preceding_sentence: following_reference_only
111
+ following_sentence: this_reference_only
112
+ exact_literal_term: either_direction
113
+ grammar:
114
+ forms:
115
+ - id: quoted_means
116
+ segment_class: explicit_cue_segment
117
+ entry: outside_approved_cue
118
+ termination: shared_bounded_termination
119
+ output: shared_cue_segment_output
120
+ syntax: quoted_or_code_delimited_term_means_meaning
121
+ term: one_balanced_supported_quote_or_backtick_delimited_span
122
+ - id: definition_list_colon
123
+ segment_class: explicit_cue_segment
124
+ entry: outside_approved_cue
125
+ termination: shared_bounded_termination
126
+ output: shared_cue_segment_output
127
+ syntax: standalone_safe_definition_list_term_colon_meaning
128
+ prefix: sentence_or_line_start_with_optional_markdown_list_bullet
129
+ unmarked_terms:
130
+ - quoted_or_code_delimited_term
131
+ - uppercase_acronym_with_exact_expansion_initials
132
+ markers: [definition, term]
133
+ marked_term: bounded_nonempty_term
134
+ bare_multiword_term_without_marker: reject
135
+ meaning_start: nonempty_same_physical_line
136
+ continuation: after_nonempty_inline_meaning_within_maximum_meaning_bound_only
137
+ empty_marker_structure: reject_immediately_following_colon_line
138
+ exclusions: yaml_config_labels_times_urls_headings_citations_and_labels
139
+ - id: acronym_stands_for
140
+ segment_class: explicit_cue_segment
141
+ entry: outside_approved_cue
142
+ termination: shared_bounded_termination
143
+ output: shared_cue_segment_output
144
+ syntax: bounded_acronym_stands_for_expansion
145
+ validation: expansion_initials_must_match_acronym_exactly
146
+ - id: acronym_parenthetical
147
+ segment_class: explicit_cue_segment
148
+ entry: outside_approved_cue
149
+ termination: shared_bounded_termination
150
+ output: shared_cue_segment_output
151
+ syntax: bounded_acronym_parenthesized_expansion_or_reverse
152
+ validation: expansion_initials_must_match_acronym_exactly
153
+ - id: by_i_mean
154
+ segment_class: explicit_cue_segment
155
+ entry: outside_approved_cue
156
+ termination: shared_bounded_termination
157
+ output: shared_cue_segment_output
158
+ syntax: by_term_i_mean_meaning
159
+ - id: use_for
160
+ segment_class: explicit_cue_segment
161
+ entry: outside_approved_cue
162
+ termination: shared_bounded_termination
163
+ output: shared_cue_segment_output
164
+ syntax: use_term_for_meaning
165
+ - id: use_to_mean
166
+ segment_class: explicit_cue_segment
167
+ entry: outside_approved_cue
168
+ termination: shared_bounded_termination
169
+ output: shared_cue_segment_output
170
+ syntax: use_term_to_mean_meaning
171
+ - id: refers_to
172
+ segment_class: explicit_cue_segment
173
+ entry: outside_approved_cue
174
+ termination: shared_bounded_termination
175
+ output: shared_cue_segment_output
176
+ syntax: term_refers_to_meaning
177
+ - id: clarification_prefer_to_mean
178
+ segment_class: explicit_cue_segment
179
+ entry: outside_approved_cue
180
+ termination: shared_bounded_termination
181
+ output: shared_cue_segment_output
182
+ syntax: to_clarify_i_prefer_term_to_mean_meaning
183
+ - id: correction_means
184
+ segment_class: explicit_cue_segment
185
+ entry: outside_approved_cue
186
+ termination: shared_bounded_termination
187
+ output: shared_cue_segment_output
188
+ syntax: approved_correction_prefix_quoted_or_code_term_means_meaning
189
+ prefixes: [actually, correction, not_quite, instead, rather]
190
+ bounds:
191
+ maximum_term_utf8_bytes: 256
192
+ maximum_meaning_utf8_bytes: 4096
193
+ maximum_acronym_utf8_bytes: 32
194
+ maximum_acronym_words: 32
195
+ segment_grammar:
196
+ schema_version: agentera.personalGlossarySegmentGrammar.v1
197
+ segment_class: explicit_cue_segment
198
+ states: [outside, cue, inline_meaning, continuation, structural_config, terminated, rejected]
199
+ input_classes:
200
+ - approved_cue
201
+ - non_empty_inline_meaning
202
+ - continuation_line
203
+ - blank_line
204
+ - next_cue
205
+ - structural_fragment
206
+ - comment
207
+ - list_boundary
208
+ - indentation
209
+ - nested_marker
210
+ - block_scalar
211
+ - prose
212
+ - unsupported
213
+ - eof
214
+ initial_state: outside
215
+ terminal_states: [terminated, rejected]
216
+ entry:
217
+ from: outside
218
+ input: approved_cue
219
+ to: cue
220
+ accepted_forms:
221
+ - quoted_means
222
+ - definition_list_colon
223
+ - acronym_stands_for
224
+ - acronym_parenthetical
225
+ - by_i_mean
226
+ - use_for
227
+ - use_to_mean
228
+ - refers_to
229
+ - clarification_prefer_to_mean
230
+ - correction_means
231
+ unsupported_reason: unsupported_transition
232
+ termination:
233
+ start_state: inline_meaning
234
+ continuation_state: continuation
235
+ terminal_state: terminated
236
+ required: non_empty_inline_meaning
237
+ boundary_inputs: [blank_line, next_cue, structural_fragment, comment, list_boundary]
238
+ maximum_meaning_utf8_bytes: 4096
239
+ limit: inclusive
240
+ over_limit_reason: meaning_bound_exceeded
241
+ output:
242
+ fields: [term, meaning, term_span, meaning_span]
243
+ span_encoding: utf8_byte_offsets
244
+ source_semantics: exact_source_bytes_without_unicode_normalization
245
+ continuation:
246
+ starts_after: non_empty_inline_meaning
247
+ preserves: exact_source_newlines_and_utf8_bytes
248
+ stops_on: [blank_line, next_cue, structural_fragment, comment, list_boundary]
249
+ maximum_utf8_bytes: 4096
250
+ limit: inclusive
251
+ over_limit: reject
252
+ over_limit_reason: meaning_bound_exceeded
253
+ structural_configuration:
254
+ state: structural_config
255
+ entry_inputs: [structural_fragment, list_boundary]
256
+ persist_inputs: [comment, blank_line, indentation, nested_marker, block_scalar, structural_fragment, list_boundary]
257
+ reject_inputs: [comment, blank_line, indentation, nested_marker, block_scalar, structural_fragment, list_boundary, approved_cue]
258
+ exit:
259
+ input: prose
260
+ condition: top_level_nonempty_noncomment_nonmarker_nonstructural_line
261
+ action: reject_fragment_then_exit
262
+ next_state: outside
263
+ definition_allowed: next_physical_line_only
264
+ reference_binding:
265
+ following: nearest_next_cue
266
+ this: nearest_previous_cue
267
+ exact_term: nearest_matching_cue
268
+ matching: unicode_caseless_exact_no_normalization
269
+ duplicate_target_reason: ambiguous_reference
270
+ missing_target_reason: ambiguous_reference
271
+ duplicate_target_outcome: exclude_bound_cue_only
272
+ missing_target_outcome: exclude_bound_cue_only
273
+ unrelated_cue_outcome: retain
274
+ deduplication:
275
+ identity: personal_mining_authority.term_identity.stable_term_identity
276
+ same_identity_same_meaning: retain_one_earliest_source_span
277
+ same_identity_different_meaning: reject_all_conflicting_meaning
278
+ unrelated_cue_outcome: retain
279
+ canonical_order:
280
+ fields: [term, meaning, term_span.start, meaning_span.start]
281
+ comparator: unicode_scalar_code_point_ascending
282
+ direction: ascending
283
+ transitions:
284
+ - {from: outside, input: approved_cue, to: cue, action: enter_cue_segment}
285
+ - {from: outside, input: structural_fragment, to: structural_config, action: enter_structural_config, reason: structural_fragment}
286
+ - {from: outside, input: list_boundary, to: structural_config, action: enter_structural_config, reason: structural_fragment}
287
+ - {from: outside, input: unsupported, to: rejected, action: reject, reason: unsupported_transition}
288
+ - {from: cue, input: non_empty_inline_meaning, to: inline_meaning, action: capture_inline_meaning}
289
+ - {from: cue, input: blank_line, to: rejected, action: reject, reason: empty_meaning}
290
+ - {from: cue, input: next_cue, to: rejected, action: reject, reason: empty_meaning}
291
+ - {from: cue, input: structural_fragment, to: rejected, action: reject, reason: empty_meaning}
292
+ - {from: cue, input: unsupported, to: rejected, action: reject, reason: unsupported_transition}
293
+ - {from: inline_meaning, input: continuation_line, to: continuation, action: append_original_newline}
294
+ - {from: inline_meaning, input: blank_line, to: terminated, action: finish_before_boundary}
295
+ - {from: inline_meaning, input: next_cue, to: terminated, action: finish_before_boundary}
296
+ - {from: inline_meaning, input: structural_fragment, to: terminated, action: finish_before_boundary}
297
+ - {from: inline_meaning, input: comment, to: terminated, action: finish_before_boundary}
298
+ - {from: inline_meaning, input: list_boundary, to: terminated, action: finish_before_boundary}
299
+ - {from: inline_meaning, input: prose, to: continuation, action: append_original_newline}
300
+ - {from: inline_meaning, input: eof, to: terminated, action: finish_at_eof}
301
+ - {from: inline_meaning, input: unsupported, to: rejected, action: reject, reason: unsupported_transition}
302
+ - {from: continuation, input: continuation_line, to: continuation, action: append_original_newline}
303
+ - {from: continuation, input: prose, to: continuation, action: append_original_newline}
304
+ - {from: continuation, input: blank_line, to: terminated, action: finish_before_boundary}
305
+ - {from: continuation, input: next_cue, to: terminated, action: finish_before_boundary}
306
+ - {from: continuation, input: structural_fragment, to: terminated, action: finish_before_boundary}
307
+ - {from: continuation, input: comment, to: terminated, action: finish_before_boundary}
308
+ - {from: continuation, input: list_boundary, to: terminated, action: finish_before_boundary}
309
+ - {from: continuation, input: eof, to: terminated, action: finish_at_eof}
310
+ - {from: continuation, input: unsupported, to: rejected, action: reject, reason: unsupported_transition}
311
+ - {from: structural_config, input: approved_cue, to: rejected, action: reject, reason: structural_fragment}
312
+ - {from: structural_config, input: structural_fragment, to: structural_config, action: reject_structural_fragment, reason: structural_fragment}
313
+ - {from: structural_config, input: comment, to: structural_config, action: reject_structural_fragment, reason: structural_fragment}
314
+ - {from: structural_config, input: blank_line, to: structural_config, action: reject_structural_fragment, reason: structural_fragment}
315
+ - {from: structural_config, input: indentation, to: structural_config, action: reject_structural_fragment, reason: structural_fragment}
316
+ - {from: structural_config, input: nested_marker, to: structural_config, action: reject_structural_fragment, reason: structural_fragment}
317
+ - {from: structural_config, input: block_scalar, to: structural_config, action: reject_structural_fragment, reason: structural_fragment}
318
+ - {from: structural_config, input: list_boundary, to: structural_config, action: reject_structural_fragment, reason: structural_fragment}
319
+ - {from: structural_config, input: prose, to: outside, action: reject_fragment_then_exit, reason: structural_fragment}
320
+ - {from: structural_config, input: unsupported, to: rejected, action: reject, reason: unsupported_transition}
321
+ - {from: structural_config, input: eof, to: rejected, action: reject, reason: structural_fragment}
322
+ - {from: terminated, input: unsupported, to: rejected, action: reject, reason: unsupported_transition}
323
+ - {from: rejected, input: unsupported, to: rejected, action: reject, reason: unsupported_transition}
324
+ fallback_transitions:
325
+ outside: {from: outside, input: unsupported, to: rejected, action: reject, reason: unsupported_transition}
326
+ cue: {from: cue, input: unsupported, to: rejected, action: reject, reason: unsupported_transition}
327
+ inline_meaning: {from: inline_meaning, input: unsupported, to: rejected, action: reject, reason: unsupported_transition}
328
+ continuation: {from: continuation, input: unsupported, to: rejected, action: reject, reason: unsupported_transition}
329
+ structural_config: {from: structural_config, input: unsupported, to: rejected, action: reject, reason: unsupported_transition}
330
+ terminated: {from: terminated, input: unsupported, to: rejected, action: reject, reason: unsupported_transition}
331
+ rejected: {from: rejected, input: unsupported, to: rejected, action: reject, reason: unsupported_transition}
332
+ reasons:
333
+ unsupported_transition: unsupported_transition
334
+ structural_fragment: structural_fragment
335
+ empty_meaning: empty_meaning
336
+ meaning_bound_exceeded: meaning_bound_exceeded
337
+ ambiguous_reference: ambiguous_reference
338
+ conflicting_meaning: conflicting_meaning
339
+ invalid_exit_boundary: invalid_exit_boundary
340
+ exclusions:
341
+ - examples
342
+ - mere_mentions
343
+ - direct_or_indirect_questions
344
+ - negations
345
+ - hypotheticals_conditionals
346
+ - future_language
347
+ - deterministic_sarcasm_markers
348
+ - quotations_attributed_to_others
349
+ - retractions_or_replacements_bound_to_the_same_term
350
+ - project_qualified_scope
351
+ - malformed_empty_or_oversized_spans
352
+ - incomplete_or_invalid_source_provenance
353
+ provenance:
354
+ required_source_fields:
355
+ - source_id
356
+ - evidence_anchor
357
+ - source_kind
358
+ - signal_type
359
+ - origin_id
360
+ - content_fingerprint
361
+ - author_class
362
+ - session_id
363
+ - project_id
364
+ allowed_source_kinds: [conversation_turn]
365
+ identity_fields_must_match_full_record: true
366
+ user_author_class: user
367
+ unresolved_or_invalid: stable_provenance_abstention
368
+ term_identity:
369
+ equality:
370
+ runtime: packages/cli/src/registries/glossaryTermIdentity.ts#unicodeCaselessExact
371
+ semantics: unicode_caseless_exact_no_normalization
372
+ rule: >-
373
+ Equality remains the existing locale-independent ECMAScript Unicode
374
+ caseless-exact matcher. Canonical, compatibility, accent, and locale
375
+ normalization are not added to equality.
376
+ stable_term_identity:
377
+ schema_version: agentera.personalGlossaryTermIdentity.v1
378
+ runtime: packages/cli/src/registries/glossaryTermIdentity.ts#stableGlossaryTermIdentity
379
+ algorithm: sha256
380
+ encoding: lowercase_hex
381
+ canonical_input: ecmascript_simple_case_fold_key
382
+ no_unicode_normalization: true
383
+ key_rule: >-
384
+ For each Unicode scalar, use its one-scalar locale-independent lowercase
385
+ mapping. Also derive the lowercase mapping of its one-scalar uppercase
386
+ mapping, but use that alternate only when unicodeCaselessExact confirms
387
+ the original scalar and alternate are equal. Concatenate those selected
388
+ scalars without normalization, then hash the resulting UTF-8 key with the
389
+ versioned schema name. This follows the exact matcher, including keeping
390
+ ASCII I and dotless ı distinct.
391
+ invariant: >-
392
+ Stable identity is an identifier for the existing equality class, not a
393
+ new comparison rule. It never lowercases, normalizes, trims, or changes
394
+ the term stored in a shared entry.
395
+ candidate_revision:
396
+ schema_version: agentera.personalGlossaryCandidateRevision.v1
397
+ runtime: packages/cli/src/registries/glossaryTermIdentity.ts#glossaryCandidateRevision
398
+ algorithm: sha256
399
+ encoding: lowercase_hex
400
+ canonicalization: >-
401
+ Hash canonical UTF-8 JSON with recursively code-point-sorted object keys,
402
+ preserved string bytes, and evidence records sorted by their canonical
403
+ JSON. The schema name, stable_term_identity, meaning, scope, complete
404
+ evidence identity set, policy_version, and generation are all included.
405
+ No field may be omitted, reordered semantically, normalized, or replaced
406
+ by a display label.
407
+ bound_fields:
408
+ - stable_term_identity
409
+ - meaning
410
+ - scope
411
+ - evidence
412
+ - policy_version
413
+ - generation
414
+ policy_version: agentera.personalGlossaryMiningPolicy.v1
415
+ generation: content_addressed_candidate_projection_generation
416
+ evidence: complete_source_id_anchor_identity_set
417
+ replay_rule: >-
418
+ A changed meaning, scope, evidence identity set, policy version, or
419
+ candidate generation creates a new revision. Identical canonical inputs
420
+ create the same revision and do not imply a second candidate.
421
+ provenance:
422
+ existing_inferred_variant: provenance_variants.personal_inferred_usage
423
+ conversation_variant: provenance_variants.personal_inferred_conversation
424
+ evolution:
425
+ status: explicit_append_only_extension
426
+ shared_primitive: unchanged
427
+ existing_variant_rule: >-
428
+ The firm two-independent-record instruction/configuration route remains
429
+ exactly two records with both anchors exposed.
430
+ conversation_rule: >-
431
+ Conversation inference uses the explicit conversation provenance variant
432
+ and retains every qualifying evidence record. It never projects a longer
433
+ evidence set into the two-record variant.
434
+ audit_rule: >-
435
+ The provenance kind, complete-evidence marker, source identities, anchors,
436
+ session identities, project identities, author class, and content
437
+ fingerprints remain inspectable by the later validator. Missing metadata,
438
+ unresolved anchors, or incomplete evidence fail closed.
439
+ consent_lifecycle:
440
+ authority: references/analysis/evidence-tier-authority.yaml
441
+ operation: Profile_Full
442
+ policy: reuse_existing_generation
443
+ refresh: forbidden_during_profile_full
444
+ reuse: >-
445
+ Profile Full may consume one existing local-history generation only when a
446
+ valid local-history consent binding and a readable current generation are
447
+ already present. Profile Full never refreshes, discovers, or rereads local
448
+ history to obtain consent.
449
+ discriminator:
450
+ inputs: [consent_status, generation_status, coverage_status, signal_tier_bounded]
451
+ order: [absent, stale, degraded, present]
452
+ values:
453
+ consent_status: [absent, valid, stale]
454
+ generation_status: [absent, current, stale]
455
+ coverage_status: [complete, cap_selected, truncated, flagged_incomplete]
456
+ signal_tier_bounded: [true, false]
457
+ predicates:
458
+ absent: consent_absent_or_generation_absent
459
+ stale: after_absent_consent_or_generation_stale
460
+ degraded: valid_current_actual_cap_truncation_or_flagged_incomplete
461
+ present: valid_current_complete_any_boundedness
462
+ exclusivity: >-
463
+ Evaluate the ordered predicates exactly once and select the first match.
464
+ Absent wins over stale, stale wins over degraded, and degraded wins over
465
+ present. No input tuple may select two states.
466
+ boundedness_rule: >-
467
+ A signal tier being inherently bounded does not make a generation
468
+ degraded. Degraded requires actual cap selection, truncation, or flagged
469
+ incomplete coverage.
470
+ states:
471
+ present:
472
+ condition: valid_current_complete_any_boundedness
473
+ action: reuse_generation_once_for_bounded_mining
474
+ result: mining_authorized
475
+ absent:
476
+ condition: consent_absent_or_generation_absent
477
+ action: skip_mining_without_read_or_refresh
478
+ result: degraded_consent_required
479
+ stale:
480
+ condition: after_absent_consent_or_generation_stale
481
+ action: reject_generation_for_new_mining_and_preserve_existing_entries
482
+ result: degraded_refresh_required
483
+ degraded:
484
+ condition: valid_current_actual_cap_truncation_or_flagged_incomplete
485
+ action: reuse_only_as_degraded_evidence_without_automatic_admission
486
+ result: degraded_coverage
487
+ recovery:
488
+ command: npx -y agentera@next report refresh --consent local-history
489
+ explicit_consent: required
490
+ after_refresh: retry_profile_full_with_the_new_generation
491
+ forbidden: [live_extraction_without_consent, silent_refresh, stale_generation_reuse]
492
+ rule: >-
493
+ Absent, stale, and degraded states expose the same explicit refresh
494
+ recovery without inspecting raw history. Recovery never changes project
495
+ state or project glossary publication.
496
+ profile_full:
497
+ status: active
498
+ entrypoint: Profile_Full
499
+ base_profile_order: write_base_profile_before_personal_glossary
500
+ existing_generation:
501
+ source: existing_consent_bound_user_local_candidate_projection
502
+ generation_count: 1
503
+ binding_fields: [generation, policy_version, candidate_projection_sha256]
504
+ list_limit: 20
505
+ continuation: forbidden
506
+ degraded: explicit_refresh_required_without_candidate_classification_or_publication
507
+ forbidden_effects:
508
+ - history_refresh
509
+ - history_collection
510
+ - candidate_discovery
511
+ - candidate_projection_write
512
+ - new_generation
513
+ - project_glossary_read
514
+ unavailable: preserve_base_profile_and_owned_section
515
+ deterministic_admission:
516
+ host_classification: semantic_evidence_not_admission_authority
517
+ command: candidate_contracts.layers.cli_decision
518
+ automatic: explicit_current_authorized_only
519
+ inferred: review_or_abstain
520
+ review:
521
+ queue_before_question: true
522
+ question_channel_maximum: 3
523
+ no_question_channel: durable_queue
524
+ output: bounded_review_cards_and_summary
525
+ publication:
526
+ command: ownership_contracts.personal.profile_output
527
+ automatic: explicit_current_authorized_only
528
+ no_decision_synthesis: true
529
+ failure: preserve_base_profile_and_owned_section
530
+ output:
531
+ profile_path: canonical_user_profile_authority
532
+ terminal: compact_bounded_summary
533
+ privacy:
534
+ owner: current_user
535
+ scope: user_local
536
+ storage:
537
+ root: $AGENTERA_PROFILE_DIR/intermediate/personal-glossary
538
+ project_storage: forbidden
539
+ records: [candidate_metadata, safe_excerpts, review_metadata, review_dispositions]
540
+ project_state: unchanged
541
+ filesystem:
542
+ authority: host_filesystem
543
+ configured_path: use_as_provided
544
+ outcomes: ordinary_permissions_and_io
545
+ same_user_path_manipulation: outside_agentera_threat_model
546
+ symlink_confinement: not_claimed
547
+ rule: >-
548
+ Agentera uses the configured profile path as provided. The host
549
+ filesystem owns permissions, symlink behavior, and same-user path
550
+ manipulation. Agentera does not add realpath or no-follow confinement.
551
+ rule: >-
552
+ Agentera deliberately selects only the configured user profile path for
553
+ mining records. It never selects .agentera, TODO.md, progress, the
554
+ project glossary, or another project path as projection storage. A user
555
+ configuration or same-user filesystem change does not become an
556
+ Agentera path-confinement claim.
557
+ content_exclusion:
558
+ owner: glossary_content_policy
559
+ classification: actual_secret_or_sensitive_value
560
+ conceptual_terminology: eligible
561
+ candidate_fields: [term, meaning]
562
+ candidate_action: reject_before_projection
563
+ candidate_reason: secret_content
564
+ excerpt_action: omit_complete_excerpt_before_projection
565
+ secret_classes:
566
+ - api_keys
567
+ - access_tokens
568
+ - passwords
569
+ - cookies
570
+ - private_keys
571
+ - authorization_headers
572
+ - personal_contact_data
573
+ - session_identifiers
574
+ - runtime_store_paths
575
+ rule: >-
576
+ A term or meaning containing an actual credential, session, or other
577
+ sensitive value is not a glossary candidate and is rejected with the
578
+ stable secret_content reason. Field names and ordinary conceptual
579
+ terminology remain eligible. If candidate-adjacent context contains an
580
+ actual secret or sensitive value, omit the complete excerpt. Never redact
581
+ and retain part of that excerpt.
582
+ excerpts:
583
+ purpose: bounded_review_context_only
584
+ max_utf8_bytes: 500
585
+ forbidden_content:
586
+ - raw_transcript
587
+ - raw_tool_arguments
588
+ - raw_runtime_store_paths
589
+ - raw_session_identifiers
590
+ - secret_or_sensitive_content
591
+ - unrelated_conversation
592
+ failure: omit_complete_excerpt_before_persistence
593
+ reviews:
594
+ owner: current_user
595
+ required_fields:
596
+ - candidate_id
597
+ - candidate_revision
598
+ - semantic_fingerprint
599
+ - generation
600
+ - policy_version
601
+ - disposition
602
+ - disposed_at
603
+ dispositions: [accept, correct, reject, defer]
604
+ trusted_disposition_authority: current_user
605
+ authentication:
606
+ receipt_schema_version: agentera.personalGlossaryReviewApproval.v1
607
+ issuer: agentera-local-host
608
+ subject: current_user
609
+ trusted_channel: agentera-local-host-ipc
610
+ required_fields:
611
+ - schema_version
612
+ - issuer
613
+ - subject
614
+ - trusted_channel
615
+ - review_id
616
+ - candidate_id
617
+ - candidate_revision
618
+ - candidate_projection_sha256
619
+ - semantic_fingerprint
620
+ - generation
621
+ - policy_version
622
+ - disposition
623
+ - corrected_meaning
624
+ - corrected_scope
625
+ - disposed_at
626
+ - expires_at
627
+ - nonce
628
+ - signature
629
+ proof: >-
630
+ The local host signs an explicit current-user action. The verifier
631
+ checks the trusted host public key before accepting the receipt; a
632
+ model, agent, imported transcript, or unbound text field cannot create
633
+ proof by asserting issuer or subject values.
634
+ binding_fields: [review_id, candidate_id, candidate_revision, candidate_projection_sha256, semantic_fingerprint, generation, policy_version, disposition, corrected_meaning, corrected_scope, disposed_at]
635
+ forbidden_principals: [agent, model, imported_record, generic_consent]
636
+ correction:
637
+ correct_fields: [corrected_meaning, corrected_scope]
638
+ non_correct_values: null
639
+ corrected_scope_values: [personal]
640
+ corrected_meaning_max_utf8_bytes: 4096
641
+ rule: >-
642
+ Only a signed correct action may carry a complete bounded corrected
643
+ meaning and the personal scope. Other dispositions carry null correction
644
+ fields. Corrected content remains user-local review metadata and must
645
+ pass the same secret and sensitive-content exclusion as a candidate.
646
+ signature:
647
+ algorithm: ed25519
648
+ encoding: base64url
649
+ key_source: user_local_trusted_host_key
650
+ signed_fields:
651
+ - schema_version
652
+ - issuer
653
+ - subject
654
+ - trusted_channel
655
+ - review_id
656
+ - candidate_id
657
+ - candidate_revision
658
+ - candidate_projection_sha256
659
+ - semantic_fingerprint
660
+ - generation
661
+ - policy_version
662
+ - disposition
663
+ - corrected_meaning
664
+ - corrected_scope
665
+ - disposed_at
666
+ - expires_at
667
+ - nonce
668
+ verification: trusted_host_public_key_signature_check
669
+ freshness:
670
+ max_age_seconds: 300
671
+ disposed_at: trusted_host_clock
672
+ expires_at_required: true
673
+ rule: disposed_at_must_not_be_future_and_expires_at_must_be_after_now
674
+ replay:
675
+ nonce: required_unique_receipt_nonce
676
+ index: user_local_consumed_receipt_digest_index
677
+ exact_replay: no_op_only_when_nonce_and_receipt_digest_match
678
+ conflicting_replay: reject_reused_nonce_with_changed_bindings_or_signature
679
+ terminal_disposition:
680
+ terminal: [accept, correct, reject]
681
+ pending: [defer]
682
+ retention:
683
+ pending_excerpt_days: 30
684
+ terminal_excerpt_days: 0
685
+ review_metadata_days_after_terminal: 90
686
+ accepted_entry: ownership_contracts.personal.retention_and_decay
687
+ pending_review_metadata: retained_until_terminal_or_purge
688
+ terminal_review_metadata: retained_for_90_days_after_disposition
689
+ rule: >-
690
+ Safe excerpts expire after 30 days and are removed immediately when a
691
+ review becomes terminal. Disposition metadata remains for 90 days after
692
+ a terminal disposition to suppress the same revision, then expires.
693
+ Accepted glossary entries follow the existing personal profile decay
694
+ authority and never retain an excerpt.
695
+ purge:
696
+ authority: current_user
697
+ trigger: explicit_authenticated_user_request_or_retention_expiry
698
+ removes: [candidate_metadata, safe_excerpts, review_metadata, review_dispositions]
699
+ behavior: atomic_remove_user_local_records_before_next_read
700
+ project_state: untouched
701
+ profile_entry: not_implicitly_deleted
702
+ boundaries:
703
+ pending: purge_removes_excerpt_and_metadata_immediately
704
+ terminal: purge_removes_excerpt_and_metadata_before_next_read
705
+ accepted_profile_entry: purge_does_not_implicitly_delete_profile_entry
706
+ recovery: >-
707
+ A purge is local and irreversible to the mining records. A later run
708
+ requires fresh consent-bound evidence and creates no project-side record.
709
+ candidate_projection:
710
+ status: active
711
+ runtime: packages/cli/src/analytics/personalGlossaryCandidateProjection.ts#projectPersonalGlossaryCandidates
712
+ schema_version: agentera.personalGlossaryCandidateProjection.v1
713
+ owner: deterministic_discovery_projection
714
+ input: validated_completed_explicit_and_recurring_capsules_with_transient_source_project_ids_and_candidate_adjacent_excerpts
715
+ output: bounded_user_local_candidate_projection_with_safe_excerpts_and_selection_report
716
+ implementation_boundary: >-
717
+ This runtime selects and persists only bounded candidate metadata and safe
718
+ review context. Candidate retrieval is the separate private
719
+ candidate_retrieval operation. It does not add project or public-state
720
+ candidate reads, host classification, CLI admission, review-disposition
721
+ writes, profile publication, project-glossary access, or project-state
722
+ effects.
723
+ selection:
724
+ candidates_max: 50
725
+ project_ids_max_per_candidate: 100
726
+ source_families:
727
+ explicit: [personal_explicit_definition]
728
+ recurring: [personal_inferred_usage, personal_inferred_conversation]
729
+ algorithm: least_retained_source_family_then_project_then_canonical_candidate
730
+ tie_break: candidate_id_then_candidate_revision_then_capsule_sha256
731
+ project_identity:
732
+ schema_version: agentera.personalGlossaryProjectionProjectIdentity.v1
733
+ algorithm: sha256
734
+ input: canonical_utf8_json_of_exact_transient_project_id
735
+ output: lowercase_hex
736
+ rule: >-
737
+ Projection-only project labels are used transiently to allocate
738
+ diversity. Persisted allocation fields and reports contain only this
739
+ exact-byte, no-normalization project identity. The validated capsule
740
+ keeps its separately authority-required provenance unchanged.
741
+ coverage: >-
742
+ Each selection round prefers the represented source family with the
743
+ fewest retained candidates, then the candidate whose represented project
744
+ has the fewest retained candidates. A capped or uncovered family or
745
+ project reports degraded coverage with retained and dropped counts.
746
+ excerpts:
747
+ source_max_utf8_bytes: 4096
748
+ max_per_candidate: 1
749
+ authority: personal_mining_authority.privacy.excerpts
750
+ input_rule: candidate_adjacent_text_must_contain_the_exact_candidate_term
751
+ output_fields: [text, expires_at, redacted]
752
+ compatibility:
753
+ redacted_field: retained_for_v1_consumers
754
+ new_projection_value: false
755
+ omission_reasons: [no_excerpt, unrelated_context, source_bound_exceeded, unsafe_tool_arguments, unsafe_content]
756
+ rule: >-
757
+ Sort transient excerpts canonically, retain at most one complete safe
758
+ excerpt, and omit secret-bearing, sensitive, unsafe, or unrelated text
759
+ without echoing it. The v1 redacted field remains for schema compatibility,
760
+ but new projections set it to false and never persist partial redactions.
761
+ retention:
762
+ authority: personal_mining_authority.privacy.retention
763
+ purge: personal_mining_authority.privacy.purge
764
+ rule: >-
765
+ Pending candidate excerpts expire after the authority's thirty-day
766
+ period. Retention maintenance may remove only expired safe excerpts;
767
+ a current-user-authorized purge removes the complete user-local
768
+ projection before the next read. Review-disposition persistence remains
769
+ outside this runtime.
770
+ persistence:
771
+ root: $AGENTERA_PROFILE_DIR/intermediate/personal-glossary
772
+ file: candidate-projection.json
773
+ canonicalization: candidate_contracts.canonicalization
774
+ fields: [schema_version, owner, generation, policy_version, retained_at, candidates, report, projection_sha256]
775
+ replay: byte_identical_projection_is_unchanged_replay
776
+ project_storage: forbidden
777
+ public_reads: forbidden
778
+ private_machine_reads: [candidate_retrieval, cli_decision]
779
+ review_disposition_writes: forbidden
780
+ rule: >-
781
+ Write one private canonical projection file at the configured user
782
+ profile path using ordinary filesystem I/O. The file contains validated
783
+ capsules, hashed project identities, safe excerpts, and a bounded report
784
+ only. Never serialize a raw project path, .agentera state, raw excerpt
785
+ source, or review disposition, and never deliberately select project
786
+ storage.
787
+ candidate_retrieval:
788
+ status: active
789
+ owner: private_user_local_candidate_retrieval
790
+ runtime: packages/cli/src/cli/commands/personalGlossaryCandidateReads.ts#runPersonalGlossaryCandidateReadsCommand
791
+ input: current_validated_user_local_candidate_projection_bound_to_current_tier_generation
792
+ current_generation:
793
+ source: current.json_readable_bounded_evidence_tier_generation
794
+ projection_generation: exact_match_required
795
+ unavailable_behavior: current_generation_unavailable
796
+ stale_projection_behavior: projection_stale
797
+ command:
798
+ canonical: npx -y agentera@next report personal-glossary-candidates
799
+ namespace: report
800
+ format: json
801
+ project_checkout: not_required
802
+ list:
803
+ schema_version: agentera.personalGlossaryCandidateRetrieval.v1
804
+ default_limit: 20
805
+ maximum_limit: 50
806
+ max_serialized_utf8_bytes: 32768
807
+ order: candidate_id_then_candidate_revision_then_capsule_sha256
808
+ projection_binding_field: candidate_projection_sha256
809
+ filters:
810
+ source_family: [explicit, recurring]
811
+ provenance_kind_from: candidate_projection.selection.source_families
812
+ scope: [personal, ambiguous]
813
+ cursor:
814
+ authority: references/artifacts/state-storage-authority.yaml#entity_target.public_retrieval.policy.cursor
815
+ vocabulary: opaque_snapshot_cursor
816
+ binding: [collection, generation, policy_version, filters, limit, order, snapshot]
817
+ invalid_behavior: cursor_invalid
818
+ unavailable_behavior: cursor_snapshot_unavailable
819
+ summaries: >-
820
+ List returns only bounded candidate summaries, projection-local selection
821
+ abstention counts, derived safe-context availability and omission or
822
+ expiry counts, and the current coverage report. It never returns a
823
+ meaning, project label, project key, raw evidence identity, excerpt text,
824
+ or a per-row expanded command.
825
+ abstentions: >-
826
+ Upstream mining abstentions are not retained in a candidate projection and
827
+ are never reconstructed. This read reports only bounded projection-local
828
+ candidate-selection and safe-context omission counts.
829
+ coverage: >-
830
+ Coverage remains the validated current projection report and is not
831
+ recomputed from a list filter or page.
832
+ safe_context_view:
833
+ authority: personal_mining_authority.privacy.retention
834
+ retention_days: 30
835
+ expiry: expires_at_lte_read_time_is_unavailable
836
+ mutation: forbidden
837
+ snapshot: effective_availability_bound_to_opaque_cursor_snapshot
838
+ rule: >-
839
+ Candidate retrieval derives current safe-context availability from the
840
+ persisted projection at read time. An excerpt at or after its expiry is
841
+ omitted from list and exact output without writing the projection. The
842
+ derived availability contributes to the opaque cursor snapshot, so a
843
+ continuation from a prior availability view is unavailable.
844
+ exact:
845
+ schema_version: agentera.personalGlossaryCandidateRetrieval.v1
846
+ required_bindings: [candidate_id, candidate_revision, generation, policy_version]
847
+ projection_binding_field: candidate_projection_sha256
848
+ occurrences_max: 100
849
+ safe_context_max_utf8_bytes: 500
850
+ max_serialized_utf8_bytes: 32768
851
+ occurrence:
852
+ schema_version: agentera.personalGlossaryCandidateOccurrence.v1
853
+ identity: opaque_sha256_of_validated_evidence_and_candidate_binding
854
+ allowed_fields: [occurrence_id, source_kind, signal_type, author_class]
855
+ rule: >-
856
+ Exact read first validates the readable current tier generation, the
857
+ projection's exact generation binding, and every requested candidate
858
+ binding. It returns only the bounded validated occurrence
859
+ projection, its candidate_projection_sha256 binding, and a currently
860
+ available validated safe excerpt context.
861
+ Raw source, anchor, session, project, fingerprint, project-key, and
862
+ filesystem values are never emitted.
863
+ rule: >-
864
+ Candidate retrieval is read-only, non-interactive, and user-local. It never
865
+ refreshes or purges evidence, acquires consent, records review state, reads
866
+ a project glossary, selects project storage, or changes the persisted
867
+ projection. It derives an expiry-aware safe-context read view, reuses the
868
+ canonical opaque snapshot cursor construction, and fails closed before
869
+ emitting candidate data when the current generation is unavailable, the
870
+ projection is stale, or a continuation or exact binding is malformed,
871
+ unavailable, or mismatched.
872
+ review_records:
873
+ status: active
874
+ owner: user_local_review_lifecycle
875
+ runtime: packages/cli/src/analytics/personalGlossaryReviewRecords.ts#queuePersonalGlossaryReviewRecord
876
+ input: current_validated_review_required_cli_decision_and_host_receipt
877
+ trusted_host_key:
878
+ root: $AGENTERA_PROFILE_DIR/intermediate/personal-glossary
879
+ file: trusted-local-host.json
880
+ schema_version: agentera.personalGlossaryTrustedLocalHost.v1
881
+ fields: [schema_version, owner, subject, public_key_spki_base64url]
882
+ owner: current_user
883
+ public_key_algorithm: ed25519
884
+ max_serialized_utf8_bytes: 4096
885
+ rule: >-
886
+ The configured user-local host key names the current-user subject and one
887
+ Ed25519 SPKI public key. It is read only to verify a local-host IPC receipt;
888
+ it is never accepted from command input, project state, agent text, or output.
889
+ persistence:
890
+ root: $AGENTERA_PROFILE_DIR/intermediate/personal-glossary
891
+ file: review-records.json
892
+ schema_version: agentera.personalGlossaryReviewStore.v2
893
+ record_schema_version: agentera.personalGlossaryReviewRecord.v2
894
+ owner: current_user
895
+ fields: [schema_version, owner, records, replay_index, store_sha256]
896
+ record_fields:
897
+ - schema_version
898
+ - owner
899
+ - review_id
900
+ - candidate_id
901
+ - candidate_revision
902
+ - candidate_capsule_sha256
903
+ - candidate_projection_sha256
904
+ - host_receipt_sha256
905
+ - cli_decision_sha256
906
+ - semantic_fingerprint
907
+ - generation
908
+ - policy_version
909
+ - scope
910
+ - reason
911
+ - status
912
+ - disposition
913
+ - review_record
914
+ - reopen_reason
915
+ - queued_at
916
+ - terminal_at
917
+ - expires_at
918
+ - record_sha256
919
+ records_max: 100
920
+ replay_index_fields: [nonce_sha256, receipt_sha256, expires_at]
921
+ replay_entries_max: 100
922
+ record_max_serialized_utf8_bytes: 8192
923
+ max_serialized_utf8_bytes: 1048576
924
+ canonicalization: candidate_contracts.canonicalization
925
+ order: review_id_asc
926
+ replay: exact_current_binding_is_unchanged_replay_and_exact_receipt_is_idempotent
927
+ conflict: changed_receipt_nonce_binding_or_signature_fails_before_effects
928
+ suppression_binding: [candidate_id, semantic_fingerprint, scope, policy_version]
929
+ suppression_dispositions: [reject, defer]
930
+ reopen_reasons: [policy_changed, scope_changed, meaning_changed]
931
+ project_storage: forbidden
932
+ forbidden_fields:
933
+ - term
934
+ - meaning
935
+ - excerpt
936
+ - raw_evidence
937
+ - source_id
938
+ - evidence_anchor
939
+ - session_id
940
+ - project_id
941
+ - source_path
942
+ - tool_content
943
+ - review_approval
944
+ - signature
945
+ - nonce
946
+ rule: >-
947
+ Persist only bounded current-user review metadata. Generation and policy
948
+ bindings must be non-secret, non-path metadata identifiers; the current
949
+ content-addressed tier generation is an allowed opaque digest. A record contains
950
+ opaque candidate and receipt bindings, a safe scope, deterministic review
951
+ reason, lifecycle status, disposition, optional canonical review record,
952
+ visible reopening reason, and canonical digests. Only a correct canonical
953
+ review record may retain its authority-approved corrected meaning. It never
954
+ persists a term, excerpt, raw evidence identity, host proof, profile content,
955
+ project identity, path, or tool content. The bounded replay index stores only
956
+ nonce and receipt digests until receipt expiry. Exact current queue replay or
957
+ exact receipt replay is idempotent; changed nonce content fails before a write.
958
+ compatibility:
959
+ accepted_store_schema_versions:
960
+ - agentera.personalGlossaryReviewStore.v1
961
+ - agentera.personalGlossaryReviewStore.v2
962
+ accepted_record_schema_versions:
963
+ - agentera.personalGlossaryPendingReviewRecord.v1
964
+ - agentera.personalGlossaryReviewRecord.v2
965
+ read_mutation: forbidden
966
+ migration_operation: disposition_only
967
+ scope_derivation: current_validated_host_receipt_only
968
+ invalid_behavior: fail_before_effects
969
+ preserved_bindings:
970
+ - review_id
971
+ - candidate_id
972
+ - candidate_revision
973
+ - candidate_capsule_sha256
974
+ - candidate_projection_sha256
975
+ - host_receipt_sha256
976
+ - cli_decision_sha256
977
+ - semantic_fingerprint
978
+ - generation
979
+ - policy_version
980
+ - reason
981
+ legacy_digest: validate_before_migration
982
+ migrated_digest: reseal_v2_lifecycle_record
983
+ rule: >-
984
+ Canonical v1 pending review stores remain readable without a write. Only
985
+ disposition may compat-decode one valid v1 record after it revalidates the
986
+ current receipt and projection. It derives the missing scope only from that
987
+ current validated receipt, preserves the listed immutable bindings and review
988
+ identity, and atomically writes the v2 store and replay state. Invalid or
989
+ ambiguous v1 input fails before effects. Untouched valid v1 records remain
990
+ byte-for-byte v1 records inside the v2 store until their own disposition.
991
+ queue:
992
+ command:
993
+ canonical: npx -y agentera@next report personal-glossary-reviews
994
+ namespace: report
995
+ input_flag: --input
996
+ stdin_value: '-'
997
+ format: json
998
+ project_checkout: not_required
999
+ request:
1000
+ schema_version: agentera.personalGlossaryReviewQueueRequest.v1
1001
+ required_fields: [schema_version, receipt]
1002
+ additional_fields: forbidden
1003
+ max_utf8_bytes: 16384
1004
+ decision_outcome: review_required
1005
+ current_bindings:
1006
+ - candidate_id
1007
+ - candidate_revision
1008
+ - candidate_capsule_sha256
1009
+ - candidate_projection_sha256
1010
+ - host_receipt_sha256
1011
+ - cli_decision_sha256
1012
+ - semantic_fingerprint
1013
+ - generation
1014
+ - policy_version
1015
+ - reason
1016
+ result:
1017
+ schema_version: agentera.personalGlossaryReviewQueueResult.v1
1018
+ statuses: [queued, unchanged_replay, suppressed, reopened]
1019
+ max_utf8_bytes: 4096
1020
+ no_question_channel: queue_without_prompt_or_disposition
1021
+ rule: >-
1022
+ Queue revalidates one bounded host receipt through the current deterministic
1023
+ CLI decision before a write. Only a current review_required decision may
1024
+ create pending metadata. The command does not prompt, accept a disposition,
1025
+ write a profile entry, read or change project state, or mutate the candidate
1026
+ projection.
1027
+ disposition:
1028
+ command:
1029
+ canonical: npx -y agentera@next report personal-glossary-reviews
1030
+ namespace: report
1031
+ input_flag: --input
1032
+ stdin_value: '-'
1033
+ format: json
1034
+ project_checkout: not_required
1035
+ request:
1036
+ schema_version: agentera.personalGlossaryReviewDispositionRequest.v1
1037
+ required_fields: [schema_version, review_id, receipt, approval]
1038
+ additional_fields: forbidden
1039
+ max_utf8_bytes: 16384
1040
+ result:
1041
+ schema_version: agentera.personalGlossaryReviewDispositionResult.v1
1042
+ statuses: [disposed, unchanged_replay]
1043
+ max_utf8_bytes: 4096
1044
+ publication_authorization:
1045
+ dispositions: [accept, correct]
1046
+ fields: [review_id, review_record_sha256]
1047
+ rule: >-
1048
+ Disposition accepts only a current queued review and a complete signed
1049
+ current-user local-host approval. It verifies the configured trusted public
1050
+ key, exact receipt fields and bindings, current clock freshness, replay index,
1051
+ current projection, policy, and semantic fingerprint before a user-local write.
1052
+ Accept and correct create an opaque authorization for the existing personal
1053
+ publish command. Reject and defer never publish. The operation does not read
1054
+ project state, mutate the candidate projection, or change PROFILE.md.
1055
+ retrieval:
1056
+ command:
1057
+ canonical: npx -y agentera@next report personal-glossary-reviews
1058
+ namespace: report
1059
+ format: json
1060
+ project_checkout: not_required
1061
+ owner: current_user
1062
+ schema_version: agentera.personalGlossaryReviewRetrieval.v1
1063
+ list:
1064
+ default_limit: 20
1065
+ maximum_limit: 50
1066
+ max_serialized_utf8_bytes: 32768
1067
+ order: queued_at_desc_then_review_id_asc
1068
+ filters:
1069
+ status: [pending, terminal]
1070
+ cursor:
1071
+ authority: references/artifacts/state-storage-authority.yaml#entity_target.public_retrieval.policy.cursor
1072
+ vocabulary: opaque_snapshot_cursor
1073
+ binding: [collection, owner, filters, limit, order, snapshot]
1074
+ invalid_behavior: cursor_invalid
1075
+ unavailable_behavior: cursor_snapshot_unavailable
1076
+ summaries: >-
1077
+ List returns only opaque identity and binding digests, stable reason,
1078
+ lifecycle status and dates, and bounded current, stale, or expired counts.
1079
+ It never returns candidate content, source identity, user identity, or
1080
+ approval material.
1081
+ exact:
1082
+ required_bindings: [review_id, candidate_id, candidate_revision, generation, policy_version]
1083
+ current_binding_field: candidate_projection_sha256
1084
+ max_serialized_utf8_bytes: 8192
1085
+ rule: >-
1086
+ Exact retrieval validates every selector, including a current
1087
+ content-addressed generation or non-secret, non-path generation and policy
1088
+ metadata bindings, the record digest, the current
1089
+ store owner, and the record's current candidate projection binding before
1090
+ emitting one private metadata record.
1091
+ rule: >-
1092
+ Reads are structured, non-interactive, private to the configured current-user
1093
+ profile, bounded, and mutation-free. They cannot select another owner or
1094
+ return stale, malformed, expired, or owner-mismatched metadata.
1095
+ maintenance:
1096
+ entrypoint: packages/cli/src/analytics/personalGlossaryReviewRecords.ts#maintainPersonalGlossaryReviewRecords
1097
+ exposure: authenticated_review_owner_only
1098
+ terminal_metadata_days: 90
1099
+ pending_metadata: retained_until_terminal_or_purge
1100
+ cache: replay_index_until_receipt_expiry
1101
+ purge: current_user_authorized_review_records_only
1102
+ forbidden_effects:
1103
+ - profile_entry
1104
+ - project_state
1105
+ - candidate_projection
1106
+ - publication
1107
+ rule: >-
1108
+ Separate maintenance removes only expired terminal review metadata and expired
1109
+ replay-index entries, or the complete review-record file after a
1110
+ current-user-authorized purge. It never creates a record during a read and
1111
+ never deletes or changes a profile entry, project state, candidate projection,
1112
+ or publication result.
1113
+ admission:
1114
+ inferred_automatic_admission: disabled
1115
+ inferred_review: allowed
1116
+ quality_threshold: references/analysis/personal-glossary-evaluation-authority.yaml#gates.release_authorizing_gate
1117
+ holdout: references/analysis/personal-glossary-evaluation-authority.yaml#holdout
1118
+ rule: >-
1119
+ The separate evaluation authority defines the frozen holdout, metric
1120
+ thresholds, and fail-closed release gate. Inferred meanings remain
1121
+ review-only, and no measured result enables inferred automatic admission.
1122
+
1123
+ candidate_contracts:
1124
+ schema_version: agentera.personalGlossaryCandidateContracts.v1
1125
+ status: active_partial
1126
+ implementation_boundary: receipt_validation_deterministic_decision_and_explicit_personal_publication_runtime
1127
+ purpose: >-
1128
+ Define five distinct, content-addressed boundaries for one personal glossary
1129
+ candidate. Discovery and projection own evidence, the semantic host owns only
1130
+ bounded classification, the CLI owns deterministic admission validation, the
1131
+ user owns review lifecycle, and one explicit personal publication operation
1132
+ owns the personal publication result. Candidate retrieval alone exposes
1133
+ private reads; personal publication alone changes the owned profile section.
1134
+ Neither replaces shared consumer or project publication contracts.
1135
+ canonicalization:
1136
+ algorithm: sha256
1137
+ encoding: lowercase_hex
1138
+ input: canonical_utf8_json
1139
+ object_keys: unicode_code_point_sorted
1140
+ evidence_records: canonical_json_sorted
1141
+ digest_field_rule: exclude_digest_field_from_body
1142
+ arrays: preserve_declared_order
1143
+ rule: >-
1144
+ Every digest hashes canonical UTF-8 JSON with recursively sorted object keys.
1145
+ Evidence records are sorted by their canonical JSON before capsule creation.
1146
+ A layer digest excludes only its own digest field. Strings are preserved
1147
+ exactly; no Unicode normalization or display-label substitution is allowed.
1148
+ identity:
1149
+ stable_term_identity: personal_mining_authority.term_identity.stable_term_identity
1150
+ candidate_revision: personal_mining_authority.term_identity.candidate_revision
1151
+ rule: >-
1152
+ candidate_id is the settled stable term identity. candidate_revision is
1153
+ produced only by the current revision helper, so meaning, evidence, policy,
1154
+ or generation changes produce a new revision while an unchanged equality
1155
+ class keeps the same stable identity.
1156
+ bounds:
1157
+ term_max_utf8_bytes: 256
1158
+ meaning_max_utf8_bytes: 4096
1159
+ binding_max_utf8_bytes: 256
1160
+ evidence_records_max: 100
1161
+ reason_max_utf8_bytes: 512
1162
+ corrected_meaning_max_utf8_bytes: 4096
1163
+ digest_bytes: 32
1164
+ rule: >-
1165
+ These limits apply before downstream effects. Candidate evidence remains a
1166
+ complete bounded projection, not a preview that can silently omit records.
1167
+ layers:
1168
+ evidence_capsule:
1169
+ owner: deterministic_discovery_projection
1170
+ schema_version: agentera.personalGlossaryCandidateCapsule.v1
1171
+ required_fields:
1172
+ - schema_version
1173
+ - owner
1174
+ - candidate_id
1175
+ - candidate_revision
1176
+ - term
1177
+ - meaning
1178
+ - scope
1179
+ - provenance_kind
1180
+ - evidence
1181
+ - evidence_complete
1182
+ - evidence_set_sha256
1183
+ - policy_version
1184
+ - generation
1185
+ - capsule_sha256
1186
+ additional_fields: forbidden
1187
+ binding_fields: [candidate_id, candidate_revision, generation, policy_version]
1188
+ body_digest: capsule_sha256
1189
+ evidence_owner: deterministic_discovery_projection
1190
+ evidence_source: personal_mining_authority.provenance
1191
+ evidence_required_fields: provenance_variant_required_fields
1192
+ evidence_complete: true
1193
+ forbidden_fields:
1194
+ - admission
1195
+ - decision
1196
+ - review
1197
+ - publication
1198
+ - mutation
1199
+ - trusted_publication_effect
1200
+ rule: >-
1201
+ The capsule contains only the bounded candidate projection and complete
1202
+ qualifying evidence identities. It has no host judgment, admission result,
1203
+ review disposition, or publication effect.
1204
+ host_classification_receipt:
1205
+ owner: semantic_host_classification
1206
+ schema_version: agentera.personalGlossaryHostClassificationReceipt.v1
1207
+ required_fields:
1208
+ - schema_version
1209
+ - owner
1210
+ - candidate_id
1211
+ - candidate_revision
1212
+ - candidate_capsule_sha256
1213
+ - candidate_projection_sha256
1214
+ - generation
1215
+ - policy_version
1216
+ - classification
1217
+ - semantic_fingerprint
1218
+ - receipt_sha256
1219
+ additional_fields: forbidden
1220
+ binding_fields:
1221
+ - candidate_id
1222
+ - candidate_revision
1223
+ - candidate_capsule_sha256
1224
+ - candidate_projection_sha256
1225
+ - generation
1226
+ - policy_version
1227
+ body_digest: receipt_sha256
1228
+ classification:
1229
+ fields: [term, meaning, scope, permanence, consistency, confidence]
1230
+ term: shared_primitive.fields.term
1231
+ meaning: shared_primitive.fields.meaning
1232
+ scope: packages/cli/src/registries/glossaryTermIdentity.ts#GlossaryCandidateScope
1233
+ permanence: shared_primitive.fields.permanence
1234
+ confidence: shared_primitive.fields.confidence
1235
+ consistency_values: [consistent, inconsistent, uncertain]
1236
+ forbidden_fields:
1237
+ - admission
1238
+ - decision
1239
+ - mutation
1240
+ - publication
1241
+ - review_bypass
1242
+ - trusted_publication_effect
1243
+ - project_glossary
1244
+ - project_publication
1245
+ rule: >-
1246
+ The host may classify only term, meaning, scope, permanence, consistency,
1247
+ and confidence. The receipt binds the exact capsule, current projection,
1248
+ revision, generation, and policy. It cannot choose admission, authorize
1249
+ mutation, bypass review, or supply a trusted publication effect.
1250
+ cli_decision:
1251
+ owner: deterministic_cli_admission_validation
1252
+ schema_version: agentera.personalGlossaryAdmissionDecision.v1
1253
+ required_fields:
1254
+ - schema_version
1255
+ - owner
1256
+ - candidate_id
1257
+ - candidate_revision
1258
+ - candidate_capsule_sha256
1259
+ - candidate_projection_sha256
1260
+ - host_receipt_sha256
1261
+ - classification_contract_version
1262
+ - semantic_fingerprint
1263
+ - generation
1264
+ - policy_version
1265
+ - outcome
1266
+ - reason
1267
+ - decision_sha256
1268
+ additional_fields: forbidden
1269
+ binding_fields:
1270
+ - candidate_id
1271
+ - candidate_revision
1272
+ - candidate_capsule_sha256
1273
+ - candidate_projection_sha256
1274
+ - host_receipt_sha256
1275
+ - classification_contract_version
1276
+ - semantic_fingerprint
1277
+ - generation
1278
+ - policy_version
1279
+ body_digest: decision_sha256
1280
+ outcomes: [automatic_admission, review_required, abstain]
1281
+ reason_codes:
1282
+ - explicit_current_authorized
1283
+ - inferred_requires_review
1284
+ - scope_ambiguous
1285
+ - classification_inconsistent
1286
+ - classification_changed
1287
+ - entry_conflict
1288
+ - evidence_retracted_or_conflicted
1289
+ - quality_gate_not_authorizing
1290
+ - scope_project
1291
+ - evidence_unavailable
1292
+ - evidence_changed
1293
+ reason_codes_by_outcome:
1294
+ automatic_admission: [explicit_current_authorized]
1295
+ review_required:
1296
+ - inferred_requires_review
1297
+ - scope_ambiguous
1298
+ - classification_inconsistent
1299
+ - classification_changed
1300
+ - entry_conflict
1301
+ - evidence_retracted_or_conflicted
1302
+ - quality_gate_not_authorizing
1303
+ abstain: [scope_project, evidence_unavailable, evidence_changed]
1304
+ automatic_admission:
1305
+ owner: deterministic_cli_admission_validation
1306
+ allowed_provenance: provenance_variants.personal_explicit_definition
1307
+ inferred_automatic_admission: disabled
1308
+ required_classification:
1309
+ scope: personal
1310
+ consistency: consistent
1311
+ term: exact_capsule_term
1312
+ meaning: exact_capsule_meaning
1313
+ current_evidence: required
1314
+ quality_gate: personal_mining_authority.admission.quality_threshold
1315
+ command:
1316
+ canonical: npx -y agentera@next report personal-glossary-decision
1317
+ namespace: report
1318
+ input_flag: --input
1319
+ stdin_value: '-'
1320
+ format: json
1321
+ project_checkout: not_required
1322
+ request:
1323
+ schema_version: agentera.personalGlossaryAdmissionRequest.v1
1324
+ required_fields: [schema_version, receipt]
1325
+ additional_fields: forbidden
1326
+ max_utf8_bytes: 16384
1327
+ result:
1328
+ schema_version: agentera.personalGlossaryAdmissionResult.v1
1329
+ fields: [schemaVersion, command, status, decision, reason, effects]
1330
+ statuses: [automatic_admission, review_required, abstain]
1331
+ max_utf8_bytes: 4096
1332
+ effects: []
1333
+ receipt_construction:
1334
+ schema_version: agentera.personalGlossaryAdmissionRequest.v2
1335
+ required_fields: [schema_version, candidate_id, candidate_revision, candidate_capsule_sha256, candidate_projection_sha256, generation, policy_version, classification]
1336
+ additional_fields: forbidden
1337
+ max_utf8_bytes: 16384
1338
+ result:
1339
+ schema_version: agentera.personalGlossaryAdmissionResult.v2
1340
+ fields: [schemaVersion, command, status, receipt, decision, reason, effects]
1341
+ statuses: [automatic_admission, review_required, abstain]
1342
+ max_utf8_bytes: 16384
1343
+ effects: []
1344
+ rule: >-
1345
+ The command accepts either one existing host receipt or one bounded host
1346
+ classification with every exact candidate binding through a structured
1347
+ file or stdin request. For the classification request, the CLI reads the
1348
+ current private projection, constructs the receipt including its semantic
1349
+ fingerprint and receipt digest, computes one deterministic outcome, and
1350
+ returns both receipt and decision. It emits JSON without changing a
1351
+ projection, review record, profile, project glossary, or project state.
1352
+ forbidden_fields: [host_authority, host_override, mutation, publication]
1353
+ rule: >-
1354
+ Only the deterministic CLI validator may emit an admission outcome. It
1355
+ validates the capsule and host receipt bindings before any later workflow;
1356
+ it does not itself write a profile, project glossary, or review record.
1357
+ review_record:
1358
+ owner: user_local_review_lifecycle
1359
+ schema_version: agentera.personalGlossaryReviewRecord.v1
1360
+ required_fields:
1361
+ - schema_version
1362
+ - owner
1363
+ - candidate_id
1364
+ - candidate_revision
1365
+ - candidate_capsule_sha256
1366
+ - host_receipt_sha256
1367
+ - cli_decision_sha256
1368
+ - semantic_fingerprint
1369
+ - generation
1370
+ - policy_version
1371
+ - disposition
1372
+ - corrected_meaning
1373
+ - corrected_scope
1374
+ - disposed_at
1375
+ - expires_at
1376
+ - record_sha256
1377
+ additional_fields: forbidden
1378
+ binding_fields:
1379
+ - candidate_id
1380
+ - candidate_revision
1381
+ - candidate_capsule_sha256
1382
+ - host_receipt_sha256
1383
+ - cli_decision_sha256
1384
+ - semantic_fingerprint
1385
+ - generation
1386
+ - policy_version
1387
+ body_digest: record_sha256
1388
+ storage: $AGENTERA_PROFILE_DIR/intermediate/personal-glossary
1389
+ dispositions_from: [personal_mining_authority.privacy.reviews.dispositions]
1390
+ authentication: personal_mining_authority.privacy.reviews.authentication
1391
+ forbidden_fields:
1392
+ - project_glossary
1393
+ - project_publication
1394
+ - profile_entry_mutation
1395
+ - trusted_host_authority
1396
+ rule: >-
1397
+ A review record is user-local lifecycle state bound to the exact candidate,
1398
+ semantic classification, generation, policy, and CLI decision. It is not a
1399
+ host classification receipt and cannot mutate project or profile state by
1400
+ itself.
1401
+ publication_result:
1402
+ owner: personal_profile_publication
1403
+ schema_version: agentera.personalGlossaryPublicationResult.v1
1404
+ required_fields:
1405
+ - schema_version
1406
+ - owner
1407
+ - candidate_id
1408
+ - candidate_revision
1409
+ - candidate_capsule_sha256
1410
+ - decision_sha256
1411
+ - review_record_sha256
1412
+ - generation
1413
+ - policy_version
1414
+ - status
1415
+ - profile_section_sha256
1416
+ - published_at
1417
+ - result_sha256
1418
+ additional_fields: forbidden
1419
+ binding_fields:
1420
+ - candidate_id
1421
+ - candidate_revision
1422
+ - candidate_capsule_sha256
1423
+ - decision_sha256
1424
+ - generation
1425
+ - policy_version
1426
+ body_digest: result_sha256
1427
+ command: ownership_contracts.personal.profile_output.command.canonical
1428
+ status_values_from: [ownership_contracts.personal.profile_output.command.output_statuses]
1429
+ forbidden_fields:
1430
+ - project_glossary
1431
+ - project_publication
1432
+ - consumer_precedence
1433
+ - review_authorization
1434
+ rule: >-
1435
+ This is the bounded result of explicit personal-profile publication only. It binds
1436
+ the validated decision and optional review record, reports the existing
1437
+ personal output status, and never changes Build-owned project publication.
1438
+ shared_invariance:
1439
+ shared_primitive: shared_primitive
1440
+ consumer_precedence: consumer_boundary.primary_selection
1441
+ project_publication: ownership_contracts.project.publication
1442
+ personal_project_isolation: ownership_contracts.personal.admission.isolation_rule
1443
+ rule: >-
1444
+ Candidate contracts add evidence and identity bindings without adding fields
1445
+ to the shared glossary entry. Consumers keep project precedence and Build
1446
+ publication unchanged; personal mining has no project glossary input.
1447
+ recovery:
1448
+ stale_or_mismatch: fail_closed_no_effects
1449
+ retry: >-
1450
+ Reject the layer before effects, reread the current bounded source contract,
1451
+ recompute the capsule and settled identities, and retry the downstream
1452
+ operation with all exact bindings. Never repair a stale receipt in place.
59
1453
 
60
1454
  provenance_variants:
61
1455
  personal_explicit_definition:
@@ -63,6 +1457,10 @@ provenance_variants:
63
1457
  evidence_count: 1
64
1458
  required_evidence_fields: [source_id, evidence_anchor, signal_type]
65
1459
  additional_evidence_fields: forbidden
1460
+ source_provenance:
1461
+ required_fields: [source_id, evidence_anchor, source_kind, signal_type, origin_id, content_fingerprint, author_class, session_id, project_id]
1462
+ allowed_source_kinds: [conversation_turn]
1463
+ identity_fields_must_match_full_record: true
66
1464
  allowed_signal_types: [correction, decision, instruction]
67
1465
  resolution_rule: >-
68
1466
  evidence_anchor resolves to source_id of exactly one retained
@@ -73,12 +1471,63 @@ provenance_variants:
73
1471
  evidence_count: 2
74
1472
  required_evidence_fields: [source_id, evidence_anchor, source_kind]
75
1473
  additional_evidence_fields: forbidden
1474
+ distinctness:
1475
+ source_ids: 2
1476
+ evidence_anchors: 2
76
1477
  allowed_source_kinds: [instruction_document, project_config_signal]
77
1478
  resolution_rule: >-
78
1479
  Each evidence_anchor resolves to its source_id in retained full evidence.
79
1480
  Both source_id and evidence_anchor must be pairwise distinct, so two
80
- signals or anchors resolving to one retained record fail. Both anchors
81
- remain exposed on the entry.
1481
+ signals or anchors resolving to one retained record fail. Both anchors
1482
+ remain exposed on the entry.
1483
+ personal_inferred_conversation:
1484
+ owner: personal
1485
+ evidence_count: variable
1486
+ minimum_evidence_count: 3
1487
+ required_evidence_fields:
1488
+ - source_id
1489
+ - evidence_anchor
1490
+ - source_kind
1491
+ - signal_type
1492
+ - session_id
1493
+ - project_id
1494
+ - content_fingerprint
1495
+ - author_class
1496
+ additional_evidence_fields: forbidden
1497
+ allowed_signal_types: [correction, decision, question, instruction, configuration]
1498
+ allowed_source_kinds: [conversation_turn]
1499
+ allowed_author_classes: [user]
1500
+ distinctness:
1501
+ source_ids: 3
1502
+ evidence_anchors: 3
1503
+ session_ids: 2
1504
+ project_ids: 2
1505
+ content_fingerprints: 3
1506
+ completeness_field: provenance.evidence_complete
1507
+ completeness_value: true
1508
+ completeness_authority: expected_qualifying_anchor_set_exact_match
1509
+ expected_evidence:
1510
+ binding: generation_bound
1511
+ context_fields: [generation, qualifying_evidence_anchors, qualifying_evidence_set_sha256]
1512
+ exact_set: required
1513
+ set_digest:
1514
+ algorithm: sha256
1515
+ encoding: lowercase_hex
1516
+ canonicalization: >-
1517
+ Hash canonical UTF-8 JSON containing the schema name, generation, and
1518
+ lexicographically code-point-sorted qualifying evidence anchors. The
1519
+ expected set digest is authoritative; list order is not.
1520
+ duplicate_rule: >-
1521
+ Reject duplicate source_id, evidence_anchor, or content_fingerprint at
1522
+ every list length, even when the list still meets the minimum count.
1523
+ admission: review_only
1524
+ resolution_rule: >-
1525
+ Retain every qualifying user-authored conversation record. At least three
1526
+ pairwise-distinct source identities, anchors, and content fingerprints must
1527
+ span at least two sessions and two projects. Agent-authored text may
1528
+ corroborate a later review but cannot satisfy this variant. The evidence
1529
+ list is complete, not a bounded preview; any unresolved, duplicated, or
1530
+ missing identity fails.
82
1531
  project_file:
83
1532
  owner: project
84
1533
  evidence_count: 1
@@ -97,14 +1546,21 @@ ownership_contracts:
97
1546
  status: active_partial
98
1547
  active:
99
1548
  - bounded_admission
1549
+ - bounded_explicit_discovery
1550
+ - bounded_candidate_projection
1551
+ - bounded_candidate_retrieval
1552
+ - public_receipt_construction
1553
+ - host_classification_receipt_validation
1554
+ - deterministic_cli_admission_decision
100
1555
  - explicit_classification
101
1556
  - inferred_evidence_check
102
- - profile_full_rendering
103
- - profile_persistence
1557
+ - authorized_personal_publication
1558
+ - profile_section_persistence
104
1559
  inactive: [lookup]
105
1560
  allowed_provenance:
106
1561
  - personal_explicit_definition
107
1562
  - personal_inferred_usage
1563
+ - personal_inferred_conversation
108
1564
  input:
109
1565
  tier: signal
110
1566
  authority: references/analysis/evidence-tier-authority.yaml
@@ -121,10 +1577,13 @@ ownership_contracts:
121
1577
  explicit:
122
1578
  candidate_signal_types: [correction, decision]
123
1579
  language_rule: >-
124
- Admit only a quoted or code-delimited term followed by explicit
125
- `means` language, or clarification language that combines `to clarify`
126
- with `prefer` and `to mean`. The classifier returns the stated term
127
- and meaning; unrelated correction or decision language abstains.
1580
+ The bounded explicit discovery grammar accepts only the ten forms in
1581
+ personal_mining_authority.explicit_discovery. Quoted or code-delimited
1582
+ means, standalone safe definition-list colons, exact acronym expansions,
1583
+ By X I mean Y, Use X for/to mean Y, To clarify X refers to Y, the
1584
+ clarification prefer form, and approved correction means forms are
1585
+ recognized. YAML/config labels, times, URLs, headings, citations,
1586
+ indirect questions, future language, and unbound prose are rejected.
128
1587
  evidence_count: 1
129
1588
  inferred:
130
1589
  candidate_signal_types: [instruction, configuration]
@@ -153,10 +1612,10 @@ ownership_contracts:
153
1612
  permanence: Remains independently classified and is not changed by evidence age or confidence decay.
154
1613
  authority: packages/cli/src/capabilities/profile/instructions.ts#Profile-format
155
1614
  profile_output:
156
- owner: profile_full
1615
+ owner: personal_profile_publication
157
1616
  lifecycle_callable: packages/cli/src/analytics/personalGlossaryProfile.ts#updatePersonalGlossaryProfile
158
1617
  command:
159
- canonical: npx -y agentera@next report profile-glossary
1618
+ canonical: npx -y agentera@next report personal-glossary-publish
160
1619
  namespace: report
161
1620
  input_flag: --input
162
1621
  stdin_value: "-"
@@ -164,25 +1623,53 @@ ownership_contracts:
164
1623
  dry_run_flag: --dry-run
165
1624
  project_checkout: not_required
166
1625
  request:
167
- schema_version: agentera.personalGlossaryUpdateRequest.v1
168
- required_fields: [schema_version, profile_path, as_of, fresh_entries, retained_history]
1626
+ schema_version: agentera.personalGlossaryPublishRequest.v1
1627
+ required_fields: [schema_version, receipt, decision, as_of]
1628
+ optional_fields: [review_authorization]
169
1629
  additional_fields: forbidden
1630
+ max_utf8_bytes: 16384
170
1631
  profile_path_rule: >-
171
- Pass exactly profile_context.profile.path returned by
172
- npx -y agentera@next prime --context profile --format json. The command never
173
- discovers a profile, project root, or project glossary.
174
- retained_history_shape: >-
175
- A list of source_id, evidence_anchor, source_kind, and signal_type
176
- records sufficient to validate fresh admitted entries. It may be
177
- empty when regeneration supplies no fresh entries because retained
178
- entries carry persisted provenance.
1632
+ Resolve only $AGENTERA_PROFILE_DIR/PROFILE.md through the canonical
1633
+ user-profile authority. The request cannot select a path, project
1634
+ root, project glossary, or other artifact.
1635
+ current_decision_rule: >-
1636
+ Accept either a complete CLI-owned automatic_admission decision with
1637
+ explicit_current_authorized reason and no review authorization, or one
1638
+ current review_required decision with an exact stored accept or correct
1639
+ authorization. Before effects, revalidate the current projection,
1640
+ capsule, receipt, generation, policy, semantic fingerprint, current
1641
+ meaning and revision, scope, conflict, retraction, secret content, and
1642
+ the existing decision rules. A review authorization never skips current
1643
+ evidence validation and does not permit project scope.
1644
+ review_authorization:
1645
+ required_fields: [review_id, review_record_sha256]
1646
+ additional_fields: forbidden
1647
+ dispositions: [accept, correct]
1648
+ source: personal_mining_authority.review_records.disposition.publication_authorization
1649
+ rule: >-
1650
+ The command rereads one current user-local review record, validates its
1651
+ canonical record hash and all receipt, decision, projection, policy,
1652
+ semantic-fingerprint, and revision bindings, then uses its approved
1653
+ corrected meaning and personal scope only for correct. No direct review
1654
+ record, correction, key, nonce, signature, profile path, or project path
1655
+ is accepted from publication input.
1656
+ date_rule: >-
1657
+ as_of is one injected ISO calendar date. Use it for lifecycle
1658
+ rendering and derive published_at as UTC midnight of that exact date;
1659
+ never read the wall clock for publication content or replay.
1660
+ result:
1661
+ schema_version: agentera.personalGlossaryPublicationResult.v1
1662
+ fields: [schema_version, owner, candidate_id, candidate_revision, candidate_capsule_sha256, decision_sha256, review_record_sha256, generation, policy_version, status, profile_section_sha256, published_at, result_sha256]
1663
+ max_utf8_bytes: 4096
179
1664
  output_statuses: [changed, unchanged_replay, dry_run_candidate]
180
1665
  rule: >-
181
- The packaged headless command validates the complete request before
182
- effects and invokes the lifecycle_callable without duplicating merge,
183
- decay, replacement, or persistence behavior. JSON is written to
184
- stdout; diagnostics use the shared invalid-input envelope. Dry-run
185
- computes the candidate without writing PROFILE.md.
1666
+ The packaged headless command accepts only one bounded structured
1667
+ receipt and CLI decision, revalidates authorization immediately before
1668
+ effects, and invokes the lifecycle_callable without duplicating merge,
1669
+ decay, replacement, or persistence behavior. It changes only the owned
1670
+ PROFILE.md Glossary section. JSON output contains opaque bindings only;
1671
+ diagnostics use stable generic envelopes. Dry-run computes a candidate
1672
+ without writing PROFILE.md.
186
1673
  section:
187
1674
  heading: "## Glossary"
188
1675
  start_marker: "<!-- agentera:personal-glossary:start -->"
@@ -221,10 +1708,19 @@ ownership_contracts:
221
1708
  repeated compounding from already-decayed confidence. Age alone never
222
1709
  removes an entry.
223
1710
  isolation_rule: >-
224
- The command and callable accept only a PROFILE.md path, fresh personal
225
- entries, retained personal-history evidence, and an injected ISO date.
226
- They have no project root, project glossary parameter, artifact lookup,
227
- or project file read.
1711
+ The command accepts only one receipt, one CLI decision, and an injected
1712
+ ISO date. It resolves the canonical user PROFILE.md path itself and has
1713
+ no project root, project glossary parameter, artifact lookup, or project
1714
+ file read.
1715
+ filesystem:
1716
+ authority: host_filesystem
1717
+ configured_path: canonical_user_profile_authority
1718
+ outcomes: ordinary_permissions_and_io
1719
+ same_user_path_manipulation: outside_agentera_threat_model
1720
+ symlink_confinement: not_claimed
1721
+ rule: >-
1722
+ Profile storage uses ordinary current-user filesystem permissions and
1723
+ atomic replacement. This contract does not claim symlink confinement.
228
1724
  project:
229
1725
  scope: repository
230
1726
  implementation:
@@ -1182,9 +2678,10 @@ consumer_boundary:
1182
2678
  rule: >-
1183
2679
  Audit remains mutation-free and Build project-glossary publication is active.
1184
2680
  Build, Discuss, Plan, and prime bounded glossary consumption are active, and
1185
- Build progress caveat publication is active. Personal Profile Full rendering
1186
- and persistence are active. Project-driven personal-profile mutation and
1187
- docs-mapping mutation remain deferred.
2681
+ Build progress caveat publication and explicit personal publication are active.
2682
+ Profile Full preserves an existing owned section, then uses only the current
2683
+ consent-bound personal generation and canonical authorized personal publication.
2684
+ Project-driven personal-profile mutation and docs-mapping mutation remain deferred.
1188
2685
 
1189
2686
  deferred_capability_contracts:
1190
2687
  profile:
@@ -1193,13 +2690,14 @@ deferred_capability_contracts:
1193
2690
  intended_behavior: personal_glossary_synthesis
1194
2691
  active_behavior:
1195
2692
  - ownership_contracts.personal.admission
1196
- - ownership_contracts.personal.profile_output
2693
+ - personal_mining_authority.profile_full
1197
2694
  inactive_behavior: [lookup]
1198
2695
  contracts:
1199
2696
  admission: ownership_contracts.personal.input
1200
2697
  provenance: ownership_contracts.personal.allowed_provenance
1201
2698
  confidence: shared_primitive.fields.confidence
1202
2699
  retention_and_decay: ownership_contracts.personal.retention_and_decay
2700
+ profile_full: personal_mining_authority.profile_full
1203
2701
  forbidden_current_claims: [lookup, project_glossary_consumption]
1204
2702
  audit:
1205
2703
  capabilities: [audit]