Skip to content

Commit 4e21a60

Browse files
authored
Merge pull request #82 from ascerra/fix/gh-classify-sandbox-paths
fix(scribe): pack notes as tarball to work around host_files directory limitation
2 parents ae0ff0f + b631e28 commit 4e21a60

3 files changed

Lines changed: 11 additions & 4 deletions

File tree

customized/agents/scribe.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,14 @@ Additional context files (all in `/sandbox/workspace/`):
2222

2323
## Step 1: Read metadata and meeting notes
2424

25-
First, read the metadata file to get the cutoff date and notes URL:
25+
First, extract the notes archive and read the metadata file. You MUST run these commands before reading notes — skipping them means no notes are available:
2626

2727
```
28+
tar -xzf /sandbox/workspace/notes.tar.gz -C /sandbox/workspace --no-absolute-names
2829
cat "$SCRIBE_META_FILE"
2930
```
3031

31-
This returns JSON with `cutoff_date` (ISO timestamp — only extract topics from meetings on or after this date) and `notes_url` (URL for citation links in comments).
32+
The metadata returns JSON with `cutoff_date` (ISO timestamp — only extract topics from meetings on or after this date) and `notes_url` (URL for citation links in comments).
3233

3334
Then read all `.txt` files in `$SCRIBE_NOTES_DIR`. If no files exist, write an empty result and stop.
3435

customized/harness/scribe.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ host_files:
1515
- src: env/scribe.env
1616
dest: /sandbox/workspace/.env.d/scribe.env
1717
expand: true
18-
- src: ${RUNNER_TEMP}/scribe-workspace/notes
19-
dest: /sandbox/workspace/notes
18+
- src: ${RUNNER_TEMP}/scribe-workspace/notes.tar.gz
19+
dest: /sandbox/workspace/notes.tar.gz
2020
- src: ${RUNNER_TEMP}/scribe-workspace/backlog.json
2121
dest: /sandbox/workspace/backlog.json
2222
- src: ${RUNNER_TEMP}/scribe-workspace/closed-issues.json

customized/scripts/pre-scribe.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,8 @@ if [[ "${DOC_COUNT}" -eq 0 ]]; then
164164
echo "No documents found — agent will produce empty result."
165165
rm -f "${WORK_DIR}/drive-response.json"
166166
unset ACCESS_TOKEN SA_EMAIL
167+
# Pack empty notes directory — host_files only supports single files
168+
tar -czf "${WORK_DIR}/notes.tar.gz" -C "${WORK_DIR}" notes
167169
jq -n \
168170
--arg cutoff "${CUTOFF_DATE}" \
169171
--arg repo "${SCRIBE_REPO}" \
@@ -308,6 +310,10 @@ jq -n \
308310
repo_docs: $doc_path_count
309311
}' > "${META_FILE}"
310312

313+
# Pack notes directory into a tarball — fullsend host_files only supports
314+
# single files, not directories (UploadFile vs UploadDir).
315+
tar -czf "${WORK_DIR}/notes.tar.gz" -C "${WORK_DIR}" notes
316+
311317
# Cleanup: remove Drive API response (contains doc IDs and metadata)
312318
rm -f "${WORK_DIR}/drive-response.json" "${WORK_DIR}/doc-export-tmp"
313319
unset ACCESS_TOKEN SA_EMAIL

0 commit comments

Comments
 (0)