Rename projection repo for Section 0

This commit is contained in:
virgil
2026-06-07 19:21:24 -07:00
parent cf7f4d95fc
commit f7426cf3a6
5 changed files with 31 additions and 31 deletions

View File

@@ -1,4 +1,4 @@
# Mock RTA Knowledge Base
# Section 0 RTA Handbook
This hosted Git repo is intentionally plain Markdown. It has no required RTA
sidecars. Collaborators clone, edit, commit, and push it as the canonical
@@ -22,38 +22,38 @@ Current projected docs:
From any machine that can reach the lab mesh:
```sh
curl -fsSL http://100.64.0.1:30087/virgil-admin/rta-mock-docs/raw/branch/main/scripts/setup-rta-mock-docs.sh | sh
curl -fsSL http://100.64.0.1:30087/section0/rta-handbook/raw/branch/main/scripts/setup-section0-docs.sh | sh
```
The script clones this repo into:
```text
~/Developer/Section0/rta-mock-docs
~/Developer/Section0/rta-handbook
```
It also installs a small helper command at:
```text
~/.local/bin/rta-mock-docs
~/.local/bin/section0-docs
```
Override the destination if you prefer:
```sh
TARGET_DIR=~/work/rta-mock-docs \
curl -fsSL http://100.64.0.1:30087/virgil-admin/rta-mock-docs/raw/branch/main/scripts/setup-rta-mock-docs.sh | sh
TARGET_DIR=~/work/rta-handbook \
curl -fsSL http://100.64.0.1:30087/section0/rta-handbook/raw/branch/main/scripts/setup-section0-docs.sh | sh
```
## Daily Flow
```sh
rta-mock-docs pull
section0-docs pull
# Edit Markdown files in your normal editor.
rta-mock-docs status
MESSAGE="Describe the doc change" rta-mock-docs commit
rta-mock-docs push
section0-docs status
MESSAGE="Describe the doc change" section0-docs commit
section0-docs push
```
After a push, ask the projection operator to pull and project. For now that is

View File

@@ -5,19 +5,19 @@ This repo is projected into AFFiNE manually for now.
Canonical Gitea repo:
```text
http://100.64.0.1:30087/virgil-admin/rta-mock-docs.git
http://100.64.0.1:30087/section0/rta-handbook.git
```
Projected AFFiNE path:
```text
Agent Workspace / projected-markdown / mock-rta-docs
Agent Workspace / Section 0 / Git Projections / RTA Handbook
```
## What A Collaborator Does
```sh
cd ~/Developer/Section0/rta-mock-docs
cd ~/Developer/Section0/rta-handbook
git pull --ff-only
# edit Markdown
git add .
@@ -33,7 +33,7 @@ collaborator's dirty working tree.
Nice wrapper:
```sh
/Users/virgil/Developer/rta/tmp/markdown-projection-gitea/collaborator-checkout/rta-mock-docs/scripts/project-rta-mock-docs.sh
/Users/virgil/Developer/rta/tmp/markdown-projection-gitea/collaborator-checkout/rta-handbook/scripts/project-section0-rta-handbook.sh
```
It pulls the projector checkout, checks it is clean, and runs the AFFiNE
@@ -42,7 +42,7 @@ projection command.
Manual equivalent:
```sh
git -C /Users/virgil/Developer/rta/tmp/markdown-projection-gitea/projector-checkout/rta-mock-docs pull --ff-only
git -C /Users/virgil/Developer/rta/tmp/markdown-projection-gitea/projector-checkout/rta-handbook pull --ff-only
```
Then from `home-lab-v7`:
@@ -51,14 +51,14 @@ Then from `home-lab-v7`:
cd /Users/virgil/Developer/Virgil-Info/home-lab-v7
nix develop --command bash -lc 'scripts/ops/sync-obsidian-affine.rb \
--name rta-mock-docs \
--source /Users/virgil/Developer/rta/tmp/markdown-projection-gitea/projector-checkout/rta-mock-docs \
--name section0-rta-handbook \
--source /Users/virgil/Developer/rta/tmp/markdown-projection-gitea/projector-checkout/rta-handbook \
--username projection-bot \
--authentik-sub rta-projection-bot \
--affine-workspace "Agent Workspace" \
--affine-workspace-id 53ea0a0b-eca7-4887-8e31-f5b2a8ab7744 \
--affine-user-id ce42f50a-5367-4466-920b-7422c4e27de0 \
--affine-namespace projected-markdown/mock-rta-docs \
--affine-namespace 'Section 0/Git Projections/RTA Handbook' \
--include "**/*.md" \
--apply'
```

View File

@@ -1,6 +1,6 @@
# RTA Status
This is still a demo status, not an exhaustive status report.
The current mock says RTA has a working Markdown projection slice with hosted Git as the source authority.
This is a concise operator status, not an exhaustive status report.
The current handbook records that RTA has a working Markdown projection slice with hosted Git as the source authority.
Live AFFiNE writing remains the next adapter step.
The rename demonstrates that Git history can preserve projection identity.

View File

@@ -1,7 +1,7 @@
#!/usr/bin/env sh
set -eu
PROJECTOR_DIR="${PROJECTOR_DIR:-/Users/virgil/Developer/rta/tmp/markdown-projection-gitea/projector-checkout/rta-mock-docs}"
PROJECTOR_DIR="${PROJECTOR_DIR:-/Users/virgil/Developer/rta/tmp/markdown-projection-gitea/projector-checkout/rta-handbook}"
HOME_LAB_DIR="${HOME_LAB_DIR:-/Users/virgil/Developer/Virgil-Info/home-lab-v7}"
if [ ! -d "$PROJECTOR_DIR/.git" ]; then
@@ -27,13 +27,13 @@ fi
echo "==> Projecting Markdown into AFFiNE"
cd "$HOME_LAB_DIR"
nix develop --command bash -lc "scripts/ops/sync-obsidian-affine.rb \
--name rta-mock-docs \
--name section0-rta-handbook \
--source '$PROJECTOR_DIR' \
--username projection-bot \
--authentik-sub rta-projection-bot \
--affine-workspace 'Agent Workspace' \
--affine-workspace-id 53ea0a0b-eca7-4887-8e31-f5b2a8ab7744 \
--affine-user-id ce42f50a-5367-4466-920b-7422c4e27de0 \
--affine-namespace projected-markdown/mock-rta-docs \
--affine-namespace 'Section 0/Git Projections/RTA Handbook' \
--include '**/*.md' \
--apply"

View File

@@ -1,10 +1,10 @@
#!/usr/bin/env sh
set -eu
REPO_URL="${REPO_URL:-http://100.64.0.1:30087/virgil-admin/rta-mock-docs.git}"
TARGET_DIR="${TARGET_DIR:-$HOME/Developer/Section0/rta-mock-docs}"
REPO_URL="${REPO_URL:-http://100.64.0.1:30087/section0/rta-handbook.git}"
TARGET_DIR="${TARGET_DIR:-$HOME/Developer/Section0/rta-handbook}"
COMMAND_DIR="${COMMAND_DIR:-$HOME/.local/bin}"
COMMAND_NAME="${COMMAND_NAME:-rta-mock-docs}"
COMMAND_NAME="${COMMAND_NAME:-section0-docs}"
COMMAND_PATH="$COMMAND_DIR/$COMMAND_NAME"
step() {
@@ -40,7 +40,7 @@ REPO_DIR="$TARGET_DIR"
usage() {
cat <<USAGE
rta-mock-docs - helper for the RTA mock docs projection repo
section0-docs - helper for Section 0 Git Projection repos
Commands:
open print the repo path
@@ -51,10 +51,10 @@ Commands:
help show this help
Examples:
rta-mock-docs pull
rta-mock-docs status
MESSAGE="Update concept notes" rta-mock-docs commit
rta-mock-docs push
section0-docs pull
section0-docs status
MESSAGE="Update concept notes" section0-docs commit
section0-docs push
AFFiNE is read-only for this repo. Durable edits happen in Markdown, then the
projection operator pulls and projects.