{% extends "curb_base.html" %} {# This machine › Fixes: what Curb can change, what only the person can, and the undo. #} {% block part %} {% if machine_held.value is none %} {% if machine_held.error %}{{ k.failed(machine_held.error) }}{% else %}{{ k.checking("Working out what Curb can fix…") }}{% endif %} {% else %} {% set ready = view.ready | length %}
{{ edit.file }}
{% for line in edit.lines %}{{ line.text }}
{% endfor %}
{% endfor %}
{% else %}
The lines name credential locations. {{ k.ask_names() }} to read them.
{% endif %}Every change Curb can make safely is in place. Test the blocks next, so you know they hold.
Open tests {% endcall %} {% endif %} {% if view.yours %}Nothing applied yet. A fix you apply shows here, with its undo.
{% endif %}A fix edits the settings file that belongs to you, for one agent. It never edits a project, and it never loosens anything. If Curb cannot show that a change only tightens, it leaves the change out and says why.
Before it writes, Curb copies each file to a backup that no agent can read, and keeps it for 7 days. Undo puts the copy back.
These fixes cover the credentials every project shares. To close one project's own files too, such as its .env file, run this inside the project:
{{ k.cmd("flanner curb fix") }} {% endcall %}Afterwards, a command that needs a file or a site you have not allowed will fail until you allow it.
Curb backs up each file for 7 days. Undo puts it back.
{% endcall %} {% call k.review_box("undo", "Undo this fix?", "/curb/machine/fixes/undo", {"backup": backup}) %}Curb puts each file back as it was before the fix.