Research-phase agent of the LinkGen content-intelligence and publishing system.
The specialist agent responsible for market/audience research: it consumes a
ResearchRequest and produces contract-conforming research artifacts —
ResearchReport and MarketSignal[] (each signal cites a captured source).
Design highlights (see AGENTS.md in the parent for the master rules):
- Deterministic by construction — ids are derived with uuid5
(
agent_framework.ids.deterministic_id), time comes from the injected context clock, and outputs are pure functions of the input. The same request always yields byte-identical artifacts. - LLM output is untrusted — model JSON arrives router-validated and is
sanitized field-by-field (shared
agent_framework.sanitizehelpers) before entering contract models; invented source ids are dropped, duplicate signals deduped by normalized description, entries capped. - Mock-first ($0 development) — the default provider is the offline
deterministic
MockLLMProvidervia theModelRouter. No network, no credentials, no cost. - No privileged tools — no publishing/scheduling authority; publishing belongs to the publishing subsystem only.
Input (validated against the ResearchRequest contract):
{"request": {"request_id": "...", "run_id": "...", "focus": "...",
"objectives": [], "creators": [], "domains": []}}Output:
{"report": {...}, "signals": [...]}Fault injection (mock mode): documented prompt markers (RATE_LIMIT,
TIMEOUT, NETWORK_FAILURE, AUTH_FAILURE, INVALID_OUTPUT) make failure
paths deterministic in tests.
Sibling child repositories (not PyPI-installable; resolved via
tests/conftest.py sys.path composition):
linkgen_contracts— contract layerlinkgen_config— settings/modes/cost policyagent-framework— AgentBase/AgentContext/AgentConfig + shared sanitizersproviders/llm— ModelRouter (mock provider)
python -m pytest
40 tests. Tests must not require network access, a paid provider, or the system clock.
Phase 08 — implemented (1.0.0), gate-accepted. Original scaffold upgraded from Phase 00.5.
Proprietary — © Entelechy Labs. All rights reserved. No license is granted to use, copy, modify, or distribute this software, except as agreed in writing with the copyright holder.