{% extends "space-settings-base.html" %} {% from "ui.html" import csrf_field, when, secret_confirm with context %} {% set section = "vocation" %} {# One of the two files: editor, preview, latest changes. #} {% macro document_card(key, title, lead, action_url, placeholder) %} {% set doc = documents[key] %} {% set mine = error_kind == key %}

{{ title }}

{% if doc.pending %}{{ _("Waiting for synchronization") }}{% elif not doc.sha %}{{ _("Not defined") if key == "vocation" else _("None") }}{% endif %}

{{ lead }}

{{ caller() }} {% if mine and error %}{% endif %}
{{ csrf_field() }}

{{ _("20,000 characters at most. An empty text removes the file from the repository.") }}

{% if mine and conflict_sha %}{% endif %} {% if mine %}{{ secret_confirm(error) }}{% endif %}
{% if preview_kind == key %}
{{ preview_html|safe if preview_html.strip() else _("(empty text)") }}
{% endif %} {% if history[key] %}
{% endif %}
{% endmacro %} {% block section %}

{{ _("Purpose") }}

{{ _("What the space is") }}

{{ _("What it is for and for whom, what goes in it or not, how folders are organized, conventions, vocabulary. Given to the nightly tidy-up, to routines and to AI assistants.") }}

.synaptane/vocation.md

{{ _("Filing instructions") }}

{{ _("How to file") }}

{{ _("Precise rules for the tidy-up agent, taking precedence over its default instructions. Read by the agent only.") }}

.synaptane/prompts/tidy.md
{% if not documents.vocation.synced %}

{{ _("The space is not synchronized with its repository yet: what you save waits for the first synchronization, then is written to the repository (unless it already has its own file).") }} {{ _("Git repository") }}

{% else %}

{{ _("Both files are versioned in the repository: edit them here or with a push. Each save is a commit in your name.") }}

{% endif %} {% call document_card("vocation", _("Purpose"), _("Answer each section's questions in a few concrete lines. An infrastructure team's second brain is not filed the same way as a marketing team's or a family's."), "/o/" ~ org.slug ~ "/" ~ space.slug ~ "/-/vocation", _("Start from a template above, or write: what the space is for, what goes in it, how…")) %}

{{ _("The template replaces the editor's text; adapt it, then save.") }}

{% if chosen and 'vocation' in drafts %}

{{ _("Template loaded in the editor: review it, adapt it, then save.") }}

{% endif %} {% endcall %} {% call document_card("tidy-rules", _("Filing instructions"), _("Precise rules for the agent, for example: “one page per supplier in suppliers/”, “never rename procedures”, “write dates as YYYY-MM-DD”. They do not lift the safeguards (dropped content treated as data, deletion cap)."), "/o/" ~ org.slug ~ "/" ~ space.slug ~ "/-/vocation/tidy-rules", _("- One page per supplier in suppliers/.")) %}{% endcall %}
{% endblock %}