Development workflow¶
This page describes the path a change takes in a ConnectSoft repository, from the work item to a published package or a deployed service. It is written for engineers and AI agents who start work in a ConnectSoft repository. Each step links to the rules that apply to it; this page adds no rules of its own.
flowchart LR
WI[Work item] --> BR[Change branch]
BR --> CODE[Code, tests, docs]
CODE --> PR[Pull request]
PR --> REV[Review]
REV -->|changes requested| CODE
REV -->|owner approves| MERGE[Merge to default branch]
MERGE --> CI[CI build]
CI --> PUB[Package published]
CI --> CD[Deploy after approval]
1. Start from a work item¶
Non-trivial work starts from an Azure DevOps work item that states the goal and the acceptance criteria. When the work makes a durable technical decision, write or update an ADR first (see Decision records).
2. Create a change branch¶
Branch from the current default branch, as described in Branching strategy. A new service, library or template is scaffolded from the ConnectSoft templates with dotnet new, not copied from another repository.
3. Make the change¶
Follow the standards for the area you change:
| Area | Standards |
|---|---|
| Logging | Logging standard |
| Validators | Validator tests |
| Tests | Testing standard |
| Secrets, authentication and authorization | Security and compliance |
| Documentation | Documentation writing standard |
Generated files (template output, code generated from contracts, migration snapshots) are changed by changing their source and regenerating, not by editing the output. Add hand-written code in new files next to generated code.
Commit with messages that follow Git commit conventions.
4. Open a pull request¶
Before asking for review, check the Definition of Done. Describe the change, its reason and its risks as required by CS-REV-005.
5. Review¶
Reviewers, both people and the PR reviewer agent, follow Code review. The repository owner approves and merges.
6. Build, publish and deploy¶
The merge triggers the pipeline described in CI/CD: - A library, API client or template is packed and published with a new version (see Versioning and release). - A service is built, tested and deployed through approval stages.
7. Verify¶
After deployment, check the service's health endpoints, logs and metrics in the target environment. A defect found here starts a new work item and a fix with a regression test.