Sub topic 3
Employer and Client Ownership of AI-Assisted Work
Assume you know Git, code review, and the basics of open-source licenses. This chapter focuses on practical ownership and confidentiality controls. It is general education, not legal advice. Contracts and local law can change the result.
Employer and client ownership of AI-assisted work
An employer usually owns code created within the scope of employment when the employment agreement and local law assign that work to the employer. A client may own deliverables when a contract assigns intellectual property or uses a work-for-hire arrangement. AI assistance does not replace these rules.
Check the relevant agreement before using an AI tool:
| Question | Why it matters |
|---|---|
| Who owns work created during the engagement? | It identifies the eventual copyright holder. |
| Are subcontractors or AI tools covered? | The agreement may require permission or disclosure. |
| Who gives warranties about originality? | You may owe the client a promise that the code is safe to use. |
| Are company materials allowed in external tools? | Confidentiality terms may prohibit uploading them. |
Keep your own records of human decisions, reviews, and edits. Those records help show how the final work was created and reviewed.
Protecting confidential code and prompts
Treat source code, credentials, customer data, architecture details, and private prompts as confidential unless your organization explicitly approves the tool and its data handling. Review retention, training, access, and deletion terms. Do not paste secrets into a public or unapproved assistant.
Use synthetic examples or approved private deployments when possible. Rotate a credential immediately if it was exposed. Confidentiality duties can apply even when the tool provider promises not to claim ownership of the output.
Contributing AI-assisted code to open-source projects
Before contributing, check the project’s contribution policy. It may require disclosure, a developer certificate of origin, a copyright assignment, or confirmation that you have the right to contribute. Review generated code for copied fragments and incompatible licenses. A permissive license may allow reuse with notices; a copyleft license may require source-sharing or licensing conditions for combined work.
Recording provenance and license metadata
Record the tool, date, prompt category, human changes, tests, and reviewer. Do not store confidential prompts. Put the project’s chosen license identifier in new files:
from pathlib import Path
import sys
missing = []
for path in Path("src").rglob("*.py"):
head = path.read_text(encoding="utf-8", errors="ignore").splitlines()[:5]
if not any("SPDX-License-Identifier:" in line for line in head):
missing.append(path)
for path in missing:
print(f"missing SPDX header: {path}")
sys.exit(bool(missing))An SPDX identifier records the intended license. It does not prove that generated code is original or that every dependency is compatible.
Building a team policy and review checklist
A useful policy states which tools are approved, what data may be submitted, when AI use must be disclosed, who reviews licenses, and who approves open-source contributions. Reviewers should confirm:
- The employer or client permits the workflow.
- No secrets or restricted data entered the tool.
- A human made and reviewed the important design choices.
- Tests, dependency checks, and license scans passed.
- Provenance and required notices are recorded.
Exercise
A client permits AI tools but requires exclusive ownership of deliverables. What should you check before submitting generated code?
Show answer
Check the client contract, the tool’s output and indemnity terms, confidentiality settings, license risks, and your human review record. Escalate uncertainty before delivery.