-
Notifications
You must be signed in to change notification settings - Fork 3.5k
feat: summarize verbose workflow JSON nodes #2414
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Wirasm
merged 4 commits into
dev
from
archon/task-archon-fix-github-issue-experimental-1785754738226
Aug 3, 2026
Merged
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
da66b19
Fix: expose workflow node summaries in verbose JSON (#2359)
Wirasm 42212f3
fix: address workflow event review findings
Wirasm 606edd2
simplify: reduce complexity in changed files
Wirasm 27627b3
fix(db): avoid a full table rewrite when adding event_order
Wirasm File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🗄️ Data Integrity & Integration | 🟠 Major | ⚡ Quick win
🧩 Analysis chain
🌐 Web query:
Does PostgreSQL ALTER TABLE ADD COLUMN GENERATED BY DEFAULT AS IDENTITY require an ACCESS EXCLUSIVE lock and rewrite the table on versions 11+?💡 Result:
Yes, the
ALTER TABLE ... ADD COLUMN ... GENERATED BY DEFAULT AS IDENTITYcommand requires anACCESS EXCLUSIVElock in PostgreSQL versions 11 and later [1][2]. While manyADD COLUMNoperations in modern PostgreSQL (version 11+) are "instant" because they do not require a full table rewrite [2][3], the addition of an identity column is an exception [4]. Specifically, adding an identity column triggers a table rewrite [4]. This occurs because the operation must initialize the underlying implicit sequence and ensure the new column is correctly populated and constrained across all existing rows [5][4]. Because it performs a full table rewrite, this operation is generally not instant on large tables and will block all access (including reads) to the table for the duration of the process due to theACCESS EXCLUSIVElock [1][2].Citations:
🏁 Script executed:
Repository: coleam00/Archon
Length of output: 50371
🌐 Web query:
PostgreSQL 18 identity columns table rewrite when alter table add column GENERATED BY DEFAULT AS IDENTITY existing rows NULL documentation💡 Result:
In PostgreSQL 18, adding a column defined with GENERATED BY DEFAULT AS IDENTITY to an existing table will cause the entire table and all its indexes to be rewritten [1][2]. According to the official PostgreSQL 18 documentation, adding a column with a volatile default (such as clock_timestamp), a stored generated column, an identity column, or a column with a domain data type that has constraints requires a complete table rewrite [1][2]. This is distinct from adding a column with a simple, non-volatile constant default value, which is a metadata-only operation that does not require a rewrite [1][2]. Because this operation involves a full table rewrite, it can be resource-intensive and time-consuming on large tables, as it requires the creation of a new table file and the copying of all existing data. Even though the identity column will effectively be NULL for existing rows until they are updated or rewritten, the structural change associated with identity columns currently forces this physical rewrite of the table [1][2].
Citations:
Use a nullable order column or batched backfill instead of adding an identity column.
PostgreSQL identity columns are non-null, and they can only be added with an
ACCESS EXCLUSIVErewrite. Update the migration comment atmigrations/000_combined.sql:526because existing rows do not stay NULL under PostgreSQL. Migrate both dialects to a nullableevent_orderwith non-blocking assignment/backfill instead ofGENERATED BY DEFAULT AS IDENTITYso existing tables do not block reads/writes during startup.🧰 Tools
🪛 Squawk (2.61.0)
[warning] 528-528: Adding a generated column requires a table rewrite with an
ACCESS EXCLUSIVElock. In Postgres versions 11+, non-VOLATILE DEFAULTs can be added without a rewrite. Add the column as nullable, backfill existing rows, and add a trigger to update the column on write instead.(adding-field-with-default)
🤖 Prompt for AI Agents
Source: Linters/SAST tools