Domain 2 of 6 · Chapter 2 of 2

Assess the Copilot Lifecycle and Limits

Unlock the complete study guide.

Bundled into the existing GitHub Copilot premium course — no separate purchase.

14-day money-back guarantee — no questions asked.

Included in this chapter:

  • The suggestion lifecycle, from keystroke to decision
  • The model step works only on the constructed prompt
  • Two generation flows: inline code and pull request text
  • Presentation and the developer decision
  • Where Copilot's limits come from
  • Limits from what the model learned
  • Limits from what it can see
  • Limits from how it generates
  • How the limits show up in output
  • Mitigations: review, test, scan and focus the context
  • Lifecycle order and limitation misconceptions

The suggestion lifecycle on three Copilot surfaces

AspectIDE inline suggestionPull request text completionWindows Terminal command suggestion
What generation draws onCode around your work, plus context from open filesPull request title, existing description, commit titles, partial diffs, recently viewed pull request and issue titlesYour request plus the active shell name and chat history
PresentationA visually distinct proposed change in the editorSuggested prose when you pause while typingA suggested command, or an explanation of a command
How you accept itAccept all or part of itPress TabInsert it into the command line, then run it manually
How you reject itDismiss it, or keep typingKeep typingDo not insert or run it
Surface-specific limitMay miss larger design or architectural issuesContent from a very large pull request may not fit the API callA command can be destructive, such as deleting data

Decision tree

Is it a terminal command?YesReview itbefore you run itNoIs it code for a security-sensitive application?YesSecure coding reviewplus code scanningand testsNoIs the output code?YesHuman reviewand testingplus lintingNo (prose)Human reviewcheck claims forhallucinationAlways: focused context reduces errors at the source

Cheat sheet

  • A code suggestion moves through ordered processing stages
  • Model inference operates on the constructed prompt and context
  • Inline code and pull request text completion use different generation flows
  • Inline output remains visually distinct until accepted
  • The developer controls the disposition of an inline suggestion
  • Pull request text completion also requires an accept-or-reject choice
  • A terminal command suggestion is not executed automatically
  • Language representation affects suggestion quality
  • Inline context may not reveal system-level design problems
  • Large pull requests can exceed summary and completion context
  • Space context should stay selective and task-relevant
  • Automatically supplied custom instructions guide rather than guarantee output
  • Plausible generated code can still be incorrect
  • Generated code can contain vulnerabilities or expose sensitive information
  • Generated explanations can be inaccurate or fabricated
  • Generated tests may omit important scenarios
  • Suggested commands can perform destructive operations
  • Training-data patterns can propagate bias and errors
  • Model output is nondeterministic
  • Model choice changes the quality and safety profile
  • Functional correctness requires human review and testing
  • Security-sensitive output requires secure coding review
  • Automated analysis adds validation layers to generated code
  • Focused, current context mitigates finite-context limitations

Unlock with Premium — includes all practice exams and the complete study guide.

References

  1. https://docs.github.com/en/copilot/responsible-use/inline-suggestions
  2. https://docs.github.com/en/copilot/responsible-use/chat
  3. https://learn.microsoft.com/en-us/credentials/certifications/resources/study-guides/gh-300
  4. https://learn.microsoft.com/en-us/training/modules/introduction-prompt-engineering-with-github-copilot/3-github-copilot-user-prompt-process-flow
  5. https://docs.github.com/en/copilot/get-started/best-practices
  6. https://learn.microsoft.com/en-us/windows/terminal/terminal-chat
  7. https://docs.github.com/en/copilot/concepts/prompting/response-customization
  8. https://docs.github.com/en/copilot/reference/ai-models/model-comparison
  9. https://docs.github.com/en/copilot/reference/custom-instructions-support
  10. https://docs.github.com/en/copilot/concepts/agents/code-review
  11. https://docs.github.com/en/copilot/tutorials/review-ai-generated-code