Skip to content

Add white paper drafting and build pipeline - #3

Merged
zeiddata-dev merged 12 commits into
mainfrom
chore/whitepaper-pipeline
Jun 21, 2026
Merged

Add white paper drafting and build pipeline#3
zeiddata-dev merged 12 commits into
mainfrom
chore/whitepaper-pipeline

Conversation

@zeiddata-dev

Copy link
Copy Markdown
Owner

Adds the research white paper pipeline: house LaTeX preamble and template under templates/whitepaper, build and bootstrap scripts under tools/scripts, the operating prompt at tools/whitepaper-agent.md, and ops docs at docs/whitepaper-pipeline.md. Fonts are vendored locally and gitignored. Infrastructure only, no paper content.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: bbecbf3903

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".


## One time setup
```
tools/scripts/zd_whitepaper_bootstrap.sh --with-tectonic

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Make the whitepaper scripts runnable as documented

These new shell scripts are committed with mode 100644 (git ls-files -s shows no executable bit), but the setup/build/ship docs invoke them directly as tools/scripts/...; in a fresh clone that returns Permission denied before the shebang is used, so the documented one-time setup and build paths fail unless users manually run bash ... or chmod +x first. Mark the scripts executable or change the documented invocations consistently.

Useful? React with 👍 / 👎.

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

see this is why agentic reviews are stupid. shutup codex

red "FAIL: working tree dirty. Commit or stash first."; echo exit_code=5; exit 5
fi
git fetch origin --quiet
git checkout -b "$BRANCH" origin/main >>"$LOG" 2>&1 || git checkout -b "$BRANCH" >>"$LOG" 2>&1

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Stop when the shipping branch cannot be created

If this script is rerun for the same date/slug and the local branch already exists, both git checkout -b attempts fail because -b creates a new branch (git checkout -h), but the script ignores that failure and continues on whatever branch the user was already on. In the common case of rerunning from main, the subsequent commit is made on local main while the push/PR targets the stale branch, violating the script's own "never commit to main" workflow; abort when checkout fails or choose a guaranteed-unique branch.

Useful? React with 👍 / 👎.

PAGES=$(command -v pdfinfo >/dev/null 2>&1 && pdfinfo "$PDIR/paper.pdf" 2>/dev/null | awk '/^Pages:/{print $2}')

# clean working tree check, then branch
if ! git diff --quiet || ! git diff --cached --quiet; then

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Include untracked files in the dirty-tree guard

This guard only checks tracked differences, so a workspace with untracked files is still treated as clean; immediately afterward the broad git add "$PDIR" templates/whitepaper tools docs research/.gitignore can stage unrelated untracked files under docs, tools, or templates into the paper PR. Since the script advertises that it refuses dirty trees before shipping, use a status check that includes untracked files before branching/staging.

Useful? React with 👍 / 👎.

@zeiddata-dev
zeiddata-dev merged commit 5ffd21a into main Jun 21, 2026
2 checks passed

@zeiddata-dev zeiddata-dev left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Zeid Data admin approval via Radwuan

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant