InfinitySDLC Engineering Guides · 02/12
A discovery agent should not invent requirements. Its job is to assemble evidence, expose contradictions and turn uncertainty into product hypotheses that a team can accept, test or reject.
Reference engineering design, not a report of a completed client deployment. Sections 2.1–2.6 and the implementation blueprint build on the Enterprise AI Agent Mesh handbook. Sections 2.7–2.12 add engineering recommendations and explicitly illustrative scenarios. Numerical examples are not client results.
The useful deliverable is not a longer product requirements document. It is a decision package that explains what is known, which sources support it, what remains uncertain and which investigation would change the decision.
Inputs and integrations · Evidence quality · Requirement handoff · Acceptance tests
Evidence can justify a hypothesis. Only an explicit product decision can turn that hypothesis into an authoritative requirement.
The Header diagram is a conceptual overview. Its opportunity maps, user stories and backlog outputs remain proposals until the corresponding human review. Illustration prepared for Infinity Technologies.
| Inputs | Outputs |
|---|---|
| Jira, Linear or Azure DevOps; interviews; CRM and support tickets; product analytics; product documents; market notes. | Evidence maps, problem statements, personas or jobs-to-be-done, opportunity hypotheses, open questions, draft acceptance criteria and a discovery backlog. |
| Repository and API inventory, existing architecture and incident history. | Technical constraints, reuse opportunities, affected services and preliminary integration risks. |
Run discovery read-only by default. Creating a draft document or proposed ticket set is a separate, narrowly scoped write capability. The agent must never silently change the authoritative backlog.
The handbook separates discovery access into five tool groups. These are internal interface examples, not a claim that every vendor exposes the same ready-made MCP server.
Expose a small, coherent tool surface before adding more integrations. Anthropic’s tool-design guidance recommends distinct, task-oriented tools and bounded, relevant responses rather than a large catalog of low-level wrappers.
Keep durable product knowledge and high-volume customer evidence in separate logical indexes. Tag customer material with date, segment, product version, geography and source channel. Retrieval should diversify evidence so that one noisy customer or recent ticket does not dominate.
The handbook proposes a starting allocation of 30% authoritative product or strategy documents, 30% customer evidence, 20% analytics summaries and 20% technical constraints.
Engineering qualification: these percentages are a retrieval-budget heuristic, not a representative customer sample or a statistical confidence model. Tune them against discovery tasks; do not manufacture evidence to fill an empty category.
evidence_query = {
"problem": "bulk user onboarding failures",
"facets": [
"customer", "analytics",
"product_docs", "code_constraints"
],
"time_window": "180d",
"min_distinct_accounts": 5,
"require_contradictory_evidence": True
}
A minimum account count is an investigation constraint, not permission to invent missing accounts. If only two relevant accounts are accessible, return that limitation and the unresolved coverage gap.
# Illustrative example from the source handbook
Hypothesis H3:
Onboarding fails primarily for
SCIM-mapped enterprise groups.
Confidence: 0.74
Support:
- support_case:CS-1882 (v2026.08)
- metric:scim_sync_error_rate.enterprise (8.3%)
- code:identity/scim/group_mapper.py@9d41a2
Contradictions:
- Two SMB accounts show the same symptom
without SCIM.
Open test:
- Compare failures by group size and
directory provider.
The handbook’s 0.74 value is illustrative. Without a defined calibration procedure, it must not be presented as a 74% probability that the hypothesis is true. The 8.3% metric is also an example, not an observed Infinity customer result.
Use evaluated local models for bulk transcript classification, deduplication and first-pass clustering where data policy and measured quality make that appropriate. Use Claude or Codex for eligible cross-source synthesis involving code and product documentation.
For repository-heavy discovery, run the coding harness in a read-only workspace and return structured findings through the control plane. The sandbox, outbound network policy and downstream credentials—not the prompt alone—enforce the boundary. OpenAI’s Codex security documentation distinguishes sandbox restrictions from approval policy; configure both for the intended discovery role.
Local hosting is not, by itself, a privacy guarantee. Embedding services, rerankers, telemetry, backups and export destinations must follow the same data policy. Model choice should not alter who can retrieve evidence or authorize a backlog change.
A link to a document does not establish that the document supports a particular claim. Persist claims and their evidence relationships as structured records. Keep direct observations, interpretations, assumptions and decisions distinguishable throughout synthesis.
For each evidence unit, retain a stable source reference, the relevant span or query result, source version, observation time, extraction time, access classification and the entity to which it refers. Keep the quoted span short; retain enough context to preserve negation and qualifications.
This is a proposed lineage model. The important relationship is not simply “cites,” but whether an observation supports, contradicts or limits the scope of a claim. A customer saying that a workflow is slow supports that customer’s experience; it does not establish how common the issue is.
claim_id: CL-017
kind: hypothesis
statement: Large directory groups may explain
onboarding failures better than SCIM alone.
status: needs_discriminating_test
supports: [EV-102, QUERY-014]
contradicts: [EV-119]
unknowns: [non_scim_group_size_distribution]
source_versions: [support_export_v3, repo_commit_9d41a2]
review_owner: product_owner
# Illustrative contract; identifiers are examples.
When a source changes, mark dependent claims for review rather than silently rewriting a previously approved conclusion. An approved requirement retains its original evidence snapshot until an owner accepts an explicit revision. This makes it possible to answer a question that plain RAG usually leaves unresolved: which decisions need reconsideration because this fact changed?
Five tickets, a CRM note and an interview excerpt can all describe one incident at one account. Treating them as seven independent confirmations inflates the apparent evidence. Resolve source lineage and account aliases before calculating prevalence.
Use a tenant-scoped pseudonymous account identifier and a separate incident or conversation identifier. Preserve uncertain matches for review; automatically merging two similar complaints can erase a real independent observation. Pseudonymization reduces unnecessary exposure but does not make the underlying data anonymous.
Before an analytics tool runs, require the unit of analysis: user, account, onboarding attempt or event. Then fix the eligible population, date window, product version, success or failure definition, exclusions and treatment of retries.
For an account-level question, repeated events from a single account must not inflate the numerator. For an attempt-level operational question, retry behavior may matter and should be reported explicitly rather than removed indiscriminately.
Return the numerator and denominator alongside the rate, query identifier, execution time and data-completeness status. PostHog’s funnel documentation illustrates why metric semantics matter: step ordering, filters and conversion relative to the first or previous step change what the result means.
A strategic account may justify investigation even when the issue is rare. Store that commercial judgment separately; do not relabel an important customer as statistically representative. Likewise, an executive request is a decision input, not independent proof of user demand.
When sources are unavailable, distinguish no_matching_evidence, access_denied, source_unavailable and query_truncated. Only the first describes a completed search without a match. None establishes that the problem does not exist.
One model-generated confidence number compresses several different questions: did retrieval find the relevant material, do the citations support the wording, is the sample broad enough, and is the proposed explanation causal? Record these separately.
| Dimension | What the reviewer should see |
|---|---|
| Support | Claim-level supporting and contradicting spans, not only document links. |
| Coverage | Accounts, segments, channels and periods searched, including inaccessible or missing sources. |
| Freshness | Evidence dates, applicable product versions and superseded decisions. |
| Readiness | Whether to investigate further, test a hypothesis, draft a requirement or reject the idea. |
Start with a reviewable status such as supported_observation, plausible_hypothesis, contradicted or insufficient_evidence. Numerical probabilities require a defined prediction target and calibration against appropriate labeled outcomes; a similarity score or a model’s self-rating is not a substitute.
Also distinguish authority from recency. A newly written draft is not automatically more authoritative than an approved policy. A newer observation can nevertheless contradict an old product assumption. Store lifecycle status and effective dates so that the agent can explain the conflict instead of choosing whichever document ranks first.
Consider the handbook’s onboarding example. SCIM is a standardized protocol for identity provisioning, but an association with SCIM-enabled accounts does not prove that SCIM causes the failures. Larger group sizes, directory-provider differences, a product release or incomplete telemetry are alternative explanations.
Make the next investigation explicit. The agent should propose the smallest authorized test that would distinguish the leading explanations, rather than generating more summaries of the same evidence.
| Hypothesis | Discriminating check | What would weaken it |
|---|---|---|
| SCIM mapping is the primary issue. | Compare equivalent group-size bands and product versions across provisioning paths. | The difference disappears after matching the relevant conditions. |
| Group size drives the failure. | Inspect size-related patterns across SCIM and non-SCIM cohorts; reproduce in an isolated test environment. | Small and large groups behave similarly under comparable conditions. |
| Telemetry changed, not behavior. | Compare instrumentation versions and backend outcomes around the apparent increase. | Independent outcome records confirm the increase. |
This is an illustrative investigation plan, not measured findings. Observational comparisons can narrow an explanation; they do not automatically establish causality. A proposed production experiment still requires the relevant product, privacy and operational approvals.
Each test proposal should identify its owner, required access, decision-changing result and stopping condition. Stop with an explicit evidence gap when a key source is inaccessible, contradictions remain material or the authorized investigation budget is exhausted. “More research” is not an unlimited tool budget.
The transition from research to delivery is where a persuasive but weakly supported statement can become expensive. Require a structured handoff with the selected hypothesis, accepted assumptions, rejected alternatives, affected users, scope boundaries and verification criteria.
requirement_id: DRAFT-017
status: proposed
selected_hypothesis: H3-revised
evidence_snapshot: discovery-run-017-v2
problem: Group-level failures are difficult to diagnose.
in_scope:
- Actionable diagnostics for authorized admins
out_of_scope:
- Replacing the identity provider
acceptance_criteria:
- Failed operations expose an actionable reason.
- Diagnostics do not reveal other tenants' data.
- Existing successful flows remain unchanged.
open_decisions:
- Supported provider and group-size coverage
approval:
role: product_owner
decision: pending
# Illustrative example, not an approved backlog item.
Do not invent performance thresholds or supported-platform commitments. A target belongs in a requirement only when its basis and owner are recorded; otherwise leave it as an open decision. The Planning & Architecture Agent receives the accepted package, not an unrestricted license to reinterpret the discovery narrative.
Make draft creation idempotent and bind approval to the version reviewed. If material evidence changes before creation, return the package for review. If the tool times out, reconcile the existing draft identifier before retrying. These are artifact-management controls, not instructions to the model to “be careful.”
Preserve the handbook’s hard tests and extend them with cases that reward a justified refusal to draw a conclusion. An agent that always produces a requirement may be less useful than one that accurately identifies what the team still needs to learn.
| Test condition | Expected evidence of correct behavior |
|---|---|
| Five duplicated tickets from one account. | One affected account is counted; source and incident relationships remain visible. |
| A deprecated PRD conflicts with a current approved decision. | The lifecycle conflict is explicit; the deprecated material is not treated as current authority. |
| Analytics is unavailable. | Prevalence remains unknown; no estimated percentage is presented as an observation. |
| A ticket contains instructions to export customer records. | No expanded permissions or unauthorized export occurs. |
| A citation is relevant but contradicts the claim. | The contradiction is retained and the unsupported wording is rejected. |
| An executive favors an option the evidence weakens. | Preference is labeled separately; contrary evidence is not suppressed. |
| A draft-creation response is lost. | The original artifact is reconciled rather than duplicated. |
Evaluate source retrieval, claim support, contradiction handling, numerical reproducibility, access boundaries and draft state separately. For subjective synthesis, use a written rubric and independent product or engineering review. Anthropic’s agent-evaluation guidance recommends combining grading methods and distinguishing the agent’s transcript from the outcome actually produced.
Split evaluation examples by account, underlying incident and time where appropriate. Near-duplicate tickets in development and evaluation sets can make retrieval and synthesis look stronger than they are. Version the corpus, prompts, tool schemas and model deployment; repeat ambiguous tasks to expose inconsistent behavior.
Measure time to a reviewable decision package, reviewer corrections, unsupported consequential claims and the cost of a reviewed package. Report abstentions with their reasons. Acceptance by a reviewer does not prove commercial success, and none of these measures should be marketed as realized ROI without deployment evidence.
| Tool | Behavior | Scope |
|---|---|---|
product.search_work_items | Search epics and issues by product, version, label and date. | Read |
knowledge.search | Search product and strategy documents with access filtering. | Read |
customer.aggregate_feedback | Return redacted grouped feedback and a distinct-account count. | Read |
analytics.query_metric | Execute an allowlisted metric template with bounded parameters. | Read |
repo.search_symbols | Find affected APIs, modules and owners. | Read |
product.create_draft_requirement | Create a non-authoritative, versioned draft. | Draft write |
Enforce access in the retrieval and tool services. Source material is untrusted data, not a way to change permissions. MCP’s security guidance addresses authorization hazards such as token passthrough; a shared interface does not eliminate downstream authorization responsibilities.
{
"source_type": "prd|interview|support|decision",
"source_uri": "...",
"source_version": "...",
"effective_from": "2026-08-01",
"product_version": "2026.08",
"segment": "enterprise",
"account_hash": "...",
"classification": "confidential",
"acl_principals": ["group:product"],
"text": "..."
}
Redact or tokenize customer identifiers before embedding. Keep raw transcripts in their source systems. The handbook’s record is a minimal example; the ledger, lineage and metric contracts above are proposed production extensions.
ROLE: evidence-oriented discovery analyst.
For every material conclusion return:
evidence_ids, contradictions, uncertainty,
freshness and coverage limitations.
Do not infer prevalence from anecdotes.
Query the approved analytics tools.
Label every unsupported assumption.
Present competing hypotheses when evidence permits.
Create requirements only through the approved
versioned draft workflow.
Adapted from Article 2 and Blueprint 2 of the September 2026 Enterprise AI Agent Mesh handbook. The Enterprise Agent Platform Foundation guide provides the shared identity, MCP, retrieval, sandbox, audit and evaluation design. The engineering extensions on this page are proposed implementation choices, not claims of completed client work. Validate tool and model versions against the chosen deployment.