Knowledge Portal · engineering documentation

Skip to content

Federated from workspace · PRD-000 · zaixos-company-platform/app/Modules/Proposal/README.md Do not edit canonical truth here — update the source repo, then re-run npm run docs:sync.


Proposal

Interactive solution proposals generated from completed Discovery sessions.

Status: WP-PRD000-05 — Proposal Engine @ v0.6.0-proposal

Responsibilities

ComponentRole
ProposalGenerationPipelineOrchestrates read → generate → persist
ProposalAiGeneratorStructured proposal via AiGatewayContract::complete()
RuleBasedProposalGeneratorFail-closed fallback when AI unavailable
DatabaseCompletedDiscoverySessionReaderReads completed discovery data without Discovery Infrastructure imports

API

MethodPathDescription
POST/api/v1/proposals/generateGenerate proposal from completed discovery token
GET/api/v1/proposals/{id}Fetch current proposal version
POST/api/v1/proposals/{id}/regenerateCreate new proposal version

Configuration

  • config/proposal.php — required section keys
  • AI_PROPOSAL_ENABLED — enable AI generation (default false)
  • AI_PROPOSAL_PROVIDER / AI_PROPOSAL_MODEL — PL-003 provider routing

Boundaries

  • Consumes completed discovery sessions only
  • No Discovery questions inside Proposal
  • All LLM calls via AiGatewayContract only
  • No CRM, quotation, contract, or portal logic in this module

Tests

bash
php artisan test --filter=Proposal

ZAIXOS Knowledge Portal — public engineering docs at /docs · Staff operations at /admin