Protocolar
Core
Protocolar means processing concrete operational content into the right execution or knowledge layer.
The input is usually messy: audio, rough text, notes from a meeting, event operation details, or Hugo thinking out loud.
Protocolar must be calm, question-driven, and interactive. It is one of the highest-leverage moments for Hugo and Codex to think together, because spending Hugo's time now can make future operations flow much faster and with less rework.
Mandatory Human Approval (Aprovação Prévia Obrigatória)
Never execute or write blindly. In the protocoling workflow, the agent must never act fully autonomously without human approval.
When handling any protocoling request:
- Explicit Detection: If not explicitly invoked, recognize the context and announce: "Estou entendendo que a gente está falando de protocolagem."
- Declare Meta: State the operational goal in 1 line (
> Meta que estou assumindo: ...). - Present Proposed Action: Explain what you intend to do before touching any file or sheet:
- Specific Suprema tasks (timing, role, activity, description, procedure).
- Existing KB articles to update (prioritizing existing docs over creating new KBs).
- Justification if a new KB is strictly necessary (always prefer avoiding new KBs if it fits in Suprema or existing guides).
- Request Human OK: Ask for human approval (using Quick Voting A/B/C or "Proposta: X. Ok?") before writing anything.
- Execute & Sweep: Only after human approval: write to Suprema/KB, execute the mandatory
Conflict & Deprecation Scan, record decision trace, commit and push.
Do not protocolar with less than 90% confidence in the classification, target destination, owner, timing, and operational consequence. When confidence is below that threshold, ask concise questions and process only the parts that are clear.
Classify each piece as:
tarefaprocedimentoprincipio
Then save it in the right place.
Effectiveness and Less Verb Rule
The goal of protocolar is not to create more articles, more tasks, or more documentation. The goal is to find the best way to make the thing happen.
Before creating anything new, ask:
- does this need to become a new task?
- does this improve an existing task?
- does this update an existing article?
- can this be consolidated with something that already exists?
- can this be written with fewer words without losing execution?
Whenever possible, prefer consolidating, merging, adapting, shortening, or creating nothing.
For materials humans need to read and execute, write the minimum sufficient text: clear, direct, and without excess wording. Documentation is only good if a real person can read it, understand it, and act.
Clarity Before Brevity
Less wording does not mean text that is too short.
The protocol must be as short as possible, but as complete as necessary for a person to understand and execute without hidden context.
Especially for concepts, principles, and new decisions, preserve:
- why the rule exists;
- a concrete example when it prevents misinterpretation;
- the limit of application;
- what not to do.
If the text is short but ambiguous, it is not good yet. If the text is longer but protects execution, training, or future judgment, it may be right.
The goal is density: every sentence must carry function.
Non-Duplication Rule
Do not duplicate.
Before creating anything, check whether the same or similar item already exists.
Then decide:
- if it does not exist: create it;
- if it exists and needs improvement: update it;
- if it is equal or similar enough and does not need improvement: do not create anything, mark it as already handled;
- if unsure whether it is duplicate or a meaningful variation: ask Hugo.
This applies to:
- Suprema tasks
- procedures
- training docs
- KB entries
- Gists
- checklist items
- progress logs
Escopo entre eventos
Antes de gravar um achado numa Suprema (ICDB, MRZPR, RAV, Venda Sem Medo ou outra), classificar e dizer na proposta ao Hugo:
- Só este evento — grava aqui e pronto.
- Vale também para [eventos] — grava só na Suprema de origem e acrescenta, no diário ou na checklist de cada outro evento, a linha "propagar para <evento>: <achado>". Ela entra na próxima revisão daquela Suprema, com OK do Hugo.
- Vale para todas — mesma coisa, e o achado entra em "Achados que valem para todas" de
kb/events/perfis-eventos-suprema.md.
A decisão sai de kb/events/perfis-eventos-suprema.md (dias, equipe, venda, Premium, certificado, lojinha, transmissão). Na dúvida, perguntar ao Hugo. Nunca escrever direto na Suprema de outro evento, e não criar Suprema-mãe nem sincronização entre abas.
Conflict & Deprecation Scan
When a protocoling request introduces a prohibition, change in tool, corrective policy, or superseded method (e.g., "não usar X", "nunca fazer Y", "trocar fornecedor A por B"):
- Active Repository Scan: Run an active search (
grep/ripgrep) acrosskb/andprojects/for any mentions of the prohibited or superseded practice/tool/vendor. - Suprema Inspection: Check if any existing Suprema tasks reference the superseded approach (using the read-only helper or text search).
- Revocation & Alignment: Revoke, align, or eliminate conflicting instructions so the ecosystem never has an active procedure contradicting the new rule.
- Report Findings: Always state in the output whether previous conflicting occurrences were found and updated, or confirmed clean.
Tarefa
A task is an executable action with owner/timing/output.
Examples:
- create production WhatsApp group
- fill participant names on certificates
- monitor support WhatsApp
- register Reorganize Cash in the control sheet
Process Task
- Infer or confirm:
etapadiahorariotime_respatividadedescricaoproceduresource
- Check for duplicates or similar rows before writing.
- If an existing task only needs adjustment, update it instead of adding a new row.
- Add to Suprema/checklist when operational and not already handled.
- Mirror locally only when reusable.
Suprema is an execution checklist: only add a row when someone needs to do, check, or remember something at a clear operational moment. Preparation, posture, speaking guidance, training notes, and facilitation principles should go first into procedure/training docs, not Suprema, unless there is a derived practical action with owner and timing.
During this protocolar cycle, any guidance about ASSISTENTE4 or ICDB online
transmission goes to KB/process docs, not Suprema, unless Hugo explicitly asks
for a Suprema row.
For ICDB Suprema, prefer:
rz-coo/agents/events-NEHEMIAH/scripts/append_suprema_task.py
To read or inspect ICDB Suprema before/after appending, use the read-only helper:
rz-coo/agents/events-NEHEMIAH/scripts/read_suprema.py
Do not use ad hoc Python snippets for normal Suprema reading/verification when the helper covers the need.
Important: horario must be Google Sheets time number, not text.
For role names in Suprema/KB, keep the standard role variable stable. Use ASSISTENTE3, not specialized variable names like ASSISTENTE3_LOJA. Explain the function in the activity/description/procedure, for example loja, comercial, expositores, inventario, or vendas.
Procedimento
A procedure explains exactly how a task is done.
Create/update a Markdown procedure when the content answers "how should this task be executed?"
Video Tutorials (Google Drive & Local Files)
When Hugo provides video/audio tutorials as input for protocoling:
-
Local Video/Audio Files (
.mov,.mp4etc.):- Never treat them as disposable transcript-only inputs. The video is the primary training asset for team members; the Markdown doc is the operational text support.
- Step 1 (Mandatory Upload): Upload the file to Google Drive in
@Equipe-RZ TUTORIAIS(folder ID1LxGlXYiwz5J9JLdPuDbwVr9M24zG3IS8) using.venv/bin/python rz-coo/agents/operations-JOSHUA/tools/drive_upload.py --parent 1LxGlXYiwz5J9JLdPuDbwVr9M24zG3IS8 --file <path> --name "<AREA> Como <acao>.<ext>". - Step 2 (Grab Link): Capture the resulting URL (
https://drive.google.com/file/d/{id}/view). - Step 3 (Embed at Top): Embed the Drive URL directly at the top of the KB (see placement rules below).
-
Google Drive URLs:
- Use the
drive-captionsskill and its helper to list captions:rz-coo/agents/operations-JOSHUA/tools/drive_captions.py "URL" --list. - If captions exist, download and clean the transcript with the same helper.
- Read the cleaned transcript and turn it into a short operational KB:
- objective;
- when to use;
- responsible role, when clear;
- procedure/checklist;
- important cautions;
- original video URL as source/embed reference;
- relevant asset links mentioned by Hugo, such as Canva, Drive, Sheets, or sites.
- Keep the KB practical. Do not paste the whole transcript unless Hugo asks.
- In publishable KB docs, place the video embed at the very top of the article — right below the main title (H1) and ABOVE the subtitle/quote — in its own Markdown paragraph with blank lines before and after. Unless there are multiple videos:
- Single main tutorial video: goes at the absolute top, above the subtitle/quote (
> ...), so the player is immediately visible when opening the procedure. - Multiple videos: do not crowd them at the top. Embed each video at the top of its corresponding section or step.
- Single main tutorial video: goes at the absolute top, above the subtitle/quote (
Critical parser rule: The WebApp viewer only converts links into an embed (
<iframe>) if the paragraph contains either the raw URL or a link where the label matches the URL ($label === $href). If you write custom anchor text like[Vídeo](url), the parser intentionally ignores it and leaves it as plain text link.Correct (single video — above the subtitle):
# Procedimento — Título https://drive.google.com/file/d/.../view?usp=sharing > Resumo operacional em uma ou duas linhas. --- ## 1. ObjetivoCorrect (multiple videos — inside each section):
# Procedimento — Título > Resumo operacional. --- ## 1. Etapa Inicial https://drive.google.com/file/d/.../view?usp=sharing Instruções da etapa...Wrong (custom label or inline, NO embed produced):
[Vídeo no Google Drive](https://drive.google.com/file/d/.../view)- If the video has no captions, say that the caption track is not available yet. For fresh uploads, assume it may still be processing or that another dedicated transcript skill may appear. Do not improvise a different transcription path unless Hugo explicitly asks.
- If Hugo says this is a training run, show the KB draft first and only save/update the protocol after he approves.
- Use the
Procedure Boundary Rule
Do not group procedures only because they involve the same person, project, or broad commercial theme.
Group content into one procedure only when it shares the same operational function, execution moment, owner logic, and output.
Prefer separate procedures when the work has different purposes or execution contexts, even if the same person is involved.
Example from ICDB:
captacao de expositoresis one procedure;divulgacao da treinadorais another procedure;links e QR Codes da oferta MRZis another procedure.
They can all involve treinadora/supervisao, but they should not be merged because they answer different operational questions.
When unsure, propose the split before editing.
Procedure should include:
- objective
- when to execute
- responsible role
- step-by-step
- checklist
- links/sources/tutorials
- edition variables
Then link it in Suprema via procedure.
When the procedure lives under kb/ and is publishable, use the public KB URL in Suprema instead of the local file path:
https://app.reorganize.com.br/kb/{path-under-kb-without-.md}?t=organizartransforma
Example:
kb/events/icdb/guia-equipe.md becomes https://app.reorganize.com.br/kb/events/icdb/guia-equipe?t=organizartransforma.
Keep local repo links inside Markdown docs when that is more useful for editing, but use public KB links for people who will execute tasks outside the repo.
Principio
A principle is a general rule used for training, expectation alignment, or future judgment.
Examples:
- coordinator is the mature local operator
- after the afternoon break the team focuses on conversion
- every ICDB has certificate with photo
- Reorganize Cash is not presented as salary or fixed cachê
Principles go to the correct training/alignment doc:
- coordinator guide
- team guide
- project playbook
- KB global
- company/global docs
Do not add principles to Suprema unless they imply an action.
Commission Clarity
Be precise about who receives commission.
For ICDB expositores: the expositor does not receive commission. The treinadora or coordenadora may receive commission for indicating, captando, or helping close an approved expositor.
If a note mentions commission ambiguously, clarify the payer/receiver before documenting or adding to Suprema.
Generalize
Always ask:
Is this only for this edition, or should it become a standard?
If reusable:
- write generically
- keep edition data as variables
- avoid locking process to one city/person/date
If specific:
- save in edition/checklist context
- do not promote globally without approval
Sync and Push Confirmation
After protocoling an item into the minimum necessary destination, evaluate whether mirroring it into another layer and publishing the repository change are clearly part of the requested workflow.
- If there is more than 90% confidence that sync and push are in scope, and the action does not create a sensitive financial, legal, database, production, email-send, or deployment side effect, perform the necessary sync, validate the related diff, commit only the files belonging to the protocolação, and push the current branch.
- If confidence is 90% or lower, stop before mirroring or pushing and ask for formal authorization with the exact destinations and files involved. Use: “Autorizo o sync e o push desta protocolação?”
- An explicit request to protocolar and push/sync authorizes the action directly; do not ask again.
- Never stage or push unrelated user changes. Report the commit and link after a successful push.
- KB Deploy Requirement (rz-app): O
git pushnorz-appisolado não sobe os arquivos para o WebApp porque o GitHub Actions do rz-app está sem minutos de execução. É obrigatório rodar./scripts/sync-kb.sh(que sincronizakb/parareorganize-webappe dispara o deploy pelo runner self-hosted na VPS). Antes de entregar os links ao Hugo, validar comcurl -s -o /dev/null -w "%{http_code}"garantindo retorno HTTP 200.
This rule does not override repository instructions, database write policy, financial/operational approval thresholds, or any requirement for explicit approval before a sensitive action.
Inbox First
When an audio/text contains many mixed items, use kb/inbox/protocolar.md first.
Use one stable protocolar inbox by default. Do not create a new inbox file for each destination unless Hugo explicitly asks for a separate inbox.
Flow:
- classify into task/procedure/principle in the inbox;
- mark the original raw/source with
<!-- PROTOCOLAR_INBOX: item-id em kb/inbox/protocolar.md -->; - wait for Hugo's OK when needed;
- apply to Suprema/KB/playbook/training docs;
- change the raw/source marker to
<!-- PROTOCOLADO: item-id destino data -->; - remove the item from the inbox after it is applied.
Do not mark raw/source as PROTOCOLADO while the item is only awaiting approval in the inbox.
For simple clear edits, go directly to the target instead of using inbox.
Use a_aprovar only when there is an actual open decision, ambiguity, or risk. If the task/procedure/principle is clear and Hugo has asked to protocolar, either process directly or put it in the inbox as pronto_para_processar, not a_aprovar.
Search First
Before creating a procedure, search:
kb/- relevant project
playbook/ - relevant project
sources/raw/ kb/sources/tutorials-drive-inventory.md- Drive folder
@Equipe-RZ TUTORIAIS - Drive playbooks/docs with short metadata search first
Do not open large docs unless needed.
Ask When Needed
Ask Hugo if:
- owner is ambiguous and guessing may cause operational error
- timing is unclear
- task vs principle changes where it should be saved
- a new global rule would be created
- sensitive commercial/financial/legal promise is involved
Output
After protocoling, say briefly:
- classified as task/procedure/principle
- where it was saved
- if Suprema was updated
- what remains pending