Let’s Get Certified
Module 14 / 14 · Developer productivity and operational enablement

Roll out an accountable developer workflow

Package team workflows, configure unattended execution, and preserve human ownership of changes.

A repository inspection workflow works on its author’s machine. The platform team needs it to run consistently in developer workspaces and CI while keeping approval for production changes with the engineering team.

7.1 · Package and distribute a workflow

Package the reusable procedure, scoped subagents, lifecycle hooks, commands or Skills, and necessary MCP definitions into a versioned plugin. Distribute approved releases through a controlled marketplace. Separate team-configurable conventions from centrally managed permissions and trusted sources. Keep secrets outside the package. Pilot a pinned revision on one repository, publish change notes, and maintain a rollback path. A team README is useful guidance but cannot enforce an organization-wide restriction.

Promote a local review workflow to three teams

One developer has a working review Skill, a repository-specific style guide, a local connection to a ticket system, and a hook that checks outgoing changes. Two other teams want the workflow but have different style rules. Classify what belongs in a shared plugin, what varies in the repository, and what the platform team must enforce centrally.

Inspect a release package

Package the versioned review procedure, scoped subagent definitions, relevant hook logic, and the connection definition without its credentials. Distribute a reviewed version through the approved marketplace. Each repository can provide its own style rules and test commands. The platform team owns trusted plugin sources and permission limits for unattended jobs. A repo-level instruction cannot substitute for a required organization-wide control.

Pin the pilot version and run it in a clean workspace with a synthetic ticket. Confirm it discovers only approved tools, handles one repository’s differing style rule, and fails visibly when its ticket grant is absent. Roll back to a previous reviewed package and verify the effective configuration after rollback.

Video background · freeCodeCamp at 7:42:47 · centrally managed hook settings

7.2 · Configure SDK and Claude Code execution

Choose a permission mode consistent with the job. Plan mode supports exploration. Default mode can prompt for approval. acceptEdits can accept eligible edits, while other operations remain subject to permissions. dontAsk denies operations that would need a prompt. auto uses automated permission decisions where supported. bypassPermissions removes normal prompts and is unsuitable as a fix for missing authorization. Check mode availability for the installed version. Use independent environment and credential controls for hard boundaries.

For unattended inspection, invoke headless Claude Code with -p, restrict allowed operations and writable paths, define bounded subagent roles, and validate structured output before the CI publisher uses it. An execution hook can refuse a disallowed operation before a side effect. Record exit status, tool failures, and artifacts so a failed check cannot look like a clean review.

Interpret an unattended review result

A headless reviewer receives a commit SHA and can read a checked-out diff. Its report says “No findings,” but its trace shows a denied read on the changed directory. CI has no person present to answer permission prompts. Specify the mode, the independent controls, and the result contract the publisher should require.

Decide what CI can publish

Use a noninteractive invocation with an explicit set of approved read operations. Where supported, dontAsk makes unapproved requests fail without waiting for a human. Give the worker a read-only checkout and no merge or publishing credential. Scope its subagents to the same task. A pre-execution hook can enforce an additional path rule. Validate the actual installed configuration using both allowed and denied fixtures.

Return the commit SHA, files examined, status and findings. Require complete plus coverage of the required changed paths before reporting a clean review. A denied read produces incomplete and a visible failed check. The separately authorized publisher validates the report before posting it.

Video background · freeCodeCamp at 8:10:44 · comparing permission modes

Test the sandbox independently of permission prompts

A headless inspector is permitted to run the repository’s test command. That command starts child processes. The permission decision says whether it may start. The sandbox and operating-system credentials determine which files and network destinations those processes can reach. A worker that never prompts can still have excessive access.

Use a disposable fixture containing an allowed source file, an output directory, and a synthetic file outside the permitted boundary. Demonstrate a successful read and report write, and a denied out-of-scope read. Use a controlled test endpoint for the network policy. Assert that denial yields an incomplete check, and pin the effective runtime configuration used by CI.

Further study · freeCodeCamp at 8:20:27 · sandbox boundaries for the shell tool · Claude documentation

7.3 · Retain accountability for generated code

Assign a named human owner to generated changes. Require review against requirements and repository evidence, independent tests for affected behavior, and normal protected-branch approval. The code reviewer must be able to explain a critical change and its rollback. A second model review can extend coverage but cannot assume the owner’s accountability. Capture approval of the actual revision and track post-release defects by workflow version.

Decide who owns a generated fix

A generated patch changes rounding on invoices. The assistant adds tests that repeat its own formula. All tests pass. The reviewer approved revision A, but revision B is queued for merge after changing the rounding order. Write a review decision and evidence that would allow the change to ship.

Review the revision that will ship

Hold revision B for the named billing owner. Ask for a business-approved example where per-line rounding and final-total rounding differ. Derive the expected result independently of the implementation, and include credits, mixed quantities and existing invoices in the regression review. Require a protected-branch check and approval tied to the actual revision.

Document who can stop rollout and how to reconcile invoices produced during a faulty release. A second model can flag suspicious arithmetic, but the accountable reviewer still needs to explain the required rule, confirm the evidence and sign off on the version that will affect customers.

Video background · freeCodeCamp at 12:06:28 · checking the pull request a workflow produced

Design exercise

Design a CI inspection that can read a diff and produce a report but cannot publish or merge code. Identify the credentials in the inspection job and the separate publisher. Test a missing tool permission: the job should surface an incomplete check and leave the protected branch untouched.

Further reading · Claude Code permission modes · Claude Code plugins · Non-interactive Claude Code

Knowledge check

Roll out an accountable developer workflow quiz

Answer 10 questions. Check each answer for an explanation.