Does an AI agent learn why its proposal was rejected?
covey keeps a rejected proposal and its note for the people who decide. covey Doctor gets neither back through any of its actions.
If you let one agent improve the configuration of other agents, you get proposals, and you reject some of them. A rejection needs a reason, and the reason needs somewhere to live. At the next pass, the same proposal should also stay away unless something about it has changed. In covey that role belongs to covey Doctor. In the example configuration that ships with covey it reads its colleagues' work records every seven days and proposes changes to their configuration.
How far the reason for a rejection travels can be read off the source. It reaches the people who decide and the people who audit. covey Doctor itself gets it back through none of its actions.
One example runs through this post. covey Doctor reads the work record of the support agent support and proposes a line in its PLAYBOOKS.md that would have it answer refund requests directly. Lena is the supervisor of support and is registered as its agent_owner. She rejects the proposal with the note "Refunds stay with the team".
A rejection stays on record as a row with its reason
Lena decides in the web interface or in the app, where the open point appears as a card with Accept, Reject and an optional note. Underneath, that is a call to POST /api/v1/improvements/{id}/decide with accept: false and the text in note, which the roles org_admin, agent_owner and security may make.
Rejecting costs nothing and takes nothing away, so the source allows it to anyone who may operate the list. Accepting additionally checks for conflicts and, where ACCESS.md or EGRESS.md is touched, the role.
The proposal is kept. Its row in improvement_items gets the status rejected along with decided_by, decided_at and the note in decision_note. It can be decided exactly once, since a second click returns HTTP 409 with "this item has already been decided".
There is an asymmetry here. propose_agent_config refuses a proposal that has no rationale, while the note on a rejection is optional.
The note is read by the people who decide and audit
GET /api/v1/improvements returns the open and decided points to org_admin, agent_owner, security and auditor. The role controlling is left out on purpose. In the source's words, a proposal says how somebody worked, and a cost sheet only says what was spent. In the inbox of the web interface, Lena's note stands in quotation marks beside the decided point.
The spec explains why the row is kept. A rejected proposal is the most useful thing somebody checking covey Doctor can read. That somebody is a person who wants to judge whether its proposals are any good.
covey Doctor sees counts instead of reasons
For its reviews covey Doctor has the actions work_record, read_recording, propose_agent_config and write_review, and it reads the running configuration with get_agent_config. After submitting, it gets the proposal's id and a sentence saying the proposal is stored and not in effect.
None of these actions returns the status or the note of a single proposal. In the source, decision_note is read only by the API, which hands it to the web interface.
The work record is of little help here as well. Under "friction" it counts, by status, the proposals that the agent being read wrote itself. Lena's rejection therefore counts in covey Doctor's own record. That record is closed to covey Doctor, because an agent that knows what it is measured on works towards the measure instead of the job.
The agent under review is kept out as well: support never gets to read the proposal about itself. The web interface lists the open point in its inbox, and the app shows it as a card in the conversation with support, because the point is filed under that agent. The app draws that card above the input for Lena to decide; support never receives it as a message.
What stands against a repeat is a line in the playbook
When a proposal is created, covey does not compare it against earlier proposals. If covey Doctor submits the same line for support again next week, a new open point with the status pending appears.
What stands against that is the playbook of the example configuration, under "What you keep". It asks for a memory page per colleague with the last review, the finding and what came of it. A proposal a human has already declined is to be made a second time only if it has changed.
That is the trade-off in this design. A proposal does not run, so even a compromised covey Doctor produces only a queue of bad proposals. The source calls that an annoyance and sets it apart from an incident.
The price is that Lena's reason is written for people. covey Doctor knows it only if somebody carries it to where covey Doctor reads. An accepted change shows up at the next cycle in the running configuration of support; a rejected one leaves that configuration as it was.
If covey Doctor should know the refund rule at its next review, a person writes it into covey Doctor's configuration, in PLAYBOOKS.md for instance. That goes through the same write path as every other configuration change.