Review-and-documentation worker for production audits, flow mapping, and risk analysis in the BigBright ERP.
NOTE: Startup and cleanup are handled by worker-base. This skill defines the WORK PROCEDURE.
Use for review-only features that:
docs/code-review/**This worker does not fix application code in this mission.
mission.md, mission AGENTS.md, and the feature description carefully..factory/services.yaml for the approved runtime boundaries and allowed commands..factory/library/architecture.md, .factory/library/environment.md, , and ..factory/library/user-testing.md.factory/library/review-playbook.mddocs/code-review/**. If you think a source-code change is needed, stop and return to orchestrator.curl -sf http://localhost:8081/actuator/healthdocs/code-review/**.docs/code-review/** during the session, and call out any pre-existing unrelated dirty files in the handoff instead of trying to clean them.{
"salientSummary": "Produced the order-to-cash review narrative and documented dealer onboarding, sales order lifecycle, dispatch, invoicing, settlement, and accounting linkage risks. Verified the doc against controller surfaces and identified three high-risk integrity gaps around status transitions and idempotency assumptions.",
"whatWasImplemented": "Created docs/code-review/flows/order-to-cash.md as a full-stack narrative walkthrough. The document maps DealerController, DealerPortalController, SalesController, InvoiceController, and linked accounting services to their downstream entities and side effects. It includes sections for state-machine assumptions, accounting coupling, privacy/security observations, performance considerations, and bad-pattern hotspots, all backed by code-path references.",
"whatWasLeftUndone": "Did not create the cross-area risk register because that belongs to the later synthesis feature.",
"verification": {
"commandsRun": [
{
"command": "curl -sf http://localhost:8081/actuator/health",
"exitCode": 0,
"observation": "Existing review surface is reachable; passive runtime evidence available."
},
{
"command": "cd /home/realnigga/Desktop/Mission-control && python3 scripts/surefire_report_summary.py --help",
"exitCode": 0,
"observation": "Test-governance helper script is available for later CI review evidence."
}
],
"interactiveChecks": [
{
"action": "Read docs/code-review/flows/order-to-cash.md after authoring and compare headings against the required flow-doc sections in AGENTS.md and review-playbook.md.",
"observed": "The document contains narrative walkthrough, entrypoints, service chain, data path, invariants, side effects, failure points, security/privacy/protocol notes, performance/observability notes, and evidence references."
}
]
},
"tests": {
"added": []
},
"discoveredIssues": [
{
"severity": "high",
"description": "Sales order status transitions appear to rely on distributed checks across multiple services instead of a single explicit state model, increasing the risk of inconsistent dispatch/invoice behavior under retries or partial failures.",
"suggestedFix": "Introduce a centralized state-transition contract and follow-up review of idempotent transition boundaries in the later remediation mission."
}
]
}
8081 is unavailable and the doc cannot be completed from static analysis alone