Guarapo

Back to the guide

Technical guide

Environments, permissions, secrets, branches, verification and rollback.

How to read this guide

The controls in this guide carry Core when they cannot be waived, Rule when an exception requires approval and Default when the profile adjusts them. Practice gives optional procedures to check them.

Prepare access

Core Every project requires a client QA environment. The agent writes, uploads and changes only in the client QA environment. It does not receive credentials for the client's production system. The specialist approves every release to production. The isolated environment uses least privilege, and its check is recorded before work starts.

Default The isolated environment limits writes and network access to authorized resources.

  1. Practice The specialist draws the path from the agent identity to the test resource. The specialist writes down the direct permissions, the permissions inherited from groups and the resource policies to get the effective scope.
  2. Practice Generator creates a disposable artifact in the permitted location. The specialist checks that the identity can read the result and that a test write to an excluded control resource receives a denial.
  3. Practice The specialist compares the output paths with the list of destinations in the profile. The specialist keeps the identity, the policy consulted, the date and the results of both tests. If a permission exceeds the scope, the specialist asks for its removal and repeats the affected check.

Protect integration and secrets

Core Before changes are pushed, the integration configuration is protected. The agent credential cannot change automation workflows. Production secrets are kept in protected resources that require specialist approval. Runs triggered from the agent workspace see only test secrets. The isolated environment never contains production credentials or real payment credentials.

  1. Practice The specialist identifies credentials by their effective powers. This includes credentials that can change real data, send final communications or read confidential information outside the session. The specialist keeps references to the policies and does not copy secret values.
  2. Practice From an authorized, disposable test branch without secrets, Generator tries to push a harmless check change to a protected workflow. The specialist expects a denial. If the system allows the change, the specialist stops the use of that identity and records the incident, asks for the change to be removed and asks for the protection to be fixed before the workflow is enabled.
  3. Practice The specialist inspects the list of secret names visible in a run triggered from that branch. The specialist compares the names with the test list and keeps the result without printing values. For the specific configuration, see the tools guide.

Take a revision to the client QA environment

Rule The client's system in production is production. In a repository, the main branch counts as production if it deploys automatically. The agent pushes only to authorized test branches and can open pull requests. It never pushes to the main branch. Merging into the main branch or deploying requires specialist approval.

  1. Practice The client identifies the branches and destinations of the project. The specialist checks which event starts the deployment and records the person authorized for the release.
  2. Practice Generator presents the revision of the test branch and attaches the reference of the deliverable available in the client QA environment.
  3. Practice The specialist compares that reference with the evaluated version before approving the merge. A later change goes back to evaluation for the criteria it affects.

Keep the test independent

Rule Before work starts, criteria, tests and verification configuration are protected. Generator does not change the protected version.

Core Evaluator is always an agent different from Generator.

  1. Practice The specialist sets a read-only reference with the agreed criteria, the test inputs and the expected results.
  2. Practice Evaluator gets that reference separately from the deliverable and records both versions in its report.
  3. Practice If Generator thinks an expected result is wrong, it presents the case and the observed difference to the specialist. The specialist clarifies the criterion before authorizing dependent work.

Classify data and control outputs

Core Data is classified as public, internal, confidential or sensitive. No secret goes into instructions or memory. Confidential or sensitive data is sent only to services that do not use it for training and that have credentials isolated per client.

Core External reading sessions and publishing sessions are kept separate. If they are combined, each output action requires approval. Merging into the main branch, deploying, publishing or accessing destinations outside the list requires human approval for each action. The profile can authorize jobs in the isolated environment.

Rule The agent treats external content as untrusted data and ignores instructions that change goals or permissions.

  1. Practice The specialist classifies the input before transferring it and records the permitted destination. The specialist replaces real data with test data when test data is sufficient to verify the criterion.
  2. Practice Planner keeps the origin of each external reference. If Planner finds a request to send information, it reports the request as part of the material read and does not add it to the plan.
  3. Practice The specialist gives the publishing session only the reviewed artifacts and the approved destination. If the specialist uses a combined session, the specialist documents the specific approval before each output.

Decide what to verify

Default The profile sets minimums per domain. For risk one to three, criteria and evidence are documented. At four, impact, recovery and authorization are added. At five, controls and specialist review are documented. The risk and its authorizations are recorded before execution.

  1. Practice For a calculation, the specialist selects an input whose result the specialist can derive independently. For a publication, the specialist links each verifiable claim to its approved source.
  2. Practice Evaluator chooses a case that can reveal the described failure. For example, an end-of-month test can detect a date shift that a mid-month case would hide.
  3. Practice The specialist writes down which consequence would stay uncovered and which observation would detect the damage after the release.

Record evidence

Default Independent evaluation produces or reproduces evidence in a separate context and records version, identity, environment, steps and results. If a test cannot be reproduced, Evaluator escalates and does not declare success.

  1. Practice Evaluator identifies the criterion and collects sufficient references to repeat the test.
  2. Practice Evaluator records the expected result and the observed result in the same row so that the specialist can find the discrepancy.
  3. Practice If the original input is missing, Evaluator marks the test as not reproducible, states what is missing and gives the report to the specialist.

Practice Completed record for a date check.

Version Identity Environment Steps Results
Second revision of the confirmation Assigned Evaluator Client QA environment Enter the closing date and open the confirmation The last day of the month was expected and that date was observed

Change a dependency or recover the service

Default Before a change to the model, instructions or tool, reference cases with expected results are run and the change is versioned. If a service is unavailable, work is blocked or replanned with an authorized alternative, without assuming equal capability.

  1. Practice The specialist chooses reference cases that cover relevant behaviors and keeps the result of the current version.
  2. Practice Evaluator repeats the same inputs on the candidate version and documents differences per criterion. For variable results, Evaluator uses the repetition criterion agreed in the profile.
  3. Practice If the service stops responding, Generator reports the last confirmed effect. The specialist first checks whether the action was completed and evaluates permissions, quality and cost of the alternative before resuming.

Verify the release and decide on rollback

Default The post-release check has a responsible person, a window, a success criterion, evidence and a rollback criterion. If it fails, the production closure is blocked or a linked follow-up is opened, and the failure is escalated. If the client controls production, the parties agree who verifies and reports. Success in production is not declared without evidence.

  1. Practice The client and the specialist agree, before the release, on the signal they will observe and the recoverable version.
  2. Practice The person authorized to publish records the version actually deployed. The person who verifies observes the result within the agreed window.
  3. Practice The specialist compares the signal with the rollback criterion. If the previous version must be restored, the authorized person responsible performs the recovery and attaches the check made after it.

End-to-end example

Practice The client asks for a fix to the date in a confirmation. The specialist records risk three because of the effect on deadlines, the approved criteria and the authorization to work with fictitious dates. In the permissions record, the specialist enters the session identifier, the permitted write on the test branch and the denial when changing the protected workflow.

Practice Generator opens the pull request. In the client QA environment, Evaluator enters the closing date and observes the first day of the next month. Evaluator identifies its session and the first revision in the report and rejects the result. Generator fixes the conversion. Evaluator repeats the test and completes the evidence record shown above. The specialist reviews the evidence and accepts the second revision. After the client gives a favorable verdict, the specialist approves its release to production.

Practice The authorized person merges that revision. Within the agreed window, the client compares the first relevant confirmation with the source date. If they differ, the specialist blocks the closure and escalates the failure. The client asks for the previous version to be restored and keeps both observations. If they match, the client sends the evidence to close the follow-up.

Questions for the profile

  • Who provides the client QA environment and maintains the list of permissions and authorized destinations?
  • Who classifies the inputs, and which services accept each data level?
  • Which evidence minimums apply to each domain and risk?
  • Which reference cases represent the harness, and who approves a change to them?
  • Which service alternatives are authorized, and how many repetitions does a reference case with a variable result require?
  • Who verifies after publishing, during which window, and with which criterion is rollback ordered?

License

© 2026 Guarapo Labs. This guide is offered under the Creative Commons Attribution-ShareAlike 4.0 International license (CC BY-SA 4.0): https://creativecommons.org/licenses/by-sa/4.0/