Skip to content

Add PyPI and npm publish workflows - #1

Merged
anilmurty merged 1 commit into
mainfrom
add-publish-workflows
Apr 6, 2026
Merged

anilmurty merged 1 commit into
mainfrom
add-publish-workflows

Conversation

@anilmurty

Copy link
Copy Markdown
Contributor

Summary

  • Add publish-pypi.yml workflow: triggers on release, runs tests, publishes via PyPI trusted publishing
  • Add publish-npm.yml workflow: triggers on release, runs tests, publishes with NPM_TOKEN secret
  • Rename TS SDK package from @ocw/sdk to @openclawwatch/sdk
  • Add .claude/12-publish-workflows.md spec doc

Test plan

  • Verify workflows appear in Actions tab
  • Create a test release with v-prefixed tag to validate both pipelines
  • Confirm PyPI trusted publishing environment pypi is configured in repo settings
  • Confirm NPM_TOKEN secret is set in repo settings

🤖 Generated with Claude Code

@anilmurty anilmurty self-assigned this Apr 6, 2026
@anilmurty
anilmurty merged commit d6e49b2 into main Apr 6, 2026
4 checks passed
@anilmurty
anilmurty deleted the add-publish-workflows branch April 6, 2026 21:50
anilmurty pushed a commit that referenced this pull request Jul 2, 2026
The session activity section was a raw wall of full-card steps (a 356-step session
rendered ~32k px tall). Make it scannable and address the naming/order feedback.

- Rename the user-facing tab + section "Story" -> "Timeline" (the /story endpoint
  path is unchanged/internal).
- Newest-first display: renderStepsNewestFirst() reverses the step list (top level
  AND nested subagents) while keeping the #n labels (so #1 is still the first action).
  The Task callout stays pinned at top and Outcome at bottom; only the steps reverse.
- Compact rows: each step is now a one-line row (#n - time - tool chips ok/error -
  clamped first line of narration); click to expand the full narration + detail. The
  repetitive per-row model label is dropped and shown only when the model changes
  (prevModel). Error tint, retry markers, and the recursive subagent disclosure are
  preserved.

UI-only (tokenjam/ui/index.html); ruff clean.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
anilmurty added a commit to tarun73/tokenjam that referenced this pull request Jul 3, 2026
test_bounded_queue_drops_oldest_and_logs raced the producer against the
background hook worker: it flooded the bounded queue and asserted at least
one span was dropped, but when the worker drained fast enough the queue
never overflowed and the assert failed ("assert 0 > 0"). It passed on the
PR's own CI but failed under the release batch's different timing.

The drop-oldest overflow logic is correct and separately proven; only the
test's ability to *force* an overflow was unreliable. This makes the
overflow deterministic instead of raced:

- The blocking hook now signals `entered` once the worker has pulled the
  first span and parked inside evaluate(); the test waits on it before
  flooding, so the worker provably cannot drain concurrently.
- The hook's `release.wait()` drops its 10s timeout. That timeout was the
  actual flake source: over a multi-second flood it could expire, waking
  the worker to drain another span and re-park, quietly relieving queue
  pressure so the drop count came out short (observed 2 instead of 5).
  With no timeout the worker holds span Metabuilder-Labs#1 for the whole flood.
- The flood now enqueues via the real overflow entry point
  (`_enqueue_hook`) rather than full `process()`. The drop-oldest policy
  under test lives entirely in `_enqueue_hook`; routing 10k+ spans through
  a real DuckDB write each added tens of seconds of unrelated I/O.

The assertion is now exact (`== overflow_by`) instead of a lower bound,
and still asserts the real behavior: drops happen, are counted, and are
logged at WARNING. Verified non-flaky over 20 consecutive runs; full
suite (tests/unit, tests/synthetic, tests/integration) green.

Co-Authored-By: tarun73 <[email protected]>
Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
anshss added a commit that referenced this pull request Jul 21, 2026
Closes the class rather than the instances. The two remaining printed
references, in the doctor's schema-integrity warning and repair help and in
the schema self-heal log line, are replaced by plain descriptions; both
printed, so both had the same escape path into terminals and pasted bug
reports.

The guard walks every non-docstring string literal under tokenjam/ and fails
on a tracker reference. False positives are separated structurally, not by an
allowlist: a reference needs two or more digits, which distinguishes it from
an ordinal like 'Your #1 fix', and markup-shaped literals are skipped, which
covers CSS colour literals in the report templates and any template added
later. A guard with exceptions only teaches people to add exceptions.

Verified by reintroducing a reference and watching it fail, then removing it
again. A companion test pins the discriminators, and another asserts the scan
actually reaches the source tree, since a guard that walks an empty tree
passes forever.

Co-Authored-By: Claude <[email protected]>
anshss added a commit that referenced this pull request Jul 26, 2026
A test docstring used "(#1 of the trace-cost-ranking brief: ...)" to refer
to a numbered item in the work brief. On a public GitHub repo, "#1" in a
comment renders as a link to this repo's own issue/PR #1, which is
unrelated and misleading. Reworded without the numeral reference.

Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
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