Files
future-map-OPEN/data/insights-hub/skills/review-future-map-taxonomy/SKILL.md
T
2026-08-19 17:39:51 -06:00

266 lines
12 KiB
Markdown

---
name: review-future-map-taxonomy
description: Review newly added Future Map Insights Hub records against the controlled taxonomy, core corpus, identity-document interests, and prior taxonomy decisions; aggregate missing-term candidates; produce monthly evidence-backed proposals; or apply explicitly approved additions while synchronizing schemas and validation. Use for recurring or on-demand taxonomy maintenance, taxonomy drift review, candidate-term triage, alias or merge recommendations, and approved taxonomy updates under data/insights-hub.
---
# Review Future Map Taxonomy
## Skill Shape
- `system`: govern incremental taxonomy discovery, proposal, approval, application, validation, and receipts.
- Modes: `proposal` by default; `apply` only with explicit human approval.
## Contract
Keep the Future Map vocabulary adaptive without allowing uncontrolled growth. Discover missing terms automatically, ground recommendations in the corpus, preserve prior valid labels, and require human authority before mutating the taxonomy or schema.
## Requires
- Read access to:
- `../../config/taxonomy.json`
- `../../schemas/future-map-signal.schema.json`
- `../../hrecords/`
- `../../review/` and `../../runtime/receipts/`
- `../../../../content-index.json` and `../../../../core-docs/`
- `C:\projects\es\eddie-soehnel-portable-identity-document-OPEN\eddie-soehnel-portable-identity-document.md`, especially **My Interests and Focus Across Personal and Professional Domains**
- Write access under `data/insights-hub/` for proposals, receipts, and explicitly approved updates.
- Explicit repository-owner approval naming the proposal or accepted terms before `apply` mode.
## Ensures
- Default execution creates proposals only.
- The review begins after the latest successful taxonomy-review receipt.
- Existing canonical terms remain valid unless an approved migration exists.
- Concepts remain reusable interpretive mechanisms; topics remain durable subject domains.
- Synonyms, spelling variants, products, vendors, and file formats do not become competing canonical terms without a documented reason.
- Applied concept additions appear identically in the taxonomy and schema enum.
- Validation and a successful receipt complete before reporting an applied update.
- No commit, push, scheduling, publishing, or private-source mutation occurs without separate authorization.
## Inputs
- Optional mode: `proposal` or `apply`; default to `proposal`.
- Optional review end date; default to the current run time.
- For `apply`: an approved proposal path plus the exact accepted recommendation IDs or canonical terms.
- Optional user-supplied strategic candidates that may bypass frequency thresholds but not human review.
## Outputs
Proposal mode may create:
- `../../review/taxonomy-candidates.jsonl`
- `../../review/taxonomy-proposals/YYYY-MM-taxonomy-review.json`
- `../../review/taxonomy-proposals/YYYY-MM-taxonomy-review.md`
- `../../runtime/receipts/taxonomy-review-TIMESTAMP.json`
Apply mode may additionally update:
- `../../config/taxonomy.json`
- `../../schemas/future-map-signal.schema.json`
- `../../review/taxonomy-backfill-candidates.jsonl`
Do not hand-edit generated Insights Hub records or indexes while applying taxonomy changes.
## Classification Boundary
Use `future_map_concepts` for reusable lenses, mechanisms, transitions, or causal patterns that help explain multiple signals. Examples include `tipping-point`, `barbellization`, `network-effects`, and `legacy-to-emergent-transition`.
Use `core_topics` for durable areas of subject matter that improve retrieval and grouping. Examples include `computer vision`, `industrial policy`, `citizen science`, and `kayaking and paddlesports`.
Use an alias recommendation when a phrase is a synonym, acronym, spelling variant, singular/plural variant, or narrower wording already represented by a canonical term.
Do not promote:
- A company, vendor, product, protocol implementation, file format, or transient headline unless it is a durable tracking domain.
- A term that merely repeats a title or source wording.
- A concept supported only by frequency but lacking reusable explanatory value.
- A topic whose retrieval value is adequately served by an existing canonical term.
## Workflow
### 1. Resolve The Review Window
Find the newest successful receipt whose `workflow` is `review-future-map-taxonomy`. Start after its recorded `review_window.end` and end at the requested time or current run time.
If no successful receipt exists, do not silently scan the full history. Ask the user for a start date or explicit approval for a full-corpus bootstrap.
Record the exact boundaries and selected record IDs before reasoning.
### 2. Load Authoritative Context
Read the current taxonomy and schema enum. Read previous candidate entries, proposals, accepted decisions, rejected decisions, and deferrals when present.
Use `content-index.json` to retrieve only relevant core documents. Consult the identity document's Interest and Focus section as a durable attention map, not as proof that every listed word must become a canonical term.
### 3. Discover Candidates Deterministically
Extract recurring nouns, noun phrases, named frameworks, mechanisms, and classification language from records in the review window. Normalize case, whitespace, punctuation, hyphenation, and singular/plural forms. Group exact and likely variants before counting.
For each candidate, retain:
- Proposed term and taxonomy section.
- First and last observation dates.
- Independent supporting record IDs and count.
- Representative evidence snippets or field references.
- Closest existing terms.
- Likely aliases.
- Whether the term also appears in core documents or the Interest and Focus section.
- Initial status and confidence.
Do not send private absolute source paths, credentials, contact identifiers, or unrelated paid-source text into proposal artifacts.
### 4. Apply Evidence Thresholds
- One independent record: retain as a candidate.
- Three independent records: present for monthly review.
- Five or more independent records: mark as a strong addition candidate.
- Strategically important missing concepts may be proposed below the frequency threshold when the proposal states why they materially improve the Future Map system.
Frequency is evidence, not an automatic approval rule. Count independent records, not repeated uses within one record.
### 5. Reason Against The Corpus
For every reviewable candidate, compare its meaning and retrieval value with the taxonomy, relevant core-document sections, identity interests, existing signals, and prior decisions.
Assign exactly one recommendation:
- `add-concept`
- `add-topic`
- `add-alias`
- `merge-with-existing`
- `defer`
- `reject`
Include:
- `candidate_id`
- `candidate`
- `recommendation`
- `canonical_term`
- `taxonomy_section`
- `aliases`
- `supporting_record_ids`
- `supporting_record_count`
- `closest_existing_terms`
- `corpus_evidence`
- `reason`
- `confidence`
- `review_status`
Use `human-review-required` for every proposed mutation.
### 6. Write The Review Package
Write a structured JSON proposal and a concise Markdown rendering of the same decisions. The Markdown report must show candidate, recommendation, evidence count, corpus grounding, existing overlap, reason, confidence, and approval status.
Keep candidate history append-only where practical. Do not erase rejected or deferred decisions; they prevent repeated rediscovery.
### 7. Stop For Approval
In `proposal` mode, stop after validation and receipt creation. Clearly state that no taxonomy mutation occurred.
Do not infer approval from a request to review, summarize, schedule, or automate. Apply only when the repository owner explicitly identifies the proposal and accepted recommendation IDs or terms.
### 8. Apply Approved Decisions
In `apply` mode:
1. Re-read the approved proposal and current taxonomy.
2. Refuse recommendations not explicitly approved.
3. Detect intervening taxonomy changes and re-evaluate conflicts.
4. Add approved canonical terms in normalized alphabetical order.
5. Synchronize every new `future_map_concepts` value with the schema enum.
6. Do not add an alias structure when none exists; keep approved aliases in the proposal and request separate approval for an alias-registry design.
7. Never delete or rename an existing term without an approved migration and backfill plan.
8. Generate backfill candidates for historical records likely to benefit from new canonical terms.
### 9. Validate
After proposal mode, verify:
- Review-window boundaries and record counts are reproducible.
- Every recommendation references evidence.
- Candidate and recommendation IDs are unique.
- No proposal artifact contains prohibited private data.
- The receipt accurately states that no taxonomy mutation occurred.
After apply mode, also verify:
- Both JSON files parse.
- No canonical concept or topic is duplicated.
- Every prior canonical term remains unless an approved migration says otherwise.
- Taxonomy concepts and the schema concept enum match exactly.
- All derivative records validate.
- The Insights Hub tests pass.
- `git diff --check` passes.
- The receipt lists every changed file and approved decision.
Use:
```text
python data/insights-hub/scripts/future_map_pipeline.py validate
python -m unittest discover -s data/insights-hub/tests -v
git diff --check
```
Do not report success when a required check fails.
## Receipt
Write a machine-readable receipt containing:
- `workflow`: `review-future-map-taxonomy`
- `mode`
- `status`: `success`, `partial`, or `failed`
- `started_at` and `completed_at`
- `review_window.start` and `review_window.end`
- Selected record IDs and count
- Candidate, reviewable, proposed, accepted, deferred, and rejected counts
- Authoritative sources consulted
- Proposal and backfill paths
- Files changed
- Approval evidence for apply mode
- Validation commands and results
- Warnings, failures, and unresolved questions
- Framework provenance: local template version `0.3.1` and files used
A failed or partial receipt must not advance the next review window.
## Model And Method Routing
- Use deterministic processing for date selection, record enumeration, normalization, counting, sorting, duplicate checks, JSON parsing, schema comparison, and validation.
- Use model reasoning for semantic grouping, concept-versus-topic decisions, strategic exceptions, corpus interpretation, aliases, merges, and rejection rationale.
- Escalate ambiguous migrations, broad merges, strategic exceptions, and changes that could invalidate historical records to human review.
- Stop safely when required inputs, approval evidence, or validation capabilities are unavailable.
## Edge Cases
- Treat a changed or deleted prior receipt as an audit warning.
- Do not advance the review window after an incomplete run.
- Merge repeated mentions from one record into one independent observation.
- Preserve conflicting candidate interpretations in the proposal rather than forcing consensus.
- Re-evaluate a previously rejected term only when new evidence or changed meaning is documented.
- Treat identity-document interests as durable context, not automatic taxonomy entries.
- Treat newly added core documents as corpus evidence but not as automatic approval.
- Flag a term that plausibly belongs in both sections; recommend the primary placement and explain whether dual placement improves retrieval.
## Anti-Patterns
Do not:
- Add every frequent word.
- Let a monthly automation approve its own proposal.
- Use frequency as the sole decision rule.
- create near-duplicate canonical terms to preserve source phrasing.
- Rewrite historical records automatically after adding a term.
- Change signal types, audiences, rights policy, publication policy, or unrelated schemas.
- Commit, push, publish, or schedule the workflow without separate authorization.
## Ratchet Rules
Turn repeated mistakes into a durable candidate rule, normalization rule, edge case, validation check, or test recommendation. Never weaken approval gates, prior-term preservation, privacy boundaries, or schema synchronization to make a run pass.
## Final Report
Report the review window, records examined, candidates retained, recommendations by type, strategic exceptions, proposal paths, approvals applied, taxonomy and schema changes, backfill candidates, validation results, receipt path, unresolved issues, and whether Git, publishing, or scheduling occurred.