Skip to content

docs(#1128): document bundled-script architecture in AGENTS.md - #1129

Open
fullsend-ai-coder[bot] wants to merge 1 commit into
mainfrom
agent/1128-bundled-script-docs
Open

docs(#1128): document bundled-script architecture in AGENTS.md#1129
fullsend-ai-coder[bot] wants to merge 1 commit into
mainfrom
agent/1128-bundled-script-docs

Conversation

@fullsend-ai-coder

Copy link
Copy Markdown
Contributor

Summary

Adds section 9 ("Bundled script architecture") to AGENTS.md, documenting:

  • How bundling works: scripts/lib/*.lib.sh files are shared libraries inlined into standalone executables by scripts/bundle-sh.sh. Each scripts/*.src.sh is a source template compiled via make script-build.
  • Function-naming conventions: Code/review/fix/retro/scribe/prioritize ops use forge_* prefix; triage ops use tracker_* prefix with forge_* aliases for cross-context compatibility.
  • Cross-context verification rule: When modifying a lib file, trace all .src.sh consumers and verify the called function is defined in every bundled context's dependency chain.
  • Build and test commands: Always run make script-build then make script-test after lib file changes.

This gives the code agent the architectural context it needs to avoid cross-context breakage like PR #1124, where labels.lib.sh called forge_create_label() which was undefined in triage bundled scripts.

Testing

  • Verified all referenced file patterns (scripts/lib/*.lib.sh, scripts/*.src.sh) match actual repo contents
  • Verified documented make targets (script-build, script-test) exist in the Makefile
  • Confirmed new section number (9) does not conflict with existing sections (1–8)
  • make lint (skillsaw) passes with no new violations

Closes #1128

Post-script verification

  • Branch is not main/master (agent/1128-bundled-script-docs)
  • Secret scan passed (gitleaks — b52686586e15571d1c4b422488ba825e2d5bf021..HEAD)
  • PR body secret scan passed (gitleaks — no-git)

Add section 9 covering the bundled-script build system and
cross-context function contracts. Documents how lib files are
inlined into executables via make script-build, the forge_* vs
tracker_* naming split between agent types, and the verification
steps required when modifying a shared lib file to ensure the
called function resolves in every bundled context.

This prevents cross-context breakage like PR #1124, where
labels.lib.sh called forge_create_label() which was undefined
in triage bundled scripts that use the tracker_* prefix.

Closes #1128
@fullsend-ai-coder
fullsend-ai-coder Bot requested a review from a team as a code owner September 1, 2026 21:57
@fullsend-ai-coder fullsend-ai-coder Bot added the ready-for-review Triggers review agent dispatch label Sep 1, 2026
@fullsend-ai-review

fullsend-ai-review Bot commented Sep 1, 2026

Copy link
Copy Markdown

🤖 Finished Review · ✅ Success · Started 9:59 PM UTC · Completed 10:14 PM UTC

Commit: 9d424c7 · View workflow run →

Runtime: claude · Model: opus → claude-opus-4-6 · Effort: high · Cost: $3.19

@fullsend-ai-review fullsend-ai-review Bot added the risk/moderate PR risk: moderate label Sep 1, 2026
@fullsend-ai-review

Copy link
Copy Markdown

Risk Assessment: moderate (2/5)

Details

Documentation-only additive PR by a bot appending 57 lines to AGENTS.md, a protected path with elevated churn (12 commits/30d, 4 authors/90d) and frequent fix-related commits in its history; low inherent change risk is moderately offset by the file's hotspot characteristics.

@fullsend-ai-review

Copy link
Copy Markdown

Review

Findings

Medium

@fullsend-ai-review fullsend-ai-review Bot added the requires-manual-review Review requires human judgment label Sep 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready-for-review Triggers review agent dispatch requires-manual-review Review requires human judgment risk/moderate PR risk: moderate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

AGENTS.md should document bundled-script function contracts to prevent cross-context breakage

0 participants