This repository currently supports two distinct paths:
agent-job: Copilot/manual packaging plus mock executioncodex-job: legacy local Codex runtime
This document is about the active safety model for agent-job, especially the Copilot package workflow.
agent-job package ... --target copilot does not execute Copilot.
It only writes a work package for a human to use in an approved Copilot environment:
job.input.yamlprompt.copilot.mdchecklist.mdreport-template.mdmeta.json
Expected metadata for this mode:
{
"mode": "package",
"target": "copilot",
"executor": null,
"launched_by_tool": false,
"process_success": null,
"exit_code": null,
"human_review_required": true
}Security properties of this path:
- no Codex auth required
- no Codex command launched
- no Claude command launched
- no Copilot automation attempted
- no auto-commit
- no auto-push
- human review required before any commit decision
agent-job enforces:
- fail-closed YAML schema validation
- absolute
repo_path - repo-relative
allowed_paths - repo-relative
forbidden_paths - rejection of path traversal via
.. - default protection for
.git/,.env,.env.local,.env.*, andnode_modules/
Package mode does not itself enforce filesystem writes because it does not execute the engineering task. It communicates the scope and constraints to the external Copilot/manual environment and requires human review of the resulting diff.
For agent-job, provenance is agent-neutral:
claimed_by_agentclaimed_by_executorobserveddeclared_by_jobinferrednot_capturednot_rununknown
Copilot package mode is intentionally honest:
- it does not claim the task was completed
- it does not fabricate process exit codes
- it does not mark Copilot work as tool-observed execution
Copilot package mode does not require Codex credentials.
The Copilot model sync pipeline under agent-job/references/copilot/ may require:
GITHUB_TOKENGH_TOKEN- or a usable local Copilot SDK session
Do not commit tokens, raw secrets, or personal auth artifacts.
These are not part of the trusted Copilot production-test path:
agent-job run --executor copilotagent-job run --executor codex- any assumption that package mode completed the engineering work
- any auto-commit or auto-push workflow
Use agent-job render/package for Copilot/manual preparation and treat all resulting changes as requiring human review.