PUBLIC BETA OFFER

Save 50% off on an Eligible Learning PlanValid for 1-month plan, 3-month plan, 12-month plan · Code LPXBETA50 · Ends Dec 6, 2026

AZ-401: Project Documentation and Code Ownership with Copilot

Maintain readmes, wikis, change logs, release notes, license records, ownership and process diagrams with a worked Copilot-assisted review procedure.

Guide

Content version 1.0

AZ-401: Project Documentation and Code Ownership with Copilot

AZ-401: Project Documentation and Code Ownership with Copilot

Maintain project documentation by selecting one concrete change, collecting its verified facts, asking GitHub Copilot for bounded draft edits, and reviewing each affected record against those facts before accepting it. Keep the readme, wiki, change log, release notes, license record, ownership mapping and process diagram consistent with the same change. The useful output is a reviewable set of edits and unresolved questions, rather than an unverified summary of what an assistant believes the project does.

For a GitHub.com project working with Azure DevOps Services, keep documentation ownership separate from permission to merge. CODEOWNERS can route review requests; required owner approval depends on separately configured enforcement. Copilot assistance also varies by surface, permissions and organization policy. The procedure below assumes an available, approved Copilot environment and authorized access to the relevant project records.

Establish the change and the review boundary

Use a working copy and draft records for one maintenance task. Identify the repository revision, existing documentation versions, evidence owner and intended reviewer. Preserve the previous text so reviewers can compare the proposal with its baseline. Where a wiki or release record is maintained outside the application repository, capture its current version and prepare its edit separately; do not assume the application pull request updates that record.

The following worked example is hypothetical. An export service has changed from immediate generation to queued processing. The team supplies these illustrative facts after inspecting its implementation and relevant results:

  • Accepting an export request creates a queued job; acknowledgment does not mean the file is ready.
  • A worker marks the job complete when the export is available.
  • The service team owns request handling, and the platform team owns worker operations.
  • The change is a release candidate; successful production delivery has not been verified.
  • The existing approved license text remains unchanged.

These are inputs to the example, not claims about an actual product or completed lab. In your project, replace every fact with evidence from the selected code, configuration, approved decisions and actual observations. If the evidence does not establish behavior, record a question instead of inventing an explanation.

Create an impact record before asking for edits:

Record Proposed maintenance for the example Evidence or review needed
Readme Replace the promise of immediate export with queued-completion behavior Request and worker behavior at the selected revision
Wiki Update the operator's investigation sequence and team handoff Approved operational responsibilities
Change log Describe the change under the appropriate unreleased or candidate section Reviewed change scope and existing change-log convention
Release notes Prepare candidate notes without asserting production availability Candidate identity now; actual release confirmation later
License record Record the unchanged approved license and existing notice references Maintainer-approved baseline; preserve license text
Ownership Map the affected paths to the agreed reviewers Valid repository identities and responsibility confirmation
Process diagram Show queued, completed and failed paths with their owners Actual component transitions and operational handoff

Request a bounded documentation draft from Copilot

GitHub's responsible-use guidance warns that generated output and review feedback can be inaccurate, incomplete or misleading. Review suggestions and relevant code yourself. In particular, a prompt is not a substitute for the chosen Copilot surface's actual permissions or data-handling controls.

Provide only context authorized for that environment. For this task, supply the impact record, selected excerpts, existing documentation text and the approved fact list. Remove secrets and unnecessary sensitive operational details. Ask for proposed text first, leaving deployment, publication, license decisions and permission changes outside the task.

An illustrative prompt is:

Propose documentation edits for the supplied queued-export change. Use only the supplied facts and existing records. Cover the readme, operator wiki draft, change log, candidate release notes, license-status record, ownership proposal and process diagram. Identify the evidence behind each changed statement. Mark unsupported claims as questions. Preserve existing license wording and distinguish a release candidate from verified production availability. Return proposed edits and review questions; do not publish, merge, change permissions or run deployment commands.

Review the returned proposal before applying it to the working copy. Reject invented settings, unsupported completion times, guessed owners and assertions that tests or deployments succeeded. If Copilot identifies a possible issue, verify that it exists before changing the documentation to accommodate it.

Apply and reconcile the documentation edits

Work through the impact record, rather than accepting a large rewrite without checking its parts. The following edits illustrate the intended level of specificity.

Update the readme and operator wiki

In the example readme, replace “The export is ready when the request is accepted” with “An accepted request queues the export. The file becomes available after the worker marks the job complete.” Check that the statement describes the selected revision and does not promise a completion time unsupported by evidence.

In the wiki draft, replace a single “retry the request” instruction with a reviewable investigation sequence: identify the request and job, determine whether processing is queued, complete or failed, and route unresolved worker failures to the agreed platform owner. Treat this as the example's proposed procedure. A real runbook needs the team's actual observation locations and approved actions; do not let an assistant fill those gaps with guessed commands.

Read the two records together. The readme should explain what the user can expect; the wiki should explain how an operator evaluates the same behavior. If one says acknowledgment means completion while the other asks operators to wait for a worker, the maintenance task is incomplete.

Separate change history, release notes and license status

Write a change-log entry describing the behavior change and its user impact. For the example: “Export requests now use queued processing; request acceptance and file availability are distinct.” Place it according to the project's existing convention. Do not fabricate a date, version or completed release.

Prepare release-note text for the identified candidate. Mark production availability as pending until the release owner can confirm it. A completed documentation review is not deployment evidence. If the candidate changes during review, reassess whether the notes still describe it.

For the license-status record, identify the existing maintainer-approved license text and notice references and record that this task leaves them unchanged. Compare the retained text with the baseline. Do not ask Copilot to select a license or rewrite its terms. If the work introduces a licensing question, leave a clearly assigned unresolved item for the responsible owner; this procedure supplies no legal license-selection advice.

Redraw the process and ownership handoff

Revise the diagram in the project's existing supported format. This text sketch illustrates the example's content, not a required renderer:

Request accepted -> Queued job -> Worker processing -> Export available
                                      |
                                   Failure
                                      |
                         Platform-owner investigation

Compare each arrow with implementation or an approved operational decision. Add the service owner's request-handling responsibility in the surrounding explanation. Do not draw automatic recovery, retry or approval steps merely because they would make the diagram look complete.

Ensure that the wiki and diagram use the same state names and responsibility handoff. A diagram that ends every failure in “resolved” hides an operational question that the written runbook may still leave unanswered.

Maintain the CODEOWNERS mapping

On GitHub.com, check repository-plan and visibility eligibility first. Owners need write access; a team must also be visible and explicitly have write access. GitHub checks CODEOWNERS in .github/, the repository root, then docs/, using the first file found.

For an illustrative repository with those existing paths, edit its selected CODEOWNERS file:

*                         @sample-org/service-maintainers
/docs/                    @sample-org/docs-maintainers
/.github/CODEOWNERS        @sample-org/repository-maintainers

Replace the sample identities with confirmed owners. Patterns are case sensitive, and the last matching pattern wins. Inspect GitHub's highlighted syntax errors and verify the intended file ownership.

Review requests use CODEOWNERS from the pull request's base branch; a proposed new mapping does not already govern its own introduction. Automatic requests apply when a pull request is ready for review, not while it is a draft. Verify routing with a subsequent suitable change after the mapping exists on the base branch.

CODEOWNERS requests do not themselves enforce approval. Required owner review is a separate configuration and belongs to the repository's governance owner.

Submit the evidence and verify the complete result

Prepare the documentation pull request with the before/after edits, selected revision, supporting observations and unresolved questions. Route wiki and release-note drafts through their own existing owner-controlled review process. Explicitly list which records remain pending outside the repository, so merging the code documentation cannot be mistaken for completing every maintenance item.

If the team uses an existing Azure Boards–GitHub connection, its documented linkage requires Contributor access to the Boards project and GitHub repository. Add the work-item reference, such as the illustrative AB#614, to the pull request description and save it; confirm the relationship in the work item's Development section. A title or comment mention does not create that work-item link. Treat the link as traceability, not documentation approval.

Have reviewers compare the final artifacts against the impact record:

  • The readme and wiki describe the same queued-completion behavior.
  • The change log and release notes distinguish the change from its actual delivery status.
  • License text matches the approved baseline, and any new question has an accountable owner.
  • Ownership maps the intended existing paths and identities, with routing checked under the correct base-branch conditions.
  • The diagram agrees with the written states and handoffs.
  • Proposed operational actions are supported; unsupported details and unverified results remain visible.

For a concrete failure check, suppose Copilot writes “Exports complete immediately” in the release notes while correctly describing the queue elsewhere. Reject that sentence and correct the candidate notes using the supplied facts. If it names a nonexistent team, resolve the identity before accepting the mapping. Fluency and a clean-looking diff do not resolve either defect.

Record what was actually reviewed and what remains pending. Keep the previous versions and review evidence until the accepted replacements are confirmed. Stop the maintenance task with consistent, owner-reviewed records; deployment, publication, enforced merge policy and new agent permissions require their own authorized work.

Authoritative Sources

0 views