Animal Species – System Architecture
Animal Species has its own reference model, intake validation and publishing implementation. It shares selected WordPress, media and Agenti infrastructure with plants, but it is not a copy of the Plant Species domain. This article records the inspected architecture as of 7 October 2026.
System Architecture → Animal Architecture → Animal Species. Compare Plant Species — System Architecture and Plant Individuals — System Architecture for their separate ownership boundaries.
Sources and Responsibilities
- Stored domain data:
wp_animal_speciesowns the animal-species record.wp_animal_common_group_kbowns group-to-KB-category mappings;wp_animal_familiesandwp_animal_emojisprovide controlled reference catalogs. The selected family is stored as text rather than a family foreign key. - Executable rules: no equivalent unified field contract currently exists for Animal Species. Rules are distributed among the web form/handler, Agenti bridge validators and enumerations, the processor’s inline JSON schema and database constraints. Publisher formatting is implemented separately.
- Derived/read models: catalogs, category resolution and export payloads are read representations of stored records. A downstream mirror is not the master source.
- Generated/published representations: animal KB articles, taxonomy placement, SEO metadata and display sorting are publisher outputs. Their body is generated content, not the sources and responsibilities for stored species data.
- AI-generated results: identification proposals and external enrichment/evidence are attributable processing results. AI text or a successful commit does not independently prove a field observation or publication permission.
- Legacy/compatibility sources: dated planning, outdated initializer code and administrative copies are not competing domain contracts. Current live schema and actual executable routes must be distinguished from older descriptions.
Actual model and meaningful differences
The species record includes taxonomic identity and ecological, local-occurrence, risk, observation and story information. The common-group catalog maps animal categories into the KB. It is not a plant location or harvest-group structure. Family and emoji lookup tables are animal-specific catalogs.
The inspected animal model has no counterpart of plant cultivars, species Parts, propagation relationships, Plant Individuals or Harvest Walk placement. This describes the current implementation, not a restriction on future approved development. Animal storage uniquely constrains the scientific name as well as the KB slug; Plant Species does not have the same scientific-name uniqueness constraint.
Create, intake and editing
Insert Animal Species uses insert-animal-species and its insert_animal_species_form shortcode. The create handler checks authorization and a request nonce, but maintains its own field checks.
agenti-animal-species-bridge exposes authenticated catalog, validate and commit routes under /yuyo-agenti/v1/animals/, using animal capabilities. wp_yuyo_agenti_animal_audit records source-based commit/idempotency evidence. The existing capability bundle’s historical role name does not establish a new animal-domain role model.
Telegram uses shared wp_yuyo_agenti_telegram_drafts and transport/identity infrastructure. Unlike the inspected plant submission path, animal submission invokes agenti-animal-processor.php. That processor produces a proposal, obtains external evidence/enrichment, validates it and commits the species and audit record before triggering the publisher. Original input, proposal, validated stored record and publication are distinct stages.
Generic administrative table editing is a separate operation, not the animal intake validator. No dedicated equivalent typed update API was identified.
Media, evidence and external representations
The animal record stores photo URLs and corresponding alternative-text arrays. Web input can supply URLs; Agenti resolves WordPress attachments to photo URLs. Related media identifiers refer to wp_youtube_pool, not WordPress post IDs. Media processing does not itself demonstrate consent to public use; the daily-report permission workflow must not be assumed to apply automatically to a different intake.
The processor uses Wikipedia enrichment and GBIF evidence with source/check information. These sources support traceability but do not prove every local occurrence or identify a photographed specimen beyond uncertainty. yuyo-animals-export provides a token-protected read-only export for the Huelal-Totga mirror. The mirror is a downstream representation; its external rendering was not inspected in this review.
Publisher ownership
create-kb-article-from-animal-species-table, class YUYO_Create_Animal_KB, handles the post-commit hook and a bounded administrative refresh path for missing/flagged pages. It generates the article body, places it using animal group/category mappings, associates source identity, and updates publication references and refresh state. yuyo-animal-kb-sorting supplies animal display sorting.
This publisher owns the generated body and does not implement the Plant Individual publisher’s reviewed-marker merge model. See Updating KB Pages from Database, while retaining the distinction between publisher ownership models. Publication settings described here are current implementation evidence, not a new authorization policy.
Known inconsistencies / technical debt
- The bridge enforces family/group consistency; the corresponding web-form check is commented out. These intake paths do not currently enforce identical validation.
- The bridge audit-table initializer describes an older email/approval schema. The live audit table and current commit path instead use source/source-item identity. Re-running old initialization against the current model is an architectural risk, not an approved migration.
- The publisher uses hard-coded
wp_table names while the bridge derives the configured prefix. This is a deployment portability inconsistency. - Field rules remain distributed, and generic administrative edits are outside the dedicated intake boundary. This documentation task does not unify or change them.
- Dated Agenti planning and legacy headers do not describe all current processing/publishing behavior.
Related documentation
Agenti Roles & Editorial Architecture explains shared roles and editorial context, with its dated planning state retained. The repository’s ARCHITECTURE.md, current schema inspection and the named animal implementations provide supporting architecture evidence. Plant propagation and Individual presentation documentation describe other domains and must not be treated as animal contracts.