{% extends "space-settings-base.html" %} {% from "ui.html" import csrf_field, when, secret_confirm with context %} {% from "editor.html" import editor 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() }} {# The version the draft started from, kept through a preview or an error: a save over a newer one is a conflict. #} {{ editor(drafts[key] if key in drafts else doc.text, 12 if key == 'tidy-rules' else 22, "/o/" ~ org.slug ~ "/" ~ space.slug ~ "/-/vocation/preview", id=key ~ "-text", label=_("Text (Markdown)"), params={"kind": key}, classes="editor vocation-editor", placeholder=placeholder, help=_("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

{{ _("Team checks") }}

{{ _("What every page must follow") }}

{{ _("Rules checked without AI: in Health, at each write (a rule that blocks refuses it), and by the tidy-up agent, which receives them.") }}

.synaptane/checks.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 %}

{{ _("These 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 %} {% call document_card("checks", _("Team checks"), _("One level-2 heading per rule, then its keys: pattern (regular expression), field and expect (front matter), preset (email, phone, card, IBAN), paths, level (warn or block) and message. Personal data is masked in the reports. The preview counts the current pages that break each rule."), "/o/" ~ org.slug ~ "/" ~ space.slug ~ "/-/vocation/checks", _("## No personal email\n- preset: email\n- level: block\n- message: Link to the person's page instead.")) %}

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

{% if 'checks' in drafts and not error_kind and not preview_kind %}

{{ _("Example loaded in the editor: delete the rules you do not need, adapt the others, then save.") }}

{% endif %} {% endcall %}
{% endblock %}